[03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:40:58]accept exits with 9 [03:40:58]New connection [03:40:58]New thread 3066604900 created [03:40:58]Thread 3066748260 joined [03:40:58]Waiting for new connection... [03:40:58] Sock 9.Parse request [03:40:58]Sock 9.Check first char [03:40:58]Sock 9.First char is OK [03:40:58]request: POST /json_proto HTTP/1.0 [03:40:58]Method: POST [03:40:58]URL: /json_proto [03:40:58]Method is POST - this is cgi request [03:40:58]url: /json_proto [03:40:58]query_string will be loaded in cgi processing [03:40:58]execute_cgi json_proto POST (null) [03:40:58]execute_cgi path=json_proto method=POST [03:40:58]POST find Content-Length [03:40:58]Host: 172.17.63.3:8080 [03:40:58]Content-Length: 676 [03:40:58]Content-Type: application/json [03:40:58] [03:40:58]POST finish read [03:40:58]Found Content-Length = 676 [03:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:58]execute_script... [03:40: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)99604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:58]POST & json_proto [03:40:58]process_json_proto [03:40:58]json parsed OK: [03:40:58]protocol is kg_v1.0 [03:40:58]action value=close_receipt [03:40:58]process_action close_receipt [03:40:58]cmd_close_receipt [03:40:58]MH_GetDate [03:40:58]Write to MH i2c: F0 00 00 99 03 8B [03:40:58]Write i2c OK [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: F0 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: F0 09 00 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: F0 09 00 99 03 00 CB 07 1F 67 50 D1 6C 64 DD [03:40:58]GetLastDocTimeStamp 1730081328 [03:40:58]current date 1730086859 [03:40:58]FM_GetShiftState [03:40:58]SAM_PROTO_GetShiftState [03:40:58]wFMCommunicate request_size=4 [03:40:58]MH_SAM_APDU [03:40:58]CAPDU: 80 13 01 00 [03:40:58]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [03:40:58]Write i2c OK [03:40:58]MH_I2C_Read... [03:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:58]Read from MH i2c: E2 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 0E 00 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0C [03:40:58]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [03:40:58]wFMCommunicate OK [03:40:58]SAM_PROTO_GetShiftState done [03:40:58]FM_GetShiftState done [03:40:58]opened in 1730075526 [03:40:58]opened+sec_in_day 1730161926 [03:40:58]quantity*price = 40006 [03:40:58]sum+1 = 40007 [03:40:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 8 28.10.2024 03:40 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156792 ФПД: 33282634358168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T034059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156792&fm=33282634358168&tin=02508201610067®Number=0000000000091693&sum=40000 [03:40:59]StoreToDocumentArchive [03:40:59]shift 538 fd 156792 [03:40:59]save to /storage/0538/doc_00156792 [03:40:59]save last doc name /storage/0538/doc_00156792 to /storage/kkm_last_doc_name [03:40:59]save OK [03:40:59]Clear old archive folders... [03:40:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:40:59]tlvbuf is 01A52F50 [03:40:59]SAM_PROTO_ClearQueue [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 09 00 00 [03:40:59]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]SAM_PROTO_ClearQueue done [03:40:59]KKMCreateOFDPacket [03:40:59]OFDProtocolAddRootSTLVToBuf [03:40:59]FM_MakeSignedData [03:40:59]FM_MakeSignedData [03:40:59]SAM_PROTO_SignData [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 01 02 [03:40:59]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]wFMCommunicate request_size=255 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CB 07 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 64 02 00 35 04 06 00 1E [03:40:59]Write to MH i2c: E2 02 01 A9 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CB 07 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 64 02 00 35 04 06 00 1E 00 00 FF [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]wFMCommunicate request_size=10 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 02 02 05 45 37 99 1D 98 [03:40:59]Write to MH i2c: E2 0D 00 AA 03 80 0D 02 02 05 00 45 37 99 1D 98 00 00 FB [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 03 02 [03:40:59]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0B 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0B 00 AB 03 00 C4 17 1C 8E 87 72 3E D8 90 00 BE [03:40:59]RAPDU: C4 17 1C 8E 87 72 3E D8 90 00 [03:40:59]wFMCommunicate OK [03:40:59]SAM_PROTO_SignData done [03:40:59]FM_MakeSignedData done [03:40:59]CreateOFDProtocolMessage [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 11 00 00 [03:40:59]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 17 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [03:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [03:40:59]wFMCommunicate OK [03:40:59]CreateOFDProtocolMessage done [03:40:59]OFDSenderStorePacket 156792 [03:40:59]StoreOFDPacket docnum=156792 [03:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 0C 07 01 17 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CB 07 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 64 02 00 35 04 06 00 1E 45 37 99 1D 98 C4 17 1C 8E 87 72 3E D8 [03:40:59]CheckFolder [03:40:59]dirname=/storage/ofd_packets [03:40:59]CheckFolder done [03:40:59]ProducePacketName [03:40:59]name=ofd_packets/00156792 [03:40:59]NVStorageSaveData ofd_packets/00156792 [03:40:59]File name is /storage/ofd_packets/00156792 [03:40:59]Write 301 bytes [03:40:59]NVStorageSaveData done [03:40:59]OFDSenderStorePacket done [03:40:59]KKMCreateOFDPacket done [03:40:59]NVStorageSaveData kkm_last_timestamp [03:40:59]File name is /storage/kkm_last_timestamp [03:40:59]Write 4 bytes [03:40:59]NVStorageSaveData done [03:40:59]ExternCall_PrintAddStr [03:40:59]wPrintStart [03:40:59]Write to MH i2c: 01 00 00 AD 03 B0 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 07 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [03:40:59]RasterBufferAndPrint [03:40:59]line Счет N : (1)99604 [03:40:59]line ИНН: 02508201610067 [03:40:59]line Контрольно-Кассовый Чек [03:40:59]line ПРОДАЖА [03:40:59]line ТРК (МРК, ГНК) : 31 [03:40:59]line Товар: 2710124130 [03:40:59]line Аи-92-К-5 [03:40:59]line 5.980 * 66.90 [03:40:59]line = 400.06 [03:40:59]line НДС 12% НСП 1% [03:40:59]line > о реализуемом товаре [03:40:59]line ОКРУГЛЕНИЕ: -0.06 [03:40:59]line ИТОГО: 400.00 [03:40:59]line Внесено: 400.00 [03:40:59]line СДАЧА: 0.00 [03:40:59]line НСП 1% : 3.54 [03:40:59]line НДС 12% : 42.48 [03:40:59]line Наличными: 400.00 [03:40:59]line Безнал.: 0.00 [03:40:59]line Место: АЗС № 143 "Партнер Нефть" [03:40:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [03:40:59]line СНО: Общий режим [03:40:59]line Чек 8 28.10.2024 03:40 [03:40:59]line Смена: 538 ФФД: 1.0 [03:40:59]line ЗНМ: 0300000096 [03:40:59]line РНМ: 0000000000091693 [03:40:59]line Версия ККМ: 001 [03:40:59]line ФМ: 0000000000871792 [03:40:59]line ФД: 156792 [03:40:59]line ФПД: 33282634358168 [03:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T034059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156792&fm=33282634358168&tin=02508201610067®Number=0000000000091693&sum=40000 [03:41:00]OFD Sender: Processing packet 156792 [packets to send 31, broken 30] [03:41:00]ProducePacketName [03:41:00]name=ofd_packets/00156792 [03:41:00]OFD Sender: To server: pG, [03:41:00]CommunicateWithHost lk.salyk.kg:30040 [03:41:00]ConnectInit lk.salyk.kg [03:41:00]written 0, free lines is 4095 [03:41:00]Connected sock=10 [03:41:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E 0C 07 01 17 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 CB 07 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 64 02 00 35 04 06 00 1E 45 37 99 1D 98 C4 17 1C 8E 87 72 3E D8 [03:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 33 E0 47 00 23 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 37 39 32 10 04 04 00 78 64 02 00 F4 03 04 00 38 AD 1E 67 B6 04 01 00 00 3E DD E1 04 41 CE A7 E0 [03:41:00]CommunicateWithHost err = 0 [03:41:00]CheckOFDResponse [03:41:00]1017 (14) - 77093643461234 [03:41:00]1041 (16) - 0000000000871792 [03:41:00]1040 (4) - 156792 [03:41:00]1012 (4) - 27.10.2024 21:14 [03:41:00]1206 (1) - 0 [03:41:00]OFD Sender: Remove packet 156792 [03:41:00]ProducePacketName [03:41:00]name=ofd_packets/00156792 [03:41:00]NVStorageDeleteData [03:41:00]Write to MH i2c: 01 00 00 D8 03 DB [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 07 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 F0 0C DE [03:41:00]RasterBufferAndPrint [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]written 0, free lines is 3318 [03:41:00]process_action close_receipt done [03:41:00]requested_data is exist [03:41:00]produce_requested_data [03:41:00]requested_item fm.sn is exist - process it [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 11 00 00 [03:41:00]Write to MH i2c: E2 08 00 DF 03 80 11 00 00 00 00 00 00 5C [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 17 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 17 00 DF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [03:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [03:41:00]wFMCommunicate OK [03:41:00]requested_item fd.num is exist - process it [03:41:00]SAM_PROTO_GetFieldsCounters [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 13 00 00 [03:41:00]Write to MH i2c: E2 08 00 E0 03 80 13 00 00 00 00 00 00 5F [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 62 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 62 00 E0 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 64 02 00 0E 04 04 00 1A 02 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 97 [03:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 64 02 00 0E 04 04 00 1A 02 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 [03:41:00]wFMCommunicate OK [03:41:00]SAM_PROTO_GetFieldsCounters done [03:41:00]requested_item shift.num is exist - process it [03:41:00]requested_item shift.opened is exist - process it [03:41:00]req_shift_opened [03:41:00]FM_GetShiftState [03:41:00]SAM_PROTO_GetShiftState [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 13 01 00 [03:41:00]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:01]Read from MH i2c: E2 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 0E 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 53 [03:41:01]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [03:41:01]wFMCommunicate OK [03:41:01]SAM_PROTO_GetShiftState done [03:41:01]FM_GetShiftState done [03:41:01]req_shift_opened done [03:41:01]requested_item shift.open_date is exist - process it [03:41:01]req_shift_open_date [03:41:01]req_shift_open_date done [03:41:01]produce_requested_data done [03:41:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156792,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [03:41:01]process_action_free close_receipt [03:41:01]json_value_free [03:41:01]json_value_free done [03:41:01]process_json_proto returns [03:41:01]Send response to host [03:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156792,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [03:41:01]free response buf [03:41:01]execute_script done [03:41:01]execute_script returns [03:41:01]free content buf [03:41:01]Sock 9.Close socket [03:41:01]Sock 9.Thread stoped [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]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]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:11]OFD Sender: No OFD packet to send [03:54:16]OFD Sender: No OFD packet to send [03:54:21]OFD Sender: No OFD packet to send [03:54:26]OFD Sender: No OFD packet to send [03:54:31]OFD Sender: No OFD packet to send [03:54:36]OFD Sender: No OFD packet to send [03:54:41]OFD Sender: No OFD packet to send [03:54:46]OFD Sender: No OFD packet to send [03:54:51]OFD Sender: No OFD packet to send [03:54:56]OFD Sender: No OFD packet to send [03:55:01]OFD Sender: No OFD packet to send [03:55:06]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05:27]OFD Sender: No OFD packet to send [04:05:32]OFD Sender: No OFD packet to send [04:05:37]OFD Sender: No OFD packet to send [04:05:42]OFD Sender: No OFD packet to send [04:05:47]OFD Sender: No OFD packet to send [04:05:52]OFD Sender: No OFD packet to send [04:05:57]OFD Sender: No OFD packet to send [04:06:02]OFD Sender: No OFD packet to send [04:06:07]OFD Sender: No OFD packet to send [04:06:12]OFD Sender: No OFD packet to send [04:06:17]OFD Sender: No OFD packet to send [04:06:22]OFD Sender: No OFD packet to send [04:06:27]OFD Sender: No OFD packet to send [04:06:32]OFD Sender: No OFD packet to send [04:06:37]OFD Sender: No OFD packet to send [04:06:42]OFD Sender: No OFD packet to send [04:06:47]OFD Sender: No OFD packet to send [04:06:52]OFD Sender: No OFD packet to send [04:06:57]OFD Sender: No OFD packet to send [04:07:02]OFD Sender: No OFD packet to send [04:07:07]OFD Sender: No OFD packet to send [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09:47]OFD Sender: No OFD packet to send [04:09:52]OFD Sender: No OFD packet to send [04:09:57]OFD Sender: No OFD packet to send [04:10:02]OFD Sender: No OFD packet to send [04:10:07]OFD Sender: No OFD packet to send [04:10:12]OFD Sender: No OFD packet to send [04:10:17]OFD Sender: No OFD packet to send [04:10:22]OFD Sender: No OFD packet to send [04:10:27]OFD Sender: No OFD packet to send [04:10:32]OFD Sender: No OFD packet to send [04:10:37]OFD Sender: No OFD packet to send [04:10:42]OFD Sender: No OFD packet to send [04:10:47]OFD Sender: No OFD packet to send [04:10:52]OFD Sender: No OFD packet to send [04:10:57]OFD Sender: No OFD packet to send [04:11:02]OFD Sender: No OFD packet to send [04:11:07]OFD Sender: No OFD packet to send [04:11:12]OFD Sender: No OFD packet to send [04:11:17]OFD Sender: No OFD packet to send [04:11:22]OFD Sender: No OFD packet to send [04:11:27]OFD Sender: No OFD packet to send [04:11:32]OFD Sender: No OFD packet to send [04:11:37]OFD Sender: No OFD packet to send [04:11:42]OFD Sender: No OFD packet to send [04:11:47]OFD Sender: No OFD packet to send [04:11:52]OFD Sender: No OFD packet to send [04:11:57]OFD Sender: No OFD packet to send [04:12:02]OFD Sender: No OFD packet to send [04:12:07]OFD Sender: No OFD packet to send [04:12:12]OFD Sender: No OFD packet to send [04:12:17]OFD Sender: No OFD packet to send [04:12:22]OFD Sender: No OFD packet to send [04:12:27]OFD Sender: No OFD packet to send [04:12:32]OFD Sender: No OFD packet to send [04:12:37]OFD Sender: No OFD packet to send [04:12:42]OFD Sender: No OFD packet to send [04:12:47]OFD Sender: No OFD packet to send [04:12:52]OFD Sender: No OFD packet to send [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:45]ConnectInit Can't connect to host [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [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: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:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]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:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:10]accept exits with 7 [06:33:10]New connection [06:33:10]New thread 3066748260 created [06:33:10]Thread 3066604900 joined [06:33:10]Waiting for new connection... [06:33:10] Sock 7.Parse request [06:33:10]Sock 7.Check first char [06:33:10]Sock 7.First char is OK [06:33:10]request: POST /json_proto HTTP/1.0 [06:33:10]Method: POST [06:33:10]URL: /json_proto [06:33:10]Method is POST - this is cgi request [06:33:10]url: /json_proto [06:33:10]query_string will be loaded in cgi processing [06:33:10]execute_cgi json_proto POST (null) [06:33:10]execute_cgi path=json_proto method=POST [06:33:10]POST find Content-Length [06:33:10]Host: 172.17.63.3:8080 [06:33:10]Content-Length: 678 [06:33:10]Content-Type: application/json [06:33:10] [06:33:10]POST finish read [06:33:10]Found Content-Length = 678 [06:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:10]execute_script... [06:33: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)99605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:10]POST & json_proto [06:33:10]process_json_proto [06:33:10]json parsed OK: [06:33:10]protocol is kg_v1.0 [06:33:10]action value=close_receipt [06:33:10]process_action close_receipt [06:33:10]cmd_close_receipt [06:33:10]MH_GetDate [06:33:10]Write to MH i2c: F0 00 00 E2 03 D4 [06:33:10]Write i2c OK [06:33:10]MH_I2C_Read... [06:33:10]Read from MH i2c: F0 [06:33:10]MH_I2C_Read... [06:33:10]Read from MH i2c: F0 09 00 [06:33:10]MH_I2C_Read... [06:33:10]Read from MH i2c: F0 09 00 E2 03 00 28 30 1F 67 50 D1 6C 64 AC [06:33:10]GetLastDocTimeStamp 1730086859 [06:33:10]current date 1730097192 [06:33:10]FM_GetShiftState [06:33:10]SAM_PROTO_GetShiftState [06:33:10]wFMCommunicate request_size=4 [06:33:10]MH_SAM_APDU [06:33:10]CAPDU: 80 13 01 00 [06:33:10]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [06:33:10]Write i2c OK [06:33:10]MH_I2C_Read... [06:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:10]Read from MH i2c: E2 [06:33:10]MH_I2C_Read... [06:33:10]Read from MH i2c: E2 0E 00 [06:33:10]MH_I2C_Read... [06:33:10]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 55 [06:33:10]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [06:33:10]wFMCommunicate OK [06:33:10]SAM_PROTO_GetShiftState done [06:33:10]FM_GetShiftState done [06:33:10]opened in 1730075526 [06:33:10]opened+sec_in_day 1730161926 [06:33:10]quantity*price = 200025 [06:33:10]sum+1 = 200026 [06:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 9 28.10.2024 06:33 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156793 ФПД: 86259003417567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T063312&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156793&fm=86259003417567&tin=02508201610067®Number=0000000000091693&sum=200000 [06:33:11]StoreToDocumentArchive [06:33:11]shift 538 fd 156793 [06:33:11]save to /storage/0538/doc_00156793 [06:33:11]save last doc name /storage/0538/doc_00156793 to /storage/kkm_last_doc_name [06:33:11]save OK [06:33:11]Clear old archive folders... [06:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:33:11]tlvbuf is 01A5D450 [06:33:11]SAM_PROTO_ClearQueue [06:33:11]wFMCommunicate request_size=4 [06:33:11]MH_SAM_APDU [06:33:11]CAPDU: 80 09 00 00 [06:33:11]Write to MH i2c: E2 08 00 F0 03 80 09 00 00 00 00 00 00 65 [06:33:11]Write i2c OK [06:33:11]MH_I2C_Read... [06:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:11]Read from MH i2c: E2 [06:33:11]MH_I2C_Read... [06:33:11]Read from MH i2c: E2 03 00 [06:33:11]MH_I2C_Read... [06:33:11]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [06:33:11]RAPDU: 90 00 [06:33:11]wFMCommunicate OK [06:33:11]SAM_PROTO_ClearQueue done [06:33:11]KKMCreateOFDPacket [06:33:11]OFDProtocolAddRootSTLVToBuf [06:33:11]FM_MakeSignedData [06:33:11]FM_MakeSignedData [06:33:11]SAM_PROTO_SignData [06:33:11]wFMCommunicate request_size=4 [06:33:11]MH_SAM_APDU [06:33:11]CAPDU: 80 0D 01 02 [06:33:11]Write to MH i2c: E2 08 00 F1 03 80 0D 01 02 00 00 00 00 6D [06:33:11]Write i2c OK [06:33:11]MH_I2C_Read... [06:33:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:12]Read from MH i2c: E2 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [06:33:12]RAPDU: 90 00 [06:33:12]wFMCommunicate OK [06:33:12]wFMCommunicate request_size=255 [06:33:12]MH_SAM_APDU [06:33: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 09 00 00 00 F4 03 04 00 28 30 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 64 02 00 35 04 06 00 4E 73 BD 41 [06:33:12]Write to MH i2c: E2 02 01 F2 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 09 00 00 00 F4 03 04 00 28 30 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 64 02 00 35 04 06 00 4E 73 BD 41 00 00 86 [06:33:12]Write i2c OK [06:33:12]MH_I2C_Read... [06:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:12]Read from MH i2c: E2 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [06:33:12]RAPDU: 90 00 [06:33:12]wFMCommunicate OK [06:33:12]wFMCommunicate request_size=7 [06:33:12]MH_SAM_APDU [06:33:12]CAPDU: 80 0D 02 02 02 E3 DF [06:33:12]Write to MH i2c: E2 0A 00 F3 03 80 0D 02 02 02 00 E3 DF 00 00 36 [06:33:12]Write i2c OK [06:33:12]MH_I2C_Read... [06:33:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:12]Read from MH i2c: E2 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [06:33:12]RAPDU: 90 00 [06:33:12]wFMCommunicate OK [06:33:12]wFMCommunicate request_size=4 [06:33:12]MH_SAM_APDU [06:33:12]CAPDU: 80 0D 03 02 [06:33:12]Write to MH i2c: E2 08 00 F4 03 80 0D 03 02 00 00 00 00 72 [06:33:12]Write i2c OK [06:33:12]MH_I2C_Read... [06:33:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:12]Read from MH i2c: E2 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 0B 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 0B 00 F4 03 00 0D 6D 5A 7B CB 0A 83 F7 90 00 11 [06:33:12]RAPDU: 0D 6D 5A 7B CB 0A 83 F7 90 00 [06:33:12]wFMCommunicate OK [06:33:12]SAM_PROTO_SignData done [06:33:12]FM_MakeSignedData done [06:33:12]CreateOFDProtocolMessage [06:33:12]wFMCommunicate request_size=4 [06:33:12]MH_SAM_APDU [06:33:12]CAPDU: 80 11 00 00 [06:33:12]Write to MH i2c: E2 08 00 F5 03 80 11 00 00 00 00 00 00 72 [06:33:12]Write i2c OK [06:33:12]MH_I2C_Read... [06:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:12]Read from MH i2c: E2 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 17 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: E2 17 00 F5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [06:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:33:12]wFMCommunicate OK [06:33:12]CreateOFDProtocolMessage done [06:33:12]OFDSenderStorePacket 156793 [06:33:12]StoreOFDPacket docnum=156793 [06:33:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 6F 7A 04 01 39 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 09 00 00 00 F4 03 04 00 28 30 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 64 02 00 35 04 06 00 4E 73 BD 41 E3 DF 0D 6D 5A 7B CB 0A 83 F7 [06:33:12]CheckFolder [06:33:12]dirname=/storage/ofd_packets [06:33:12]CheckFolder done [06:33:12]ProducePacketName [06:33:12]name=ofd_packets/00156793 [06:33:12]NVStorageSaveData ofd_packets/00156793 [06:33:12]File name is /storage/ofd_packets/00156793 [06:33:12]Write 298 bytes [06:33:12]NVStorageSaveData done [06:33:12]OFDSenderStorePacket done [06:33:12]KKMCreateOFDPacket done [06:33:12]NVStorageSaveData kkm_last_timestamp [06:33:12]File name is /storage/kkm_last_timestamp [06:33:12]Write 4 bytes [06:33:12]NVStorageSaveData done [06:33:12]ExternCall_PrintAddStr [06:33:12]wPrintStart [06:33:12]Write to MH i2c: 01 00 00 F6 03 F9 [06:33:12]Write i2c OK [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: 01 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: 01 07 00 [06:33:12]MH_I2C_Read... [06:33:12]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 FF 0F 0E [06:33:12]RasterBufferAndPrint [06:33:12]line Счет N : (1)99605 [06:33:12]line ИНН: 02508201610067 [06:33:12]line Контрольно-Кассовый Чек [06:33:12]line ПРОДАЖА [06:33:12]line ТРК (МРК, ГНК) : 32 [06:33:12]line Товар: 2710194210 [06:33:12]line ДТ-К-5 [06:33:12]line 26.250 * 76.20 [06:33:12]line = 2000.25 [06:33:12]line НДС 12% НСП 1% [06:33:12]line > о реализуемом товаре [06:33:12]line ОКРУГЛЕНИЕ: -0.25 [06:33:12]line ИТОГО: 2000.00 [06:33:12]line Внесено: 2000.00 [06:33:12]line СДАЧА: 0.00 [06:33:12]line НСП 1% : 17.70 [06:33:12]line НДС 12% : 212.42 [06:33:12]line Наличными: 2000.00 [06:33:12]line Безнал.: 0.00 [06:33:12]line Место: АЗС № 143 "Партнер Нефть" [06:33:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:33:12]line СНО: Общий режим [06:33:12]line Чек 9 28.10.2024 06:33 [06:33:12]line Смена: 538 ФФД: 1.0 [06:33:12]line ЗНМ: 0300000096 [06:33:12]line РНМ: 0000000000091693 [06:33:12]line Версия ККМ: 001 [06:33:12]line ФМ: 0000000000871792 [06:33:12]line ФД: 156793 [06:33:12]line ФПД: 86259003417567 [06:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T063312&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156793&fm=86259003417567&tin=02508201610067®Number=0000000000091693&sum=200000 [06:33:12]OFD Sender: Processing packet 156793 [packets to send 31, broken 30] [06:33:12]ProducePacketName [06:33:12]name=ofd_packets/00156793 [06:33:12]OFD Sender: To server: pG, [06:33:12]CommunicateWithHost lk.salyk.kg:30040 [06:33:12]ConnectInit lk.salyk.kg [06:33:12]written 0, free lines is 4095 [06:33:12]Connected sock=9 [06:33: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 37 39 32 0C 01 00 00 6F 7A 04 01 39 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 09 00 00 00 F4 03 04 00 28 30 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 64 02 00 35 04 06 00 4E 73 BD 41 E3 DF 0D 6D 5A 7B CB 0A 83 F7 [06:33:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D7 8F 47 00 0F 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 64 02 00 F4 03 04 00 95 D5 1E 67 B6 04 01 00 00 D4 FE BC 5F CE EF 80 E1 [06:33:13]CommunicateWithHost err = 0 [06:33:13]CheckOFDResponse [06:33:13]1017 (14) - 77093643461234 [06:33:13]1041 (16) - 0000000000871792 [06:33:13]1040 (4) - 156793 [06:33:13]1012 (4) - 28.10.2024 00:06 [06:33:13]1206 (1) - 0 [06:33:13]OFD Sender: Remove packet 156793 [06:33:13]ProducePacketName [06:33:13]name=ofd_packets/00156793 [06:33:13]NVStorageDeleteData [06:33:13]Write to MH i2c: 01 00 00 21 04 25 [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: 01 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: 01 07 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: 01 07 00 21 04 00 00 00 00 00 D5 0C 0D [06:33:13]RasterBufferAndPrint [06:33:13]line [06:33:13]line [06:33:13]line [06:33:13]line [06:33:13]line [06:33:13]written 0, free lines is 3293 [06:33:13]process_action close_receipt done [06:33:13]requested_data is exist [06:33:13]produce_requested_data [06:33:13]requested_item fm.sn is exist - process it [06:33:13]wFMCommunicate request_size=4 [06:33:13]MH_SAM_APDU [06:33:13]CAPDU: 80 11 00 00 [06:33:13]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:13]Read from MH i2c: E2 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 17 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [06:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:33:13]wFMCommunicate OK [06:33:13]requested_item fd.num is exist - process it [06:33:13]SAM_PROTO_GetFieldsCounters [06:33:13]wFMCommunicate request_size=4 [06:33:13]MH_SAM_APDU [06:33:13]CAPDU: 80 13 00 00 [06:33:13]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:13]Read from MH i2c: E2 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 62 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 62 00 29 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 64 02 00 0E 04 04 00 1A 02 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 E5 [06:33: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 64 02 00 0E 04 04 00 1A 02 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:33:13]wFMCommunicate OK [06:33:13]SAM_PROTO_GetFieldsCounters done [06:33:13]requested_item shift.num is exist - process it [06:33:13]requested_item shift.opened is exist - process it [06:33:13]req_shift_opened [06:33:13]FM_GetShiftState [06:33:13]SAM_PROTO_GetShiftState [06:33:13]wFMCommunicate request_size=4 [06:33:13]MH_SAM_APDU [06:33:13]CAPDU: 80 13 01 00 [06:33:13]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:13]Read from MH i2c: E2 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 0E 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9D [06:33:13]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [06:33:13]wFMCommunicate OK [06:33:13]SAM_PROTO_GetShiftState done [06:33:13]FM_GetShiftState done [06:33:13]req_shift_opened done [06:33:13]requested_item shift.open_date is exist - process it [06:33:13]req_shift_open_date [06:33:13]req_shift_open_date done [06:33:13]produce_requested_data done [06:33:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156793,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [06:33:13]process_action_free close_receipt [06:33:13]json_value_free [06:33:13]json_value_free done [06:33:13]process_json_proto returns [06:33:13]Send response to host [06:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156793,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [06:33:13]free response buf [06:33:13]execute_script done [06:33:13]execute_script returns [06:33:13]free content buf [06:33:13]Sock 7.Close socket [06:33:13]Sock 7.Thread stoped [06:33:13]OFD Sender: No OFD packet to send [06:33:18]OFD Sender: No OFD packet to send [06:33:23]OFD Sender: No OFD packet to send [06:33:28]OFD Sender: No OFD packet to send [06:33:33]OFD Sender: No OFD packet to send [06:33:38]OFD Sender: No OFD packet to send [06:33:43]OFD Sender: No OFD packet to send [06:33:48]OFD Sender: No OFD packet to send [06:33:53]OFD Sender: No OFD packet to send [06:33:58]OFD Sender: No OFD packet to send [06:34:03]OFD Sender: No OFD packet to send [06:34:08]OFD Sender: No OFD packet to send [06:34:13]OFD Sender: No OFD packet to send [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]OFD Sender: No OFD packet to send [06:40:23]OFD Sender: No OFD packet to send [06:40:28]OFD Sender: No OFD packet to send [06:40:33]OFD Sender: No OFD packet to send [06:40:38]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]accept exits with 10 [07:16:05]New connection [07:16:05]New thread 3066604900 created [07:16:05]Thread 3066748260 joined [07:16:05]Waiting for new connection... [07:16:05] Sock 10.Parse request [07:16:05]Sock 10.Check first char [07:16:05]Sock 10.First char is OK [07:16:05]request: POST /json_proto HTTP/1.0 [07:16:05]Method: POST [07:16:05]URL: /json_proto [07:16:05]Method is POST - this is cgi request [07:16:05]url: /json_proto [07:16:05]query_string will be loaded in cgi processing [07:16:05]execute_cgi json_proto POST (null) [07:16:05]execute_cgi path=json_proto method=POST [07:16:05]POST find Content-Length [07:16:05]Host: 172.17.63.3:8080 [07:16:05]Content-Length: 676 [07:16:05]Content-Type: application/json [07:16:05] [07:16:05]POST finish read [07:16:05]Found Content-Length = 676 [07:16:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:16:05]execute_script... [07:16: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)99606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:16:05]POST & json_proto [07:16:05]process_json_proto [07:16:05]json parsed OK: [07:16:05]protocol is kg_v1.0 [07:16:05]action value=close_receipt [07:16:05]process_action close_receipt [07:16:05]cmd_close_receipt [07:16:05]MH_GetDate [07:16:05]Write to MH i2c: F0 00 00 2B 04 1E [07:16:05]Write i2c OK [07:16:05]MH_I2C_Read... [07:16:05]Read from MH i2c: F0 [07:16:05]MH_I2C_Read... [07:16:05]Read from MH i2c: F0 09 00 [07:16:05]MH_I2C_Read... [07:16:05]Read from MH i2c: F0 09 00 2B 04 00 37 3A 1F 67 50 D1 6C 64 0F [07:16:05]GetLastDocTimeStamp 1730097192 [07:16:05]current date 1730099767 [07:16:05]FM_GetShiftState [07:16:05]SAM_PROTO_GetShiftState [07:16:05]wFMCommunicate request_size=4 [07:16:05]MH_SAM_APDU [07:16:05]CAPDU: 80 13 01 00 [07:16:05]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [07:16:05]Write i2c OK [07:16:05]MH_I2C_Read... [07:16:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:05]Read from MH i2c: E2 [07:16:05]MH_I2C_Read... [07:16:05]Read from MH i2c: E2 0E 00 [07:16:05]MH_I2C_Read... [07:16:05]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9F [07:16:05]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:16:05]wFMCommunicate OK [07:16:05]SAM_PROTO_GetShiftState done [07:16:05]FM_GetShiftState done [07:16:05]opened in 1730075526 [07:16:05]opened+sec_in_day 1730161926 [07:16:05]quantity*price = 50041 [07:16:05]sum+1 = 50042 [07:16:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 10 28.10.2024 07:16 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156794 ФПД: 208626393539689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T071607&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156794&fm=208626393539689&tin=02508201610067®Number=0000000000091693&sum=50000 [07:16:06]StoreToDocumentArchive [07:16:06]shift 538 fd 156794 [07:16:06]save to /storage/0538/doc_00156794 [07:16:06]save last doc name /storage/0538/doc_00156794 to /storage/kkm_last_doc_name [07:16:06]save OK [07:16:06]Clear old archive folders... [07:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:16:06]tlvbuf is 01A7C5A0 [07:16:06]SAM_PROTO_ClearQueue [07:16:06]wFMCommunicate request_size=4 [07:16:06]MH_SAM_APDU [07:16:06]CAPDU: 80 09 00 00 [07:16:06]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [07:16:06]Write i2c OK [07:16:06]MH_I2C_Read... [07:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:06]Read from MH i2c: E2 [07:16:06]MH_I2C_Read... [07:16:06]Read from MH i2c: E2 03 00 [07:16:06]MH_I2C_Read... [07:16:06]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [07:16:06]RAPDU: 90 00 [07:16:06]wFMCommunicate OK [07:16:06]SAM_PROTO_ClearQueue done [07:16:06]KKMCreateOFDPacket [07:16:06]OFDProtocolAddRootSTLVToBuf [07:16:06]FM_MakeSignedData [07:16:06]FM_MakeSignedData [07:16:06]SAM_PROTO_SignData [07:16:06]wFMCommunicate request_size=4 [07:16:06]MH_SAM_APDU [07:16:06]CAPDU: 80 0D 01 02 [07:16:06]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [07:16:06]Write i2c OK [07:16:06]MH_I2C_Read... [07:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:06]Read from MH i2c: E2 [07:16:06]MH_I2C_Read... [07:16:06]Read from MH i2c: E2 03 00 [07:16:06]MH_I2C_Read... [07:16:06]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [07:16:06]RAPDU: 90 00 [07:16:06]wFMCommunicate OK [07:16:06]wFMCommunicate request_size=255 [07:16:06]MH_SAM_APDU [07:16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0A 00 00 00 F4 03 04 00 37 3A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 64 02 00 35 04 06 00 BD [07:16:06]Write to MH i2c: E2 02 01 3B 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0A 00 00 00 F4 03 04 00 37 3A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 64 02 00 35 04 06 00 BD 00 00 05 [07:16:06]Write i2c OK [07:16:06]MH_I2C_Read... [07:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:07]Read from MH i2c: E2 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 03 00 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [07:16:07]RAPDU: 90 00 [07:16:07]wFMCommunicate OK [07:16:07]wFMCommunicate request_size=10 [07:16:07]MH_SAM_APDU [07:16:07]CAPDU: 80 0D 02 02 05 BE 9E 13 E4 69 [07:16:07]Write to MH i2c: E2 0D 00 3C 04 80 0D 02 02 05 00 BE 9E 13 E4 69 00 00 80 [07:16:07]Write i2c OK [07:16:07]MH_I2C_Read... [07:16:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:07]Read from MH i2c: E2 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 03 00 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [07:16:07]RAPDU: 90 00 [07:16:07]wFMCommunicate OK [07:16:07]wFMCommunicate request_size=4 [07:16:07]MH_SAM_APDU [07:16:07]CAPDU: 80 0D 03 02 [07:16:07]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [07:16:07]Write i2c OK [07:16:07]MH_I2C_Read... [07:16:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:07]Read from MH i2c: E2 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 0B 00 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 0B 00 3D 04 00 F6 09 04 A1 E8 CF 06 4F 90 00 6D [07:16:07]RAPDU: F6 09 04 A1 E8 CF 06 4F 90 00 [07:16:07]wFMCommunicate OK [07:16:07]SAM_PROTO_SignData done [07:16:07]FM_MakeSignedData done [07:16:07]CreateOFDProtocolMessage [07:16:07]wFMCommunicate request_size=4 [07:16:07]MH_SAM_APDU [07:16:07]CAPDU: 80 11 00 00 [07:16:07]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [07:16:07]Write i2c OK [07:16:07]MH_I2C_Read... [07:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:07]Read from MH i2c: E2 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 17 00 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [07:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:16:07]wFMCommunicate OK [07:16:07]CreateOFDProtocolMessage done [07:16:07]OFDSenderStorePacket 156794 [07:16:07]StoreOFDPacket docnum=156794 [07:16:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6D 06 07 01 03 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0A 00 00 00 F4 03 04 00 37 3A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 64 02 00 35 04 06 00 BD BE 9E 13 E4 69 F6 09 04 A1 E8 CF 06 4F [07:16:07]CheckFolder [07:16:07]dirname=/storage/ofd_packets [07:16:07]CheckFolder done [07:16:07]ProducePacketName [07:16:07]name=ofd_packets/00156794 [07:16:07]NVStorageSaveData ofd_packets/00156794 [07:16:07]File name is /storage/ofd_packets/00156794 [07:16:07]Write 301 bytes [07:16:07]NVStorageSaveData done [07:16:07]OFDSenderStorePacket done [07:16:07]KKMCreateOFDPacket done [07:16:07]NVStorageSaveData kkm_last_timestamp [07:16:07]File name is /storage/kkm_last_timestamp [07:16:07]Write 4 bytes [07:16:07]NVStorageSaveData done [07:16:07]ExternCall_PrintAddStr [07:16:07]wPrintStart [07:16:07]Write to MH i2c: 01 00 00 3F 04 43 [07:16:07]Write i2c OK [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: 01 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: 01 07 00 [07:16:07]MH_I2C_Read... [07:16:07]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [07:16:07]RasterBufferAndPrint [07:16:07]line Счет N : (1)99606 [07:16:07]line ИНН: 02508201610067 [07:16:07]line Контрольно-Кассовый Чек [07:16:07]line ПРОДАЖА [07:16:07]line ТРК (МРК, ГНК) : 31 [07:16:07]line Товар: 2710124130 [07:16:07]line Аи-92-К-5 [07:16:07]line 7.480 * 66.90 [07:16:07]line = 500.41 [07:16:07]line НДС 12% НСП 1% [07:16:07]line > о реализуемом товаре [07:16:07]line ОКРУГЛЕНИЕ: -0.41 [07:16:07]line ИТОГО: 500.00 [07:16:07]line Внесено: 500.00 [07:16:07]line СДАЧА: 0.00 [07:16:07]line НСП 1% : 4.43 [07:16:07]line НДС 12% : 53.14 [07:16:07]line Наличными: 500.00 [07:16:07]line Безнал.: 0.00 [07:16:07]line Место: АЗС № 143 "Партнер Нефть" [07:16:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:16:07]line СНО: Общий режим [07:16:07]line Чек 10 28.10.2024 07:16 [07:16:07]line Смена: 538 ФФД: 1.0 [07:16:07]line ЗНМ: 0300000096 [07:16:07]line РНМ: 0000000000091693 [07:16:07]line Версия ККМ: 001 [07:16:07]line ФМ: 0000000000871792 [07:16:07]line ФД: 156794 [07:16:07]line ФПД: 208626393539689 [07:16:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T071607&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156794&fm=208626393539689&tin=02508201610067®Number=0000000000091693&sum=50000 [07:16:07]OFD Sender: Processing packet 156794 [packets to send 31, broken 30] [07:16:07]ProducePacketName [07:16:07]name=ofd_packets/00156794 [07:16:07]OFD Sender: To server: pG, [07:16:07]CommunicateWithHost lk.salyk.kg:30040 [07:16:07]ConnectInit lk.salyk.kg [07:16:07]written 0, free lines is 4095 [07:16:07]Connected sock=9 [07:16: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 37 39 32 0F 01 00 00 6D 06 07 01 03 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 0A 00 00 00 F4 03 04 00 37 3A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 64 02 00 35 04 06 00 BD BE 9E 13 E4 69 F6 09 04 A1 E8 CF 06 4F [07:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F5 89 47 00 EC 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 64 02 00 F4 03 04 00 A4 DF 1E 67 B6 04 01 00 00 44 39 37 D1 7D 42 FC BC [07:16:07]CommunicateWithHost err = 0 [07:16:07]CheckOFDResponse [07:16:07]1017 (14) - 77093643461234 [07:16:07]1041 (16) - 0000000000871792 [07:16:07]1040 (4) - 156794 [07:16:07]1012 (4) - 28.10.2024 00:49 [07:16:07]1206 (1) - 0 [07:16:07]OFD Sender: Remove packet 156794 [07:16:07]ProducePacketName [07:16:07]name=ofd_packets/00156794 [07:16:07]NVStorageDeleteData [07:16:08]Write to MH i2c: 01 00 00 6A 04 6E [07:16:08]Write i2c OK [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: 01 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: 01 07 00 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 D9 0C 5A [07:16:08]RasterBufferAndPrint [07:16:08]line [07:16:08]line [07:16:08]line [07:16:08]line [07:16:08]line [07:16:08]written 0, free lines is 3296 [07:16:08]process_action close_receipt done [07:16:08]requested_data is exist [07:16:08]produce_requested_data [07:16:08]requested_item fm.sn is exist - process it [07:16:08]wFMCommunicate request_size=4 [07:16:08]MH_SAM_APDU [07:16:08]CAPDU: 80 11 00 00 [07:16:08]Write to MH i2c: E2 08 00 71 04 80 11 00 00 00 00 00 00 EF [07:16:08]Write i2c OK [07:16:08]MH_I2C_Read... [07:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:08]Read from MH i2c: E2 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 17 00 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 17 00 71 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [07:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:16:08]wFMCommunicate OK [07:16:08]requested_item fd.num is exist - process it [07:16:08]SAM_PROTO_GetFieldsCounters [07:16:08]wFMCommunicate request_size=4 [07:16:08]MH_SAM_APDU [07:16:08]CAPDU: 80 13 00 00 [07:16:08]Write to MH i2c: E2 08 00 72 04 80 13 00 00 00 00 00 00 F2 [07:16:08]Write i2c OK [07:16:08]MH_I2C_Read... [07:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:08]Read from MH i2c: E2 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 62 00 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 62 00 72 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 64 02 00 0E 04 04 00 1A 02 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 32 [07:16: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:08]wFMCommunicate OK [07:16:08]SAM_PROTO_GetFieldsCounters done [07:16:08]requested_item shift.num is exist - process it [07:16:08]requested_item shift.opened is exist - process it [07:16:08]req_shift_opened [07:16:08]FM_GetShiftState [07:16:08]SAM_PROTO_GetShiftState [07:16:08]wFMCommunicate request_size=4 [07:16:08]MH_SAM_APDU [07:16:08]CAPDU: 80 13 01 00 [07:16:08]Write to MH i2c: E2 08 00 73 04 80 13 01 00 00 00 00 00 F4 [07:16:08]Write i2c OK [07:16:08]MH_I2C_Read... [07:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:08]Read from MH i2c: E2 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 0E 00 [07:16:08]MH_I2C_Read... [07:16:08]Read from MH i2c: E2 0E 00 73 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E6 [07:16:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:16:08]wFMCommunicate OK [07:16:08]SAM_PROTO_GetShiftState done [07:16:08]FM_GetShiftState done [07:16:08]req_shift_opened done [07:16:08]requested_item shift.open_date is exist - process it [07:16:08]req_shift_open_date [07:16:08]req_shift_open_date done [07:16:08]produce_requested_data done [07:16:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156794,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:16:08]process_action_free close_receipt [07:16:08]json_value_free [07:16:08]json_value_free done [07:16:08]process_json_proto returns [07:16:08]Send response to host [07:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156794,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:16:08]free response buf [07:16:08]execute_script done [07:16:08]execute_script returns [07:16:08]free content buf [07:16:08]Sock 10.Close socket [07:16:08]Sock 10.Thread stoped [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:31]accept exits with 7 [07:21:31]New connection [07:21:31]New thread 3066748260 created [07:21:31]Thread 3066604900 joined [07:21:31]Waiting for new connection... [07:21:31] Sock 7.Parse request [07:21:31]Sock 7.Check first char [07:21:31]Sock 7.First char is OK [07:21:31]request: POST /json_proto HTTP/1.0 [07:21:31]Method: POST [07:21:31]URL: /json_proto [07:21:31]Method is POST - this is cgi request [07:21:31]url: /json_proto [07:21:31]query_string will be loaded in cgi processing [07:21:31]execute_cgi json_proto POST (null) [07:21:31]execute_cgi path=json_proto method=POST [07:21:31]POST find Content-Length [07:21:31]Host: 172.17.63.3:8080 [07:21:31]Content-Length: 678 [07:21:31]Content-Type: application/json [07:21:31] [07:21:31]POST finish read [07:21:31]Found Content-Length = 678 [07:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:31]execute_script... [07:21: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)99607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:31]POST & json_proto [07:21:31]process_json_proto [07:21:31]json parsed OK: [07:21:31]protocol is kg_v1.0 [07:21:31]action value=close_receipt [07:21:31]process_action close_receipt [07:21:31]cmd_close_receipt [07:21:31]MH_GetDate [07:21:31]Write to MH i2c: F0 00 00 74 04 67 [07:21:31]Write i2c OK [07:21:31]MH_I2C_Read... [07:21:31]Read from MH i2c: F0 [07:21:31]MH_I2C_Read... [07:21:31]Read from MH i2c: F0 09 00 [07:21:31]MH_I2C_Read... [07:21:31]Read from MH i2c: F0 09 00 74 04 00 7D 3B 1F 67 50 D1 6C 64 9F [07:21:31]GetLastDocTimeStamp 1730099767 [07:21:31]current date 1730100093 [07:21:31]FM_GetShiftState [07:21:31]SAM_PROTO_GetShiftState [07:21:31]wFMCommunicate request_size=4 [07:21:31]MH_SAM_APDU [07:21:31]CAPDU: 80 13 01 00 [07:21:31]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [07:21:31]Write i2c OK [07:21:31]MH_I2C_Read... [07:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:31]Read from MH i2c: E2 [07:21:31]MH_I2C_Read... [07:21:31]Read from MH i2c: E2 0E 00 [07:21:31]MH_I2C_Read... [07:21:31]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E8 [07:21:31]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:21:31]wFMCommunicate OK [07:21:31]SAM_PROTO_GetShiftState done [07:21:31]FM_GetShiftState done [07:21:31]opened in 1730075526 [07:21:31]opened+sec_in_day 1730161926 [07:21:31]quantity*price = 120015 [07:21:31]sum+1 = 120016 [07:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 11 28.10.2024 07:21 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156795 ФПД: 241676837695394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072133&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156795&fm=241676837695394&tin=02508201610067®Number=0000000000091693&sum=120000 [07:21:33]StoreToDocumentArchive [07:21:33]shift 538 fd 156795 [07:21:33]save to /storage/0538/doc_00156795 [07:21:33]save last doc name /storage/0538/doc_00156795 to /storage/kkm_last_doc_name [07:21:33]save OK [07:21:33]Clear old archive folders... [07:21:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:21:33]tlvbuf is 01A5A8B0 [07:21:33]SAM_PROTO_ClearQueue [07:21:33]wFMCommunicate request_size=4 [07:21:33]MH_SAM_APDU [07:21:33]CAPDU: 80 09 00 00 [07:21:33]Write to MH i2c: E2 08 00 82 04 80 09 00 00 00 00 00 00 F8 [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [07:21:33]RAPDU: 90 00 [07:21:33]wFMCommunicate OK [07:21:33]SAM_PROTO_ClearQueue done [07:21:33]KKMCreateOFDPacket [07:21:33]OFDProtocolAddRootSTLVToBuf [07:21:33]FM_MakeSignedData [07:21:33]FM_MakeSignedData [07:21:33]SAM_PROTO_SignData [07:21:33]wFMCommunicate request_size=4 [07:21:33]MH_SAM_APDU [07:21:33]CAPDU: 80 0D 01 02 [07:21:33]Write to MH i2c: E2 08 00 83 04 80 0D 01 02 00 00 00 00 00 [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [07:21:33]RAPDU: 90 00 [07:21:33]wFMCommunicate OK [07:21:33]wFMCommunicate request_size=255 [07:21:33]MH_SAM_APDU [07:21: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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 0B 00 00 00 F4 03 04 00 7D 3B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 64 02 00 35 04 06 00 DB CD C6 0F [07:21:33]Write to MH i2c: E2 02 01 84 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 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 0B 00 00 00 F4 03 04 00 7D 3B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 64 02 00 35 04 06 00 DB CD C6 0F 00 00 BB [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [07:21:33]RAPDU: 90 00 [07:21:33]wFMCommunicate OK [07:21:33]wFMCommunicate request_size=7 [07:21:33]MH_SAM_APDU [07:21:33]CAPDU: 80 0D 02 02 02 AF A2 [07:21:33]Write to MH i2c: E2 0A 00 85 04 80 0D 02 02 02 00 AF A2 00 00 58 [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [07:21:33]RAPDU: 90 00 [07:21:33]wFMCommunicate OK [07:21:33]wFMCommunicate request_size=4 [07:21:33]MH_SAM_APDU [07:21:33]CAPDU: 80 0D 03 02 [07:21:33]Write to MH i2c: E2 08 00 86 04 80 0D 03 02 00 00 00 00 05 [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 0B 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 0B 00 86 04 00 75 B2 BB C8 63 99 70 86 90 00 A2 [07:21:33]RAPDU: 75 B2 BB C8 63 99 70 86 90 00 [07:21:33]wFMCommunicate OK [07:21:33]SAM_PROTO_SignData done [07:21:33]FM_MakeSignedData done [07:21:33]CreateOFDProtocolMessage [07:21:33]wFMCommunicate request_size=4 [07:21:33]MH_SAM_APDU [07:21:33]CAPDU: 80 11 00 00 [07:21:33]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:33]Read from MH i2c: E2 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 17 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [07:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:21:33]wFMCommunicate OK [07:21:33]CreateOFDProtocolMessage done [07:21:33]OFDSenderStorePacket 156795 [07:21:33]StoreOFDPacket docnum=156795 [07:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 88 E3 04 01 98 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 0B 00 00 00 F4 03 04 00 7D 3B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 64 02 00 35 04 06 00 DB CD C6 0F AF A2 75 B2 BB C8 63 99 70 86 [07:21:33]CheckFolder [07:21:33]dirname=/storage/ofd_packets [07:21:33]CheckFolder done [07:21:33]ProducePacketName [07:21:33]name=ofd_packets/00156795 [07:21:33]NVStorageSaveData ofd_packets/00156795 [07:21:33]File name is /storage/ofd_packets/00156795 [07:21:33]Write 298 bytes [07:21:33]NVStorageSaveData done [07:21:33]OFDSenderStorePacket done [07:21:33]KKMCreateOFDPacket done [07:21:33]NVStorageSaveData kkm_last_timestamp [07:21:33]File name is /storage/kkm_last_timestamp [07:21:33]Write 4 bytes [07:21:33]NVStorageSaveData done [07:21:33]ExternCall_PrintAddStr [07:21:33]wPrintStart [07:21:33]Write to MH i2c: 01 00 00 88 04 8C [07:21:33]Write i2c OK [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: 01 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: 01 07 00 [07:21:33]MH_I2C_Read... [07:21:33]Read from MH i2c: 01 07 00 88 04 00 00 00 00 00 FF 0F A1 [07:21:33]RasterBufferAndPrint [07:21:33]line Счет N : (1)99607 [07:21:33]line ИНН: 02508201610067 [07:21:33]line Контрольно-Кассовый Чек [07:21:33]line ПРОДАЖА [07:21:33]line ТРК (МРК, ГНК) : 32 [07:21:33]line Товар: 2710194210 [07:21:33]line ДТ-К-5 [07:21:33]line 15.750 * 76.20 [07:21:33]line = 1200.15 [07:21:33]line НДС 12% НСП 1% [07:21:33]line > о реализуемом товаре [07:21:33]line ОКРУГЛЕНИЕ: -0.15 [07:21:33]line ИТОГО: 1200.00 [07:21:33]line Внесено: 1200.00 [07:21:33]line СДАЧА: 0.00 [07:21:33]line НСП 1% : 10.62 [07:21:33]line НДС 12% : 127.45 [07:21:33]line Наличными: 1200.00 [07:21:33]line Безнал.: 0.00 [07:21:33]line Место: АЗС № 143 "Партнер Нефть" [07:21:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:21:33]line СНО: Общий режим [07:21:33]line Чек 11 28.10.2024 07:21 [07:21:33]line Смена: 538 ФФД: 1.0 [07:21:33]line ЗНМ: 0300000096 [07:21:33]line РНМ: 0000000000091693 [07:21:33]line Версия ККМ: 001 [07:21:33]line ФМ: 0000000000871792 [07:21:33]line ФД: 156795 [07:21:33]line ФПД: 241676837695394 [07:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072133&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156795&fm=241676837695394&tin=02508201610067®Number=0000000000091693&sum=120000 [07:21:33]OFD Sender: Processing packet 156795 [packets to send 31, broken 30] [07:21:33]ProducePacketName [07:21:33]name=ofd_packets/00156795 [07:21:33]OFD Sender: To server: pG, [07:21:33]CommunicateWithHost lk.salyk.kg:30040 [07:21:33]ConnectInit lk.salyk.kg [07:21:33]written 0, free lines is 4095 [07:21:34]Connected sock=10 [07:21: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 37 39 32 0C 01 00 00 88 E3 04 01 98 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF 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 C9 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 0B 00 00 00 F4 03 04 00 7D 3B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 64 02 00 35 04 06 00 DB CD C6 0F AF A2 75 B2 BB C8 63 99 70 86 [07:21:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4F 2B 47 00 E8 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 37 39 32 10 04 04 00 7B 64 02 00 F4 03 04 00 EA E0 1E 67 B6 04 01 00 00 DF C8 58 C7 9B 0C 2F 52 [07:21:34]CommunicateWithHost err = 0 [07:21:34]CheckOFDResponse [07:21:34]1017 (14) - 77093643461234 [07:21:34]1041 (16) - 0000000000871792 [07:21:34]1040 (4) - 156795 [07:21:34]1012 (4) - 28.10.2024 00:55 [07:21:34]1206 (1) - 0 [07:21:34]OFD Sender: Remove packet 156795 [07:21:34]ProducePacketName [07:21:34]name=ofd_packets/00156795 [07:21:34]NVStorageDeleteData [07:21:34]Write to MH i2c: 01 00 00 B3 04 B7 [07:21:34]Write i2c OK [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: 01 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: 01 07 00 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 DC 0C A6 [07:21:34]RasterBufferAndPrint [07:21:34]line [07:21:34]line [07:21:34]line [07:21:34]line [07:21:34]line [07:21:34]written 0, free lines is 3298 [07:21:34]process_action close_receipt done [07:21:34]requested_data is exist [07:21:34]produce_requested_data [07:21:34]requested_item fm.sn is exist - process it [07:21:34]wFMCommunicate request_size=4 [07:21:34]MH_SAM_APDU [07:21:34]CAPDU: 80 11 00 00 [07:21:34]Write to MH i2c: E2 08 00 BA 04 80 11 00 00 00 00 00 00 38 [07:21:34]Write i2c OK [07:21:34]MH_I2C_Read... [07:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:34]Read from MH i2c: E2 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 17 00 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 17 00 BA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [07:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:21:34]wFMCommunicate OK [07:21:34]requested_item fd.num is exist - process it [07:21:34]SAM_PROTO_GetFieldsCounters [07:21:34]wFMCommunicate request_size=4 [07:21:34]MH_SAM_APDU [07:21:34]CAPDU: 80 13 00 00 [07:21:34]Write to MH i2c: E2 08 00 BB 04 80 13 00 00 00 00 00 00 3B [07:21:34]Write i2c OK [07:21:34]MH_I2C_Read... [07:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:34]Read from MH i2c: E2 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 62 00 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 62 00 BB 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 64 02 00 0E 04 04 00 1A 02 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 7F [07:21: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:34]wFMCommunicate OK [07:21:34]SAM_PROTO_GetFieldsCounters done [07:21:34]requested_item shift.num is exist - process it [07:21:34]requested_item shift.opened is exist - process it [07:21:34]req_shift_opened [07:21:34]FM_GetShiftState [07:21:34]SAM_PROTO_GetShiftState [07:21:34]wFMCommunicate request_size=4 [07:21:34]MH_SAM_APDU [07:21:34]CAPDU: 80 13 01 00 [07:21:34]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [07:21:34]Write i2c OK [07:21:34]MH_I2C_Read... [07:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:34]Read from MH i2c: E2 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 0E 00 [07:21:34]MH_I2C_Read... [07:21:34]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2F [07:21:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:21:34]wFMCommunicate OK [07:21:34]SAM_PROTO_GetShiftState done [07:21:34]FM_GetShiftState done [07:21:34]req_shift_opened done [07:21:34]requested_item shift.open_date is exist - process it [07:21:34]req_shift_open_date [07:21:34]req_shift_open_date done [07:21:34]produce_requested_data done [07:21:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156795,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:21:34]process_action_free close_receipt [07:21:34]json_value_free [07:21:34]json_value_free done [07:21:34]process_json_proto returns [07:21:34]Send response to host [07:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156795,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:21:34]free response buf [07:21:34]execute_script done [07:21:34]execute_script returns [07:21:34]free content buf [07:21:34]Sock 7.Close socket [07:21:34]Sock 7.Thread stoped [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:44]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]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: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: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]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:52]accept exits with 9 [07:43:52]New connection [07:43:52]New thread 3066604900 created [07:43:52]Thread 3066748260 joined [07:43:52]Waiting for new connection... [07:43:52] Sock 9.Parse request [07:43:52]Sock 9.Check first char [07:43:52]Sock 9.First char is OK [07:43:52]request: POST /json_proto HTTP/1.0 [07:43:52]Method: POST [07:43:52]URL: /json_proto [07:43:52]Method is POST - this is cgi request [07:43:52]url: /json_proto [07:43:52]query_string will be loaded in cgi processing [07:43:52]execute_cgi json_proto POST (null) [07:43:52]execute_cgi path=json_proto method=POST [07:43:52]POST find Content-Length [07:43:52]Host: 172.17.63.3:8080 [07:43:52]Content-Length: 676 [07:43:52]Content-Type: application/json [07:43:52] [07:43:52]POST finish read [07:43:52]Found Content-Length = 676 [07:43:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [07:43:52]execute_script... [07:43: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)99608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [07:43:52]POST & json_proto [07:43:52]process_json_proto [07:43:52]json parsed OK: [07:43:52]protocol is kg_v1.0 [07:43:52]action value=close_receipt [07:43:52]process_action close_receipt [07:43:52]cmd_close_receipt [07:43:52]MH_GetDate [07:43:52]Write to MH i2c: F0 00 00 BD 04 B0 [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 09 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: F0 09 00 BD 04 00 BA 40 1F 67 50 D1 6C 64 2A [07:43:52]GetLastDocTimeStamp 1730100093 [07:43:52]current date 1730101434 [07:43:52]FM_GetShiftState [07:43:52]SAM_PROTO_GetShiftState [07:43:52]wFMCommunicate request_size=4 [07:43:52]MH_SAM_APDU [07:43:52]CAPDU: 80 13 01 00 [07:43:52]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [07:43:52]Write i2c OK [07:43:52]MH_I2C_Read... [07:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:52]Read from MH i2c: E2 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 [07:43:52]MH_I2C_Read... [07:43:52]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 31 [07:43:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:43:52]wFMCommunicate OK [07:43:52]SAM_PROTO_GetShiftState done [07:43:52]FM_GetShiftState done [07:43:52]opened in 1730075526 [07:43:52]opened+sec_in_day 1730161926 [07:43:52]quantity*price = 20003 [07:43:52]sum+1 = 20004 [07:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 12 28.10.2024 07:43 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156796 ФПД: 168266147432542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074354&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156796&fm=168266147432542&tin=02508201610067®Number=0000000000091693&sum=20000 [07:43:53]StoreToDocumentArchive [07:43:53]shift 538 fd 156796 [07:43:53]save to /storage/0538/doc_00156796 [07:43:53]save last doc name /storage/0538/doc_00156796 to /storage/kkm_last_doc_name [07:43:53]save OK [07:43:53]Clear old archive folders... [07:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:53]tlvbuf is 01A70F80 [07:43:53]SAM_PROTO_ClearQueue [07:43:53]wFMCommunicate request_size=4 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 09 00 00 [07:43:53]Write to MH i2c: E2 08 00 CB 04 80 09 00 00 00 00 00 00 41 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:53]Read from MH i2c: E2 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [07:43:53]RAPDU: 90 00 [07:43:53]wFMCommunicate OK [07:43:53]SAM_PROTO_ClearQueue done [07:43:53]KKMCreateOFDPacket [07:43:53]OFDProtocolAddRootSTLVToBuf [07:43:53]FM_MakeSignedData [07:43:53]FM_MakeSignedData [07:43:53]SAM_PROTO_SignData [07:43:53]wFMCommunicate request_size=4 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 0D 01 02 [07:43:53]Write to MH i2c: E2 08 00 CC 04 80 0D 01 02 00 00 00 00 49 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:53]Read from MH i2c: E2 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [07:43:53]RAPDU: 90 00 [07:43:53]wFMCommunicate OK [07:43:53]wFMCommunicate request_size=255 [07:43:53]MH_SAM_APDU [07:43: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0C 00 00 00 F4 03 04 00 BA 40 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 64 02 00 35 04 06 00 99 [07:43:53]Write to MH i2c: E2 02 01 CD 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0C 00 00 00 F4 03 04 00 BA 40 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 64 02 00 35 04 06 00 99 00 00 C2 [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:53]Read from MH i2c: E2 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 [07:43:53]MH_I2C_Read... [07:43:53]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [07:43:53]RAPDU: 90 00 [07:43:53]wFMCommunicate OK [07:43:53]wFMCommunicate request_size=10 [07:43:53]MH_SAM_APDU [07:43:53]CAPDU: 80 0D 02 02 05 09 83 F2 08 5E [07:43:53]Write to MH i2c: E2 0D 00 CE 04 80 0D 02 02 05 00 09 83 F2 08 5E 00 00 3A [07:43:53]Write i2c OK [07:43:53]MH_I2C_Read... [07:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [07:43:54]RAPDU: 90 00 [07:43:54]wFMCommunicate OK [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 0D 03 02 [07:43:54]Write to MH i2c: E2 08 00 CF 04 80 0D 03 02 00 00 00 00 4E [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 0B 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 0B 00 CF 04 00 4B BF 6B 2E 0C 1A 32 4F 90 00 99 [07:43:54]RAPDU: 4B BF 6B 2E 0C 1A 32 4F 90 00 [07:43:54]wFMCommunicate OK [07:43:54]SAM_PROTO_SignData done [07:43:54]FM_MakeSignedData done [07:43:54]CreateOFDProtocolMessage [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 11 00 00 [07:43:54]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 17 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [07:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:43:54]wFMCommunicate OK [07:43:54]CreateOFDProtocolMessage done [07:43:54]OFDSenderStorePacket 156796 [07:43:54]StoreOFDPacket docnum=156796 [07:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C1 0F 07 01 77 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0C 00 00 00 F4 03 04 00 BA 40 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 64 02 00 35 04 06 00 99 09 83 F2 08 5E 4B BF 6B 2E 0C 1A 32 4F [07:43:54]CheckFolder [07:43:54]dirname=/storage/ofd_packets [07:43:54]CheckFolder done [07:43:54]ProducePacketName [07:43:54]name=ofd_packets/00156796 [07:43:54]NVStorageSaveData ofd_packets/00156796 [07:43:54]File name is /storage/ofd_packets/00156796 [07:43:54]Write 301 bytes [07:43:54]NVStorageSaveData done [07:43:54]OFDSenderStorePacket done [07:43:54]KKMCreateOFDPacket done [07:43:54]NVStorageSaveData kkm_last_timestamp [07:43:54]File name is /storage/kkm_last_timestamp [07:43:54]Write 4 bytes [07:43:54]NVStorageSaveData done [07:43:54]ExternCall_PrintAddStr [07:43:54]wPrintStart [07:43:54]Write to MH i2c: 01 00 00 D1 04 D5 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [07:43:54]RasterBufferAndPrint [07:43:54]line Счет N : (1)99608 [07:43:54]line ИНН: 02508201610067 [07:43:54]line Контрольно-Кассовый Чек [07:43:54]line ПРОДАЖА [07:43:54]line ТРК (МРК, ГНК) : 31 [07:43:54]line Товар: 2710124130 [07:43:54]line Аи-92-К-5 [07:43:54]line 2.990 * 66.90 [07:43:54]line = 200.03 [07:43:54]line НДС 12% НСП 1% [07:43:54]line > о реализуемом товаре [07:43:54]line ОКРУГЛЕНИЕ: -0.03 [07:43:54]line ИТОГО: 200.00 [07:43:54]line Внесено: 200.00 [07:43:54]line СДАЧА: 0.00 [07:43:54]line НСП 1% : 1.77 [07:43:54]line НДС 12% : 21.24 [07:43:54]line Наличными: 200.00 [07:43:54]line Безнал.: 0.00 [07:43:54]line Место: АЗС № 143 "Партнер Нефть" [07:43:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:43:54]line СНО: Общий режим [07:43:54]line Чек 12 28.10.2024 07:43 [07:43:54]line Смена: 538 ФФД: 1.0 [07:43:54]line ЗНМ: 0300000096 [07:43:54]line РНМ: 0000000000091693 [07:43:54]line Версия ККМ: 001 [07:43:54]line ФМ: 0000000000871792 [07:43:54]line ФД: 156796 [07:43:54]line ФПД: 168266147432542 [07:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074354&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156796&fm=168266147432542&tin=02508201610067®Number=0000000000091693&sum=20000 [07:43:54]OFD Sender: Processing packet 156796 [packets to send 31, broken 30] [07:43:54]ProducePacketName [07:43:54]name=ofd_packets/00156796 [07:43:54]OFD Sender: To server: pG, [07:43:54]CommunicateWithHost lk.salyk.kg:30040 [07:43:54]ConnectInit lk.salyk.kg [07:43:54]written 0, free lines is 4095 [07:43:54]Connected sock=10 [07:43: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 37 39 32 0F 01 00 00 C1 0F 07 01 77 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0C 00 00 00 F4 03 04 00 BA 40 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 64 02 00 35 04 06 00 99 09 83 F2 08 5E 4B BF 6B 2E 0C 1A 32 4F [07:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 61 99 47 00 FC 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 64 02 00 F4 03 04 00 27 E6 1E 67 B6 04 01 00 00 BD AE B3 AD 69 A6 4A 85 [07:43:54]CommunicateWithHost err = 0 [07:43:54]CheckOFDResponse [07:43:54]1017 (14) - 77093643461234 [07:43:54]1041 (16) - 0000000000871792 [07:43:54]1040 (4) - 156796 [07:43:54]1012 (4) - 28.10.2024 01:17 [07:43:54]1206 (1) - 0 [07:43:54]OFD Sender: Remove packet 156796 [07:43:54]ProducePacketName [07:43:54]name=ofd_packets/00156796 [07:43:54]NVStorageDeleteData [07:43:54]Write to MH i2c: 01 00 00 FC 04 00 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: 01 07 00 FC 04 00 00 00 00 00 D6 0C E9 [07:43:54]RasterBufferAndPrint [07:43:54]line [07:43:54]line [07:43:54]line [07:43:54]line [07:43:54]line [07:43:54]written 0, free lines is 3293 [07:43:54]process_action close_receipt done [07:43:54]requested_data is exist [07:43:54]produce_requested_data [07:43:54]requested_item fm.sn is exist - process it [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 11 00 00 [07:43:54]Write to MH i2c: E2 08 00 03 05 80 11 00 00 00 00 00 00 82 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:54]Read from MH i2c: E2 [07:43:54]MH_I2C_Read... [07:43:54]Read from MH i2c: E2 17 00 [07:43:54]MH_I2C_Read... [07:43:54]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 37 39 32 90 00 D7 [07:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:43:54]wFMCommunicate OK [07:43:54]requested_item fd.num is exist - process it [07:43:54]SAM_PROTO_GetFieldsCounters [07:43:54]wFMCommunicate request_size=4 [07:43:54]MH_SAM_APDU [07:43:54]CAPDU: 80 13 00 00 [07:43:54]Write to MH i2c: E2 08 00 04 05 80 13 00 00 00 00 00 00 85 [07:43:54]Write i2c OK [07:43:54]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 62 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 62 00 04 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 64 02 00 0E 04 04 00 1A 02 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 CD [07:43: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 64 02 00 0E 04 04 00 1A 02 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:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_GetFieldsCounters done [07:43:55]requested_item shift.num is exist - process it [07:43:55]requested_item shift.opened is exist - process it [07:43:55]req_shift_opened [07:43:55]FM_GetShiftState [07:43:55]SAM_PROTO_GetShiftState [07:43:55]wFMCommunicate request_size=4 [07:43:55]MH_SAM_APDU [07:43:55]CAPDU: 80 13 01 00 [07:43:55]Write to MH i2c: E2 08 00 05 05 80 13 01 00 00 00 00 00 87 [07:43:55]Write i2c OK [07:43:55]MH_I2C_Read... [07:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:55]Read from MH i2c: E2 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0E 00 [07:43:55]MH_I2C_Read... [07:43:55]Read from MH i2c: E2 0E 00 05 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 79 [07:43:55]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:43:55]wFMCommunicate OK [07:43:55]SAM_PROTO_GetShiftState done [07:43:55]FM_GetShiftState done [07:43:55]req_shift_opened done [07:43:55]requested_item shift.open_date is exist - process it [07:43:55]req_shift_open_date [07:43:55]req_shift_open_date done [07:43:55]produce_requested_data done [07:43:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156796,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:43:55]process_action_free close_receipt [07:43:55]json_value_free [07:43:55]json_value_free done [07:43:55]process_json_proto returns [07:43:55]Send response to host [07:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156796,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:43:55]free response buf [07:43:55]execute_script done [07:43:55]execute_script returns [07:43:55]free content buf [07:43:55]Sock 9.Close socket [07:43:55]Sock 9.Thread stoped [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:45:56]accept exits with 7 [07:45:56]New connection [07:45:56]New thread 3066748260 created [07:45:56]Thread 3066604900 joined [07:45:56]Waiting for new connection... [07:45:56] Sock 7.Parse request [07:45:56]Sock 7.Check first char [07:45:56]Sock 7.First char is OK [07:45:56]request: POST /json_proto HTTP/1.0 [07:45:56]Method: POST [07:45:56]URL: /json_proto [07:45:56]Method is POST - this is cgi request [07:45:56]url: /json_proto [07:45:56]query_string will be loaded in cgi processing [07:45:56]execute_cgi json_proto POST (null) [07:45:56]execute_cgi path=json_proto method=POST [07:45:56]POST find Content-Length [07:45:56]Host: 172.17.63.3:8080 [07:45:56]Content-Length: 676 [07:45:56]Content-Type: application/json [07:45:56] [07:45:56]POST finish read [07:45:56]Found Content-Length = 676 [07:45:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:56]execute_script... [07:45: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)99609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:56]POST & json_proto [07:45:56]process_json_proto [07:45:56]json parsed OK: [07:45:56]protocol is kg_v1.0 [07:45:56]action value=close_receipt [07:45:56]process_action close_receipt [07:45:56]cmd_close_receipt [07:45:56]MH_GetDate [07:45:56]Write to MH i2c: F0 00 00 06 05 FA [07:45:56]Write i2c OK [07:45:56]MH_I2C_Read... [07:45:56]Read from MH i2c: F0 [07:45:56]MH_I2C_Read... [07:45:56]Read from MH i2c: F0 09 00 [07:45:56]MH_I2C_Read... [07:45:56]Read from MH i2c: F0 09 00 06 05 00 36 41 1F 67 50 D1 6C 64 F1 [07:45:56]GetLastDocTimeStamp 1730101434 [07:45:56]current date 1730101558 [07:45:56]FM_GetShiftState [07:45:56]SAM_PROTO_GetShiftState [07:45:56]wFMCommunicate request_size=4 [07:45:56]MH_SAM_APDU [07:45:56]CAPDU: 80 13 01 00 [07:45:56]Write to MH i2c: E2 08 00 07 05 80 13 01 00 00 00 00 00 89 [07:45:56]Write i2c OK [07:45:56]MH_I2C_Read... [07:45:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:56]Read from MH i2c: E2 [07:45:56]MH_I2C_Read... [07:45:56]Read from MH i2c: E2 0E 00 [07:45:56]MH_I2C_Read... [07:45:56]Read from MH i2c: E2 0E 00 07 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 7B [07:45:56]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:45:56]wFMCommunicate OK [07:45:56]SAM_PROTO_GetShiftState done [07:45:56]FM_GetShiftState done [07:45:56]opened in 1730075526 [07:45:56]opened+sec_in_day 1730161926 [07:45:56]quantity*price = 50041 [07:45:56]sum+1 = 50042 [07:45:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 13 28.10.2024 07:45 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156797 ФПД: 183623173910130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074558&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156797&fm=183623173910130&tin=02508201610067®Number=0000000000091693&sum=50000 [07:45:58]StoreToDocumentArchive [07:45:58]shift 538 fd 156797 [07:45:58]save to /storage/0538/doc_00156797 [07:45:58]save last doc name /storage/0538/doc_00156797 to /storage/kkm_last_doc_name [07:45:58]save OK [07:45:58]Clear old archive folders... [07:45:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:58]tlvbuf is 01A3A4A0 [07:45:58]SAM_PROTO_ClearQueue [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 09 00 00 [07:45:58]Write to MH i2c: E2 08 00 14 05 80 09 00 00 00 00 00 00 8B [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]SAM_PROTO_ClearQueue done [07:45:58]KKMCreateOFDPacket [07:45:58]OFDProtocolAddRootSTLVToBuf [07:45:58]FM_MakeSignedData [07:45:58]FM_MakeSignedData [07:45:58]SAM_PROTO_SignData [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 01 02 [07:45:58]Write to MH i2c: E2 08 00 15 05 80 0D 01 02 00 00 00 00 93 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=255 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 64 02 00 35 04 06 00 A7 [07:45:58]Write to MH i2c: E2 02 01 16 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 64 02 00 35 04 06 00 A7 00 00 D7 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=10 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 02 02 05 01 1A 0D AE 72 [07:45:58]Write to MH i2c: E2 0D 00 17 05 80 0D 02 02 05 00 01 1A 0D AE 72 00 00 E8 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 03 00 17 05 00 90 00 90 [07:45:58]RAPDU: 90 00 [07:45:58]wFMCommunicate OK [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 0D 03 02 [07:45:58]Write to MH i2c: E2 08 00 18 05 80 0D 03 02 00 00 00 00 98 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 0B 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 0B 00 18 05 00 83 3A C3 11 0C CC B5 5D 90 00 14 [07:45:58]RAPDU: 83 3A C3 11 0C CC B5 5D 90 00 [07:45:58]wFMCommunicate OK [07:45:58]SAM_PROTO_SignData done [07:45:58]FM_MakeSignedData done [07:45:58]CreateOFDProtocolMessage [07:45:58]wFMCommunicate request_size=4 [07:45:58]MH_SAM_APDU [07:45:58]CAPDU: 80 11 00 00 [07:45:58]Write to MH i2c: E2 08 00 19 05 80 11 00 00 00 00 00 00 98 [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:58]Read from MH i2c: E2 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 17 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: E2 17 00 19 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [07:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:45:58]wFMCommunicate OK [07:45:58]CreateOFDProtocolMessage done [07:45:58]OFDSenderStorePacket 156797 [07:45:58]StoreOFDPacket docnum=156797 [07:45:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 89 E7 07 01 85 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 64 02 00 35 04 06 00 A7 01 1A 0D AE 72 83 3A C3 11 0C CC B5 5D [07:45:58]CheckFolder [07:45:58]dirname=/storage/ofd_packets [07:45:58]CheckFolder done [07:45:58]ProducePacketName [07:45:58]name=ofd_packets/00156797 [07:45:58]NVStorageSaveData ofd_packets/00156797 [07:45:58]File name is /storage/ofd_packets/00156797 [07:45:58]Write 301 bytes [07:45:58]NVStorageSaveData done [07:45:58]OFDSenderStorePacket done [07:45:58]KKMCreateOFDPacket done [07:45:58]NVStorageSaveData kkm_last_timestamp [07:45:58]File name is /storage/kkm_last_timestamp [07:45:58]Write 4 bytes [07:45:58]NVStorageSaveData done [07:45:58]ExternCall_PrintAddStr [07:45:58]wPrintStart [07:45:58]Write to MH i2c: 01 00 00 1A 05 1F [07:45:58]Write i2c OK [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 07 00 [07:45:58]MH_I2C_Read... [07:45:58]Read from MH i2c: 01 07 00 1A 05 00 00 00 00 00 FF 0F 34 [07:45:58]RasterBufferAndPrint [07:45:58]line Счет N : (1)99609 [07:45:58]line ИНН: 02508201610067 [07:45:58]line Контрольно-Кассовый Чек [07:45:58]line ПРОДАЖА [07:45:58]line ТРК (МРК, ГНК) : 31 [07:45:58]line Товар: 2710124130 [07:45:58]line Аи-92-К-5 [07:45:58]line 7.480 * 66.90 [07:45:58]line = 500.41 [07:45:58]line НДС 12% НСП 1% [07:45:58]line > о реализуемом товаре [07:45:58]line ОКРУГЛЕНИЕ: -0.41 [07:45:58]line ИТОГО: 500.00 [07:45:58]line Внесено: 500.00 [07:45:58]line СДАЧА: 0.00 [07:45:58]line НСП 1% : 4.43 [07:45:58]line НДС 12% : 53.14 [07:45:58]line Наличными: 500.00 [07:45:58]line Безнал.: 0.00 [07:45:58]line Место: АЗС № 143 "Партнер Нефть" [07:45:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:45:58]line СНО: Общий режим [07:45:58]line Чек 13 28.10.2024 07:45 [07:45:58]line Смена: 538 ФФД: 1.0 [07:45:58]line ЗНМ: 0300000096 [07:45:58]line РНМ: 0000000000091693 [07:45:58]line Версия ККМ: 001 [07:45:58]line ФМ: 0000000000871792 [07:45:58]line ФД: 156797 [07:45:58]line ФПД: 183623173910130 [07:45:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074558&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156797&fm=183623173910130&tin=02508201610067®Number=0000000000091693&sum=50000 [07:45:58]OFD Sender: Processing packet 156797 [packets to send 31, broken 30] [07:45:58]ProducePacketName [07:45:58]name=ofd_packets/00156797 [07:45:58]OFD Sender: To server: pG, [07:45:58]CommunicateWithHost lk.salyk.kg:30040 [07:45:58]ConnectInit lk.salyk.kg [07:45:58]written 0, free lines is 4095 [07:45:59]Connected sock=10 [07:45:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 89 E7 07 01 85 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 36 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 64 02 00 35 04 06 00 A7 01 1A 0D AE 72 83 3A C3 11 0C CC B5 5D [07:45:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7B 98 47 00 81 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 64 02 00 F4 03 04 00 A3 E6 1E 67 B6 04 01 00 00 43 E4 04 A2 0D E1 72 E2 [07:45:59]CommunicateWithHost err = 0 [07:45:59]CheckOFDResponse [07:45:59]1017 (14) - 77093643461234 [07:45:59]1041 (16) - 0000000000871792 [07:45:59]1040 (4) - 156797 [07:45:59]1012 (4) - 28.10.2024 01:19 [07:45:59]1206 (1) - 0 [07:45:59]OFD Sender: Remove packet 156797 [07:45:59]ProducePacketName [07:45:59]name=ofd_packets/00156797 [07:45:59]NVStorageDeleteData [07:45:59]Write to MH i2c: 01 00 00 45 05 4A [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 07 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 D7 0C 34 [07:45:59]RasterBufferAndPrint [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]line [07:45:59]written 0, free lines is 3290 [07:45:59]process_action close_receipt done [07:45:59]requested_data is exist [07:45:59]produce_requested_data [07:45:59]requested_item fm.sn is exist - process it [07:45:59]wFMCommunicate request_size=4 [07:45:59]MH_SAM_APDU [07:45:59]CAPDU: 80 11 00 00 [07:45:59]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:59]Read from MH i2c: E2 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 17 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 20 [07:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:45:59]wFMCommunicate OK [07:45:59]requested_item fd.num is exist - process it [07:45:59]SAM_PROTO_GetFieldsCounters [07:45:59]wFMCommunicate request_size=4 [07:45:59]MH_SAM_APDU [07:45:59]CAPDU: 80 13 00 00 [07:45:59]Write to MH i2c: E2 08 00 4D 05 80 13 00 00 00 00 00 00 CE [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:59]Read from MH i2c: E2 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 62 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 62 00 4D 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 64 02 00 0E 04 04 00 1A 02 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 1A [07:45: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 64 02 00 0E 04 04 00 1A 02 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:45:59]wFMCommunicate OK [07:45:59]SAM_PROTO_GetFieldsCounters done [07:45:59]requested_item shift.num is exist - process it [07:45:59]requested_item shift.opened is exist - process it [07:45:59]req_shift_opened [07:45:59]FM_GetShiftState [07:45:59]SAM_PROTO_GetShiftState [07:45:59]wFMCommunicate request_size=4 [07:45:59]MH_SAM_APDU [07:45:59]CAPDU: 80 13 01 00 [07:45:59]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [07:45:59]Write i2c OK [07:45:59]MH_I2C_Read... [07:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:59]Read from MH i2c: E2 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 0E 00 [07:45:59]MH_I2C_Read... [07:45:59]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C2 [07:45:59]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:45:59]wFMCommunicate OK [07:45:59]SAM_PROTO_GetShiftState done [07:45:59]FM_GetShiftState done [07:45:59]req_shift_opened done [07:45:59]requested_item shift.open_date is exist - process it [07:45:59]req_shift_open_date [07:45:59]req_shift_open_date done [07:45:59]produce_requested_data done [07:45:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156797,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:45:59]process_action_free close_receipt [07:45:59]json_value_free [07:45:59]json_value_free done [07:45:59]process_json_proto returns [07:45:59]Send response to host [07:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156797,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:45:59]free response buf [07:45:59]execute_script done [07:45:59]execute_script returns [07:45:59]free content buf [07:45:59]Sock 7.Close socket [07:45:59]Sock 7.Thread stoped [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:31]accept exits with 9 [07:47:31]New connection [07:47:31]New thread 3066604900 created [07:47:31]Thread 3066748260 joined [07:47:31]Waiting for new connection... [07:47:31] Sock 9.Parse request [07:47:31]Sock 9.Check first char [07:47:31]Sock 9.First char is OK [07:47:31]request: POST /json_proto HTTP/1.0 [07:47:31]Method: POST [07:47:31]URL: /json_proto [07:47:31]Method is POST - this is cgi request [07:47:31]url: /json_proto [07:47:31]query_string will be loaded in cgi processing [07:47:31]execute_cgi json_proto POST (null) [07:47:31]execute_cgi path=json_proto method=POST [07:47:31]POST find Content-Length [07:47:31]Host: 172.17.63.3:8080 [07:47:31]Content-Length: 676 [07:47:31]Content-Type: application/json [07:47:31] [07:47:31]POST finish read [07:47:31]Found Content-Length = 676 [07:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:47:31]execute_script... [07:47: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)99610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:47:31]POST & json_proto [07:47:31]process_json_proto [07:47:31]json parsed OK: [07:47:31]protocol is kg_v1.0 [07:47:31]action value=close_receipt [07:47:31]process_action close_receipt [07:47:31]cmd_close_receipt [07:47:31]MH_GetDate [07:47:31]Write to MH i2c: F0 00 00 4F 05 43 [07:47:31]Write i2c OK [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 09 00 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: F0 09 00 4F 05 00 95 41 1F 67 50 D1 6C 64 99 [07:47:31]GetLastDocTimeStamp 1730101558 [07:47:31]current date 1730101653 [07:47:31]FM_GetShiftState [07:47:31]SAM_PROTO_GetShiftState [07:47:31]wFMCommunicate request_size=4 [07:47:31]MH_SAM_APDU [07:47:31]CAPDU: 80 13 01 00 [07:47:31]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [07:47:31]Write i2c OK [07:47:31]MH_I2C_Read... [07:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:31]Read from MH i2c: E2 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: E2 0E 00 [07:47:31]MH_I2C_Read... [07:47:31]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C4 [07:47:31]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:47:31]wFMCommunicate OK [07:47:31]SAM_PROTO_GetShiftState done [07:47:31]FM_GetShiftState done [07:47:31]opened in 1730075526 [07:47:31]opened+sec_in_day 1730161926 [07:47:31]quantity*price = 60009 [07:47:31]sum+1 = 60010 [07:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 14 28.10.2024 07:47 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156798 ФПД: 42770036193557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156798&fm=42770036193557&tin=02508201610067®Number=0000000000091693&sum=60000 [07:47:32]StoreToDocumentArchive [07:47:32]shift 538 fd 156798 [07:47:32]save to /storage/0538/doc_00156798 [07:47:32]save last doc name /storage/0538/doc_00156798 to /storage/kkm_last_doc_name [07:47:32]save OK [07:47:32]Clear old archive folders... [07:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:47:32]tlvbuf is 01A71F90 [07:47:32]SAM_PROTO_ClearQueue [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 09 00 00 [07:47:32]Write to MH i2c: E2 08 00 5D 05 80 09 00 00 00 00 00 00 D4 [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]SAM_PROTO_ClearQueue done [07:47:32]KKMCreateOFDPacket [07:47:32]OFDProtocolAddRootSTLVToBuf [07:47:32]FM_MakeSignedData [07:47:32]FM_MakeSignedData [07:47:32]SAM_PROTO_SignData [07:47:32]wFMCommunicate request_size=4 [07:47:32]MH_SAM_APDU [07:47:32]CAPDU: 80 0D 01 02 [07:47:32]Write to MH i2c: E2 08 00 5E 05 80 0D 01 02 00 00 00 00 DC [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:32]Read from MH i2c: E2 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 [07:47:32]MH_I2C_Read... [07:47:32]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [07:47:32]RAPDU: 90 00 [07:47:32]wFMCommunicate OK [07:47:32]wFMCommunicate request_size=255 [07:47:32]MH_SAM_APDU [07:47: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 64 02 00 35 04 06 00 26 [07:47:32]Write to MH i2c: E2 02 01 5F 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 64 02 00 35 04 06 00 26 00 00 DD [07:47:32]Write i2c OK [07:47:32]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 03 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [07:47:33]RAPDU: 90 00 [07:47:33]wFMCommunicate OK [07:47:33]wFMCommunicate request_size=10 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 0D 02 02 05 E6 2C D0 79 15 [07:47:33]Write to MH i2c: E2 0D 00 60 05 80 0D 02 02 05 00 E6 2C D0 79 15 00 00 59 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 03 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [07:47:33]RAPDU: 90 00 [07:47:33]wFMCommunicate OK [07:47:33]wFMCommunicate request_size=4 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 0D 03 02 [07:47:33]Write to MH i2c: E2 08 00 61 05 80 0D 03 02 00 00 00 00 E1 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 0B 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 0B 00 61 05 00 8D A3 03 9A 70 61 65 85 90 00 6A [07:47:33]RAPDU: 8D A3 03 9A 70 61 65 85 90 00 [07:47:33]wFMCommunicate OK [07:47:33]SAM_PROTO_SignData done [07:47:33]FM_MakeSignedData done [07:47:33]CreateOFDProtocolMessage [07:47:33]wFMCommunicate request_size=4 [07:47:33]MH_SAM_APDU [07:47:33]CAPDU: 80 11 00 00 [07:47:33]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:33]Read from MH i2c: E2 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 17 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [07:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:47:33]wFMCommunicate OK [07:47:33]CreateOFDProtocolMessage done [07:47:33]OFDSenderStorePacket 156798 [07:47:33]StoreOFDPacket docnum=156798 [07:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1A 5F 07 01 11 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 64 02 00 35 04 06 00 26 E6 2C D0 79 15 8D A3 03 9A 70 61 65 85 [07:47:33]CheckFolder [07:47:33]dirname=/storage/ofd_packets [07:47:33]CheckFolder done [07:47:33]ProducePacketName [07:47:33]name=ofd_packets/00156798 [07:47:33]NVStorageSaveData ofd_packets/00156798 [07:47:33]File name is /storage/ofd_packets/00156798 [07:47:33]Write 301 bytes [07:47:33]NVStorageSaveData done [07:47:33]OFDSenderStorePacket done [07:47:33]KKMCreateOFDPacket done [07:47:33]NVStorageSaveData kkm_last_timestamp [07:47:33]File name is /storage/kkm_last_timestamp [07:47:33]Write 4 bytes [07:47:33]NVStorageSaveData done [07:47:33]ExternCall_PrintAddStr [07:47:33]wPrintStart [07:47:33]Write to MH i2c: 01 00 00 63 05 68 [07:47:33]Write i2c OK [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 07 00 [07:47:33]MH_I2C_Read... [07:47:33]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [07:47:33]RasterBufferAndPrint [07:47:33]line Счет N : (1)99610 [07:47:33]line ИНН: 02508201610067 [07:47:33]line Контрольно-Кассовый Чек [07:47:33]line ПРОДАЖА [07:47:33]line ТРК (МРК, ГНК) : 31 [07:47:33]line Товар: 2710124130 [07:47:33]line Аи-92-К-5 [07:47:33]line 8.970 * 66.90 [07:47:33]line = 600.09 [07:47:33]line НДС 12% НСП 1% [07:47:33]line > о реализуемом товаре [07:47:33]line ОКРУГЛЕНИЕ: -0.09 [07:47:33]line ИТОГО: 600.00 [07:47:33]line Внесено: 600.00 [07:47:33]line СДАЧА: 0.00 [07:47:33]line НСП 1% : 5.31 [07:47:33]line НДС 12% : 63.73 [07:47:33]line Наличными: 600.00 [07:47:33]line Безнал.: 0.00 [07:47:33]line Место: АЗС № 143 "Партнер Нефть" [07:47:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:47:33]line СНО: Общий режим [07:47:33]line Чек 14 28.10.2024 07:47 [07:47:33]line Смена: 538 ФФД: 1.0 [07:47:33]line ЗНМ: 0300000096 [07:47:33]line РНМ: 0000000000091693 [07:47:33]line Версия ККМ: 001 [07:47:33]line ФМ: 0000000000871792 [07:47:33]line ФД: 156798 [07:47:33]line ФПД: 42770036193557 [07:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156798&fm=42770036193557&tin=02508201610067®Number=0000000000091693&sum=60000 [07:47:33]OFD Sender: Processing packet 156798 [packets to send 31, broken 30] [07:47:33]ProducePacketName [07:47:33]name=ofd_packets/00156798 [07:47:33]OFD Sender: To server: pG, [07:47:33]CommunicateWithHost lk.salyk.kg:30040 [07:47:33]ConnectInit lk.salyk.kg [07:47:33]written 0, free lines is 4095 [07:47:33]Connected sock=10 [07:47: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 37 39 32 0F 01 00 00 1A 5F 07 01 11 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 95 41 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 64 02 00 35 04 06 00 26 E6 2C D0 79 15 8D A3 03 9A 70 61 65 85 [07:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1B 04 47 00 00 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 37 39 32 10 04 04 00 7E 64 02 00 F4 03 04 00 02 E7 1E 67 B6 04 01 00 00 B9 21 84 60 CB 9C A1 14 [07:47:33]CommunicateWithHost err = 0 [07:47:33]CheckOFDResponse [07:47:33]1017 (14) - 77093643461234 [07:47:33]1041 (16) - 0000000000871792 [07:47:33]1040 (4) - 156798 [07:47:33]1012 (4) - 28.10.2024 01:21 [07:47:33]1206 (1) - 0 [07:47:33]OFD Sender: Remove packet 156798 [07:47:33]ProducePacketName [07:47:33]name=ofd_packets/00156798 [07:47:33]NVStorageDeleteData [07:47:34]Write to MH i2c: 01 00 00 8E 05 93 [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: 01 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: 01 07 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: 01 07 00 8E 05 00 00 00 00 00 DC 0C 82 [07:47:34]RasterBufferAndPrint [07:47:34]line [07:47:34]line [07:47:34]line [07:47:34]line [07:47:34]line [07:47:34]written 0, free lines is 3299 [07:47:34]process_action close_receipt done [07:47:34]requested_data is exist [07:47:34]produce_requested_data [07:47:34]requested_item fm.sn is exist - process it [07:47:34]wFMCommunicate request_size=4 [07:47:34]MH_SAM_APDU [07:47:34]CAPDU: 80 11 00 00 [07:47:34]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:34]Read from MH i2c: E2 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 17 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [07:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:47:34]wFMCommunicate OK [07:47:34]requested_item fd.num is exist - process it [07:47:34]SAM_PROTO_GetFieldsCounters [07:47:34]wFMCommunicate request_size=4 [07:47:34]MH_SAM_APDU [07:47:34]CAPDU: 80 13 00 00 [07:47:34]Write to MH i2c: E2 08 00 96 05 80 13 00 00 00 00 00 00 17 [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:34]Read from MH i2c: E2 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 62 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 62 00 96 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 64 02 00 0E 04 04 00 1A 02 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 67 [07:47: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:47:34]wFMCommunicate OK [07:47:34]SAM_PROTO_GetFieldsCounters done [07:47:34]requested_item shift.num is exist - process it [07:47:34]requested_item shift.opened is exist - process it [07:47:34]req_shift_opened [07:47:34]FM_GetShiftState [07:47:34]SAM_PROTO_GetShiftState [07:47:34]wFMCommunicate request_size=4 [07:47:34]MH_SAM_APDU [07:47:34]CAPDU: 80 13 01 00 [07:47:34]Write to MH i2c: E2 08 00 97 05 80 13 01 00 00 00 00 00 19 [07:47:34]Write i2c OK [07:47:34]MH_I2C_Read... [07:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:34]Read from MH i2c: E2 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 0E 00 [07:47:34]MH_I2C_Read... [07:47:34]Read from MH i2c: E2 0E 00 97 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0B [07:47:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:47:34]wFMCommunicate OK [07:47:34]SAM_PROTO_GetShiftState done [07:47:34]FM_GetShiftState done [07:47:34]req_shift_opened done [07:47:34]requested_item shift.open_date is exist - process it [07:47:34]req_shift_open_date [07:47:34]req_shift_open_date done [07:47:34]produce_requested_data done [07:47:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156798,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:47:34]process_action_free close_receipt [07:47:34]json_value_free [07:47:34]json_value_free done [07:47:34]process_json_proto returns [07:47:34]Send response to host [07:47:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156798,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:47:34]free response buf [07:47:34]execute_script done [07:47:34]execute_script returns [07:47:34]free content buf [07:47:34]Sock 9.Close socket [07:47:34]Sock 9.Thread stoped [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:31]accept exits with 7 [07:57:31]New connection [07:57:31]New thread 3066748260 created [07:57:31]Thread 3066604900 joined [07:57:31]Waiting for new connection... [07:57:31] Sock 7.Parse request [07:57:31]Sock 7.Check first char [07:57:31]Sock 7.First char is OK [07:57:31]request: POST /json_proto HTTP/1.0 [07:57:31]Method: POST [07:57:31]URL: /json_proto [07:57:31]Method is POST - this is cgi request [07:57:31]url: /json_proto [07:57:31]query_string will be loaded in cgi processing [07:57:31]execute_cgi json_proto POST (null) [07:57:31]execute_cgi path=json_proto method=POST [07:57:31]POST find Content-Length [07:57:31]Host: 172.17.63.3:8080 [07:57:31]Content-Length: 768 [07:57:31]Content-Type: application/json [07:57:31] [07:57:31]POST finish read [07:57:31]Found Content-Length = 768 [07:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:31]execute_script... [07:57: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)99611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:57:31]POST & json_proto [07:57:31]process_json_proto [07:57:31]json parsed OK: [07:57:31]protocol is kg_v1.0 [07:57:31]action value=close_receipt [07:57:31]process_action close_receipt [07:57:31]cmd_close_receipt [07:57:31]MH_GetDate [07:57:31]Write to MH i2c: F0 00 00 98 05 8C [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 09 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: F0 09 00 98 05 00 ED 43 1F 67 50 D1 6C 64 3C [07:57:31]GetLastDocTimeStamp 1730101653 [07:57:31]current date 1730102253 [07:57:31]FM_GetShiftState [07:57:31]SAM_PROTO_GetShiftState [07:57:31]wFMCommunicate request_size=4 [07:57:31]MH_SAM_APDU [07:57:31]CAPDU: 80 13 01 00 [07:57:31]Write to MH i2c: E2 08 00 99 05 80 13 01 00 00 00 00 00 1B [07:57:31]Write i2c OK [07:57:31]MH_I2C_Read... [07:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:31]Read from MH i2c: E2 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 [07:57:31]MH_I2C_Read... [07:57:31]Read from MH i2c: E2 0E 00 99 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0D [07:57:31]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:57:31]wFMCommunicate OK [07:57:31]SAM_PROTO_GetShiftState done [07:57:31]FM_GetShiftState done [07:57:31]opened in 1730075526 [07:57:31]opened+sec_in_day 1730161926 [07:57:31]quantity*price = 150056 [07:57:31]sum+1 = 150058 [07:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 15 28.10.2024 07:57 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156799 ФПД: 196507102839076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156799&fm=196507102839076&tin=02508201610067®Number=0000000000091693&sum=150057 [07:57:32]StoreToDocumentArchive [07:57:32]shift 538 fd 156799 [07:57:32]save to /storage/0538/doc_00156799 [07:57:32]save last doc name /storage/0538/doc_00156799 to /storage/kkm_last_doc_name [07:57:32]save OK [07:57:32]Clear old archive folders... [07:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:32]tlvbuf is B6E8F0E0 [07:57:32]SAM_PROTO_ClearQueue [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 09 00 00 [07:57:32]Write to MH i2c: E2 08 00 A6 05 80 09 00 00 00 00 00 00 1D [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]SAM_PROTO_ClearQueue done [07:57:32]KKMCreateOFDPacket [07:57:32]OFDProtocolAddRootSTLVToBuf [07:57:32]FM_MakeSignedData [07:57:32]FM_MakeSignedData [07:57:32]SAM_PROTO_SignData [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 01 02 [07:57:32]Write to MH i2c: E2 08 00 A7 05 80 0D 01 02 00 00 00 00 25 [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=255 [07:57:32]MH_SAM_APDU [07:57: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 ED 43 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 64 02 00 35 04 06 00 B2 [07:57:32]Write to MH i2c: E2 02 01 A8 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 ED 43 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 64 02 00 35 04 06 00 B2 00 00 EE [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=10 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 02 02 05 B8 E0 0F 81 24 [07:57:32]Write to MH i2c: E2 0D 00 A9 05 80 0D 02 02 05 00 B8 E0 0F 81 24 00 00 7E [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:32]Read from MH i2c: E2 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 [07:57:32]MH_I2C_Read... [07:57:32]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [07:57:32]RAPDU: 90 00 [07:57:32]wFMCommunicate OK [07:57:32]wFMCommunicate request_size=4 [07:57:32]MH_SAM_APDU [07:57:32]CAPDU: 80 0D 03 02 [07:57:32]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [07:57:32]Write i2c OK [07:57:32]MH_I2C_Read... [07:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0B 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 0B 00 AA 05 00 8C F4 15 81 5E BF 7B 6B 90 00 44 [07:57:33]RAPDU: 8C F4 15 81 5E BF 7B 6B 90 00 [07:57:33]wFMCommunicate OK [07:57:33]SAM_PROTO_SignData done [07:57:33]FM_MakeSignedData done [07:57:33]CreateOFDProtocolMessage [07:57:33]wFMCommunicate request_size=4 [07:57:33]MH_SAM_APDU [07:57:33]CAPDU: 80 11 00 00 [07:57:33]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 17 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [07:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:57:33]wFMCommunicate OK [07:57:33]CreateOFDProtocolMessage done [07:57:33]OFDSenderStorePacket 156799 [07:57:33]StoreOFDPacket docnum=156799 [07:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C6 A4 07 01 A7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 ED 43 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 64 02 00 35 04 06 00 B2 B8 E0 0F 81 24 8C F4 15 81 5E BF 7B 6B [07:57:33]CheckFolder [07:57:33]dirname=/storage/ofd_packets [07:57:33]CheckFolder done [07:57:33]ProducePacketName [07:57:33]name=ofd_packets/00156799 [07:57:33]NVStorageSaveData ofd_packets/00156799 [07:57:33]File name is /storage/ofd_packets/00156799 [07:57:33]Write 301 bytes [07:57:33]NVStorageSaveData done [07:57:33]OFDSenderStorePacket done [07:57:33]KKMCreateOFDPacket done [07:57:33]NVStorageSaveData kkm_last_timestamp [07:57:33]File name is /storage/kkm_last_timestamp [07:57:33]Write 4 bytes [07:57:33]NVStorageSaveData done [07:57:33]ExternCall_PrintAddStr [07:57:33]wPrintStart [07:57:33]Write to MH i2c: 01 00 00 AC 05 B1 [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [07:57:33]RasterBufferAndPrint [07:57:33]line Счет N : (1)99611 [07:57:33]line ИНН: 02508201610067 [07:57:33]line Контрольно-Кассовый Чек [07:57:33]line ПРОДАЖА [07:57:33]line ТРК (МРК, ГНК) : 31 [07:57:33]line Товар: 2710124130 [07:57:33]line Аи-92-К-5 [07:57:33]line 22.430 * 66.90 [07:57:33]line = 1500.57 [07:57:33]line НДС 12% НСП 1% [07:57:33]line > о реализуемом товаре [07:57:33]line ИТОГО: 1500.57 [07:57:33]line НСП 1% : 13.28 [07:57:33]line НДС 12% : 159.35 [07:57:33]line Наличными: 0.00 [07:57:33]line Безнал.: 1500.57 [07:57:33]line Место: АЗС № 143 "Партнер Нефть" [07:57:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:57:33]line СНО: Общий режим [07:57:33]line Чек 15 28.10.2024 07:57 [07:57:33]line Смена: 538 ФФД: 1.0 [07:57:33]line ЗНМ: 0300000096 [07:57:33]line РНМ: 0000000000091693 [07:57:33]line Версия ККМ: 001 [07:57:33]line Платежная система: Mbank [07:57:33]line ФМ: 0000000000871792 [07:57:33]line ФД: 156799 [07:57:33]line ФПД: 196507102839076 [07:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156799&fm=196507102839076&tin=02508201610067®Number=0000000000091693&sum=150057 [07:57:33]OFD Sender: Processing packet 156799 [packets to send 31, broken 30] [07:57:33]ProducePacketName [07:57:33]name=ofd_packets/00156799 [07:57:33]OFD Sender: To server: pG, [07:57:33]CommunicateWithHost lk.salyk.kg:30040 [07:57:33]ConnectInit lk.salyk.kg [07:57:33]written 0, free lines is 4095 [07:57:33]Connected sock=10 [07:57: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 37 39 32 0F 01 00 00 C6 A4 07 01 A7 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 ED 43 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 64 02 00 35 04 06 00 B2 B8 E0 0F 81 24 8C F4 15 81 5E BF 7B 6B [07:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 96 47 00 DE 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 64 02 00 F4 03 04 00 5A E9 1E 67 B6 04 01 00 00 17 4D 1C CD D7 BB 19 A8 [07:57:33]CommunicateWithHost err = 0 [07:57:33]CheckOFDResponse [07:57:33]1017 (14) - 77093643461234 [07:57:33]1041 (16) - 0000000000871792 [07:57:33]1040 (4) - 156799 [07:57:33]1012 (4) - 28.10.2024 01:31 [07:57:33]1206 (1) - 0 [07:57:33]OFD Sender: Remove packet 156799 [07:57:33]ProducePacketName [07:57:33]name=ofd_packets/00156799 [07:57:33]NVStorageDeleteData [07:57:33]Write to MH i2c: 01 00 00 D5 05 DA [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: 01 07 00 D5 05 00 00 00 00 00 FC 0C E9 [07:57:33]RasterBufferAndPrint [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]line [07:57:33]written 0, free lines is 3331 [07:57:33]process_action close_receipt done [07:57:33]requested_data is exist [07:57:33]produce_requested_data [07:57:33]requested_item fm.sn is exist - process it [07:57:33]wFMCommunicate request_size=4 [07:57:33]MH_SAM_APDU [07:57:33]CAPDU: 80 11 00 00 [07:57:33]Write to MH i2c: E2 08 00 DC 05 80 11 00 00 00 00 00 00 5B [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:33]Read from MH i2c: E2 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 17 00 [07:57:33]MH_I2C_Read... [07:57:33]Read from MH i2c: E2 17 00 DC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [07:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:57:33]wFMCommunicate OK [07:57:33]requested_item fd.num is exist - process it [07:57:33]SAM_PROTO_GetFieldsCounters [07:57:33]wFMCommunicate request_size=4 [07:57:33]MH_SAM_APDU [07:57:33]CAPDU: 80 13 00 00 [07:57:33]Write to MH i2c: E2 08 00 DD 05 80 13 00 00 00 00 00 00 5E [07:57:33]Write i2c OK [07:57:33]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 62 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 62 00 DD 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 64 02 00 0E 04 04 00 1A 02 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 B2 [07:57: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 64 02 00 0E 04 04 00 1A 02 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:57:34]wFMCommunicate OK [07:57:34]SAM_PROTO_GetFieldsCounters done [07:57:34]requested_item shift.num is exist - process it [07:57:34]requested_item shift.opened is exist - process it [07:57:34]req_shift_opened [07:57:34]FM_GetShiftState [07:57:34]SAM_PROTO_GetShiftState [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 13 01 00 [07:57:34]Write to MH i2c: E2 08 00 DE 05 80 13 01 00 00 00 00 00 60 [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 0E 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 0E 00 DE 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 52 [07:57:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [07:57:34]wFMCommunicate OK [07:57:34]SAM_PROTO_GetShiftState done [07:57:34]FM_GetShiftState done [07:57:34]req_shift_opened done [07:57:34]requested_item shift.open_date is exist - process it [07:57:34]req_shift_open_date [07:57:34]req_shift_open_date done [07:57:34]produce_requested_data done [07:57:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156799,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [07:57:34]process_action_free close_receipt [07:57:34]json_value_free [07:57:34]json_value_free done [07:57:34]process_json_proto returns [07:57:34]Send response to host [07:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156799,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [07:57:34]free response buf [07:57:34]execute_script done [07:57:34]execute_script returns [07:57:34]free content buf [07:57:34]Sock 7.Close socket [07:57:34]Sock 7.Thread stoped [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:30]accept exits with 9 [08:00:30]New connection [08:00:30]New thread 3066604900 created [08:00:30]Thread 3066748260 joined [08:00:30]Waiting for new connection... [08:00:30] Sock 9.Parse request [08:00:30]Sock 9.Check first char [08:00:30]Sock 9.First char is OK [08:00:30]request: POST /json_proto HTTP/1.0 [08:00:30]Method: POST [08:00:30]URL: /json_proto [08:00:30]Method is POST - this is cgi request [08:00:30]url: /json_proto [08:00:30]query_string will be loaded in cgi processing [08:00:30]execute_cgi json_proto POST (null) [08:00:30]execute_cgi path=json_proto method=POST [08:00:30]POST find Content-Length [08:00:30]Host: 172.17.63.3:8080 [08:00:30]Content-Length: 677 [08:00:30]Content-Type: application/json [08:00:30] [08:00:30]POST finish read [08:00:30]Found Content-Length = 677 [08:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [08:00:30]execute_script... [08:00: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)99612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [08:00:30]POST & json_proto [08:00:30]process_json_proto [08:00:30]json parsed OK: [08:00:30]protocol is kg_v1.0 [08:00:30]action value=close_receipt [08:00:30]process_action close_receipt [08:00:30]cmd_close_receipt [08:00:30]MH_GetDate [08:00:30]Write to MH i2c: F0 00 00 DF 05 D3 [08:00:30]Write i2c OK [08:00:30]MH_I2C_Read... [08:00:30]Read from MH i2c: F0 [08:00:30]MH_I2C_Read... [08:00:30]Read from MH i2c: F0 09 00 [08:00:30]MH_I2C_Read... [08:00:30]Read from MH i2c: F0 09 00 DF 05 00 9F 44 1F 67 50 D1 6C 64 36 [08:00:30]GetLastDocTimeStamp 1730102253 [08:00:30]current date 1730102431 [08:00:30]FM_GetShiftState [08:00:30]SAM_PROTO_GetShiftState [08:00:30]wFMCommunicate request_size=4 [08:00:30]MH_SAM_APDU [08:00:30]CAPDU: 80 13 01 00 [08:00:30]Write to MH i2c: E2 08 00 E0 05 80 13 01 00 00 00 00 00 62 [08:00:30]Write i2c OK [08:00:30]MH_I2C_Read... [08:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:30]Read from MH i2c: E2 [08:00:30]MH_I2C_Read... [08:00:30]Read from MH i2c: E2 0E 00 [08:00:30]MH_I2C_Read... [08:00:30]Read from MH i2c: E2 0E 00 E0 05 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 54 [08:00:30]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:00:30]wFMCommunicate OK [08:00:30]SAM_PROTO_GetShiftState done [08:00:30]FM_GetShiftState done [08:00:30]opened in 1730075526 [08:00:30]opened+sec_in_day 1730161926 [08:00:30]quantity*price = 70044 [08:00:30]sum+1 = 70045 [08:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 16 28.10.2024 08:00 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156800 ФПД: 96550808504863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156800&fm=96550808504863&tin=02508201610067®Number=0000000000091693&sum=70000 [08:00:31]StoreToDocumentArchive [08:00:31]shift 538 fd 156800 [08:00:31]save to /storage/0538/doc_00156800 [08:00:31]save last doc name /storage/0538/doc_00156800 to /storage/kkm_last_doc_name [08:00:31]save OK [08:00:31]Clear old archive folders... [08:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:31]tlvbuf is 01A6CDE0 [08:00:31]SAM_PROTO_ClearQueue [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 09 00 00 [08:00:31]Write to MH i2c: E2 08 00 ED 05 80 09 00 00 00 00 00 00 64 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [08:00:31]RAPDU: 90 00 [08:00:31]wFMCommunicate OK [08:00:31]SAM_PROTO_ClearQueue done [08:00:31]KKMCreateOFDPacket [08:00:31]OFDProtocolAddRootSTLVToBuf [08:00:31]FM_MakeSignedData [08:00:31]FM_MakeSignedData [08:00:31]SAM_PROTO_SignData [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 0D 01 02 [08:00:31]Write to MH i2c: E2 08 00 EE 05 80 0D 01 02 00 00 00 00 6C [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [08:00:31]RAPDU: 90 00 [08:00:31]wFMCommunicate OK [08:00:31]wFMCommunicate request_size=255 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 10 00 00 00 F4 03 04 00 9F 44 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 64 02 00 35 04 06 00 57 [08:00:31]Write to MH i2c: E2 02 01 EF 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 10 00 00 00 F4 03 04 00 9F 44 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 64 02 00 35 04 06 00 57 00 00 E2 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [08:00:31]RAPDU: 90 00 [08:00:31]wFMCommunicate OK [08:00:31]wFMCommunicate request_size=10 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 0D 02 02 05 CF FC A4 CA 1F [08:00:31]Write to MH i2c: E2 0D 00 F0 05 80 0D 02 02 05 00 CF FC A4 CA 1F 00 00 D1 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [08:00:31]RAPDU: 90 00 [08:00:31]wFMCommunicate OK [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 0D 03 02 [08:00:31]Write to MH i2c: E2 08 00 F1 05 80 0D 03 02 00 00 00 00 71 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 0B 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 0B 00 F1 05 00 31 91 0C 5F EF 38 08 F4 90 00 C2 [08:00:31]RAPDU: 31 91 0C 5F EF 38 08 F4 90 00 [08:00:31]wFMCommunicate OK [08:00:31]SAM_PROTO_SignData done [08:00:31]FM_MakeSignedData done [08:00:31]CreateOFDProtocolMessage [08:00:31]wFMCommunicate request_size=4 [08:00:31]MH_SAM_APDU [08:00:31]CAPDU: 80 11 00 00 [08:00:31]Write to MH i2c: E2 08 00 F2 05 80 11 00 00 00 00 00 00 71 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:31]Read from MH i2c: E2 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 17 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: E2 17 00 F2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [08:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:00:31]wFMCommunicate OK [08:00:31]CreateOFDProtocolMessage done [08:00:31]OFDSenderStorePacket 156800 [08:00:31]StoreOFDPacket docnum=156800 [08:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C 6A 07 01 17 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 10 00 00 00 F4 03 04 00 9F 44 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 64 02 00 35 04 06 00 57 CF FC A4 CA 1F 31 91 0C 5F EF 38 08 F4 [08:00:31]CheckFolder [08:00:31]dirname=/storage/ofd_packets [08:00:31]CheckFolder done [08:00:31]ProducePacketName [08:00:31]name=ofd_packets/00156800 [08:00:31]NVStorageSaveData ofd_packets/00156800 [08:00:31]File name is /storage/ofd_packets/00156800 [08:00:31]Write 301 bytes [08:00:31]NVStorageSaveData done [08:00:31]OFDSenderStorePacket done [08:00:31]KKMCreateOFDPacket done [08:00:31]NVStorageSaveData kkm_last_timestamp [08:00:31]File name is /storage/kkm_last_timestamp [08:00:31]Write 4 bytes [08:00:31]NVStorageSaveData done [08:00:31]ExternCall_PrintAddStr [08:00:31]wPrintStart [08:00:31]Write to MH i2c: 01 00 00 F3 05 F8 [08:00:31]Write i2c OK [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: 01 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: 01 07 00 [08:00:31]MH_I2C_Read... [08:00:31]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [08:00:31]RasterBufferAndPrint [08:00:31]line Счет N : (1)99612 [08:00:31]line ИНН: 02508201610067 [08:00:31]line Контрольно-Кассовый Чек [08:00:31]line ПРОДАЖА [08:00:31]line ТРК (МРК, ГНК) : 31 [08:00:31]line Товар: 2710124130 [08:00:31]line Аи-92-К-5 [08:00:31]line 10.470 * 66.90 [08:00:31]line = 700.44 [08:00:31]line НДС 12% НСП 1% [08:00:31]line > о реализуемом товаре [08:00:31]line ОКРУГЛЕНИЕ: -0.44 [08:00:31]line ИТОГО: 700.00 [08:00:31]line Внесено: 700.00 [08:00:31]line СДАЧА: 0.00 [08:00:31]line НСП 1% : 6.20 [08:00:31]line НДС 12% : 74.38 [08:00:31]line Наличными: 700.00 [08:00:31]line Безнал.: 0.00 [08:00:31]line Место: АЗС № 143 "Партнер Нефть" [08:00:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:00:31]line СНО: Общий режим [08:00:31]line Чек 16 28.10.2024 08:00 [08:00:31]line Смена: 538 ФФД: 1.0 [08:00:31]line ЗНМ: 0300000096 [08:00:31]line РНМ: 0000000000091693 [08:00:31]line Версия ККМ: 001 [08:00:31]line ФМ: 0000000000871792 [08:00:31]line ФД: 156800 [08:00:31]line ФПД: 96550808504863 [08:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156800&fm=96550808504863&tin=02508201610067®Number=0000000000091693&sum=70000 [08:00:32]OFD Sender: Processing packet 156800 [packets to send 31, broken 30] [08:00:32]ProducePacketName [08:00:32]name=ofd_packets/00156800 [08:00:32]OFD Sender: To server: pG, [08:00:32]CommunicateWithHost lk.salyk.kg:30040 [08:00:32]ConnectInit lk.salyk.kg [08:00:32]written 0, free lines is 4095 [08:00:32]Connected sock=10 [08:00: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 37 39 32 0F 01 00 00 7C 6A 07 01 17 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 10 00 00 00 F4 03 04 00 9F 44 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 64 02 00 35 04 06 00 57 CF FC A4 CA 1F 31 91 0C 5F EF 38 08 F4 [08:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 5D 47 00 AD 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 37 39 32 10 04 04 00 80 64 02 00 F4 03 04 00 0D EA 1E 67 B6 04 01 00 00 FC 7A D0 F9 DA BA 12 6A [08:00:32]CommunicateWithHost err = 0 [08:00:32]CheckOFDResponse [08:00:32]1017 (14) - 77093643461234 [08:00:32]1041 (16) - 0000000000871792 [08:00:32]1040 (4) - 156800 [08:00:32]1012 (4) - 28.10.2024 01:34 [08:00:32]1206 (1) - 0 [08:00:32]OFD Sender: Remove packet 156800 [08:00:32]ProducePacketName [08:00:32]name=ofd_packets/00156800 [08:00:32]NVStorageDeleteData [08:00:32]Write to MH i2c: 01 00 00 1E 06 24 [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: 01 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: 01 07 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: 01 07 00 1E 06 00 00 00 00 00 D7 0C 0E [08:00:32]RasterBufferAndPrint [08:00:32]line [08:00:32]line [08:00:32]line [08:00:32]line [08:00:32]line [08:00:32]written 0, free lines is 3294 [08:00:32]process_action close_receipt done [08:00:32]requested_data is exist [08:00:32]produce_requested_data [08:00:32]requested_item fm.sn is exist - process it [08:00:32]wFMCommunicate request_size=4 [08:00:32]MH_SAM_APDU [08:00:32]CAPDU: 80 11 00 00 [08:00:32]Write to MH i2c: E2 08 00 25 06 80 11 00 00 00 00 00 00 A5 [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:32]Read from MH i2c: E2 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 17 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 17 00 25 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [08:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:00:32]wFMCommunicate OK [08:00:32]requested_item fd.num is exist - process it [08:00:32]SAM_PROTO_GetFieldsCounters [08:00:32]wFMCommunicate request_size=4 [08:00:32]MH_SAM_APDU [08:00:32]CAPDU: 80 13 00 00 [08:00:32]Write to MH i2c: E2 08 00 26 06 80 13 00 00 00 00 00 00 A8 [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:32]Read from MH i2c: E2 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 62 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 62 00 26 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 64 02 00 0E 04 04 00 1A 02 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 00 [08: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 64 02 00 0E 04 04 00 1A 02 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 [08:00:32]wFMCommunicate OK [08:00:32]SAM_PROTO_GetFieldsCounters done [08:00:32]requested_item shift.num is exist - process it [08:00:32]requested_item shift.opened is exist - process it [08:00:32]req_shift_opened [08:00:32]FM_GetShiftState [08:00:32]SAM_PROTO_GetShiftState [08:00:32]wFMCommunicate request_size=4 [08:00:32]MH_SAM_APDU [08:00:32]CAPDU: 80 13 01 00 [08:00:32]Write to MH i2c: E2 08 00 27 06 80 13 01 00 00 00 00 00 AA [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:32]Read from MH i2c: E2 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 0E 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 0E 00 27 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9C [08:00:32]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:00:32]wFMCommunicate OK [08:00:32]SAM_PROTO_GetShiftState done [08:00:32]FM_GetShiftState done [08:00:32]req_shift_opened done [08:00:32]requested_item shift.open_date is exist - process it [08:00:32]req_shift_open_date [08:00:32]req_shift_open_date done [08:00:32]produce_requested_data done [08:00:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156800,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:00:32]process_action_free close_receipt [08:00:32]json_value_free [08:00:32]json_value_free done [08:00:32]process_json_proto returns [08:00:32]Send response to host [08:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156800,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:00:32]free response buf [08:00:32]execute_script done [08:00:32]execute_script returns [08:00:32]free content buf [08:00:32]Sock 9.Close socket [08:00:32]Sock 9.Thread stoped [08:00:33]OFD Sender: No OFD packet to send [08:00:38]OFD Sender: No OFD packet to send [08:00:43]OFD Sender: No OFD packet to send [08:00:48]OFD Sender: No OFD packet to send [08:00:53]OFD Sender: No OFD packet to send [08:00:58]OFD Sender: No OFD packet to send [08:01:03]OFD Sender: No OFD packet to send [08:01:08]OFD Sender: No OFD packet to send [08:01:13]OFD Sender: No OFD packet to send [08:01:18]OFD Sender: No OFD packet to send [08:01:23]OFD Sender: No OFD packet to send [08:01:28]OFD Sender: No OFD packet to send [08:01:33]OFD Sender: No OFD packet to send [08:01:38]OFD Sender: No OFD packet to send [08:01:43]OFD Sender: No OFD packet to send [08:01:48]OFD Sender: No OFD packet to send [08:01:53]OFD Sender: No OFD packet to send [08:01:58]OFD Sender: No OFD packet to send [08:02:03]OFD Sender: No OFD packet to send [08:02:08]OFD Sender: No OFD packet to send [08:02:13]OFD Sender: No OFD packet to send [08:02:18]OFD Sender: No OFD packet to send [08:02:23]OFD Sender: No OFD packet to send [08:02:28]OFD Sender: No OFD packet to send [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:48]OFD Sender: No OFD packet to send [08:02:53]OFD Sender: No OFD packet to send [08:02:58]OFD Sender: No OFD packet to send [08:03:03]OFD Sender: No OFD packet to send [08:03:08]OFD Sender: No OFD packet to send [08:03:13]OFD Sender: No OFD packet to send [08:03:18]OFD Sender: No OFD packet to send [08:03:23]OFD Sender: No OFD packet to send [08:03:28]OFD Sender: No OFD packet to send [08:03:33]OFD Sender: No OFD packet to send [08:03:38]OFD Sender: No OFD packet to send [08:03:43]OFD Sender: No OFD packet to send [08:03:48]OFD Sender: No OFD packet to send [08:03:53]OFD Sender: No OFD packet to send [08:03:58]OFD Sender: No OFD packet to send [08:04:00]accept exits with 7 [08:04:00]New connection [08:04:00]New thread 3066748260 created [08:04:00]Thread 3066604900 joined [08:04:00]Waiting for new connection... [08:04:00] Sock 7.Parse request [08:04:00]Sock 7.Check first char [08:04:00]Sock 7.First char is OK [08:04:00]request: POST /json_proto HTTP/1.0 [08:04:00]Method: POST [08:04:00]URL: /json_proto [08:04:00]Method is POST - this is cgi request [08:04:00]url: /json_proto [08:04:00]query_string will be loaded in cgi processing [08:04:00]execute_cgi json_proto POST (null) [08:04:00]execute_cgi path=json_proto method=POST [08:04:00]POST find Content-Length [08:04:00]Host: 172.17.63.3:8080 [08:04:00]Content-Length: 677 [08:04:00]Content-Type: application/json [08:04:00] [08:04:00]POST finish read [08:04:00]Found Content-Length = 677 [08:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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:04:00]execute_script... [08:04:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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:04:00]POST & json_proto [08:04:00]process_json_proto [08:04:00]json parsed OK: [08:04:00]protocol is kg_v1.0 [08:04:00]action value=close_receipt [08:04:00]process_action close_receipt [08:04:00]cmd_close_receipt [08:04:00]MH_GetDate [08:04:00]Write to MH i2c: F0 00 00 28 06 1D [08:04:00]Write i2c OK [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: F0 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: F0 09 00 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: F0 09 00 28 06 00 72 45 1F 67 50 D1 6C 64 54 [08:04:00]GetLastDocTimeStamp 1730102431 [08:04:00]current date 1730102642 [08:04:00]FM_GetShiftState [08:04:00]SAM_PROTO_GetShiftState [08:04:00]wFMCommunicate request_size=4 [08:04:00]MH_SAM_APDU [08:04:00]CAPDU: 80 13 01 00 [08:04:00]Write to MH i2c: E2 08 00 29 06 80 13 01 00 00 00 00 00 AC [08:04:00]Write i2c OK [08:04:00]MH_I2C_Read... [08:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:00]Read from MH i2c: E2 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 0E 00 [08:04:00]MH_I2C_Read... [08:04:00]Read from MH i2c: E2 0E 00 29 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9E [08:04:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:04:00]wFMCommunicate OK [08:04:00]SAM_PROTO_GetShiftState done [08:04:00]FM_GetShiftState done [08:04:00]opened in 1730075526 [08:04:00]opened+sec_in_day 1730161926 [08:04:00]quantity*price = 80012 [08:04:00]sum+1 = 80013 [08:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 17 28.10.2024 08:04 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156801 ФПД: 79709657677128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080402&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156801&fm=79709657677128&tin=02508201610067®Number=0000000000091693&sum=80000 [08:04:01]StoreToDocumentArchive [08:04:01]shift 538 fd 156801 [08:04:01]save to /storage/0538/doc_00156801 [08:04:01]save last doc name /storage/0538/doc_00156801 to /storage/kkm_last_doc_name [08:04:01]save OK [08:04:01]Clear old archive folders... [08:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:01]tlvbuf is 01A68F70 [08:04:01]SAM_PROTO_ClearQueue [08:04:01]wFMCommunicate request_size=4 [08:04:01]MH_SAM_APDU [08:04:01]CAPDU: 80 09 00 00 [08:04:01]Write to MH i2c: E2 08 00 36 06 80 09 00 00 00 00 00 00 AE [08:04:01]Write i2c OK [08:04:01]MH_I2C_Read... [08:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:01]Read from MH i2c: E2 [08:04:01]MH_I2C_Read... [08:04:01]Read from MH i2c: E2 03 00 [08:04:01]MH_I2C_Read... [08:04:01]Read from MH i2c: E2 03 00 36 06 00 90 00 B0 [08:04:01]RAPDU: 90 00 [08:04:01]wFMCommunicate OK [08:04:01]SAM_PROTO_ClearQueue done [08:04:01]KKMCreateOFDPacket [08:04:01]OFDProtocolAddRootSTLVToBuf [08:04:01]FM_MakeSignedData [08:04:01]FM_MakeSignedData [08:04:01]SAM_PROTO_SignData [08:04:01]wFMCommunicate request_size=4 [08:04:01]MH_SAM_APDU [08:04:01]CAPDU: 80 0D 01 02 [08:04:01]Write to MH i2c: E2 08 00 37 06 80 0D 01 02 00 00 00 00 B6 [08:04:01]Write i2c OK [08:04:01]MH_I2C_Read... [08:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:01]Read from MH i2c: E2 [08:04:01]MH_I2C_Read... [08:04:01]Read from MH i2c: E2 03 00 [08:04:01]MH_I2C_Read... [08:04:01]Read from MH i2c: E2 03 00 37 06 00 90 00 B1 [08:04:01]RAPDU: 90 00 [08:04:01]wFMCommunicate OK [08:04:01]wFMCommunicate request_size=255 [08:04:01]MH_SAM_APDU [08:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 11 00 00 00 F4 03 04 00 72 45 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 64 02 00 35 04 06 00 48 [08:04:01]Write to MH i2c: E2 02 01 38 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 11 00 00 00 F4 03 04 00 72 45 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 64 02 00 35 04 06 00 48 00 00 CF [08:04:01]Write i2c OK [08:04:01]MH_I2C_Read... [08:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:02]Read from MH i2c: E2 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 03 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 03 00 38 06 00 90 00 B2 [08:04:02]RAPDU: 90 00 [08:04:02]wFMCommunicate OK [08:04:02]wFMCommunicate request_size=10 [08:04:02]MH_SAM_APDU [08:04:02]CAPDU: 80 0D 02 02 05 7E D9 D4 BD 48 [08:04:02]Write to MH i2c: E2 0D 00 39 06 80 0D 02 02 05 00 7E D9 D4 BD 48 00 00 F3 [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:02]Read from MH i2c: E2 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 03 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [08:04:02]RAPDU: 90 00 [08:04:02]wFMCommunicate OK [08:04:02]wFMCommunicate request_size=4 [08:04:02]MH_SAM_APDU [08:04:02]CAPDU: 80 0D 03 02 [08:04:02]Write to MH i2c: E2 08 00 3A 06 80 0D 03 02 00 00 00 00 BB [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:02]Read from MH i2c: E2 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 0B 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 0B 00 3A 06 00 0D EB 8E 2F BF 6C F1 9E 90 00 2B [08:04:02]RAPDU: 0D EB 8E 2F BF 6C F1 9E 90 00 [08:04:02]wFMCommunicate OK [08:04:02]SAM_PROTO_SignData done [08:04:02]FM_MakeSignedData done [08:04:02]CreateOFDProtocolMessage [08:04:02]wFMCommunicate request_size=4 [08:04:02]MH_SAM_APDU [08:04:02]CAPDU: 80 11 00 00 [08:04:02]Write to MH i2c: E2 08 00 3B 06 80 11 00 00 00 00 00 00 BB [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:02]Read from MH i2c: E2 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 17 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: E2 17 00 3B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [08:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:04:02]wFMCommunicate OK [08:04:02]CreateOFDProtocolMessage done [08:04:02]OFDSenderStorePacket 156801 [08:04:02]StoreOFDPacket docnum=156801 [08:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 61 07 01 C1 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 11 00 00 00 F4 03 04 00 72 45 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 64 02 00 35 04 06 00 48 7E D9 D4 BD 48 0D EB 8E 2F BF 6C F1 9E [08:04:02]CheckFolder [08:04:02]dirname=/storage/ofd_packets [08:04:02]CheckFolder done [08:04:02]ProducePacketName [08:04:02]name=ofd_packets/00156801 [08:04:02]NVStorageSaveData ofd_packets/00156801 [08:04:02]File name is /storage/ofd_packets/00156801 [08:04:02]Write 301 bytes [08:04:02]NVStorageSaveData done [08:04:02]OFDSenderStorePacket done [08:04:02]KKMCreateOFDPacket done [08:04:02]NVStorageSaveData kkm_last_timestamp [08:04:02]File name is /storage/kkm_last_timestamp [08:04:02]Write 4 bytes [08:04:02]NVStorageSaveData done [08:04:02]OFD Sender: Processing packet 156801 [packets to send 31, broken 30] [08:04:02]ProducePacketName [08:04:02]name=ofd_packets/00156801 [08:04:02]OFD Sender: To server: pG, [08:04:02]CommunicateWithHost lk.salyk.kg:30040 [08:04:02]ConnectInit lk.salyk.kg [08:04:02]ExternCall_PrintAddStr [08:04:02]wPrintStart [08:04:02]Write to MH i2c: 01 00 00 3C 06 42 [08:04:02]Write i2c OK [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: 01 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: 01 07 00 [08:04:02]MH_I2C_Read... [08:04:02]Read from MH i2c: 01 07 00 3C 06 00 00 00 00 00 FF 0F 57 [08:04:02]RasterBufferAndPrint [08:04:02]line Счет N : (1)99613 [08:04:02]line ИНН: 02508201610067 [08:04:02]line Контрольно-Кассовый Чек [08:04:02]line ПРОДАЖА [08:04:02]line ТРК (МРК, ГНК) : 31 [08:04:02]line Товар: 2710124130 [08:04:02]line Аи-92-К-5 [08:04:02]line 11.960 * 66.90 [08:04:02]line = 800.12 [08:04:02]line НДС 12% НСП 1% [08:04:02]line > о реализуемом товаре [08:04:02]line ОКРУГЛЕНИЕ: -0.12 [08:04:02]line ИТОГО: 800.00 [08:04:02]line Внесено: 800.00 [08:04:02]line СДАЧА: 0.00 [08:04:02]line НСП 1% : 7.08 [08:04:02]line НДС 12% : 84.97 [08:04:02]line Наличными: 800.00 [08:04:02]line Безнал.: 0.00 [08:04:02]line Место: АЗС № 143 "Партнер Нефть" [08:04:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:04:02]line СНО: Общий режим [08:04:02]line Чек 17 28.10.2024 08:04 [08:04:02]line Смена: 538 ФФД: 1.0 [08:04:02]line ЗНМ: 0300000096 [08:04:02]line РНМ: 0000000000091693 [08:04:02]line Версия ККМ: 001 [08:04:02]line ФМ: 0000000000871792 [08:04:02]line ФД: 156801 [08:04:02]line ФПД: 79709657677128 [08:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080402&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156801&fm=79709657677128&tin=02508201610067®Number=0000000000091693&sum=80000 [08:04:02]Connected sock=11 [08:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 61 07 01 C1 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 11 00 00 00 F4 03 04 00 72 45 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 64 02 00 35 04 06 00 48 7E D9 D4 BD 48 0D EB 8E 2F BF 6C F1 9E [08:04:02]written 0, free lines is 4095 [08:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 58 B4 47 00 99 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 64 02 00 F4 03 04 00 DF EA 1E 67 B6 04 01 00 00 75 4A 41 73 FA 5A 48 FE [08:04:02]CommunicateWithHost err = 0 [08:04:02]CheckOFDResponse [08:04:02]1017 (14) - 77093643461234 [08:04:02]1041 (16) - 0000000000871792 [08:04:02]1040 (4) - 156801 [08:04:02]1012 (4) - 28.10.2024 01:37 [08:04:02]1206 (1) - 0 [08:04:02]OFD Sender: Remove packet 156801 [08:04:02]ProducePacketName [08:04:02]name=ofd_packets/00156801 [08:04:02]NVStorageDeleteData [08:04:03]Write to MH i2c: 01 00 00 67 06 6D [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: 01 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: 01 07 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: 01 07 00 67 06 00 00 00 00 00 DA 0C 5A [08:04:03]RasterBufferAndPrint [08:04:03]line [08:04:03]line [08:04:03]line [08:04:03]line [08:04:03]line [08:04:03]written 0, free lines is 3297 [08:04:03]process_action close_receipt done [08:04:03]requested_data is exist [08:04:03]produce_requested_data [08:04:03]requested_item fm.sn is exist - process it [08:04:03]wFMCommunicate request_size=4 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 11 00 00 [08:04:03]Write to MH i2c: E2 08 00 6E 06 80 11 00 00 00 00 00 00 EE [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:03]Read from MH i2c: E2 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 17 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 17 00 6E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [08:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:04:03]wFMCommunicate OK [08:04:03]requested_item fd.num is exist - process it [08:04:03]SAM_PROTO_GetFieldsCounters [08:04:03]wFMCommunicate request_size=4 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 13 00 00 [08:04:03]Write to MH i2c: E2 08 00 6F 06 80 13 00 00 00 00 00 00 F1 [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:03]Read from MH i2c: E2 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 62 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 62 00 6F 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 64 02 00 0E 04 04 00 1A 02 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 4D [08:04: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 64 02 00 0E 04 04 00 1A 02 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:04:03]wFMCommunicate OK [08:04:03]SAM_PROTO_GetFieldsCounters done [08:04:03]requested_item shift.num is exist - process it [08:04:03]requested_item shift.opened is exist - process it [08:04:03]req_shift_opened [08:04:03]FM_GetShiftState [08:04:03]SAM_PROTO_GetShiftState [08:04:03]wFMCommunicate request_size=4 [08:04:03]MH_SAM_APDU [08:04:03]CAPDU: 80 13 01 00 [08:04:03]Write to MH i2c: E2 08 00 70 06 80 13 01 00 00 00 00 00 F3 [08:04:03]Write i2c OK [08:04:03]MH_I2C_Read... [08:04:03]OFD Sender: No OFD packet to send [08:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:03]Read from MH i2c: E2 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 0E 00 [08:04:03]MH_I2C_Read... [08:04:03]Read from MH i2c: E2 0E 00 70 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E5 [08:04:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:04:03]wFMCommunicate OK [08:04:03]SAM_PROTO_GetShiftState done [08:04:03]FM_GetShiftState done [08:04:03]req_shift_opened done [08:04:03]requested_item shift.open_date is exist - process it [08:04:03]req_shift_open_date [08:04:03]req_shift_open_date done [08:04:03]produce_requested_data done [08:04:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156801,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:04:03]process_action_free close_receipt [08:04:03]json_value_free [08:04:03]json_value_free done [08:04:03]process_json_proto returns [08:04:03]Send response to host [08:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156801,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:04:03]free response buf [08:04:03]execute_script done [08:04:03]execute_script returns [08:04:03]free content buf [08:04:03]Sock 7.Close socket [08:04:03]Sock 7.Thread stoped [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:26]accept exits with 9 [08:10:26]New connection [08:10:26]New thread 3066604900 created [08:10:26]Thread 3066748260 joined [08:10:26]Waiting for new connection... [08:10:26] Sock 9.Parse request [08:10:26]Sock 9.Check first char [08:10:26]Sock 9.First char is OK [08:10:26]request: POST /json_proto HTTP/1.0 [08:10:26]Method: POST [08:10:26]URL: /json_proto [08:10:26]Method is POST - this is cgi request [08:10:26]url: /json_proto [08:10:26]query_string will be loaded in cgi processing [08:10:26]execute_cgi json_proto POST (null) [08:10:26]execute_cgi path=json_proto method=POST [08:10:26]POST find Content-Length [08:10:26]Host: 172.17.63.3:8080 [08:10:26]Content-Length: 676 [08:10:26]Content-Type: application/json [08:10:26] [08:10:26]POST finish read [08:10:26]Found Content-Length = 676 [08:10:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:26]execute_script... [08:10: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)99614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:26]POST & json_proto [08:10:26]process_json_proto [08:10:26]json parsed OK: [08:10:26]protocol is kg_v1.0 [08:10:26]action value=close_receipt [08:10:26]process_action close_receipt [08:10:26]cmd_close_receipt [08:10:26]MH_GetDate [08:10:26]Write to MH i2c: F0 00 00 71 06 66 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: F0 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: F0 09 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: F0 09 00 71 06 00 F4 46 1F 67 50 D1 6C 64 20 [08:10:26]GetLastDocTimeStamp 1730102642 [08:10:26]current date 1730103028 [08:10:26]FM_GetShiftState [08:10:26]SAM_PROTO_GetShiftState [08:10:26]wFMCommunicate request_size=4 [08:10:26]MH_SAM_APDU [08:10:26]CAPDU: 80 13 01 00 [08:10:26]Write to MH i2c: E2 08 00 72 06 80 13 01 00 00 00 00 00 F5 [08:10:26]Write i2c OK [08:10:26]MH_I2C_Read... [08:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:26]Read from MH i2c: E2 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 0E 00 [08:10:26]MH_I2C_Read... [08:10:26]Read from MH i2c: E2 0E 00 72 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E7 [08:10:26]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:10:26]wFMCommunicate OK [08:10:26]SAM_PROTO_GetShiftState done [08:10:26]FM_GetShiftState done [08:10:26]opened in 1730075526 [08:10:26]opened+sec_in_day 1730161926 [08:10:26]quantity*price = 31041 [08:10:26]sum+1 = 31043 [08:10:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 18 28.10.2024 08:10 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156802 ФПД: 149105990348164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T081028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156802&fm=149105990348164&tin=02508201610067®Number=0000000000091693&sum=31000 [08:10:27]StoreToDocumentArchive [08:10:27]shift 538 fd 156802 [08:10:27]save to /storage/0538/doc_00156802 [08:10:27]save last doc name /storage/0538/doc_00156802 to /storage/kkm_last_doc_name [08:10:27]save OK [08:10:27]Clear old archive folders... [08:10:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:27]tlvbuf is 01A3AC30 [08:10:27]SAM_PROTO_ClearQueue [08:10:27]wFMCommunicate request_size=4 [08:10:27]MH_SAM_APDU [08:10:27]CAPDU: 80 09 00 00 [08:10:27]Write to MH i2c: E2 08 00 7F 06 80 09 00 00 00 00 00 00 F7 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:27]Read from MH i2c: E2 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 7F 06 00 90 00 F9 [08:10:27]RAPDU: 90 00 [08:10:27]wFMCommunicate OK [08:10:27]SAM_PROTO_ClearQueue done [08:10:27]KKMCreateOFDPacket [08:10:27]OFDProtocolAddRootSTLVToBuf [08:10:27]FM_MakeSignedData [08:10:27]FM_MakeSignedData [08:10:27]SAM_PROTO_SignData [08:10:27]wFMCommunicate request_size=4 [08:10:27]MH_SAM_APDU [08:10:27]CAPDU: 80 0D 01 02 [08:10:27]Write to MH i2c: E2 08 00 80 06 80 0D 01 02 00 00 00 00 FF [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:27]Read from MH i2c: E2 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 80 06 00 90 00 FA [08:10:27]RAPDU: 90 00 [08:10:27]wFMCommunicate OK [08:10:27]wFMCommunicate request_size=255 [08:10:27]MH_SAM_APDU [08:10: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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 F4 46 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 64 02 00 35 04 06 00 87 [08:10:27]Write to MH i2c: E2 02 01 81 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 F4 46 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 64 02 00 35 04 06 00 87 00 00 B6 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:27]Read from MH i2c: E2 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 81 06 00 90 00 FB [08:10:27]RAPDU: 90 00 [08:10:27]wFMCommunicate OK [08:10:27]wFMCommunicate request_size=10 [08:10:27]MH_SAM_APDU [08:10:27]CAPDU: 80 0D 02 02 05 9C 71 96 AD 84 [08:10:27]Write to MH i2c: E2 0D 00 82 06 80 0D 02 02 05 00 9C 71 96 AD 84 00 00 E0 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:27]Read from MH i2c: E2 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [08:10:27]RAPDU: 90 00 [08:10:27]wFMCommunicate OK [08:10:27]wFMCommunicate request_size=4 [08:10:27]MH_SAM_APDU [08:10:27]CAPDU: 80 0D 03 02 [08:10:27]Write to MH i2c: E2 08 00 83 06 80 0D 03 02 00 00 00 00 04 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 0B 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 0B 00 83 06 00 9D 53 A2 B2 B7 1E E2 C7 90 00 C7 [08:10:28]RAPDU: 9D 53 A2 B2 B7 1E E2 C7 90 00 [08:10:28]wFMCommunicate OK [08:10:28]SAM_PROTO_SignData done [08:10:28]FM_MakeSignedData done [08:10:28]CreateOFDProtocolMessage [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 11 00 00 [08:10:28]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [08:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:10:28]wFMCommunicate OK [08:10:28]CreateOFDProtocolMessage done [08:10:28]OFDSenderStorePacket 156802 [08:10:28]StoreOFDPacket docnum=156802 [08:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0A 8F 07 01 CF 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 F4 46 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 64 02 00 35 04 06 00 87 9C 71 96 AD 84 9D 53 A2 B2 B7 1E E2 C7 [08:10:28]CheckFolder [08:10:28]dirname=/storage/ofd_packets [08:10:28]CheckFolder done [08:10:28]ProducePacketName [08:10:28]name=ofd_packets/00156802 [08:10:28]NVStorageSaveData ofd_packets/00156802 [08:10:28]File name is /storage/ofd_packets/00156802 [08:10:28]Write 301 bytes [08:10:28]NVStorageSaveData done [08:10:28]OFDSenderStorePacket done [08:10:28]KKMCreateOFDPacket done [08:10:28]NVStorageSaveData kkm_last_timestamp [08:10:28]File name is /storage/kkm_last_timestamp [08:10:28]Write 4 bytes [08:10:28]NVStorageSaveData done [08:10:28]ExternCall_PrintAddStr [08:10:28]wPrintStart [08:10:28]Write to MH i2c: 01 00 00 85 06 8B [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 85 06 00 00 00 00 00 FF 0F A0 [08:10:28]RasterBufferAndPrint [08:10:28]line Счет N : (1)99614 [08:10:28]line ИНН: 02508201610067 [08:10:28]line Контрольно-Кассовый Чек [08:10:28]line ПРОДАЖА [08:10:28]line ТРК (МРК, ГНК) : 31 [08:10:28]line Товар: 2710124130 [08:10:28]line Аи-92-К-5 [08:10:28]line 4.640 * 66.90 [08:10:28]line = 310.42 [08:10:28]line НДС 12% НСП 1% [08:10:28]line > о реализуемом товаре [08:10:28]line ОКРУГЛЕНИЕ: -0.42 [08:10:28]line ИТОГО: 310.00 [08:10:28]line Внесено: 310.00 [08:10:28]line СДАЧА: 0.00 [08:10:28]line НСП 1% : 2.75 [08:10:28]line НДС 12% : 32.96 [08:10:28]line Наличными: 310.00 [08:10:28]line Безнал.: 0.00 [08:10:28]line Место: АЗС № 143 "Партнер Нефть" [08:10:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:10:28]line СНО: Общий режим [08:10:28]line Чек 18 28.10.2024 08:10 [08:10:28]line Смена: 538 ФФД: 1.0 [08:10:28]line ЗНМ: 0300000096 [08:10:28]line РНМ: 0000000000091693 [08:10:28]line Версия ККМ: 001 [08:10:28]line ФМ: 0000000000871792 [08:10:28]line ФД: 156802 [08:10:28]line ФПД: 149105990348164 [08:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T081028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156802&fm=149105990348164&tin=02508201610067®Number=0000000000091693&sum=31000 [08:10:28]OFD Sender: Processing packet 156802 [packets to send 31, broken 30] [08:10:28]ProducePacketName [08:10:28]name=ofd_packets/00156802 [08:10:28]OFD Sender: To server: pG, [08:10:28]CommunicateWithHost lk.salyk.kg:30040 [08:10:28]ConnectInit lk.salyk.kg [08:10:28]written 0, free lines is 4095 [08:10:28]Connected sock=10 [08:10: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 37 39 32 0F 01 00 00 0A 8F 07 01 CF 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 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 F4 46 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 64 02 00 35 04 06 00 87 9C 71 96 AD 84 9D 53 A2 B2 B7 1E E2 C7 [08:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D2 CD 47 00 B1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 64 02 00 F4 03 04 00 61 EC 1E 67 B6 04 01 00 00 F8 DE 73 AE E5 AD F0 74 [08:10:28]CommunicateWithHost err = 0 [08:10:28]CheckOFDResponse [08:10:28]1017 (14) - 77093643461234 [08:10:28]1041 (16) - 0000000000871792 [08:10:28]1040 (4) - 156802 [08:10:28]1012 (4) - 28.10.2024 01:44 [08:10:28]1206 (1) - 0 [08:10:28]OFD Sender: Remove packet 156802 [08:10:28]ProducePacketName [08:10:28]name=ofd_packets/00156802 [08:10:28]NVStorageDeleteData [08:10:28]Write to MH i2c: 01 00 00 B0 06 B6 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 B0 06 00 00 00 00 00 E3 0C AC [08:10:28]RasterBufferAndPrint [08:10:28]line [08:10:28]line [08:10:28]line [08:10:28]line [08:10:28]line [08:10:28]written 0, free lines is 3305 [08:10:28]process_action close_receipt done [08:10:28]requested_data is exist [08:10:28]produce_requested_data [08:10:28]requested_item fm.sn is exist - process it [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 11 00 00 [08:10:28]Write to MH i2c: E2 08 00 B7 06 80 11 00 00 00 00 00 00 37 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 B7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [08:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:10:28]wFMCommunicate OK [08:10:28]requested_item fd.num is exist - process it [08:10:28]SAM_PROTO_GetFieldsCounters [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 13 00 00 [08:10:28]Write to MH i2c: E2 08 00 B8 06 80 13 00 00 00 00 00 00 3A [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:29]Read from MH i2c: E2 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 62 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 62 00 B8 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 64 02 00 0E 04 04 00 1A 02 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 9A [08:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 64 02 00 0E 04 04 00 1A 02 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:10:29]wFMCommunicate OK [08:10:29]SAM_PROTO_GetFieldsCounters done [08:10:29]requested_item shift.num is exist - process it [08:10:29]requested_item shift.opened is exist - process it [08:10:29]req_shift_opened [08:10:29]FM_GetShiftState [08:10:29]SAM_PROTO_GetShiftState [08:10:29]wFMCommunicate request_size=4 [08:10:29]MH_SAM_APDU [08:10:29]CAPDU: 80 13 01 00 [08:10:29]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:29]Read from MH i2c: E2 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 0E 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2E [08:10:29]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:10:29]wFMCommunicate OK [08:10:29]SAM_PROTO_GetShiftState done [08:10:29]FM_GetShiftState done [08:10:29]req_shift_opened done [08:10:29]requested_item shift.open_date is exist - process it [08:10:29]req_shift_open_date [08:10:29]req_shift_open_date done [08:10:29]produce_requested_data done [08:10:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156802,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:10:29]process_action_free close_receipt [08:10:29]json_value_free [08:10:29]json_value_free done [08:10:29]process_json_proto returns [08:10:29]Send response to host [08:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156802,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:10:29]free response buf [08:10:29]execute_script done [08:10:29]execute_script returns [08:10:29]free content buf [08:10:29]Sock 9.Close socket [08:10:29]Sock 9.Thread stoped [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:14]accept exits with 7 [08:11:14]New connection [08:11:14]New thread 3066748260 created [08:11:14]Thread 3066604900 joined [08:11:14]Waiting for new connection... [08:11:14] Sock 7.Parse request [08:11:14]Sock 7.Check first char [08:11:14]Sock 7.First char is OK [08:11:14]request: POST /json_proto HTTP/1.0 [08:11:14]Method: POST [08:11:14]URL: /json_proto [08:11:14]Method is POST - this is cgi request [08:11:14]url: /json_proto [08:11:14]query_string will be loaded in cgi processing [08:11:14]execute_cgi json_proto POST (null) [08:11:14]execute_cgi path=json_proto method=POST [08:11:14]POST find Content-Length [08:11:14]Host: 172.17.63.3:8080 [08:11:14]Content-Length: 765 [08:11:14]Content-Type: application/json [08:11:14] [08:11:14]POST finish read [08:11:14]Found Content-Length = 765 [08:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:14]execute_script... [08:11: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)99615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:14]POST & json_proto [08:11:14]process_json_proto [08:11:14]json parsed OK: [08:11:14]protocol is kg_v1.0 [08:11:14]action value=close_receipt [08:11:14]process_action close_receipt [08:11:14]cmd_close_receipt [08:11:14]MH_GetDate [08:11:14]Write to MH i2c: F0 00 00 BA 06 AF [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: F0 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: F0 09 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: F0 09 00 BA 06 00 24 47 1F 67 50 D1 6C 64 9A [08:11:14]GetLastDocTimeStamp 1730103028 [08:11:14]current date 1730103076 [08:11:14]FM_GetShiftState [08:11:14]SAM_PROTO_GetShiftState [08:11:14]wFMCommunicate request_size=4 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 13 01 00 [08:11:14]Write to MH i2c: E2 08 00 BB 06 80 13 01 00 00 00 00 00 3E [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:14]Read from MH i2c: E2 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 0E 00 [08:11:14]MH_I2C_Read... [08:11:14]Read from MH i2c: E2 0E 00 BB 06 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 30 [08:11:14]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:11:14]wFMCommunicate OK [08:11:14]SAM_PROTO_GetShiftState done [08:11:14]FM_GetShiftState done [08:11:14]opened in 1730075526 [08:11:14]opened+sec_in_day 1730161926 [08:11:14]quantity*price = 20003 [08:11:14]sum+1 = 20004 [08:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 19 28.10.2024 08:11 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156803 ФПД: 122477670767838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T081116&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156803&fm=122477670767838&tin=02508201610067®Number=0000000000091693&sum=20003 [08:11:15]StoreToDocumentArchive [08:11:15]shift 538 fd 156803 [08:11:15]save to /storage/0538/doc_00156803 [08:11:15]save last doc name /storage/0538/doc_00156803 to /storage/kkm_last_doc_name [08:11:15]save OK [08:11:15]Clear old archive folders... [08:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:15]tlvbuf is 01A3A7F0 [08:11:15]SAM_PROTO_ClearQueue [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 09 00 00 [08:11:15]Write to MH i2c: E2 08 00 C8 06 80 09 00 00 00 00 00 00 40 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]SAM_PROTO_ClearQueue done [08:11:15]KKMCreateOFDPacket [08:11:15]OFDProtocolAddRootSTLVToBuf [08:11:15]FM_MakeSignedData [08:11:15]FM_MakeSignedData [08:11:15]SAM_PROTO_SignData [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 01 02 [08:11:15]Write to MH i2c: E2 08 00 C9 06 80 0D 01 02 00 00 00 00 48 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=255 [08:11:15]MH_SAM_APDU [08:11: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 24 47 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 64 02 00 35 04 06 00 6F [08:11:15]Write to MH i2c: E2 02 01 CA 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 24 47 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 64 02 00 35 04 06 00 6F 00 00 1C [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 03 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 03 00 CA 06 00 90 00 44 [08:11:16]RAPDU: 90 00 [08:11:16]wFMCommunicate OK [08:11:16]wFMCommunicate request_size=10 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 0D 02 02 05 64 8E 0F 1C DE [08:11:16]Write to MH i2c: E2 0D 00 CB 06 80 0D 02 02 05 00 64 8E 0F 1C DE 00 00 50 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 03 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [08:11:16]RAPDU: 90 00 [08:11:16]wFMCommunicate OK [08:11:16]wFMCommunicate request_size=4 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 0D 03 02 [08:11:16]Write to MH i2c: E2 08 00 CC 06 80 0D 03 02 00 00 00 00 4D [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 0B 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 0B 00 CC 06 00 C5 3E 54 C2 F4 52 FC 7C 90 00 25 [08:11:16]RAPDU: C5 3E 54 C2 F4 52 FC 7C 90 00 [08:11:16]wFMCommunicate OK [08:11:16]SAM_PROTO_SignData done [08:11:16]FM_MakeSignedData done [08:11:16]CreateOFDProtocolMessage [08:11:16]wFMCommunicate request_size=4 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 11 00 00 [08:11:16]Write to MH i2c: E2 08 00 CD 06 80 11 00 00 00 00 00 00 4D [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 17 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 17 00 CD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [08:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:11:16]wFMCommunicate OK [08:11:16]CreateOFDProtocolMessage done [08:11:16]OFDSenderStorePacket 156803 [08:11:16]StoreOFDPacket docnum=156803 [08:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B FD 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 24 47 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 64 02 00 35 04 06 00 6F 64 8E 0F 1C DE C5 3E 54 C2 F4 52 FC 7C [08:11:16]CheckFolder [08:11:16]dirname=/storage/ofd_packets [08:11:16]CheckFolder done [08:11:16]ProducePacketName [08:11:16]name=ofd_packets/00156803 [08:11:16]NVStorageSaveData ofd_packets/00156803 [08:11:16]File name is /storage/ofd_packets/00156803 [08:11:16]Write 301 bytes [08:11:16]NVStorageSaveData done [08:11:16]OFDSenderStorePacket done [08:11:16]KKMCreateOFDPacket done [08:11:16]NVStorageSaveData kkm_last_timestamp [08:11:16]File name is /storage/kkm_last_timestamp [08:11:16]Write 4 bytes [08:11:16]NVStorageSaveData done [08:11:16]ExternCall_PrintAddStr [08:11:16]wPrintStart [08:11:16]Write to MH i2c: 01 00 00 CE 06 D4 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [08:11:16]RasterBufferAndPrint [08:11:16]line Счет N : (1)99615 [08:11:16]line ИНН: 02508201610067 [08:11:16]line Контрольно-Кассовый Чек [08:11:16]line ПРОДАЖА [08:11:16]line ТРК (МРК, ГНК) : 31 [08:11:16]line Товар: 2710124130 [08:11:16]line Аи-92-К-5 [08:11:16]line 2.990 * 66.90 [08:11:16]line = 200.03 [08:11:16]line НДС 12% НСП 1% [08:11:16]line > о реализуемом товаре [08:11:16]line ИТОГО: 200.03 [08:11:16]line НСП 1% : 1.77 [08:11:16]line НДС 12% : 21.24 [08:11:16]line Наличными: 0.00 [08:11:16]line Безнал.: 200.03 [08:11:16]line Место: АЗС № 143 "Партнер Нефть" [08:11:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:11:16]line СНО: Общий режим [08:11:16]line Чек 19 28.10.2024 08:11 [08:11:16]line Смена: 538 ФФД: 1.0 [08:11:16]line ЗНМ: 0300000096 [08:11:16]line РНМ: 0000000000091693 [08:11:16]line Версия ККМ: 001 [08:11:16]line Платежная система: Mbank [08:11:16]line ФМ: 0000000000871792 [08:11:16]line ФД: 156803 [08:11:16]line ФПД: 122477670767838 [08:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T081116&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156803&fm=122477670767838&tin=02508201610067®Number=0000000000091693&sum=20003 [08:11:16]written 0, free lines is 4095 [08:11:16]OFD Sender: Processing packet 156803 [packets to send 31, broken 30] [08:11:16]ProducePacketName [08:11:16]name=ofd_packets/00156803 [08:11:16]OFD Sender: To server: pG, [08:11:16]CommunicateWithHost lk.salyk.kg:30040 [08:11:16]ConnectInit lk.salyk.kg [08:11:16]Connected sock=9 [08:11: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 37 39 32 0F 01 00 00 2B FD 07 01 89 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 24 47 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 64 02 00 35 04 06 00 6F 64 8E 0F 1C DE C5 3E 54 C2 F4 52 FC 7C [08:11:16]Write to MH i2c: 01 00 00 F7 06 FD [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 0D 0D 1E [08:11:16]RasterBufferAndPrint [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]written 0, free lines is 3347 [08:11:16]process_action close_receipt done [08:11:16]requested_data is exist [08:11:16]produce_requested_data [08:11:16]requested_item fm.sn is exist - process it [08:11:16]wFMCommunicate request_size=4 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 11 00 00 [08:11:16]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:16]Read from MH i2c: E2 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 17 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [08:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:11:16]wFMCommunicate OK [08:11:16]requested_item fd.num is exist - process it [08:11:16]SAM_PROTO_GetFieldsCounters [08:11:16]wFMCommunicate request_size=4 [08:11:16]MH_SAM_APDU [08:11:16]CAPDU: 80 13 00 00 [08:11:16]Write to MH i2c: E2 08 00 FF 06 80 13 00 00 00 00 00 00 81 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 62 00 FF 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 64 02 00 0E 04 04 00 1A 02 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 E5 [08: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 64 02 00 0E 04 04 00 1A 02 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:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetFieldsCounters done [08:11:17]requested_item shift.num is exist - process it [08:11:17]requested_item shift.opened is exist - process it [08:11:17]req_shift_opened [08:11:17]FM_GetShiftState [08:11:17]SAM_PROTO_GetShiftState [08:11:17]wFMCommunicate request_size=4 [08:11:17]MH_SAM_APDU [08:11:17]CAPDU: 80 13 01 00 [08:11:17]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [08:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1D 80 47 00 61 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 37 39 32 10 04 04 00 83 64 02 00 F4 03 04 00 91 EC 1E 67 B6 04 01 00 00 D9 18 58 F2 22 73 32 28 [08:11:17]CommunicateWithHost err = 0 [08:11:17]CheckOFDResponse [08:11:17]1017 (14) - 77093643461234 [08:11:17]1041 (16) - 0000000000871792 [08:11:17]1040 (4) - 156803 [08:11:17]1012 (4) - 28.10.2024 01:44 [08:11:17]1206 (1) - 0 [08:11:17]OFD Sender: Remove packet 156803 [08:11:17]ProducePacketName [08:11:17]name=ofd_packets/00156803 [08:11:17]NVStorageDeleteData [08:11:17]Write i2c OK [08:11:17]MH_I2C_Read... [08:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:17]Read from MH i2c: E2 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 [08:11:17]MH_I2C_Read... [08:11:17]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 76 [08:11:17]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:11:17]wFMCommunicate OK [08:11:17]SAM_PROTO_GetShiftState done [08:11:17]FM_GetShiftState done [08:11:17]req_shift_opened done [08:11:17]requested_item shift.open_date is exist - process it [08:11:17]req_shift_open_date [08:11:17]req_shift_open_date done [08:11:17]produce_requested_data done [08:11:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156803,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:11:17]process_action_free close_receipt [08:11:17]json_value_free [08:11:17]json_value_free done [08:11:17]process_json_proto returns [08:11:17]Send response to host [08:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156803,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:11:17]free response buf [08:11:17]execute_script done [08:11:17]execute_script returns [08:11:17]free content buf [08:11:17]Sock 7.Close socket [08:11:17]Sock 7.Thread stoped [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:01]int [08:12:01]Write to MH i2c: 01 00 00 01 07 08 [08:12:01]*** FLAG_PRN_PAP1 set [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 01 07 00 01 00 00 00 FF 0F 1E [08:12:01]state=0 [08:12:01]No paper [08:12:01]int [08:12:01]Write to MH i2c: 01 00 00 02 07 09 [08:12:01]*** FLAG_PRN_PAP2 set [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 02 07 00 03 00 00 00 FF 0F 21 [08:12:01]state=0 [08:12:01]No paper [08:12:01]Cover opened [08:12:01]int [08:12:01]Write to MH i2c: 01 00 00 03 07 0A [08:12:01]*** FLAG_PRN_PAP2 reset [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 03 07 00 01 00 00 00 FF 0F 20 [08:12:01]state=3 [08:12:01]No paper [08:12:01]Cover closed [08:12:01]int [08:12:01]Write to MH i2c: 01 00 00 04 07 0B [08:12:01]*** FLAG_PRN_PAP2 set [08:12:01]Write i2c OK [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 [08:12:01]MH_I2C_Read... [08:12:01]Read from MH i2c: 01 07 00 04 07 00 03 00 00 00 FF 0F 23 [08:12:01]state=0 [08:12:01]No paper [08:12:01]Cover opened [08:12:02]OFD Sender: No OFD packet to send [08:12:02]int [08:12:02]Write to MH i2c: 01 00 00 05 07 0C [08:12:02]*** FLAG_PRN_PAP2 reset [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 05 07 00 01 00 00 00 FF 0F 22 [08:12:02]state=3 [08:12:02]No paper [08:12:02]Cover closed [08:12:02]int [08:12:02]Write to MH i2c: 01 00 00 06 07 0D [08:12:02]*** FLAG_PRN_PAP2 set [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 06 07 00 03 00 00 00 FF 0F 25 [08:12:02]state=0 [08:12:02]No paper [08:12:02]Cover opened [08:12:02]int [08:12:02]Write to MH i2c: 01 00 00 07 07 0E [08:12:02]*** FLAG_PRN_PAP2 reset [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 07 07 00 01 00 00 00 FF 0F 24 [08:12:02]state=3 [08:12:02]No paper [08:12:02]Cover closed [08:12:03]int [08:12:03]Write to MH i2c: 01 00 00 08 07 0F [08:12:03]*** FLAG_PRN_PAP2 set [08:12:03]Write i2c OK [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 [08:12:03]MH_I2C_Read... [08:12:03]Read from MH i2c: 01 07 00 08 07 00 03 00 00 00 FF 0F 27 [08:12:03]state=0 [08:12:03]No paper [08:12:03]Cover opened [08:12:07]OFD Sender: No OFD packet to send [08:12:08]Write to MH i2c: 01 00 00 09 07 10 [08:12:08]Write i2c OK [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 [08:12:08]MH_I2C_Read... [08:12:08]Read from MH i2c: 01 07 00 09 07 00 03 00 00 00 FF 0F 28 [08:12:08]state=3 [08:12:08]No paper [08:12:08]Cover opened [08:12:12]OFD Sender: No OFD packet to send [08:12:13]Write to MH i2c: 01 00 00 0A 07 11 [08:12:13]Write i2c OK [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 [08:12:13]MH_I2C_Read... [08:12:13]Read from MH i2c: 01 07 00 0A 07 00 03 00 00 00 FF 0F 29 [08:12:13]state=3 [08:12:13]No paper [08:12:13]Cover opened [08:12:17]OFD Sender: No OFD packet to send [08:12:18]Write to MH i2c: 01 00 00 0B 07 12 [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 0B 07 00 03 00 00 00 FF 0F 2A [08:12:18]state=3 [08:12:18]No paper [08:12:18]Cover opened [08:12:22]OFD Sender: No OFD packet to send [08:12:23]Write to MH i2c: 01 00 00 0C 07 13 [08:12:23]Write i2c OK [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 07 00 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 07 00 0C 07 00 03 00 00 00 FF 0F 2B [08:12:23]state=3 [08:12:23]No paper [08:12:23]Cover opened [08:12:27]OFD Sender: No OFD packet to send [08:12:28]Write to MH i2c: 01 00 00 0D 07 14 [08:12:28]Write i2c OK [08:12:28]MH_I2C_Read... [08:12:28]Read from MH i2c: 01 [08:12:28]MH_I2C_Read... [08:12:28]Read from MH i2c: 01 07 00 [08:12:28]MH_I2C_Read... [08:12:28]Read from MH i2c: 01 07 00 0D 07 00 03 00 00 00 FF 0F 2C [08:12:28]state=3 [08:12:28]No paper [08:12:28]Cover opened [08:12:32]OFD Sender: No OFD packet to send [08:12:33]Write to MH i2c: 01 00 00 0E 07 15 [08:12:33]Write i2c OK [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 07 00 [08:12:33]MH_I2C_Read... [08:12:33]Read from MH i2c: 01 07 00 0E 07 00 03 00 00 00 FF 0F 2D [08:12:33]state=3 [08:12:33]No paper [08:12:33]Cover opened [08:12:37]OFD Sender: No OFD packet to send [08:12:38]Write to MH i2c: 01 00 00 0F 07 16 [08:12:38]Write i2c OK [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 [08:12:38]MH_I2C_Read... [08:12:38]Read from MH i2c: 01 07 00 0F 07 00 03 00 00 00 FF 0F 2E [08:12:38]state=3 [08:12:38]No paper [08:12:38]Cover opened [08:12:42]OFD Sender: No OFD packet to send [08:12:43]Write to MH i2c: 01 00 00 10 07 17 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 10 07 00 03 00 00 00 FF 0F 2F [08:12:43]state=3 [08:12:43]No paper [08:12:43]Cover opened [08:12:47]OFD Sender: No OFD packet to send [08:12:48]Write to MH i2c: 01 00 00 11 07 18 [08:12:48]Write i2c OK [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: 01 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: 01 07 00 [08:12:48]MH_I2C_Read... [08:12:48]Read from MH i2c: 01 07 00 11 07 00 03 00 00 00 FF 0F 30 [08:12:48]state=3 [08:12:48]No paper [08:12:48]Cover opened [08:12:52]OFD Sender: No OFD packet to send [08:12:53]Write to MH i2c: 01 00 00 12 07 19 [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: 01 07 00 12 07 00 03 00 00 00 FF 0F 31 [08:12:53]state=3 [08:12:53]No paper [08:12:53]Cover opened [08:12:57]OFD Sender: No OFD packet to send [08:12:58]Write to MH i2c: 01 00 00 13 07 1A [08:12:58]Write i2c OK [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 [08:12:58]MH_I2C_Read... [08:12:58]Read from MH i2c: 01 07 00 13 07 00 03 00 00 00 FF 0F 32 [08:12:58]state=3 [08:12:58]No paper [08:12:58]Cover opened [08:13:02]OFD Sender: No OFD packet to send [08:13:03]Write to MH i2c: 01 00 00 14 07 1B [08:13:03]Write i2c OK [08:13:03]MH_I2C_Read... [08:13:03]Read from MH i2c: 01 [08:13:03]MH_I2C_Read... [08:13:03]Read from MH i2c: 01 07 00 [08:13:03]MH_I2C_Read... [08:13:03]Read from MH i2c: 01 07 00 14 07 00 03 00 00 00 FF 0F 33 [08:13:03]state=3 [08:13:03]No paper [08:13:03]Cover opened [08:13:07]OFD Sender: No OFD packet to send [08:13:08]Write to MH i2c: 01 00 00 15 07 1C [08:13:08]Write i2c OK [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 07 00 [08:13:08]MH_I2C_Read... [08:13:08]Read from MH i2c: 01 07 00 15 07 00 03 00 00 00 FF 0F 34 [08:13:08]state=3 [08:13:08]No paper [08:13:08]Cover opened [08:13:12]OFD Sender: No OFD packet to send [08:13:13]Write to MH i2c: 01 00 00 16 07 1D [08:13:13]Write i2c OK [08:13:13]MH_I2C_Read... [08:13:13]Read from MH i2c: 01 [08:13:13]MH_I2C_Read... [08:13:13]Read from MH i2c: 01 07 00 [08:13:13]MH_I2C_Read... [08:13:13]Read from MH i2c: 01 07 00 16 07 00 03 00 00 00 FF 0F 35 [08:13:13]state=3 [08:13:13]No paper [08:13:13]Cover opened [08:13:17]OFD Sender: No OFD packet to send [08:13:18]Write to MH i2c: 01 00 00 17 07 1E [08:13:18]Write i2c OK [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: 01 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: 01 07 00 [08:13:18]MH_I2C_Read... [08:13:18]Read from MH i2c: 01 07 00 17 07 00 03 00 00 00 FF 0F 36 [08:13:18]state=3 [08:13:18]No paper [08:13:18]Cover opened [08:13:22]OFD Sender: No OFD packet to send [08:13:23]Write to MH i2c: 01 00 00 18 07 1F [08:13:23]Write i2c OK [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 07 00 [08:13:23]MH_I2C_Read... [08:13:23]Read from MH i2c: 01 07 00 18 07 00 03 00 00 00 FF 0F 37 [08:13:23]state=3 [08:13:23]No paper [08:13:23]Cover opened [08:13:27]OFD Sender: No OFD packet to send [08:13:28]Write to MH i2c: 01 00 00 19 07 20 [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: 01 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: 01 07 00 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: 01 07 00 19 07 00 03 00 00 00 FF 0F 38 [08:13:28]state=3 [08:13:28]No paper [08:13:28]Cover opened [08:13:32]OFD Sender: No OFD packet to send [08:13:33]Write to MH i2c: 01 00 00 1A 07 21 [08:13:33]Write i2c OK [08:13:33]MH_I2C_Read... [08:13:33]Read from MH i2c: 01 [08:13:33]MH_I2C_Read... [08:13:33]Read from MH i2c: 01 07 00 [08:13:33]MH_I2C_Read... [08:13:33]Read from MH i2c: 01 07 00 1A 07 00 03 00 00 00 FF 0F 39 [08:13:33]state=3 [08:13:33]No paper [08:13:33]Cover opened [08:13:37]OFD Sender: No OFD packet to send [08:13:38]Write to MH i2c: 01 00 00 1B 07 22 [08:13:38]Write i2c OK [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 [08:13:38]MH_I2C_Read... [08:13:38]Read from MH i2c: 01 07 00 1B 07 00 03 00 00 00 FF 0F 3A [08:13:38]state=3 [08:13:38]No paper [08:13:38]Cover opened [08:13:42]OFD Sender: No OFD packet to send [08:13:43]Write to MH i2c: 01 00 00 1C 07 23 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 07 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 07 00 1C 07 00 03 00 00 00 FF 0F 3B [08:13:43]state=3 [08:13:43]No paper [08:13:43]Cover opened [08:13:47]OFD Sender: No OFD packet to send [08:13:48]Write to MH i2c: 01 00 00 1D 07 24 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: 01 07 00 1D 07 00 03 00 00 00 FF 0F 3C [08:13:48]state=3 [08:13:48]No paper [08:13:48]Cover opened [08:13:52]OFD Sender: No OFD packet to send [08:13:53]Write to MH i2c: 01 00 00 1E 07 25 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 1E 07 00 03 00 00 00 FF 0F 3D [08:13:53]state=3 [08:13:53]No paper [08:13:53]Cover opened [08:13:57]OFD Sender: No OFD packet to send [08:13:58]Write to MH i2c: 01 00 00 1F 07 26 [08:13:58]Write i2c OK [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 07 00 [08:13:58]MH_I2C_Read... [08:13:58]Read from MH i2c: 01 07 00 1F 07 00 03 00 00 00 FF 0F 3E [08:13:58]state=3 [08:13:58]No paper [08:13:58]Cover opened [08:14:02]OFD Sender: No OFD packet to send [08:14:03]Write to MH i2c: 01 00 00 20 07 27 [08:14:03]Write i2c OK [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: 01 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: 01 07 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: 01 07 00 20 07 00 03 00 00 00 FF 0F 3F [08:14:03]state=3 [08:14:03]No paper [08:14:03]Cover opened [08:14:07]OFD Sender: No OFD packet to send [08:14:08]Write to MH i2c: 01 00 00 21 07 28 [08:14:08]Write i2c OK [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 [08:14:08]MH_I2C_Read... [08:14:08]Read from MH i2c: 01 07 00 21 07 00 03 00 00 00 FF 0F 40 [08:14:08]state=3 [08:14:08]No paper [08:14:08]Cover opened [08:14:12]OFD Sender: No OFD packet to send [08:14:13]Write to MH i2c: 01 00 00 22 07 29 [08:14:13]Write i2c OK [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: 01 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: 01 07 00 [08:14:13]MH_I2C_Read... [08:14:13]Read from MH i2c: 01 07 00 22 07 00 03 00 00 00 FF 0F 41 [08:14:13]state=3 [08:14:13]No paper [08:14:13]Cover opened [08:14:17]OFD Sender: No OFD packet to send [08:14:18]Write to MH i2c: 01 00 00 23 07 2A [08:14:18]Write i2c OK [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: 01 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: 01 07 00 [08:14:18]MH_I2C_Read... [08:14:18]Read from MH i2c: 01 07 00 23 07 00 03 00 00 00 FF 0F 42 [08:14:18]state=3 [08:14:18]No paper [08:14:18]Cover opened [08:14:22]int [08:14:22]Write to MH i2c: 01 00 00 24 07 2B [08:14:22]*** FLAG_PRN_PAP2 reset [08:14:22]Write i2c OK [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 24 07 00 01 00 00 00 FF 0F 41 [08:14:22]state=3 [08:14:22]No paper [08:14:22]Cover closed [08:14:22]int [08:14:22]Write to MH i2c: 01 00 00 25 07 2C [08:14:22]*** FLAG_PRN_PAP1 reset [08:14:22]Write i2c OK [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 [08:14:22]MH_I2C_Read... [08:14:22]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [08:14:22]state=0 [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:22]OFD Sender: No OFD packet to send [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: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:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]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: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]accept exits with 10 [08:28:03]New connection [08:28:03]New thread 3066604900 created [08:28:03]Thread 3066748260 joined [08:28:03]Waiting for new connection... [08:28:03] Sock 10.Parse request [08:28:03]Sock 10.Check first char [08:28:03]Sock 10.First char is OK [08:28:03]request: POST /json_proto HTTP/1.0 [08:28:03]Method: POST [08:28:03]URL: /json_proto [08:28:03]Method is POST - this is cgi request [08:28:03]url: /json_proto [08:28:03]query_string will be loaded in cgi processing [08:28:03]execute_cgi json_proto POST (null) [08:28:03]execute_cgi path=json_proto method=POST [08:28:03]POST find Content-Length [08:28:03]Host: 172.17.63.3:8080 [08:28:03]Content-Length: 676 [08:28:03]Content-Type: application/json [08:28:03] [08:28:03]POST finish read [08:28:03]Found Content-Length = 676 [08:28:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:03]execute_script... [08: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)99616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:03]POST & json_proto [08:28:03]process_json_proto [08:28:03]json parsed OK: [08:28:03]protocol is kg_v1.0 [08:28:03]action value=close_receipt [08:28:03]process_action close_receipt [08:28:03]cmd_close_receipt [08:28:03]MH_GetDate [08:28:03]Write to MH i2c: F0 00 00 26 07 1C [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: F0 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: F0 09 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: F0 09 00 26 07 00 15 4B 1F 67 50 D1 6C 64 FC [08:28:03]GetLastDocTimeStamp 1730103076 [08:28:03]current date 1730104085 [08:28:03]FM_GetShiftState [08:28:03]SAM_PROTO_GetShiftState [08:28:03]wFMCommunicate request_size=4 [08:28:03]MH_SAM_APDU [08:28:03]CAPDU: 80 13 01 00 [08:28:03]Write to MH i2c: E2 08 00 27 07 80 13 01 00 00 00 00 00 AB [08:28:03]Write i2c OK [08:28:03]MH_I2C_Read... [08:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:03]Read from MH i2c: E2 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 0E 00 [08:28:03]MH_I2C_Read... [08:28:03]Read from MH i2c: E2 0E 00 27 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9D [08:28:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:28:03]wFMCommunicate OK [08:28:03]SAM_PROTO_GetShiftState done [08:28:03]FM_GetShiftState done [08:28:03]opened in 1730075526 [08:28:03]opened+sec_in_day 1730161926 [08:28:03]quantity*price = 50041 [08:28:03]sum+1 = 50042 [08:28:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 20 28.10.2024 08:28 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156804 ФПД: 100251031758885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156804&fm=100251031758885&tin=02508201610067®Number=0000000000091693&sum=50000 [08:28:04]StoreToDocumentArchive [08:28:04]shift 538 fd 156804 [08:28:04]save to /storage/0538/doc_00156804 [08:28:04]save last doc name /storage/0538/doc_00156804 to /storage/kkm_last_doc_name [08:28:04]save OK [08:28:04]Clear old archive folders... [08:28:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:04]tlvbuf is 01A6E400 [08:28:04]SAM_PROTO_ClearQueue [08:28:04]wFMCommunicate request_size=4 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 09 00 00 [08:28:04]Write to MH i2c: E2 08 00 34 07 80 09 00 00 00 00 00 00 AD [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [08:28:04]RAPDU: 90 00 [08:28:04]wFMCommunicate OK [08:28:04]SAM_PROTO_ClearQueue done [08:28:04]KKMCreateOFDPacket [08:28:04]OFDProtocolAddRootSTLVToBuf [08:28:04]FM_MakeSignedData [08:28:04]FM_MakeSignedData [08:28:04]SAM_PROTO_SignData [08:28:04]wFMCommunicate request_size=4 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 0D 01 02 [08:28:04]Write to MH i2c: E2 08 00 35 07 80 0D 01 02 00 00 00 00 B5 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 35 07 00 90 00 B0 [08:28:04]RAPDU: 90 00 [08:28:04]wFMCommunicate OK [08:28:04]wFMCommunicate request_size=255 [08:28:04]MH_SAM_APDU [08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 00 00 00 F4 03 04 00 15 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 64 02 00 35 04 06 00 5B [08:28:04]Write to MH i2c: E2 02 01 36 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 00 00 00 F4 03 04 00 15 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 64 02 00 35 04 06 00 5B 00 00 A4 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 36 07 00 90 00 B1 [08:28:04]RAPDU: 90 00 [08:28:04]wFMCommunicate OK [08:28:04]wFMCommunicate request_size=10 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 0D 02 02 05 2D 83 22 E8 25 [08:28:04]Write to MH i2c: E2 0D 00 37 07 80 0D 02 02 05 00 2D 83 22 E8 25 00 00 A1 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 03 00 37 07 00 90 00 B2 [08:28:04]RAPDU: 90 00 [08:28:04]wFMCommunicate OK [08:28:04]wFMCommunicate request_size=4 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 0D 03 02 [08:28:04]Write to MH i2c: E2 08 00 38 07 80 0D 03 02 00 00 00 00 BA [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 0B 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 0B 00 38 07 00 AD 52 5B 45 88 A5 3F 4D 90 00 13 [08:28:04]RAPDU: AD 52 5B 45 88 A5 3F 4D 90 00 [08:28:04]wFMCommunicate OK [08:28:04]SAM_PROTO_SignData done [08:28:04]FM_MakeSignedData done [08:28:04]CreateOFDProtocolMessage [08:28:04]wFMCommunicate request_size=4 [08:28:04]MH_SAM_APDU [08:28:04]CAPDU: 80 11 00 00 [08:28:04]Write to MH i2c: E2 08 00 39 07 80 11 00 00 00 00 00 00 BA [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:04]Read from MH i2c: E2 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 17 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: E2 17 00 39 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [08:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:28:04]wFMCommunicate OK [08:28:04]CreateOFDProtocolMessage done [08:28:04]OFDSenderStorePacket 156804 [08:28:04]StoreOFDPacket docnum=156804 [08:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 82 07 01 40 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 00 00 00 F4 03 04 00 15 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 64 02 00 35 04 06 00 5B 2D 83 22 E8 25 AD 52 5B 45 88 A5 3F 4D [08:28:04]CheckFolder [08:28:04]dirname=/storage/ofd_packets [08:28:04]CheckFolder done [08:28:04]ProducePacketName [08:28:04]name=ofd_packets/00156804 [08:28:04]NVStorageSaveData ofd_packets/00156804 [08:28:04]File name is /storage/ofd_packets/00156804 [08:28:04]Write 301 bytes [08:28:04]NVStorageSaveData done [08:28:04]OFDSenderStorePacket done [08:28:04]KKMCreateOFDPacket done [08:28:04]NVStorageSaveData kkm_last_timestamp [08:28:04]File name is /storage/kkm_last_timestamp [08:28:04]Write 4 bytes [08:28:04]NVStorageSaveData done [08:28:04]OFD Sender: Processing packet 156804 [packets to send 31, broken 30] [08:28:04]ProducePacketName [08:28:04]name=ofd_packets/00156804 [08:28:04]OFD Sender: To server: pG, [08:28:04]CommunicateWithHost lk.salyk.kg:30040 [08:28:04]ConnectInit lk.salyk.kg [08:28:04]ExternCall_PrintAddStr [08:28:04]wPrintStart [08:28:04]Write to MH i2c: 01 00 00 3A 07 41 [08:28:04]Write i2c OK [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 07 00 [08:28:04]MH_I2C_Read... [08:28:04]Read from MH i2c: 01 07 00 3A 07 00 00 00 00 00 FF 0F 56 [08:28:04]RasterBufferAndPrint [08:28:04]line Счет N : (1)99616 [08:28:04]line ИНН: 02508201610067 [08:28:04]line Контрольно-Кассовый Чек [08:28:04]line ПРОДАЖА [08:28:04]line ТРК (МРК, ГНК) : 31 [08:28:04]line Товар: 2710124130 [08:28:04]line Аи-92-К-5 [08:28:04]line 7.480 * 66.90 [08:28:04]line = 500.41 [08:28:04]line НДС 12% НСП 1% [08:28:04]line > о реализуемом товаре [08:28:04]line ОКРУГЛЕНИЕ: -0.41 [08:28:04]line ИТОГО: 500.00 [08:28:04]line Внесено: 500.00 [08:28:04]line СДАЧА: 0.00 [08:28:04]line НСП 1% : 4.43 [08:28:04]line НДС 12% : 53.14 [08:28:04]line Наличными: 500.00 [08:28:04]line Безнал.: 0.00 [08:28:04]line Место: АЗС № 143 "Партнер Нефть" [08:28:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:28:04]line СНО: Общий режим [08:28:04]line Чек 20 28.10.2024 08:28 [08:28:04]line Смена: 538 ФФД: 1.0 [08:28:04]line ЗНМ: 0300000096 [08:28:04]line РНМ: 0000000000091693 [08:28:04]line Версия ККМ: 001 [08:28:04]line ФМ: 0000000000871792 [08:28:04]line ФД: 156804 [08:28:04]line ФПД: 100251031758885 [08:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156804&fm=100251031758885&tin=02508201610067®Number=0000000000091693&sum=50000 [08:28:05]Connected sock=11 [08: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 37 39 32 0F 01 00 00 E3 82 07 01 40 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 14 00 00 00 F4 03 04 00 15 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 64 02 00 35 04 06 00 5B 2D 83 22 E8 25 AD 52 5B 45 88 A5 3F 4D [08:28:05]written 0, free lines is 4095 [08: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 37 39 32 4F 00 00 00 C4 14 47 00 BE 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 37 39 32 10 04 04 00 84 64 02 00 F4 03 04 00 82 F0 1E 67 B6 04 01 00 00 7F 6D EE 91 B2 21 5E 56 [08:28:05]CommunicateWithHost err = 0 [08:28:05]CheckOFDResponse [08:28:05]1017 (14) - 77093643461234 [08:28:05]1041 (16) - 0000000000871792 [08:28:05]1040 (4) - 156804 [08:28:05]1012 (4) - 28.10.2024 02:01 [08:28:05]1206 (1) - 0 [08:28:05]OFD Sender: Remove packet 156804 [08:28:05]ProducePacketName [08:28:05]name=ofd_packets/00156804 [08:28:05]NVStorageDeleteData [08:28:05]Write to MH i2c: 01 00 00 65 07 6C [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 07 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: 01 07 00 65 07 00 00 00 00 00 DE 0C 5D [08:28:05]RasterBufferAndPrint [08:28:05]line [08:28:05]line [08:28:05]line [08:28:05]line [08:28:05]line [08:28:05]written 0, free lines is 3300 [08:28:05]process_action close_receipt done [08:28:05]requested_data is exist [08:28:05]produce_requested_data [08:28:05]requested_item fm.sn is exist - process it [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 11 00 00 [08:28:05]Write to MH i2c: E2 08 00 6C 07 80 11 00 00 00 00 00 00 ED [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:05]Read from MH i2c: E2 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 [08:28:05]MH_I2C_Read... [08:28:05]Read from MH i2c: E2 17 00 6C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [08:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:28:05]wFMCommunicate OK [08:28:05]requested_item fd.num is exist - process it [08:28:05]SAM_PROTO_GetFieldsCounters [08:28:05]wFMCommunicate request_size=4 [08:28:05]MH_SAM_APDU [08:28:05]CAPDU: 80 13 00 00 [08:28:05]Write to MH i2c: E2 08 00 6D 07 80 13 00 00 00 00 00 00 F0 [08:28:05]Write i2c OK [08:28:05]MH_I2C_Read... [08:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:06]Read from MH i2c: E2 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: E2 62 00 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: E2 62 00 6D 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 64 02 00 0E 04 04 00 1A 02 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 58 [08:28: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 64 02 00 0E 04 04 00 1A 02 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:28:06]wFMCommunicate OK [08:28:06]SAM_PROTO_GetFieldsCounters done [08:28:06]requested_item shift.num is exist - process it [08:28:06]requested_item shift.opened is exist - process it [08:28:06]req_shift_opened [08:28:06]FM_GetShiftState [08:28:06]SAM_PROTO_GetShiftState [08:28:06]wFMCommunicate request_size=4 [08:28:06]MH_SAM_APDU [08:28:06]CAPDU: 80 13 01 00 [08:28:06]Write to MH i2c: E2 08 00 6E 07 80 13 01 00 00 00 00 00 F2 [08:28:06]OFD Sender: No OFD packet to send [08:28:06]Write i2c OK [08:28:06]MH_I2C_Read... [08:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:06]Read from MH i2c: E2 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: E2 0E 00 [08:28:06]MH_I2C_Read... [08:28:06]Read from MH i2c: E2 0E 00 6E 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E4 [08:28:06]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:28:06]wFMCommunicate OK [08:28:06]SAM_PROTO_GetShiftState done [08:28:06]FM_GetShiftState done [08:28:06]req_shift_opened done [08:28:06]requested_item shift.open_date is exist - process it [08:28:06]req_shift_open_date [08:28:06]req_shift_open_date done [08:28:06]produce_requested_data done [08:28:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156804,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:28:06]process_action_free close_receipt [08:28:06]json_value_free [08:28:06]json_value_free done [08:28:06]process_json_proto returns [08:28:06]Send response to host [08:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156804,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:28:06]free response buf [08:28:06]execute_script done [08:28:06]execute_script returns [08:28:06]free content buf [08:28:06]Sock 10.Close socket [08:28:06]Sock 10.Thread stoped [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:04]accept exits with 7 [08:29:04]New connection [08:29:04]New thread 3066748260 created [08:29:04]Thread 3066604900 joined [08:29:04]Waiting for new connection... [08:29:04] Sock 7.Parse request [08:29:04]Sock 7.Check first char [08:29:04]Sock 7.First char is OK [08:29:04]request: POST /json_proto HTTP/1.0 [08:29:04]Method: POST [08:29:04]URL: /json_proto [08:29:04]Method is POST - this is cgi request [08:29:04]url: /json_proto [08:29:04]query_string will be loaded in cgi processing [08:29:04]execute_cgi json_proto POST (null) [08:29:04]execute_cgi path=json_proto method=POST [08:29:04]POST find Content-Length [08:29:04]Host: 172.17.63.3:8080 [08:29:04]Content-Length: 676 [08:29:04]Content-Type: application/json [08:29:04] [08:29:04]POST finish read [08:29:04]Found Content-Length = 676 [08:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:29:04]execute_script... [08:29: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)99617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:29:04]POST & json_proto [08:29:04]process_json_proto [08:29:04]json parsed OK: [08:29:04]protocol is kg_v1.0 [08:29:04]action value=close_receipt [08:29:04]process_action close_receipt [08:29:04]cmd_close_receipt [08:29:04]MH_GetDate [08:29:04]Write to MH i2c: F0 00 00 6F 07 65 [08:29:04]Write i2c OK [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: F0 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: F0 09 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: F0 09 00 6F 07 00 52 4B 1F 67 50 D1 6C 64 82 [08:29:04]GetLastDocTimeStamp 1730104085 [08:29:04]current date 1730104146 [08:29:04]FM_GetShiftState [08:29:04]SAM_PROTO_GetShiftState [08:29:04]wFMCommunicate request_size=4 [08:29:04]MH_SAM_APDU [08:29:04]CAPDU: 80 13 01 00 [08:29:04]Write to MH i2c: E2 08 00 70 07 80 13 01 00 00 00 00 00 F4 [08:29:04]Write i2c OK [08:29:04]MH_I2C_Read... [08:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:04]Read from MH i2c: E2 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 0E 00 [08:29:04]MH_I2C_Read... [08:29:04]Read from MH i2c: E2 0E 00 70 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E6 [08:29:04]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:29:04]wFMCommunicate OK [08:29:04]SAM_PROTO_GetShiftState done [08:29:04]FM_GetShiftState done [08:29:04]opened in 1730075526 [08:29:04]opened+sec_in_day 1730161926 [08:29:04]quantity*price = 40006 [08:29:04]sum+1 = 40007 [08:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 21 28.10.2024 08:29 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156805 ФПД: 253150604509111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082906&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156805&fm=253150604509111&tin=02508201610067®Number=0000000000091693&sum=40000 [08:29:05]StoreToDocumentArchive [08:29:05]shift 538 fd 156805 [08:29:05]save to /storage/0538/doc_00156805 [08:29:05]save last doc name /storage/0538/doc_00156805 to /storage/kkm_last_doc_name [08:29:05]save OK [08:29:05]Clear old archive folders... [08:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:05]tlvbuf is 01A78A40 [08:29:05]SAM_PROTO_ClearQueue [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 09 00 00 [08:29:05]Write to MH i2c: E2 08 00 7D 07 80 09 00 00 00 00 00 00 F6 [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:05]Read from MH i2c: E2 03 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [08:29:05]RAPDU: 90 00 [08:29:05]wFMCommunicate OK [08:29:05]SAM_PROTO_ClearQueue done [08:29:05]KKMCreateOFDPacket [08:29:05]OFDProtocolAddRootSTLVToBuf [08:29:05]FM_MakeSignedData [08:29:05]FM_MakeSignedData [08:29:05]SAM_PROTO_SignData [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 0D 01 02 [08:29:05]Write to MH i2c: E2 08 00 7E 07 80 0D 01 02 00 00 00 00 FE [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [08:29:05]RAPDU: 90 00 [08:29:05]wFMCommunicate OK [08:29:05]wFMCommunicate request_size=255 [08:29:05]MH_SAM_APDU [08:29: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 64 02 00 35 04 06 00 E6 [08:29:05]Write to MH i2c: E2 02 01 7F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 64 02 00 35 04 06 00 E6 00 00 86 [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [08:29:05]RAPDU: 90 00 [08:29:05]wFMCommunicate OK [08:29:05]wFMCommunicate request_size=10 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 0D 02 02 05 3D 37 DB 3F B7 [08:29:05]Write to MH i2c: E2 0D 00 80 07 80 0D 02 02 05 00 3D 37 DB 3F B7 00 00 50 [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 03 00 80 07 00 90 00 FB [08:29:05]RAPDU: 90 00 [08:29:05]wFMCommunicate OK [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 0D 03 02 [08:29:05]Write to MH i2c: E2 08 00 81 07 80 0D 03 02 00 00 00 00 03 [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0B 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0B 00 81 07 00 D4 2E 1B 0B CC C3 C3 B9 90 00 37 [08:29:05]RAPDU: D4 2E 1B 0B CC C3 C3 B9 90 00 [08:29:05]wFMCommunicate OK [08:29:05]SAM_PROTO_SignData done [08:29:05]FM_MakeSignedData done [08:29:05]CreateOFDProtocolMessage [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 11 00 00 [08:29:05]Write to MH i2c: E2 08 00 82 07 80 11 00 00 00 00 00 00 03 [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 82 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [08:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:29:06]wFMCommunicate OK [08:29:06]CreateOFDProtocolMessage done [08:29:06]OFDSenderStorePacket 156805 [08:29:06]StoreOFDPacket docnum=156805 [08:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 AA 07 01 14 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 64 02 00 35 04 06 00 E6 3D 37 DB 3F B7 D4 2E 1B 0B CC C3 C3 B9 [08:29:06]CheckFolder [08:29:06]dirname=/storage/ofd_packets [08:29:06]CheckFolder done [08:29:06]ProducePacketName [08:29:06]name=ofd_packets/00156805 [08:29:06]NVStorageSaveData ofd_packets/00156805 [08:29:06]File name is /storage/ofd_packets/00156805 [08:29:06]Write 301 bytes [08:29:06]NVStorageSaveData done [08:29:06]OFDSenderStorePacket done [08:29:06]KKMCreateOFDPacket done [08:29:06]NVStorageSaveData kkm_last_timestamp [08:29:06]File name is /storage/kkm_last_timestamp [08:29:06]Write 4 bytes [08:29:06]NVStorageSaveData done [08:29:06]ExternCall_PrintAddStr [08:29:06]wPrintStart [08:29:06]Write to MH i2c: 01 00 00 83 07 8A [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 83 07 00 00 00 00 00 FF 0F 9F [08:29:06]RasterBufferAndPrint [08:29:06]line Счет N : (1)99617 [08:29:06]line ИНН: 02508201610067 [08:29:06]line Контрольно-Кассовый Чек [08:29:06]line ПРОДАЖА [08:29:06]line ТРК (МРК, ГНК) : 31 [08:29:06]line Товар: 2710124130 [08:29:06]line Аи-92-К-5 [08:29:06]line 5.980 * 66.90 [08:29:06]line = 400.06 [08:29:06]line НДС 12% НСП 1% [08:29:06]line > о реализуемом товаре [08:29:06]line ОКРУГЛЕНИЕ: -0.06 [08:29:06]line ИТОГО: 400.00 [08:29:06]line Внесено: 400.00 [08:29:06]line СДАЧА: 0.00 [08:29:06]line НСП 1% : 3.54 [08:29:06]line НДС 12% : 42.48 [08:29:06]line Наличными: 400.00 [08:29:06]line Безнал.: 0.00 [08:29:06]line Место: АЗС № 143 "Партнер Нефть" [08:29:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:29:06]line СНО: Общий режим [08:29:06]line Чек 21 28.10.2024 08:29 [08:29:06]line Смена: 538 ФФД: 1.0 [08:29:06]line ЗНМ: 0300000096 [08:29:06]line РНМ: 0000000000091693 [08:29:06]line Версия ККМ: 001 [08:29:06]line ФМ: 0000000000871792 [08:29:06]line ФД: 156805 [08:29:06]line ФПД: 253150604509111 [08:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082906&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156805&fm=253150604509111&tin=02508201610067®Number=0000000000091693&sum=40000 [08:29:06]OFD Sender: Processing packet 156805 [packets to send 31, broken 30] [08:29:06]ProducePacketName [08:29:06]name=ofd_packets/00156805 [08:29:06]OFD Sender: To server: pG, [08:29:06]CommunicateWithHost lk.salyk.kg:30040 [08:29:06]ConnectInit lk.salyk.kg [08:29:06]written 0, free lines is 4095 [08:29:06]Connected sock=11 [08:29: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 37 39 32 0F 01 00 00 F8 AA 07 01 14 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 52 4B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 64 02 00 35 04 06 00 E6 3D 37 DB 3F B7 D4 2E 1B 0B CC C3 C3 B9 [08:29:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1A DB 47 00 5E 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 37 39 32 10 04 04 00 85 64 02 00 F4 03 04 00 BF F0 1E 67 B6 04 01 00 00 BC 0D 29 88 AF F0 90 81 [08:29:06]CommunicateWithHost err = 0 [08:29:06]CheckOFDResponse [08:29:06]1017 (14) - 77093643461234 [08:29:06]1041 (16) - 0000000000871792 [08:29:06]1040 (4) - 156805 [08:29:06]1012 (4) - 28.10.2024 02:02 [08:29:06]1206 (1) - 0 [08:29:06]OFD Sender: Remove packet 156805 [08:29:06]ProducePacketName [08:29:06]name=ofd_packets/00156805 [08:29:06]NVStorageDeleteData [08:29:06]Write to MH i2c: 01 00 00 AE 07 B5 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 E1 0C A9 [08:29:06]RasterBufferAndPrint [08:29:06]line [08:29:06]line [08:29:06]line [08:29:06]line [08:29:06]line [08:29:06]written 0, free lines is 3303 [08:29:06]process_action close_receipt done [08:29:06]requested_data is exist [08:29:06]produce_requested_data [08:29:06]requested_item fm.sn is exist - process it [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 11 00 00 [08:29:06]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [08:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:29:06]wFMCommunicate OK [08:29:06]requested_item fd.num is exist - process it [08:29:06]SAM_PROTO_GetFieldsCounters [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 13 00 00 [08:29:06]Write to MH i2c: E2 08 00 B6 07 80 13 00 00 00 00 00 00 39 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 62 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 62 00 B6 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 64 02 00 0E 04 04 00 1A 02 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 A5 [08:29: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 64 02 00 0E 04 04 00 1A 02 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:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_GetFieldsCounters done [08:29:07]requested_item shift.num is exist - process it [08:29:07]requested_item shift.opened is exist - process it [08:29:07]req_shift_opened [08:29:07]FM_GetShiftState [08:29:07]SAM_PROTO_GetShiftState [08:29:07]wFMCommunicate request_size=4 [08:29:07]MH_SAM_APDU [08:29:07]CAPDU: 80 13 01 00 [08:29:07]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:07]Read from MH i2c: E2 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2D [08:29:07]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:29:07]wFMCommunicate OK [08:29:07]SAM_PROTO_GetShiftState done [08:29:07]FM_GetShiftState done [08:29:07]req_shift_opened done [08:29:07]requested_item shift.open_date is exist - process it [08:29:07]req_shift_open_date [08:29:07]req_shift_open_date done [08:29:07]produce_requested_data done [08:29:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156805,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:29:07]process_action_free close_receipt [08:29:07]json_value_free [08:29:07]json_value_free done [08:29:07]process_json_proto returns [08:29:07]Send response to host [08:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156805,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:29:07]free response buf [08:29:07]execute_script done [08:29:07]execute_script returns [08:29:07]free content buf [08:29:07]Sock 7.Close socket [08:29:07]Sock 7.Thread stoped [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:13]accept exits with 9 [08:33:13]New connection [08:33:13]New thread 3066604900 created [08:33:13]Thread 3066748260 joined [08:33:13]Waiting for new connection... [08:33:13] Sock 9.Parse request [08:33:13]Sock 9.Check first char [08:33:13]Sock 9.First char is OK [08:33:13]request: POST /json_proto HTTP/1.0 [08:33:13]Method: POST [08:33:13]URL: /json_proto [08:33:13]Method is POST - this is cgi request [08:33:13]url: /json_proto [08:33:13]query_string will be loaded in cgi processing [08:33:13]execute_cgi json_proto POST (null) [08:33:13]execute_cgi path=json_proto method=POST [08:33:13]POST find Content-Length [08:33:13]Host: 172.17.63.3:8080 [08:33:13]Content-Length: 676 [08:33:13]Content-Type: application/json [08:33:13] [08:33:13]POST finish read [08:33:13]Found Content-Length = 676 [08:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:13]execute_script... [08:33: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)99618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:13]POST & json_proto [08:33:13]process_json_proto [08:33:13]json parsed OK: [08:33:13]protocol is kg_v1.0 [08:33:13]action value=close_receipt [08:33:13]process_action close_receipt [08:33:13]cmd_close_receipt [08:33:13]MH_GetDate [08:33:13]Write to MH i2c: F0 00 00 B8 07 AE [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 09 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: F0 09 00 B8 07 00 4B 4C 1F 67 50 D1 6C 64 C5 [08:33:13]GetLastDocTimeStamp 1730104146 [08:33:13]current date 1730104395 [08:33:13]FM_GetShiftState [08:33:13]SAM_PROTO_GetShiftState [08:33:13]wFMCommunicate request_size=4 [08:33:13]MH_SAM_APDU [08:33:13]CAPDU: 80 13 01 00 [08:33:13]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [08:33:13]Write i2c OK [08:33:13]MH_I2C_Read... [08:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:13]Read from MH i2c: E2 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 [08:33:13]MH_I2C_Read... [08:33:13]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2F [08:33:13]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:33:13]wFMCommunicate OK [08:33:13]SAM_PROTO_GetShiftState done [08:33:13]FM_GetShiftState done [08:33:13]opened in 1730075526 [08:33:13]opened+sec_in_day 1730161926 [08:33:13]quantity*price = 50041 [08:33:13]sum+1 = 50042 [08:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 22 28.10.2024 08:33 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156806 ФПД: 5811129942451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083315&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156806&fm=5811129942451&tin=02508201610067®Number=0000000000091693&sum=50000 [08:33:14]StoreToDocumentArchive [08:33:14]shift 538 fd 156806 [08:33:14]save to /storage/0538/doc_00156806 [08:33:14]save last doc name /storage/0538/doc_00156806 to /storage/kkm_last_doc_name [08:33:14]save OK [08:33:14]Clear old archive folders... [08:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:14]tlvbuf is 01A53DE0 [08:33:14]SAM_PROTO_ClearQueue [08:33:14]wFMCommunicate request_size=4 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 09 00 00 [08:33:14]Write to MH i2c: E2 08 00 C6 07 80 09 00 00 00 00 00 00 3F [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:14]Read from MH i2c: E2 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [08:33:14]RAPDU: 90 00 [08:33:14]wFMCommunicate OK [08:33:14]SAM_PROTO_ClearQueue done [08:33:14]KKMCreateOFDPacket [08:33:14]OFDProtocolAddRootSTLVToBuf [08:33:14]FM_MakeSignedData [08:33:14]FM_MakeSignedData [08:33:14]SAM_PROTO_SignData [08:33:14]wFMCommunicate request_size=4 [08:33:14]MH_SAM_APDU [08:33:14]CAPDU: 80 0D 01 02 [08:33:14]Write to MH i2c: E2 08 00 C7 07 80 0D 01 02 00 00 00 00 47 [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:14]Read from MH i2c: E2 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 [08:33:14]MH_I2C_Read... [08:33:14]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [08:33:14]RAPDU: 90 00 [08:33:14]wFMCommunicate OK [08:33:14]wFMCommunicate request_size=255 [08:33:14]MH_SAM_APDU [08:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 16 00 00 00 F4 03 04 00 4B 4C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 64 02 00 35 04 06 00 05 [08:33:14]Write to MH i2c: E2 02 01 C8 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 16 00 00 00 F4 03 04 00 4B 4C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 64 02 00 35 04 06 00 05 00 00 1B [08:33:14]Write i2c OK [08:33:14]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [08:33:15]RAPDU: 90 00 [08:33:15]wFMCommunicate OK [08:33:15]wFMCommunicate request_size=10 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 0D 02 02 05 49 02 56 01 B3 [08:33:15]Write to MH i2c: E2 0D 00 C9 07 80 0D 02 02 05 00 49 02 56 01 B3 00 00 A9 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [08:33:15]RAPDU: 90 00 [08:33:15]wFMCommunicate OK [08:33:15]wFMCommunicate request_size=4 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 0D 03 02 [08:33:15]Write to MH i2c: E2 08 00 CA 07 80 0D 03 02 00 00 00 00 4C [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0B 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0B 00 CA 07 00 31 8A 5C 08 09 42 8E DE 90 00 23 [08:33:15]RAPDU: 31 8A 5C 08 09 42 8E DE 90 00 [08:33:15]wFMCommunicate OK [08:33:15]SAM_PROTO_SignData done [08:33:15]FM_MakeSignedData done [08:33:15]CreateOFDProtocolMessage [08:33:15]wFMCommunicate request_size=4 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 11 00 00 [08:33:15]Write to MH i2c: E2 08 00 CB 07 80 11 00 00 00 00 00 00 4C [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 17 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 17 00 CB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [08:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:33:15]wFMCommunicate OK [08:33:15]CreateOFDProtocolMessage done [08:33:15]OFDSenderStorePacket 156806 [08:33:15]StoreOFDPacket docnum=156806 [08:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 74 6D 07 01 6B 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 16 00 00 00 F4 03 04 00 4B 4C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 64 02 00 35 04 06 00 05 49 02 56 01 B3 31 8A 5C 08 09 42 8E DE [08:33:15]CheckFolder [08:33:15]dirname=/storage/ofd_packets [08:33:15]CheckFolder done [08:33:15]ProducePacketName [08:33:15]name=ofd_packets/00156806 [08:33:15]NVStorageSaveData ofd_packets/00156806 [08:33:15]File name is /storage/ofd_packets/00156806 [08:33:15]Write 301 bytes [08:33:15]NVStorageSaveData done [08:33:15]OFDSenderStorePacket done [08:33:15]KKMCreateOFDPacket done [08:33:15]NVStorageSaveData kkm_last_timestamp [08:33:15]File name is /storage/kkm_last_timestamp [08:33:15]Write 4 bytes [08:33:15]NVStorageSaveData done [08:33:15]ExternCall_PrintAddStr [08:33:15]wPrintStart [08:33:15]Write to MH i2c: 01 00 00 CC 07 D3 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 07 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FF 0F E8 [08:33:15]RasterBufferAndPrint [08:33:15]line Счет N : (1)99618 [08:33:15]line ИНН: 02508201610067 [08:33:15]line Контрольно-Кассовый Чек [08:33:15]line ПРОДАЖА [08:33:15]line ТРК (МРК, ГНК) : 31 [08:33:15]line Товар: 2710124130 [08:33:15]line Аи-92-К-5 [08:33:15]line 7.480 * 66.90 [08:33:15]line = 500.41 [08:33:15]line НДС 12% НСП 1% [08:33:15]line > о реализуемом товаре [08:33:15]line ОКРУГЛЕНИЕ: -0.41 [08:33:15]line ИТОГО: 500.00 [08:33:15]line Внесено: 500.00 [08:33:15]line СДАЧА: 0.00 [08:33:15]line НСП 1% : 4.43 [08:33:15]line НДС 12% : 53.14 [08:33:15]line Наличными: 500.00 [08:33:15]line Безнал.: 0.00 [08:33:15]line Место: АЗС № 143 "Партнер Нефть" [08:33:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:33:15]line СНО: Общий режим [08:33:15]line Чек 22 28.10.2024 08:33 [08:33:15]line Смена: 538 ФФД: 1.0 [08:33:15]line ЗНМ: 0300000096 [08:33:15]line РНМ: 0000000000091693 [08:33:15]line Версия ККМ: 001 [08:33:15]line ФМ: 0000000000871792 [08:33:15]line ФД: 156806 [08:33:15]line ФПД: 5811129942451 [08:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T083315&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156806&fm=5811129942451&tin=02508201610067®Number=0000000000091693&sum=50000 [08:33:15]OFD Sender: Processing packet 156806 [packets to send 31, broken 30] [08:33:15]ProducePacketName [08:33:15]name=ofd_packets/00156806 [08:33:15]OFD Sender: To server: pG, [08:33:15]CommunicateWithHost lk.salyk.kg:30040 [08:33:15]ConnectInit lk.salyk.kg [08:33:15]written 0, free lines is 4095 [08:33:15]Connected sock=11 [08:33: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 37 39 32 0F 01 00 00 74 6D 07 01 6B 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 16 00 00 00 F4 03 04 00 4B 4C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 64 02 00 35 04 06 00 05 49 02 56 01 B3 31 8A 5C 08 09 42 8E DE [08:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 74 5B 47 00 B6 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 64 02 00 F4 03 04 00 B8 F1 1E 67 B6 04 01 00 00 A4 AF 7A 1E 3A 97 78 51 [08:33:15]CommunicateWithHost err = 0 [08:33:15]CheckOFDResponse [08:33:15]1017 (14) - 77093643461234 [08:33:15]1041 (16) - 0000000000871792 [08:33:15]1040 (4) - 156806 [08:33:15]1012 (4) - 28.10.2024 02:06 [08:33:15]1206 (1) - 0 [08:33:15]OFD Sender: Remove packet 156806 [08:33:15]ProducePacketName [08:33:15]name=ofd_packets/00156806 [08:33:15]NVStorageDeleteData [08:33:16]Write to MH i2c: 01 00 00 F7 07 FE [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 07 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: 01 07 00 F7 07 00 00 00 00 00 EA 0C FB [08:33:16]RasterBufferAndPrint [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]line [08:33:16]written 0, free lines is 3312 [08:33:16]process_action close_receipt done [08:33:16]requested_data is exist [08:33:16]produce_requested_data [08:33:16]requested_item fm.sn is exist - process it [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 11 00 00 [08:33:16]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 17 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [08:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:33:16]wFMCommunicate OK [08:33:16]requested_item fd.num is exist - process it [08:33:16]SAM_PROTO_GetFieldsCounters [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 13 00 00 [08:33:16]Write to MH i2c: E2 08 00 FF 07 80 13 00 00 00 00 00 00 82 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 62 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 62 00 FF 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 64 02 00 0E 04 04 00 1A 02 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 F2 [08:33: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:16]wFMCommunicate OK [08:33:16]SAM_PROTO_GetFieldsCounters done [08:33:16]requested_item shift.num is exist - process it [08:33:16]requested_item shift.opened is exist - process it [08:33:16]req_shift_opened [08:33:16]FM_GetShiftState [08:33:16]SAM_PROTO_GetShiftState [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 13 01 00 [08:33:16]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 0E 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 77 [08:33:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:33:16]wFMCommunicate OK [08:33:16]SAM_PROTO_GetShiftState done [08:33:16]FM_GetShiftState done [08:33:16]req_shift_opened done [08:33:16]requested_item shift.open_date is exist - process it [08:33:16]req_shift_open_date [08:33:16]req_shift_open_date done [08:33:16]produce_requested_data done [08:33:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156806,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:33:16]process_action_free close_receipt [08:33:16]json_value_free [08:33:16]json_value_free done [08:33:16]process_json_proto returns [08:33:16]Send response to host [08:33:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156806,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:33:16]free response buf [08:33:16]execute_script done [08:33:16]execute_script returns [08:33:16]free content buf [08:33:16]Sock 9.Close socket [08:33:16]Sock 9.Thread stoped [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:55]accept exits with 7 [08:42:55]New connection [08:42:55]New thread 3066748260 created [08:42:55]Thread 3066604900 joined [08:42:55]Waiting for new connection... [08:42:55] Sock 7.Parse request [08:42:55]Sock 7.Check first char [08:42:55]Sock 7.First char is OK [08:42:55]request: POST /json_proto HTTP/1.0 [08:42:55]Method: POST [08:42:55]URL: /json_proto [08:42:55]Method is POST - this is cgi request [08:42:55]url: /json_proto [08:42:55]query_string will be loaded in cgi processing [08:42:55]execute_cgi json_proto POST (null) [08:42:55]execute_cgi path=json_proto method=POST [08:42:55]POST find Content-Length [08:42:55]Host: 172.17.63.3:8080 [08:42:55]Content-Length: 676 [08:42:55]Content-Type: application/json [08:42:55] [08:42:55]POST finish read [08:42:55]Found Content-Length = 676 [08:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:42:55]execute_script... [08:42: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)99619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "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:42:55]POST & json_proto [08:42:55]process_json_proto [08:42:55]json parsed OK: [08:42:55]protocol is kg_v1.0 [08:42:55]action value=close_receipt [08:42:55]process_action close_receipt [08:42:55]cmd_close_receipt [08:42:55]MH_GetDate [08:42:55]Write to MH i2c: F0 00 00 01 08 F8 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 09 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: F0 09 00 01 08 00 91 4E 1F 67 50 D1 6C 64 57 [08:42:55]GetLastDocTimeStamp 1730104395 [08:42:55]current date 1730104977 [08:42:55]FM_GetShiftState [08:42:55]SAM_PROTO_GetShiftState [08:42:55]wFMCommunicate request_size=4 [08:42:55]MH_SAM_APDU [08:42:55]CAPDU: 80 13 01 00 [08:42:55]Write to MH i2c: E2 08 00 02 08 80 13 01 00 00 00 00 00 87 [08:42:55]Write i2c OK [08:42:55]MH_I2C_Read... [08:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:55]Read from MH i2c: E2 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0E 00 [08:42:55]MH_I2C_Read... [08:42:55]Read from MH i2c: E2 0E 00 02 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 79 [08:42:55]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:42:55]wFMCommunicate OK [08:42:55]SAM_PROTO_GetShiftState done [08:42:55]FM_GetShiftState done [08:42:55]opened in 1730075526 [08:42:55]opened+sec_in_day 1730161926 [08:42:55]quantity*price = 40006 [08:42:55]sum+1 = 40007 [08:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 23 28.10.2024 08:42 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156807 ФПД: 96320946812833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084257&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156807&fm=96320946812833&tin=02508201610067®Number=0000000000091693&sum=40000 [08:42:56]StoreToDocumentArchive [08:42:56]shift 538 fd 156807 [08:42:56]save to /storage/0538/doc_00156807 [08:42:56]save last doc name /storage/0538/doc_00156807 to /storage/kkm_last_doc_name [08:42:56]save OK [08:42:56]Clear old archive folders... [08:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:56]tlvbuf is 01A3A300 [08:42:56]SAM_PROTO_ClearQueue [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 09 00 00 [08:42:56]Write to MH i2c: E2 08 00 0F 08 80 09 00 00 00 00 00 00 89 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_ClearQueue done [08:42:56]KKMCreateOFDPacket [08:42:56]OFDProtocolAddRootSTLVToBuf [08:42:56]FM_MakeSignedData [08:42:56]FM_MakeSignedData [08:42:56]SAM_PROTO_SignData [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 01 02 [08:42:56]Write to MH i2c: E2 08 00 10 08 80 0D 01 02 00 00 00 00 91 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=255 [08:42:56]MH_SAM_APDU [08:42: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 91 4E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 64 02 00 35 04 06 00 57 [08:42:56]Write to MH i2c: E2 02 01 11 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 91 4E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 64 02 00 35 04 06 00 57 00 00 D0 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=10 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 02 02 05 9A 77 D1 B7 A1 [08:42:56]Write to MH i2c: E2 0D 00 12 08 80 0D 02 02 05 00 9A 77 D1 B7 A1 00 00 D8 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [08:42:56]RAPDU: 90 00 [08:42:56]wFMCommunicate OK [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 0D 03 02 [08:42:56]Write to MH i2c: E2 08 00 13 08 80 0D 03 02 00 00 00 00 96 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0B 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 0B 00 13 08 00 BF 94 51 26 1C 4C 6F CF 90 00 07 [08:42:56]RAPDU: BF 94 51 26 1C 4C 6F CF 90 00 [08:42:56]wFMCommunicate OK [08:42:56]SAM_PROTO_SignData done [08:42:56]FM_MakeSignedData done [08:42:56]CreateOFDProtocolMessage [08:42:56]wFMCommunicate request_size=4 [08:42:56]MH_SAM_APDU [08:42:56]CAPDU: 80 11 00 00 [08:42:56]Write to MH i2c: E2 08 00 14 08 80 11 00 00 00 00 00 00 96 [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:56]Read from MH i2c: E2 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: E2 17 00 14 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [08:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:42:56]wFMCommunicate OK [08:42:56]CreateOFDProtocolMessage done [08:42:56]OFDSenderStorePacket 156807 [08:42:56]StoreOFDPacket docnum=156807 [08:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 51 09 07 01 F6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 91 4E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 64 02 00 35 04 06 00 57 9A 77 D1 B7 A1 BF 94 51 26 1C 4C 6F CF [08:42:56]CheckFolder [08:42:56]dirname=/storage/ofd_packets [08:42:56]CheckFolder done [08:42:56]ProducePacketName [08:42:56]name=ofd_packets/00156807 [08:42:56]NVStorageSaveData ofd_packets/00156807 [08:42:56]File name is /storage/ofd_packets/00156807 [08:42:56]Write 301 bytes [08:42:56]NVStorageSaveData done [08:42:56]OFDSenderStorePacket done [08:42:56]KKMCreateOFDPacket done [08:42:56]NVStorageSaveData kkm_last_timestamp [08:42:56]File name is /storage/kkm_last_timestamp [08:42:56]Write 4 bytes [08:42:56]NVStorageSaveData done [08:42:56]ExternCall_PrintAddStr [08:42:56]wPrintStart [08:42:56]Write to MH i2c: 01 00 00 15 08 1D [08:42:56]Write i2c OK [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 07 00 [08:42:56]MH_I2C_Read... [08:42:56]Read from MH i2c: 01 07 00 15 08 00 00 00 00 00 FF 0F 32 [08:42:56]RasterBufferAndPrint [08:42:56]line Счет N : (1)99619 [08:42:56]line ИНН: 02508201610067 [08:42:56]line Контрольно-Кассовый Чек [08:42:56]line ПРОДАЖА [08:42:56]line ТРК (МРК, ГНК) : 31 [08:42:56]line Товар: 2710124130 [08:42:56]line Аи-92-К-5 [08:42:56]line 5.980 * 66.90 [08:42:56]line = 400.06 [08:42:56]line НДС 12% НСП 1% [08:42:56]line > о реализуемом товаре [08:42:56]line ОКРУГЛЕНИЕ: -0.06 [08:42:56]line ИТОГО: 400.00 [08:42:56]line Внесено: 400.00 [08:42:56]line СДАЧА: 0.00 [08:42:56]line НСП 1% : 3.54 [08:42:56]line НДС 12% : 42.48 [08:42:56]line Наличными: 400.00 [08:42:56]line Безнал.: 0.00 [08:42:56]line Место: АЗС № 143 "Партнер Нефть" [08:42:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:42:56]line СНО: Общий режим [08:42:56]line Чек 23 28.10.2024 08:42 [08:42:56]line Смена: 538 ФФД: 1.0 [08:42:56]line ЗНМ: 0300000096 [08:42:56]line РНМ: 0000000000091693 [08:42:56]line Версия ККМ: 001 [08:42:56]line ФМ: 0000000000871792 [08:42:56]line ФД: 156807 [08:42:56]line ФПД: 96320946812833 [08:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084257&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156807&fm=96320946812833&tin=02508201610067®Number=0000000000091693&sum=40000 [08:42:57]OFD Sender: Processing packet 156807 [packets to send 31, broken 30] [08:42:57]ProducePacketName [08:42:57]name=ofd_packets/00156807 [08:42:57]OFD Sender: To server: pG, [08:42:57]CommunicateWithHost lk.salyk.kg:30040 [08:42:57]ConnectInit lk.salyk.kg [08:42:57]written 0, free lines is 4095 [08:42:57]Connected sock=10 [08:42: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 37 39 32 0F 01 00 00 51 09 07 01 F6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 91 4E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 64 02 00 35 04 06 00 57 9A 77 D1 B7 A1 BF 94 51 26 1C 4C 6F CF [08:42:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 95 47 00 5A 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 64 02 00 F4 03 04 00 FE F3 1E 67 B6 04 01 00 00 44 6F 3A 47 18 65 51 14 [08:42:57]CommunicateWithHost err = 0 [08:42:57]CheckOFDResponse [08:42:57]1017 (14) - 77093643461234 [08:42:57]1041 (16) - 0000000000871792 [08:42:57]1040 (4) - 156807 [08:42:57]1012 (4) - 28.10.2024 02:16 [08:42:57]1206 (1) - 0 [08:42:57]OFD Sender: Remove packet 156807 [08:42:57]ProducePacketName [08:42:57]name=ofd_packets/00156807 [08:42:57]NVStorageDeleteData [08:42:57]Write to MH i2c: 01 00 00 40 08 48 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 07 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 E1 0C 3C [08:42:57]RasterBufferAndPrint [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]line [08:42:57]written 0, free lines is 3303 [08:42:57]process_action close_receipt done [08:42:57]requested_data is exist [08:42:57]produce_requested_data [08:42:57]requested_item fm.sn is exist - process it [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 11 00 00 [08:42:57]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 17 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [08:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:42:57]wFMCommunicate OK [08:42:57]requested_item fd.num is exist - process it [08:42:57]SAM_PROTO_GetFieldsCounters [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 00 00 [08:42:57]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 62 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 62 00 48 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 64 02 00 0E 04 04 00 1A 02 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 40 [08:42: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetFieldsCounters done [08:42:57]requested_item shift.num is exist - process it [08:42:57]requested_item shift.opened is exist - process it [08:42:57]req_shift_opened [08:42:57]FM_GetShiftState [08:42:57]SAM_PROTO_GetShiftState [08:42:57]wFMCommunicate request_size=4 [08:42:57]MH_SAM_APDU [08:42:57]CAPDU: 80 13 01 00 [08:42:57]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [08:42:57]Write i2c OK [08:42:57]MH_I2C_Read... [08:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:57]Read from MH i2c: E2 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 [08:42:57]MH_I2C_Read... [08:42:57]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C0 [08:42:57]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:42:57]wFMCommunicate OK [08:42:57]SAM_PROTO_GetShiftState done [08:42:57]FM_GetShiftState done [08:42:57]req_shift_opened done [08:42:57]requested_item shift.open_date is exist - process it [08:42:57]req_shift_open_date [08:42:57]req_shift_open_date done [08:42:57]produce_requested_data done [08:42:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156807,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:42:57]process_action_free close_receipt [08:42:57]json_value_free [08:42:57]json_value_free done [08:42:57]process_json_proto returns [08:42:57]Send response to host [08:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156807,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:42:57]free response buf [08:42:57]execute_script done [08:42:57]execute_script returns [08:42:57]free content buf [08:42:57]Sock 7.Close socket [08:42:57]Sock 7.Thread stoped [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:08]OFD Sender: No OFD packet to send [08:44:13]OFD Sender: No OFD packet to send [08:44:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:45:55]MH_SAM_APDU [08:45:55]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [08:45:55]Write to MH i2c: E2 0E 00 53 08 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 0D [08:45:55]Write i2c OK [08:45:55]MH_I2C_Read... [08:45:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [08:45:55]Read from MH i2c: E2 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 [08:45:55]MH_I2C_Read... [08:45:55]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [08:45:55]RAPDU: 90 00 [08:45:55]wFMCommunicate OK [08:45:55]wFMCommunicate request_size=13 [08:45:55]MH_SAM_APDU [08:45:55]CAPDU: 80 15 02 00 08 F4 03 04 00 45 4F 1F 67 [08:45:55]Write to MH i2c: E2 10 00 54 08 80 15 02 00 08 00 F4 03 04 00 45 4F 1F 67 00 00 01 [08:45:55]Write i2c OK [08:45:55]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=25 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [08:45:56]Write to MH i2c: E2 1C 00 55 08 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 42 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 15 03 00 [08:45:56]Write to MH i2c: E2 08 00 56 08 80 15 03 00 00 00 00 00 DF [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 40 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 40 00 56 08 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 18 00 00 00 35 04 06 00 37 B3 36 10 E7 44 90 00 54 [08:45:56]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 18 00 00 00 35 04 06 00 37 B3 36 10 E7 44 90 00 [08:45:56]wFMCommunicate OK [08:45:56]SAM_PROTO_ProcessDocument answer len = 59 [08:45:56]SAM_PROTO_ProcessDocument done [08:45:56]SetTLVBufToDocument [08:45:56]Processing tag 1209 (04B9) [08:45:56]Malloc new data [08:45:56]Processing tag 1041 (0411) [08:45:56]Processing tag 1040 (0410) [08:45:56]Malloc new data [08:45:56]Processing tag 1038 (040E) [08:45:56]Malloc new data [08:45:56]Processing tag 1042 (0412) [08:45:56]Malloc new data [08:45:56]Processing tag 1077 (0435) [08:45:56]Malloc new data [08:45:56]SetTLVBufToDocument err=0 [08:45:56]KKMLoadAndSignReceiptData store KKM data [08:45:56]KKMLoadAndSignReceiptData err=0 [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 11 00 00 [08:45:56]Write to MH i2c: E2 08 00 57 08 80 11 00 00 00 00 00 00 D9 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:56]Read from MH i2c: E2 17 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 17 00 57 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [08:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:45:56]wFMCommunicate OK [08:45:56]Счет N : (1)99620 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710124130 Аи-92-К-5 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 24 28.10.2024 08:45 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156808 ФПД: 61242845751108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084557&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156808&fm=61242845751108&tin=02508201610067®Number=0000000000091693&sum=50000 [08:45:56]StoreToDocumentArchive [08:45:56]shift 538 fd 156808 [08:45:56]save to /storage/0538/doc_00156808 [08:45:56]save last doc name /storage/0538/doc_00156808 to /storage/kkm_last_doc_name [08:45:56]save OK [08:45:56]Clear old archive folders... [08:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:56]tlvbuf is 01A78C70 [08:45:56]SAM_PROTO_ClearQueue [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 09 00 00 [08:45:56]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]SAM_PROTO_ClearQueue done [08:45:56]KKMCreateOFDPacket [08:45:56]OFDProtocolAddRootSTLVToBuf [08:45:56]FM_MakeSignedData [08:45:56]FM_MakeSignedData [08:45:56]SAM_PROTO_SignData [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 0D 01 02 [08:45:56]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=255 [08:45:56]MH_SAM_APDU [08:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 18 00 00 00 F4 03 04 00 45 4F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 35 04 06 00 37 [08:45:56]Write to MH i2c: E2 02 01 5A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 18 00 00 00 F4 03 04 00 45 4F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 35 04 06 00 37 00 00 E1 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=10 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 0D 02 02 05 B3 36 10 E7 44 [08:45:56]Write to MH i2c: E2 0D 00 5B 08 80 0D 02 02 05 00 B3 36 10 E7 44 00 00 0B [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [08:45:56]RAPDU: 90 00 [08:45:56]wFMCommunicate OK [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 0D 03 02 [08:45:56]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0B 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 0B 00 5C 08 00 05 0D 44 8F 20 64 1A 94 90 00 F7 [08:45:56]RAPDU: 05 0D 44 8F 20 64 1A 94 90 00 [08:45:56]wFMCommunicate OK [08:45:56]SAM_PROTO_SignData done [08:45:56]FM_MakeSignedData done [08:45:56]CreateOFDProtocolMessage [08:45:56]wFMCommunicate request_size=4 [08:45:56]MH_SAM_APDU [08:45:56]CAPDU: 80 11 00 00 [08:45:56]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:56]Read from MH i2c: E2 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 17 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [08:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:45:56]wFMCommunicate OK [08:45:56]CreateOFDProtocolMessage done [08:45:56]OFDSenderStorePacket 156808 [08:45:56]StoreOFDPacket docnum=156808 [08:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 13 07 01 E9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 18 00 00 00 F4 03 04 00 45 4F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 35 04 06 00 37 B3 36 10 E7 44 05 0D 44 8F 20 64 1A 94 [08:45:56]CheckFolder [08:45:56]dirname=/storage/ofd_packets [08:45:56]CheckFolder done [08:45:56]ProducePacketName [08:45:56]name=ofd_packets/00156808 [08:45:56]NVStorageSaveData ofd_packets/00156808 [08:45:56]File name is /storage/ofd_packets/00156808 [08:45:56]Write 301 bytes [08:45:56]NVStorageSaveData done [08:45:56]OFDSenderStorePacket done [08:45:56]KKMCreateOFDPacket done [08:45:56]NVStorageSaveData kkm_last_timestamp [08:45:56]File name is /storage/kkm_last_timestamp [08:45:56]Write 4 bytes [08:45:56]NVStorageSaveData done [08:45:56]ExternCall_PrintAddStr [08:45:56]wPrintStart [08:45:56]Write to MH i2c: 01 00 00 5E 08 66 [08:45:56]Write i2c OK [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 [08:45:56]MH_I2C_Read... [08:45:56]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [08:45:56]RasterBufferAndPrint [08:45:56]line Счет N : (1)99620 [08:45:56]line ИНН: 02508201610067 [08:45:56]line Контрольно-Кассовый Чек [08:45:56]line ПРОДАЖА [08:45:56]line ТРК (МРК, ГНК) : 31 [08:45:56]line Товар: 2710124130 [08:45:56]line Аи-92-К-5 [08:45:56]line 7.480 * 66.90 [08:45:56]line = 500.41 [08:45:56]line НДС 12% НСП 1% [08:45:56]line > о реализуемом товаре [08:45:56]line ОКРУГЛЕНИЕ: -0.41 [08:45:56]line ИТОГО: 500.00 [08:45:56]line Внесено: 500.00 [08:45:56]line СДАЧА: 0.00 [08:45:56]line НСП 1% : 4.43 [08:45:56]line НДС 12% : 53.14 [08:45:56]line Наличными: 500.00 [08:45:56]line Безнал.: 0.00 [08:45:56]line Место: АЗС № 143 "Партнер Нефть" [08:45:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:45:56]line СНО: Общий режим [08:45:56]line Чек 24 28.10.2024 08:45 [08:45:56]line Смена: 538 ФФД: 1.0 [08:45:56]line ЗНМ: 0300000096 [08:45:56]line РНМ: 0000000000091693 [08:45:56]line Версия ККМ: 001 [08:45:56]line ФМ: 0000000000871792 [08:45:56]line ФД: 156808 [08:45:56]line ФПД: 61242845751108 [08:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T084557&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156808&fm=61242845751108&tin=02508201610067®Number=0000000000091693&sum=50000 [08:45:56]written 0, free lines is 4095 [08:45:56]OFD Sender: Processing packet 156808 [packets to send 31, broken 30] [08:45:56]ProducePacketName [08:45:56]name=ofd_packets/00156808 [08:45:56]OFD Sender: To server: pG, [08:45:56]CommunicateWithHost lk.salyk.kg:30040 [08:45:56]ConnectInit lk.salyk.kg [08:45:57]Connected sock=11 [08:45: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 37 39 32 0F 01 00 00 03 13 07 01 E9 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 18 00 00 00 F4 03 04 00 45 4F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 35 04 06 00 37 B3 36 10 E7 44 05 0D 44 8F 20 64 1A 94 [08:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 87 75 47 00 85 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 64 02 00 F4 03 04 00 B1 F4 1E 67 B6 04 01 00 00 43 4A 61 6A DA 72 41 D0 [08:45:57]CommunicateWithHost err = 0 [08:45:57]CheckOFDResponse [08:45:57]1017 (14) - 77093643461234 [08:45:57]1041 (16) - 0000000000871792 [08:45:57]1040 (4) - 156808 [08:45:57]1012 (4) - 28.10.2024 02:19 [08:45:57]1206 (1) - 0 [08:45:57]OFD Sender: Remove packet 156808 [08:45:57]ProducePacketName [08:45:57]name=ofd_packets/00156808 [08:45:57]NVStorageDeleteData [08:45:57]Write to MH i2c: 01 00 00 89 08 91 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 07 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 E7 0C 8B [08:45:57]RasterBufferAndPrint [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]line [08:45:57]written 0, free lines is 3310 [08:45:57]process_action close_receipt done [08:45:57]requested_data is exist [08:45:57]produce_requested_data [08:45:57]requested_item fm.sn is exist - process it [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 11 00 00 [08:45:57]Write to MH i2c: E2 08 00 90 08 80 11 00 00 00 00 00 00 12 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 17 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 17 00 90 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [08:45:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:45:57]wFMCommunicate OK [08:45:57]requested_item fd.num is exist - process it [08:45:57]SAM_PROTO_GetFieldsCounters [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 13 00 00 [08:45:57]Write to MH i2c: E2 08 00 91 08 80 13 00 00 00 00 00 00 15 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 62 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 62 00 91 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 64 02 00 0E 04 04 00 1A 02 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 8D [08:45: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:57]wFMCommunicate OK [08:45:57]SAM_PROTO_GetFieldsCounters done [08:45:57]requested_item shift.num is exist - process it [08:45:57]requested_item shift.opened is exist - process it [08:45:57]req_shift_opened [08:45:57]FM_GetShiftState [08:45:57]SAM_PROTO_GetShiftState [08:45:57]wFMCommunicate request_size=4 [08:45:57]MH_SAM_APDU [08:45:57]CAPDU: 80 13 01 00 [08:45:57]Write to MH i2c: E2 08 00 92 08 80 13 01 00 00 00 00 00 17 [08:45:57]Write i2c OK [08:45:57]MH_I2C_Read... [08:45:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:57]Read from MH i2c: E2 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0E 00 [08:45:57]MH_I2C_Read... [08:45:57]Read from MH i2c: E2 0E 00 92 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 09 [08:45:57]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:45:57]wFMCommunicate OK [08:45:57]SAM_PROTO_GetShiftState done [08:45:57]FM_GetShiftState done [08:45:57]req_shift_opened done [08:45:57]requested_item shift.open_date is exist - process it [08:45:57]req_shift_open_date [08:45:57]req_shift_open_date done [08:45:57]produce_requested_data done [08:45:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156808,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:45:57]process_action_free close_receipt [08:45:57]json_value_free [08:45:57]json_value_free done [08:45:57]process_json_proto returns [08:45:57]Send response to host [08:45:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156808,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:45:57]free response buf [08:45:57]execute_script done [08:45:57]execute_script returns [08:45:57]free content buf [08:45:57]Sock 9.Close socket [08:45:57]Sock 9.Thread stoped [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:46:58]ConnectInit Can't connect to host [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:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]ConnectInit Can't connect to host [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:48]OFD Sender: No OFD packet to send [08:50:53]OFD Sender: No OFD packet to send [08:50:58]OFD Sender: No OFD packet to send [08:51:03]OFD Sender: No OFD packet to send [08:51:08]OFD Sender: No OFD packet to send [08:51:13]OFD Sender: No OFD packet to send [08:51:18]OFD Sender: No OFD packet to send [08:51:23]OFD Sender: No OFD packet to send [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:49]accept exits with 10 [08:55:49]New connection [08:55:49]New thread 3066748260 created [08:55:49]Thread 3066604900 joined [08:55:49]Waiting for new connection... [08:55:49] Sock 10.Parse request [08:55:49]Sock 10.Check first char [08:55:49]Sock 10.First char is OK [08:55:49]request: POST /json_proto HTTP/1.0 [08:55:49]Method: POST [08:55:49]URL: /json_proto [08:55:49]Method is POST - this is cgi request [08:55:49]url: /json_proto [08:55:49]query_string will be loaded in cgi processing [08:55:49]execute_cgi json_proto POST (null) [08:55:49]execute_cgi path=json_proto method=POST [08:55:49]POST find Content-Length [08:55:49]Host: 172.17.63.3:8080 [08:55:49]Content-Length: 676 [08:55:49]Content-Type: application/json [08:55:49] [08:55:49]POST finish read [08:55:49]Found Content-Length = 676 [08:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:49]execute_script... [08:55: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)99621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:49]POST & json_proto [08:55:49]process_json_proto [08:55:49]json parsed OK: [08:55:49]protocol is kg_v1.0 [08:55:49]action value=close_receipt [08:55:49]process_action close_receipt [08:55:49]cmd_close_receipt [08:55:49]MH_GetDate [08:55:49]Write to MH i2c: F0 00 00 93 08 8A [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 09 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: F0 09 00 93 08 00 97 51 1F 67 50 D1 6C 64 F2 [08:55:49]GetLastDocTimeStamp 1730105157 [08:55:49]current date 1730105751 [08:55:49]FM_GetShiftState [08:55:49]SAM_PROTO_GetShiftState [08:55:49]wFMCommunicate request_size=4 [08:55:49]MH_SAM_APDU [08:55:49]CAPDU: 80 13 01 00 [08:55:49]Write to MH i2c: E2 08 00 94 08 80 13 01 00 00 00 00 00 19 [08:55:49]Write i2c OK [08:55:49]MH_I2C_Read... [08:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:49]Read from MH i2c: E2 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 [08:55:49]MH_I2C_Read... [08:55:49]Read from MH i2c: E2 0E 00 94 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0B [08:55:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:55:49]wFMCommunicate OK [08:55:49]SAM_PROTO_GetShiftState done [08:55:49]FM_GetShiftState done [08:55:49]opened in 1730075526 [08:55:49]opened+sec_in_day 1730161926 [08:55:49]quantity*price = 50041 [08:55:49]sum+1 = 50042 [08:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 25 28.10.2024 08:55 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156809 ФПД: 214128146335686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085551&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156809&fm=214128146335686&tin=02508201610067®Number=0000000000091693&sum=50000 [08:55:50]StoreToDocumentArchive [08:55:50]shift 538 fd 156809 [08:55:50]save to /storage/0538/doc_00156809 [08:55:50]save last doc name /storage/0538/doc_00156809 to /storage/kkm_last_doc_name [08:55:50]save OK [08:55:50]Clear old archive folders... [08:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:50]tlvbuf is 01A7C480 [08:55:50]SAM_PROTO_ClearQueue [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 09 00 00 [08:55:50]Write to MH i2c: E2 08 00 A1 08 80 09 00 00 00 00 00 00 1B [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 A1 08 00 90 00 1D [08:55:50]RAPDU: 90 00 [08:55:50]wFMCommunicate OK [08:55:50]SAM_PROTO_ClearQueue done [08:55:50]KKMCreateOFDPacket [08:55:50]OFDProtocolAddRootSTLVToBuf [08:55:50]FM_MakeSignedData [08:55:50]FM_MakeSignedData [08:55:50]SAM_PROTO_SignData [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 0D 01 02 [08:55:50]Write to MH i2c: E2 08 00 A2 08 80 0D 01 02 00 00 00 00 23 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [08:55:50]RAPDU: 90 00 [08:55:50]wFMCommunicate OK [08:55:50]wFMCommunicate request_size=255 [08:55:50]MH_SAM_APDU [08:55: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 19 00 00 00 F4 03 04 00 97 51 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 64 02 00 35 04 06 00 C2 [08:55:50]Write to MH i2c: E2 02 01 A3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 19 00 00 00 F4 03 04 00 97 51 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 64 02 00 35 04 06 00 C2 00 00 0B [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [08:55:50]RAPDU: 90 00 [08:55:50]wFMCommunicate OK [08:55:50]wFMCommunicate request_size=10 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 0D 02 02 05 BF 98 19 47 C6 [08:55:50]Write to MH i2c: E2 0D 00 A4 08 80 0D 02 02 05 00 BF 98 19 47 C6 00 00 AD [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [08:55:50]RAPDU: 90 00 [08:55:50]wFMCommunicate OK [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 0D 03 02 [08:55:50]Write to MH i2c: E2 08 00 A5 08 80 0D 03 02 00 00 00 00 28 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0B 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 0B 00 A5 08 00 D1 32 78 D6 59 32 5A A1 90 00 00 [08:55:50]RAPDU: D1 32 78 D6 59 32 5A A1 90 00 [08:55:50]wFMCommunicate OK [08:55:50]SAM_PROTO_SignData done [08:55:50]FM_MakeSignedData done [08:55:50]CreateOFDProtocolMessage [08:55:50]wFMCommunicate request_size=4 [08:55:50]MH_SAM_APDU [08:55:50]CAPDU: 80 11 00 00 [08:55:50]Write to MH i2c: E2 08 00 A6 08 80 11 00 00 00 00 00 00 28 [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:50]Read from MH i2c: E2 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 17 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: E2 17 00 A6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [08:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:55:50]wFMCommunicate OK [08:55:50]CreateOFDProtocolMessage done [08:55:50]OFDSenderStorePacket 156809 [08:55:50]StoreOFDPacket docnum=156809 [08:55:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 36 07 01 AB D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 19 00 00 00 F4 03 04 00 97 51 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 64 02 00 35 04 06 00 C2 BF 98 19 47 C6 D1 32 78 D6 59 32 5A A1 [08:55:50]CheckFolder [08:55:50]dirname=/storage/ofd_packets [08:55:50]CheckFolder done [08:55:50]ProducePacketName [08:55:50]name=ofd_packets/00156809 [08:55:50]NVStorageSaveData ofd_packets/00156809 [08:55:50]File name is /storage/ofd_packets/00156809 [08:55:50]Write 301 bytes [08:55:50]NVStorageSaveData done [08:55:50]OFDSenderStorePacket done [08:55:50]KKMCreateOFDPacket done [08:55:50]NVStorageSaveData kkm_last_timestamp [08:55:50]File name is /storage/kkm_last_timestamp [08:55:50]Write 4 bytes [08:55:50]NVStorageSaveData done [08:55:50]ExternCall_PrintAddStr [08:55:50]wPrintStart [08:55:50]Write to MH i2c: 01 00 00 A7 08 AF [08:55:50]Write i2c OK [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 [08:55:50]MH_I2C_Read... [08:55:50]Read from MH i2c: 01 07 00 A7 08 00 00 00 00 00 FF 0F C4 [08:55:50]RasterBufferAndPrint [08:55:50]line Счет N : (1)99621 [08:55:50]line ИНН: 02508201610067 [08:55:50]line Контрольно-Кассовый Чек [08:55:50]line ПРОДАЖА [08:55:50]line ТРК (МРК, ГНК) : 31 [08:55:50]line Товар: 2710124130 [08:55:50]line Аи-92-К-5 [08:55:50]line 7.480 * 66.90 [08:55:50]line = 500.41 [08:55:50]line НДС 12% НСП 1% [08:55:50]line > о реализуемом товаре [08:55:50]line ОКРУГЛЕНИЕ: -0.41 [08:55:50]line ИТОГО: 500.00 [08:55:50]line Внесено: 500.00 [08:55:50]line СДАЧА: 0.00 [08:55:50]line НСП 1% : 4.43 [08:55:50]line НДС 12% : 53.14 [08:55:50]line Наличными: 500.00 [08:55:50]line Безнал.: 0.00 [08:55:50]line Место: АЗС № 143 "Партнер Нефть" [08:55:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:55:50]line СНО: Общий режим [08:55:50]line Чек 25 28.10.2024 08:55 [08:55:50]line Смена: 538 ФФД: 1.0 [08:55:50]line ЗНМ: 0300000096 [08:55:50]line РНМ: 0000000000091693 [08:55:50]line Версия ККМ: 001 [08:55:50]line ФМ: 0000000000871792 [08:55:50]line ФД: 156809 [08:55:50]line ФПД: 214128146335686 [08:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085551&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156809&fm=214128146335686&tin=02508201610067®Number=0000000000091693&sum=50000 [08:55:51]OFD Sender: Processing packet 156809 [packets to send 31, broken 30] [08:55:51]ProducePacketName [08:55:51]name=ofd_packets/00156809 [08:55:51]OFD Sender: To server: pG, [08:55:51]CommunicateWithHost lk.salyk.kg:30040 [08:55:51]ConnectInit lk.salyk.kg [08:55:51]written 0, free lines is 4095 [08:55:51]Connected sock=9 [08:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 36 07 01 AB D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 19 00 00 00 F4 03 04 00 97 51 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 64 02 00 35 04 06 00 C2 BF 98 19 47 C6 D1 32 78 D6 59 32 5A A1 [08:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 15 47 00 8A B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 64 02 00 F4 03 04 00 04 F7 1E 67 B6 04 01 00 00 3D 7B E5 50 C2 80 76 4A [08:55:51]CommunicateWithHost err = 0 [08:55:51]CheckOFDResponse [08:55:51]1017 (14) - 77093643461234 [08:55:51]1041 (16) - 0000000000871792 [08:55:51]1040 (4) - 156809 [08:55:51]1012 (4) - 28.10.2024 02:29 [08:55:51]1206 (1) - 0 [08:55:51]OFD Sender: Remove packet 156809 [08:55:51]ProducePacketName [08:55:51]name=ofd_packets/00156809 [08:55:51]NVStorageDeleteData [08:55:51]Write to MH i2c: 01 00 00 D2 08 DA [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: 01 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: 01 07 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: 01 07 00 D2 08 00 00 00 00 00 E1 0C CE [08:55:51]RasterBufferAndPrint [08:55:51]line [08:55:51]line [08:55:51]line [08:55:51]line [08:55:51]line [08:55:51]written 0, free lines is 3303 [08:55:51]process_action close_receipt done [08:55:51]requested_data is exist [08:55:51]produce_requested_data [08:55:51]requested_item fm.sn is exist - process it [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 11 00 00 [08:55:51]Write to MH i2c: E2 08 00 D9 08 80 11 00 00 00 00 00 00 5B [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 17 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 17 00 D9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [08:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:55:51]wFMCommunicate OK [08:55:51]requested_item fd.num is exist - process it [08:55:51]SAM_PROTO_GetFieldsCounters [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 13 00 00 [08:55:51]Write to MH i2c: E2 08 00 DA 08 80 13 00 00 00 00 00 00 5E [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:51]Read from MH i2c: E2 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 62 00 [08:55:51]MH_I2C_Read... [08:55:51]Read from MH i2c: E2 62 00 DA 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 64 02 00 0E 04 04 00 1A 02 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 DA [08: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:51]wFMCommunicate OK [08:55:51]SAM_PROTO_GetFieldsCounters done [08:55:51]requested_item shift.num is exist - process it [08:55:51]requested_item shift.opened is exist - process it [08:55:51]req_shift_opened [08:55:51]FM_GetShiftState [08:55:51]SAM_PROTO_GetShiftState [08:55:51]wFMCommunicate request_size=4 [08:55:51]MH_SAM_APDU [08:55:51]CAPDU: 80 13 01 00 [08:55:51]Write to MH i2c: E2 08 00 DB 08 80 13 01 00 00 00 00 00 60 [08:55:51]Write i2c OK [08:55:51]MH_I2C_Read... [08:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:52]Read from MH i2c: E2 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 [08:55:52]MH_I2C_Read... [08:55:52]Read from MH i2c: E2 0E 00 DB 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 52 [08:55:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:55:52]wFMCommunicate OK [08:55:52]SAM_PROTO_GetShiftState done [08:55:52]FM_GetShiftState done [08:55:52]req_shift_opened done [08:55:52]requested_item shift.open_date is exist - process it [08:55:52]req_shift_open_date [08:55:52]req_shift_open_date done [08:55:52]produce_requested_data done [08:55:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156809,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:55:52]process_action_free close_receipt [08:55:52]json_value_free [08:55:52]json_value_free done [08:55:52]process_json_proto returns [08:55:52]Send response to host [08:55:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156809,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:55:52]free response buf [08:55:52]execute_script done [08:55:52]execute_script returns [08:55:52]free content buf [08:55:52]Sock 10.Close socket [08:55:52]Sock 10.Thread stoped [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]accept exits with 7 [08:57:42]New connection [08:57:42]New thread 3066604900 created [08:57:42]Thread 3066748260 joined [08:57:42]Waiting for new connection... [08:57:42] Sock 7.Parse request [08:57:42]Sock 7.Check first char [08:57:42]Sock 7.First char is OK [08:57:42]request: POST /json_proto HTTP/1.0 [08:57:42]Method: POST [08:57:42]URL: /json_proto [08:57:42]Method is POST - this is cgi request [08:57:42]url: /json_proto [08:57:42]query_string will be loaded in cgi processing [08:57:42]execute_cgi json_proto POST (null) [08:57:42]execute_cgi path=json_proto method=POST [08:57:42]POST find Content-Length [08:57:42]Host: 172.17.63.3:8080 [08:57:42]Content-Length: 677 [08:57:42]Content-Type: application/json [08:57:42] [08:57:42]POST finish read [08:57:42]Found Content-Length = 677 [08:57:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [08:57:42]execute_script... [08:57: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)99622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [08:57:42]POST & json_proto [08:57:42]process_json_proto [08:57:42]json parsed OK: [08:57:42]protocol is kg_v1.0 [08:57:42]action value=close_receipt [08:57:42]process_action close_receipt [08:57:42]cmd_close_receipt [08:57:42]MH_GetDate [08:57:42]Write to MH i2c: F0 00 00 DC 08 D3 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: F0 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: F0 09 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: F0 09 00 DC 08 00 08 52 1F 67 50 D1 6C 64 AD [08:57:42]GetLastDocTimeStamp 1730105751 [08:57:42]current date 1730105864 [08:57:42]FM_GetShiftState [08:57:42]SAM_PROTO_GetShiftState [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 13 01 00 [08:57:42]Write to MH i2c: E2 08 00 DD 08 80 13 01 00 00 00 00 00 62 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]OFD Sender: No OFD packet to send [08:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0E 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0E 00 DD 08 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 54 [08:57:42]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:57:42]wFMCommunicate OK [08:57:42]SAM_PROTO_GetShiftState done [08:57:42]FM_GetShiftState done [08:57:42]opened in 1730075526 [08:57:42]opened+sec_in_day 1730161926 [08:57:42]quantity*price = 70044 [08:57:42]sum+1 = 70045 [08:57:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 26 28.10.2024 08:57 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156810 ФПД: 129970434667194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156810&fm=129970434667194&tin=02508201610067®Number=0000000000091693&sum=70000 [08:57:43]StoreToDocumentArchive [08:57:43]shift 538 fd 156810 [08:57:43]save to /storage/0538/doc_00156810 [08:57:43]save last doc name /storage/0538/doc_00156810 to /storage/kkm_last_doc_name [08:57:43]save OK [08:57:43]Clear old archive folders... [08:57:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:43]tlvbuf is 01A3A790 [08:57:43]SAM_PROTO_ClearQueue [08:57:43]wFMCommunicate request_size=4 [08:57:43]MH_SAM_APDU [08:57:43]CAPDU: 80 09 00 00 [08:57:43]Write to MH i2c: E2 08 00 EA 08 80 09 00 00 00 00 00 00 64 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [08:57:43]RAPDU: 90 00 [08:57:43]wFMCommunicate OK [08:57:43]SAM_PROTO_ClearQueue done [08:57:43]KKMCreateOFDPacket [08:57:43]OFDProtocolAddRootSTLVToBuf [08:57:43]FM_MakeSignedData [08:57:43]FM_MakeSignedData [08:57:43]SAM_PROTO_SignData [08:57:43]wFMCommunicate request_size=4 [08:57:43]MH_SAM_APDU [08:57:43]CAPDU: 80 0D 01 02 [08:57:43]Write to MH i2c: E2 08 00 EB 08 80 0D 01 02 00 00 00 00 6C [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [08:57:43]RAPDU: 90 00 [08:57:43]wFMCommunicate OK [08:57:43]wFMCommunicate request_size=255 [08:57:43]MH_SAM_APDU [08:57: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 1A 00 00 00 F4 03 04 00 08 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 64 02 00 35 04 06 00 76 [08:57:43]Write to MH i2c: E2 02 01 EC 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 1A 00 00 00 F4 03 04 00 08 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 64 02 00 35 04 06 00 76 00 00 8C [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 EC 08 00 90 00 68 [08:57:43]RAPDU: 90 00 [08:57:43]wFMCommunicate OK [08:57:43]wFMCommunicate request_size=10 [08:57:43]MH_SAM_APDU [08:57:43]CAPDU: 80 0D 02 02 05 35 19 96 F2 BA [08:57:43]Write to MH i2c: E2 0D 00 ED 08 80 0D 02 02 05 00 35 19 96 F2 BA 00 00 09 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [08:57:43]RAPDU: 90 00 [08:57:43]wFMCommunicate OK [08:57:43]wFMCommunicate request_size=4 [08:57:43]MH_SAM_APDU [08:57:43]CAPDU: 80 0D 03 02 [08:57:43]Write to MH i2c: E2 08 00 EE 08 80 0D 03 02 00 00 00 00 71 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 0B 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 0B 00 EE 08 00 29 DD CF 60 71 1D C6 A2 90 00 9D [08:57:43]RAPDU: 29 DD CF 60 71 1D C6 A2 90 00 [08:57:43]wFMCommunicate OK [08:57:43]SAM_PROTO_SignData done [08:57:43]FM_MakeSignedData done [08:57:43]CreateOFDProtocolMessage [08:57:43]wFMCommunicate request_size=4 [08:57:43]MH_SAM_APDU [08:57:43]CAPDU: 80 11 00 00 [08:57:43]Write to MH i2c: E2 08 00 EF 08 80 11 00 00 00 00 00 00 71 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:43]Read from MH i2c: E2 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 17 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: E2 17 00 EF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [08:57:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:57:43]wFMCommunicate OK [08:57:43]CreateOFDProtocolMessage done [08:57:43]OFDSenderStorePacket 156810 [08:57:43]StoreOFDPacket docnum=156810 [08:57:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 32 07 01 D9 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 1A 00 00 00 F4 03 04 00 08 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 64 02 00 35 04 06 00 76 35 19 96 F2 BA 29 DD CF 60 71 1D C6 A2 [08:57:43]CheckFolder [08:57:43]dirname=/storage/ofd_packets [08:57:43]CheckFolder done [08:57:43]ProducePacketName [08:57:43]name=ofd_packets/00156810 [08:57:43]NVStorageSaveData ofd_packets/00156810 [08:57:43]File name is /storage/ofd_packets/00156810 [08:57:43]Write 301 bytes [08:57:43]NVStorageSaveData done [08:57:43]OFDSenderStorePacket done [08:57:43]KKMCreateOFDPacket done [08:57:43]NVStorageSaveData kkm_last_timestamp [08:57:43]File name is /storage/kkm_last_timestamp [08:57:43]Write 4 bytes [08:57:43]NVStorageSaveData done [08:57:43]ExternCall_PrintAddStr [08:57:43]wPrintStart [08:57:43]Write to MH i2c: 01 00 00 F0 08 F8 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 07 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 07 00 F0 08 00 00 00 00 00 FF 0F 0D [08:57:43]RasterBufferAndPrint [08:57:43]line Счет N : (1)99622 [08:57:43]line ИНН: 02508201610067 [08:57:43]line Контрольно-Кассовый Чек [08:57:43]line ПРОДАЖА [08:57:43]line ТРК (МРК, ГНК) : 31 [08:57:43]line Товар: 2710124130 [08:57:43]line Аи-92-К-5 [08:57:43]line 10.470 * 66.90 [08:57:43]line = 700.44 [08:57:43]line НДС 12% НСП 1% [08:57:43]line > о реализуемом товаре [08:57:43]line ОКРУГЛЕНИЕ: -0.44 [08:57:43]line ИТОГО: 700.00 [08:57:43]line Внесено: 700.00 [08:57:43]line СДАЧА: 0.00 [08:57:43]line НСП 1% : 6.20 [08:57:43]line НДС 12% : 74.38 [08:57:43]line Наличными: 700.00 [08:57:43]line Безнал.: 0.00 [08:57:43]line Место: АЗС № 143 "Партнер Нефть" [08:57:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:57:43]line СНО: Общий режим [08:57:43]line Чек 26 28.10.2024 08:57 [08:57:43]line Смена: 538 ФФД: 1.0 [08:57:43]line ЗНМ: 0300000096 [08:57:43]line РНМ: 0000000000091693 [08:57:43]line Версия ККМ: 001 [08:57:43]line ФМ: 0000000000871792 [08:57:43]line ФД: 156810 [08:57:43]line ФПД: 129970434667194 [08:57:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156810&fm=129970434667194&tin=02508201610067®Number=0000000000091693&sum=70000 [08:57:44]OFD Sender: Processing packet 156810 [packets to send 31, broken 30] [08:57:44]ProducePacketName [08:57:44]name=ofd_packets/00156810 [08:57:44]OFD Sender: To server: pG, [08:57:44]CommunicateWithHost lk.salyk.kg:30040 [08:57:44]ConnectInit lk.salyk.kg [08:57:44]written 0, free lines is 4095 [08:57:44]Connected sock=10 [08:57: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 37 39 32 0F 01 00 00 41 32 07 01 D9 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 1A 00 00 00 F4 03 04 00 08 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 64 02 00 35 04 06 00 76 35 19 96 F2 BA 29 DD CF 60 71 1D C6 A2 [08:57:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5A 6B 47 00 40 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 37 39 32 10 04 04 00 8A 64 02 00 F4 03 04 00 75 F7 1E 67 B6 04 01 00 00 AA 04 BA BA F9 64 D1 65 [08:57:44]CommunicateWithHost err = 0 [08:57:44]CheckOFDResponse [08:57:44]1017 (14) - 77093643461234 [08:57:44]1041 (16) - 0000000000871792 [08:57:44]1040 (4) - 156810 [08:57:44]1012 (4) - 28.10.2024 02:31 [08:57:44]1206 (1) - 0 [08:57:44]OFD Sender: Remove packet 156810 [08:57:44]ProducePacketName [08:57:44]name=ofd_packets/00156810 [08:57:44]NVStorageDeleteData [08:57:44]Write to MH i2c: 01 00 00 1B 09 24 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: 01 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: 01 07 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: 01 07 00 1B 09 00 00 00 00 00 DE 0C 15 [08:57:44]RasterBufferAndPrint [08:57:44]line [08:57:44]line [08:57:44]line [08:57:44]line [08:57:44]line [08:57:44]written 0, free lines is 3300 [08:57:44]process_action close_receipt done [08:57:44]requested_data is exist [08:57:44]produce_requested_data [08:57:44]requested_item fm.sn is exist - process it [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 11 00 00 [08:57:44]Write to MH i2c: E2 08 00 22 09 80 11 00 00 00 00 00 00 A5 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 17 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 17 00 22 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [08:57:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:57:44]wFMCommunicate OK [08:57:44]requested_item fd.num is exist - process it [08:57:44]SAM_PROTO_GetFieldsCounters [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 00 00 [08:57:44]Write to MH i2c: E2 08 00 23 09 80 13 00 00 00 00 00 00 A8 [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 62 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 62 00 23 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 64 02 00 0E 04 04 00 1A 02 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 28 [08:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetFieldsCounters done [08:57:44]requested_item shift.num is exist - process it [08:57:44]requested_item shift.opened is exist - process it [08:57:44]req_shift_opened [08:57:44]FM_GetShiftState [08:57:44]SAM_PROTO_GetShiftState [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 01 00 [08:57:44]Write to MH i2c: E2 08 00 24 09 80 13 01 00 00 00 00 00 AA [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 24 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9C [08:57:44]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_GetShiftState done [08:57:45]FM_GetShiftState done [08:57:45]req_shift_opened done [08:57:45]requested_item shift.open_date is exist - process it [08:57:45]req_shift_open_date [08:57:45]req_shift_open_date done [08:57:45]produce_requested_data done [08:57:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156810,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [08:57:45]process_action_free close_receipt [08:57:45]json_value_free [08:57:45]json_value_free done [08:57:45]process_json_proto returns [08:57:45]Send response to host [08:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156810,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [08:57:45]free response buf [08:57:45]execute_script done [08:57:45]execute_script returns [08:57:45]free content buf [08:57:45]Sock 7.Close socket [08:57:45]Sock 7.Thread stoped [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [08:59:57]accept exits with 9 [08:59:57]New connection [08:59:57]New thread 3066748260 created [08:59:57]Thread 3066604900 joined [08:59:57]Waiting for new connection... [08:59:57] Sock 9.Parse request [08:59:57]Sock 9.Check first char [08:59:57]Sock 9.First char is OK [08:59:57]request: POST /json_proto HTTP/1.0 [08:59:57]Method: POST [08:59:57]URL: /json_proto [08:59:57]Method is POST - this is cgi request [08:59:57]url: /json_proto [08:59:57]query_string will be loaded in cgi processing [08:59:57]execute_cgi json_proto POST (null) [08:59:57]execute_cgi path=json_proto method=POST [08:59:57]POST find Content-Length [08:59:57]Host: 172.17.63.3:8080 [08:59:57]Content-Length: 796 [08:59:57]Content-Type: application/json [08:59:57] [08:59:57]POST finish read [08:59:57]Found Content-Length = 796 [08:59:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4754613", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:57]execute_script... [08:59: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)99623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4754613", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:57]POST & json_proto [08:59:57]process_json_proto [08:59:57]json parsed OK: [08:59:57]protocol is kg_v1.0 [08:59:57]action value=close_receipt [08:59:57]process_action close_receipt [08:59:57]cmd_close_receipt [08:59:57]MH_GetDate [08:59:57]Write to MH i2c: F0 00 00 25 09 1D [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 09 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: F0 09 00 25 09 00 8F 52 1F 67 50 D1 6C 64 7E [08:59:57]GetLastDocTimeStamp 1730105864 [08:59:57]current date 1730105999 [08:59:57]FM_GetShiftState [08:59:57]SAM_PROTO_GetShiftState [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 01 00 [08:59:57]Write to MH i2c: E2 08 00 26 09 80 13 01 00 00 00 00 00 AC [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 0E 00 26 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9E [08:59:57]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetShiftState done [08:59:57]FM_GetShiftState done [08:59:57]opened in 1730075526 [08:59:57]opened+sec_in_day 1730161926 [08:59:57]quantity*price = 0 [08:59:57]sum+1 = 1 [08:59:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 27 28.10.2024 08:59 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4754613 ФМ: 0000000000871792 ФД: 156811 ФПД: 118804146146808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085959&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156811&fm=118804146146808&tin=02508201610067®Number=0000000000091693&sum=0 [08:59:58]StoreToDocumentArchive [08:59:58]shift 538 fd 156811 [08:59:58]save to /storage/0538/doc_00156811 [08:59:58]save last doc name /storage/0538/doc_00156811 to /storage/kkm_last_doc_name [08:59:58]save OK [08:59:58]Clear old archive folders... [08:59:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:59:58]tlvbuf is B6F23C90 [08:59:58]SAM_PROTO_ClearQueue [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 09 00 00 [08:59:58]Write to MH i2c: E2 08 00 33 09 80 09 00 00 00 00 00 00 AE [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]SAM_PROTO_ClearQueue done [08:59:58]KKMCreateOFDPacket [08:59:58]OFDProtocolAddRootSTLVToBuf [08:59:58]FM_MakeSignedData [08:59:58]FM_MakeSignedData [08:59:58]SAM_PROTO_SignData [08:59:58]wFMCommunicate request_size=4 [08:59:58]MH_SAM_APDU [08:59:58]CAPDU: 80 0D 01 02 [08:59:58]Write to MH i2c: E2 08 00 34 09 80 0D 01 02 00 00 00 00 B6 [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [08:59:58]RAPDU: 90 00 [08:59:58]wFMCommunicate OK [08:59:58]wFMCommunicate request_size=255 [08:59:58]MH_SAM_APDU [08:59: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 64 02 00 35 04 06 00 6C 0D 3E ED [08:59:58]Write to MH i2c: E2 02 01 35 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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 64 02 00 35 04 06 00 6C 0D 3E ED 00 00 5E [08:59:58]Write i2c OK [08:59:58]MH_I2C_Read... [08:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:59]Read from MH i2c: E2 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 03 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [08:59:59]RAPDU: 90 00 [08:59:59]wFMCommunicate OK [08:59:59]wFMCommunicate request_size=7 [08:59:59]MH_SAM_APDU [08:59:59]CAPDU: 80 0D 02 02 02 CD F8 [08:59:59]Write to MH i2c: E2 0A 00 36 09 80 0D 02 02 02 00 CD F8 00 00 82 [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:59]Read from MH i2c: E2 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 03 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 03 00 36 09 00 90 00 B3 [08:59:59]RAPDU: 90 00 [08:59:59]wFMCommunicate OK [08:59:59]wFMCommunicate request_size=4 [08:59:59]MH_SAM_APDU [08:59:59]CAPDU: 80 0D 03 02 [08:59:59]Write to MH i2c: E2 08 00 37 09 80 0D 03 02 00 00 00 00 BB [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:59]Read from MH i2c: E2 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 0B 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 0B 00 37 09 00 8C E9 99 91 2C 34 69 1B 90 00 3F [08:59:59]RAPDU: 8C E9 99 91 2C 34 69 1B 90 00 [08:59:59]wFMCommunicate OK [08:59:59]SAM_PROTO_SignData done [08:59:59]FM_MakeSignedData done [08:59:59]CreateOFDProtocolMessage [08:59:59]wFMCommunicate request_size=4 [08:59:59]MH_SAM_APDU [08:59:59]CAPDU: 80 11 00 00 [08:59:59]Write to MH i2c: E2 08 00 38 09 80 11 00 00 00 00 00 00 BB [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:59]Read from MH i2c: E2 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 17 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: E2 17 00 38 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [08:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:59:59]wFMCommunicate OK [08:59:59]CreateOFDProtocolMessage done [08:59:59]OFDSenderStorePacket 156811 [08:59:59]StoreOFDPacket docnum=156811 [08:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 57 53 04 01 A1 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 64 02 00 35 04 06 00 6C 0D 3E ED CD F8 8C E9 99 91 2C 34 69 1B [08:59:59]CheckFolder [08:59:59]dirname=/storage/ofd_packets [08:59:59]CheckFolder done [08:59:59]ProducePacketName [08:59:59]name=ofd_packets/00156811 [08:59:59]NVStorageSaveData ofd_packets/00156811 [08:59:59]File name is /storage/ofd_packets/00156811 [08:59:59]Write 298 bytes [08:59:59]NVStorageSaveData done [08:59:59]OFDSenderStorePacket done [08:59:59]KKMCreateOFDPacket done [08:59:59]NVStorageSaveData kkm_last_timestamp [08:59:59]File name is /storage/kkm_last_timestamp [08:59:59]Write 4 bytes [08:59:59]NVStorageSaveData done [08:59:59]ExternCall_PrintAddStr [08:59:59]wPrintStart [08:59:59]Write to MH i2c: 01 00 00 39 09 42 [08:59:59]Write i2c OK [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 [08:59:59]MH_I2C_Read... [08:59:59]Read from MH i2c: 01 07 00 39 09 00 00 00 00 00 FF 0F 57 [08:59:59]RasterBufferAndPrint [08:59:59]line Счет N : (1)99623 [08:59:59]line ИНН: 02508201610067 [08:59:59]line Контрольно-Кассовый Чек [08:59:59]line ПРОДАЖА [08:59:59]line ТРК (МРК, ГНК) : 32 [08:59:59]line Товар: 2710194210 [08:59:59]line ДТ-К-5 [08:59:59]line 50.000 * 0.00 [08:59:59]line = 0.00 [08:59:59]line НДС 12% НСП 1% [08:59:59]line > о реализуемом товаре [08:59:59]line ИТОГО: 0.00 [08:59:59]line НСП 1% : 0.00 [08:59:59]line НДС 12% : 0.00 [08:59:59]line Наличными: 0.00 [08:59:59]line Безнал.: 0.00 [08:59:59]line Место: АЗС № 143 "Партнер Нефть" [08:59:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:59:59]line СНО: Общий режим [08:59:59]line Чек 27 28.10.2024 08:59 [08:59:59]line Смена: 538 ФФД: 1.0 [08:59:59]line ЗНМ: 0300000096 [08:59:59]line РНМ: 0000000000091693 [08:59:59]line Версия ККМ: 001 [08:59:59]line Талоны: Топливные Талоны [08:59:59]line 4754613 [08:59:59]line ФМ: 0000000000871792 [08:59:59]line ФД: 156811 [08:59:59]line ФПД: 118804146146808 [08:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T085959&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156811&fm=118804146146808&tin=02508201610067®Number=0000000000091693&sum=0 [08:59:59]OFD Sender: Processing packet 156811 [packets to send 31, broken 30] [08:59:59]ProducePacketName [08:59:59]name=ofd_packets/00156811 [08:59:59]OFD Sender: To server: pG, [08:59:59]CommunicateWithHost lk.salyk.kg:30040 [08:59:59]ConnectInit lk.salyk.kg [08:59:59]written 0, free lines is 4095 [08:59:59]Connected sock=10 [08:59: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 37 39 32 0C 01 00 00 57 53 04 01 A1 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 8F 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 64 02 00 35 04 06 00 6C 0D 3E ED CD F8 8C E9 99 91 2C 34 69 1B [09:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E4 6B 47 00 04 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 64 02 00 F4 03 04 00 FC F7 1E 67 B6 04 01 00 00 77 55 41 92 68 BA A3 F3 [09:00:00]CommunicateWithHost err = 0 [09:00:00]CheckOFDResponse [09:00:00]1017 (14) - 77093643461234 [09:00:00]1041 (16) - 0000000000871792 [09:00:00]1040 (4) - 156811 [09:00:00]1012 (4) - 28.10.2024 02:33 [09:00:00]1206 (1) - 0 [09:00:00]OFD Sender: Remove packet 156811 [09:00:00]ProducePacketName [09:00:00]name=ofd_packets/00156811 [09:00:00]NVStorageDeleteData [09:00:00]Write to MH i2c: 01 00 00 63 09 6C [09:00:00]Write i2c OK [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: 01 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: 01 07 00 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: 01 07 00 63 09 00 00 00 00 00 E9 0C 68 [09:00:00]RasterBufferAndPrint [09:00:00]line [09:00:00]line [09:00:00]line [09:00:00]line [09:00:00]line [09:00:00]written 0, free lines is 3313 [09:00:00]process_action close_receipt done [09:00:00]requested_data is exist [09:00:00]produce_requested_data [09:00:00]requested_item fm.sn is exist - process it [09:00:00]wFMCommunicate request_size=4 [09:00:00]MH_SAM_APDU [09:00:00]CAPDU: 80 11 00 00 [09:00:00]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [09:00:00]Write i2c OK [09:00:00]MH_I2C_Read... [09:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:00]Read from MH i2c: E2 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 17 00 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [09:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:00:00]wFMCommunicate OK [09:00:00]requested_item fd.num is exist - process it [09:00:00]SAM_PROTO_GetFieldsCounters [09:00:00]wFMCommunicate request_size=4 [09:00:00]MH_SAM_APDU [09:00:00]CAPDU: 80 13 00 00 [09:00:00]Write to MH i2c: E2 08 00 6B 09 80 13 00 00 00 00 00 00 F0 [09:00:00]Write i2c OK [09:00:00]MH_I2C_Read... [09:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:00]Read from MH i2c: E2 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 62 00 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 62 00 6B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 64 02 00 0E 04 04 00 1A 02 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 74 [09:00: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 64 02 00 0E 04 04 00 1A 02 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:00:00]wFMCommunicate OK [09:00:00]SAM_PROTO_GetFieldsCounters done [09:00:00]requested_item shift.num is exist - process it [09:00:00]requested_item shift.opened is exist - process it [09:00:00]req_shift_opened [09:00:00]FM_GetShiftState [09:00:00]SAM_PROTO_GetShiftState [09:00:00]wFMCommunicate request_size=4 [09:00:00]MH_SAM_APDU [09:00:00]CAPDU: 80 13 01 00 [09:00:00]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [09:00:00]Write i2c OK [09:00:00]MH_I2C_Read... [09:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:00]Read from MH i2c: E2 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 0E 00 [09:00:00]MH_I2C_Read... [09:00:00]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E4 [09:00:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:00:00]wFMCommunicate OK [09:00:00]SAM_PROTO_GetShiftState done [09:00:00]FM_GetShiftState done [09:00:00]req_shift_opened done [09:00:00]requested_item shift.open_date is exist - process it [09:00:00]req_shift_open_date [09:00:00]req_shift_open_date done [09:00:00]produce_requested_data done [09:00:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156811,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:00:00]process_action_free close_receipt [09:00:00]json_value_free [09:00:00]json_value_free done [09:00:00]process_json_proto returns [09:00:00]Send response to host [09:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156811,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:00:00]free response buf [09:00:00]execute_script done [09:00:00]execute_script returns [09:00:00]free content buf [09:00:00]Sock 9.Close socket [09:00:00]Sock 9.Thread stoped [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:47]accept exits with 7 [09:00:47]New connection [09:00:47]New thread 3066604900 created [09:00:47]Thread 3066748260 joined [09:00:47]Waiting for new connection... [09:00:47] Sock 7.Parse request [09:00:47]Sock 7.Check first char [09:00:47]Sock 7.First char is OK [09:00:47]request: POST /json_proto HTTP/1.0 [09:00:47]Method: POST [09:00:47]URL: /json_proto [09:00:47]Method is POST - this is cgi request [09:00:47]url: /json_proto [09:00:47]query_string will be loaded in cgi processing [09:00:47]execute_cgi json_proto POST (null) [09:00:47]execute_cgi path=json_proto method=POST [09:00:47]POST find Content-Length [09:00:47]Host: 172.17.63.3:8080 [09:00:47]Content-Length: 676 [09:00:47]Content-Type: application/json [09:00:47] [09:00:47]POST finish read [09:00:47]Found Content-Length = 676 [09:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:47]execute_script... [09:00: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)99624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.580, "sum" : 440.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 440.00, "total" : 440.00, "payments": [ { "type": 0, "sum" : 440.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:47]POST & json_proto [09:00:47]process_json_proto [09:00:47]json parsed OK: [09:00:47]protocol is kg_v1.0 [09:00:47]action value=close_receipt [09:00:47]process_action close_receipt [09:00:47]cmd_close_receipt [09:00:47]MH_GetDate [09:00:47]Write to MH i2c: F0 00 00 6D 09 65 [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 09 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: F0 09 00 6D 09 00 C1 52 1F 67 50 D1 6C 64 F8 [09:00:47]GetLastDocTimeStamp 1730105999 [09:00:47]current date 1730106049 [09:00:47]FM_GetShiftState [09:00:47]SAM_PROTO_GetShiftState [09:00:47]wFMCommunicate request_size=4 [09:00:47]MH_SAM_APDU [09:00:47]CAPDU: 80 13 01 00 [09:00:47]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [09:00:47]Write i2c OK [09:00:47]MH_I2C_Read... [09:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:47]Read from MH i2c: E2 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 0E 00 [09:00:47]MH_I2C_Read... [09:00:47]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E6 [09:00:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:00:47]wFMCommunicate OK [09:00:47]SAM_PROTO_GetShiftState done [09:00:47]FM_GetShiftState done [09:00:47]opened in 1730075526 [09:00:47]opened+sec_in_day 1730161926 [09:00:47]quantity*price = 44020 [09:00:47]sum+1 = 44021 [09:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.75 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 28 28.10.2024 09:00 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156812 ФПД: 279102674709818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090049&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156812&fm=279102674709818&tin=02508201610067®Number=0000000000091693&sum=44000 [09:00:49]StoreToDocumentArchive [09:00:49]shift 538 fd 156812 [09:00:49]save to /storage/0538/doc_00156812 [09:00:49]save last doc name /storage/0538/doc_00156812 to /storage/kkm_last_doc_name [09:00:49]save OK [09:00:49]Clear old archive folders... [09:00:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:49]tlvbuf is 01A66B40 [09:00:49]SAM_PROTO_ClearQueue [09:00:49]wFMCommunicate request_size=4 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 09 00 00 [09:00:49]Write to MH i2c: E2 08 00 7B 09 80 09 00 00 00 00 00 00 F6 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [09:00:49]RAPDU: 90 00 [09:00:49]wFMCommunicate OK [09:00:49]SAM_PROTO_ClearQueue done [09:00:49]KKMCreateOFDPacket [09:00:49]OFDProtocolAddRootSTLVToBuf [09:00:49]FM_MakeSignedData [09:00:49]FM_MakeSignedData [09:00:49]SAM_PROTO_SignData [09:00:49]wFMCommunicate request_size=4 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 0D 01 02 [09:00:49]Write to MH i2c: E2 08 00 7C 09 80 0D 01 02 00 00 00 00 FE [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [09:00:49]RAPDU: 90 00 [09:00:49]wFMCommunicate OK [09:00:49]wFMCommunicate request_size=255 [09:00:49]MH_SAM_APDU [09:00: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 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C1 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 64 02 00 35 04 06 00 FD [09:00:49]Write to MH i2c: E2 02 01 7D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C1 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 64 02 00 35 04 06 00 FD 00 00 67 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [09:00:49]RAPDU: 90 00 [09:00:49]wFMCommunicate OK [09:00:49]wFMCommunicate request_size=10 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 0D 02 02 05 D7 A7 C8 2D 3A [09:00:49]Write to MH i2c: E2 0D 00 7E 09 80 0D 02 02 05 00 D7 A7 C8 2D 3A 00 00 B8 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [09:00:49]RAPDU: 90 00 [09:00:49]wFMCommunicate OK [09:00:49]wFMCommunicate request_size=4 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 0D 03 02 [09:00:49]Write to MH i2c: E2 08 00 7F 09 80 0D 03 02 00 00 00 00 03 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 0B 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 0B 00 7F 09 00 C3 1F 94 E3 E0 20 97 AA 90 00 9E [09:00:49]RAPDU: C3 1F 94 E3 E0 20 97 AA 90 00 [09:00:49]wFMCommunicate OK [09:00:49]SAM_PROTO_SignData done [09:00:49]FM_MakeSignedData done [09:00:49]CreateOFDProtocolMessage [09:00:49]wFMCommunicate request_size=4 [09:00:49]MH_SAM_APDU [09:00:49]CAPDU: 80 11 00 00 [09:00:49]Write to MH i2c: E2 08 00 80 09 80 11 00 00 00 00 00 00 03 [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:49]Read from MH i2c: E2 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 17 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: E2 17 00 80 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [09:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:00:49]wFMCommunicate OK [09:00:49]CreateOFDProtocolMessage done [09:00:49]OFDSenderStorePacket 156812 [09:00:49]StoreOFDPacket docnum=156812 [09:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 12 DA 07 01 22 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C1 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 64 02 00 35 04 06 00 FD D7 A7 C8 2D 3A C3 1F 94 E3 E0 20 97 AA [09:00:49]CheckFolder [09:00:49]dirname=/storage/ofd_packets [09:00:49]CheckFolder done [09:00:49]ProducePacketName [09:00:49]name=ofd_packets/00156812 [09:00:49]NVStorageSaveData ofd_packets/00156812 [09:00:49]File name is /storage/ofd_packets/00156812 [09:00:49]Write 301 bytes [09:00:49]NVStorageSaveData done [09:00:49]OFDSenderStorePacket done [09:00:49]KKMCreateOFDPacket done [09:00:49]NVStorageSaveData kkm_last_timestamp [09:00:49]File name is /storage/kkm_last_timestamp [09:00:49]Write 4 bytes [09:00:49]NVStorageSaveData done [09:00:49]ExternCall_PrintAddStr [09:00:49]wPrintStart [09:00:49]Write to MH i2c: 01 00 00 81 09 8A [09:00:49]Write i2c OK [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 07 00 [09:00:49]MH_I2C_Read... [09:00:49]Read from MH i2c: 01 07 00 81 09 00 00 00 00 00 FF 0F 9F [09:00:49]RasterBufferAndPrint [09:00:49]line Счет N : (1)99624 [09:00:49]line ИНН: 02508201610067 [09:00:49]line Контрольно-Кассовый Чек [09:00:49]line ПРОДАЖА [09:00:49]line ТРК (МРК, ГНК) : 31 [09:00:49]line Товар: 2710124130 [09:00:49]line Аи-92-К-5 [09:00:49]line 6.580 * 66.90 [09:00:49]line = 440.20 [09:00:49]line НДС 12% НСП 1% [09:00:49]line > о реализуемом товаре [09:00:49]line ОКРУГЛЕНИЕ: -0.20 [09:00:49]line ИТОГО: 440.00 [09:00:49]line Внесено: 440.00 [09:00:49]line СДАЧА: 0.00 [09:00:49]line НСП 1% : 3.90 [09:00:49]line НДС 12% : 46.75 [09:00:49]line Наличными: 440.00 [09:00:49]line Безнал.: 0.00 [09:00:49]line Место: АЗС № 143 "Партнер Нефть" [09:00:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:00:49]line СНО: Общий режим [09:00:49]line Чек 28 28.10.2024 09:00 [09:00:49]line Смена: 538 ФФД: 1.0 [09:00:49]line ЗНМ: 0300000096 [09:00:49]line РНМ: 0000000000091693 [09:00:49]line Версия ККМ: 001 [09:00:49]line ФМ: 0000000000871792 [09:00:49]line ФД: 156812 [09:00:49]line ФПД: 279102674709818 [09:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090049&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156812&fm=279102674709818&tin=02508201610067®Number=0000000000091693&sum=44000 [09:00:49]OFD Sender: Processing packet 156812 [packets to send 31, broken 30] [09:00:49]ProducePacketName [09:00:49]name=ofd_packets/00156812 [09:00:49]OFD Sender: To server: pG, [09:00:49]CommunicateWithHost lk.salyk.kg:30040 [09:00:49]ConnectInit lk.salyk.kg [09:00:49]written 0, free lines is 4095 [09:00:49]Connected sock=10 [09:00: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 37 39 32 0F 01 00 00 12 DA 07 01 22 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F4 AB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 C1 52 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 64 02 00 35 04 06 00 FD D7 A7 C8 2D 3A C3 1F 94 E3 E0 20 97 AA [09:00:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 96 3D 47 00 B0 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 37 39 32 10 04 04 00 8C 64 02 00 F4 03 04 00 2E F8 1E 67 B6 04 01 00 00 07 1B 6B 0E B4 5B 6A 2B [09:00:50]CommunicateWithHost err = 0 [09:00:50]CheckOFDResponse [09:00:50]1017 (14) - 77093643461234 [09:00:50]1041 (16) - 0000000000871792 [09:00:50]1040 (4) - 156812 [09:00:50]1012 (4) - 28.10.2024 02:34 [09:00:50]1206 (1) - 0 [09:00:50]OFD Sender: Remove packet 156812 [09:00:50]ProducePacketName [09:00:50]name=ofd_packets/00156812 [09:00:50]NVStorageDeleteData [09:00:50]Write to MH i2c: 01 00 00 AC 09 B5 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: 01 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: 01 07 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: 01 07 00 AC 09 00 00 00 00 00 D9 0C A1 [09:00:50]RasterBufferAndPrint [09:00:50]line [09:00:50]line [09:00:50]line [09:00:50]line [09:00:50]line [09:00:50]written 0, free lines is 3296 [09:00:50]process_action close_receipt done [09:00:50]requested_data is exist [09:00:50]produce_requested_data [09:00:50]requested_item fm.sn is exist - process it [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 11 00 00 [09:00:50]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 17 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 17 00 B3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [09:00:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:00:50]wFMCommunicate OK [09:00:50]requested_item fd.num is exist - process it [09:00:50]SAM_PROTO_GetFieldsCounters [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 13 00 00 [09:00:50]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 62 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 62 00 B4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 64 02 00 0E 04 04 00 1A 02 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 C1 [09:00: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 64 02 00 0E 04 04 00 1A 02 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:00:50]wFMCommunicate OK [09:00:50]SAM_PROTO_GetFieldsCounters done [09:00:50]requested_item shift.num is exist - process it [09:00:50]requested_item shift.opened is exist - process it [09:00:50]req_shift_opened [09:00:50]FM_GetShiftState [09:00:50]SAM_PROTO_GetShiftState [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 13 01 00 [09:00:50]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2D [09:00:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:00:50]wFMCommunicate OK [09:00:50]SAM_PROTO_GetShiftState done [09:00:50]FM_GetShiftState done [09:00:50]req_shift_opened done [09:00:50]requested_item shift.open_date is exist - process it [09:00:50]req_shift_open_date [09:00:50]req_shift_open_date done [09:00:50]produce_requested_data done [09:00:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156812,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:00:50]process_action_free close_receipt [09:00:50]json_value_free [09:00:50]json_value_free done [09:00:50]process_json_proto returns [09:00:50]Send response to host [09:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156812,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:00:50]free response buf [09:00:50]execute_script done [09:00:50]execute_script returns [09:00:50]free content buf [09:00:50]Sock 7.Close socket [09:00:50]Sock 7.Thread stoped [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:21]accept exits with 9 [09:06:21]New connection [09:06:21]New thread 3066748260 created [09:06:21]Thread 3066604900 joined [09:06:21]Waiting for new connection... [09:06:21] Sock 9.Parse request [09:06:21]Sock 9.Check first char [09:06:21]Sock 9.First char is OK [09:06:21]request: POST /json_proto HTTP/1.0 [09:06:21]Method: POST [09:06:21]URL: /json_proto [09:06:21]Method is POST - this is cgi request [09:06:21]url: /json_proto [09:06:21]query_string will be loaded in cgi processing [09:06:21]execute_cgi json_proto POST (null) [09:06:21]execute_cgi path=json_proto method=POST [09:06:21]POST find Content-Length [09:06:21]Host: 172.17.63.3:8080 [09:06:21]Content-Length: 791 [09:06:21]Content-Type: application/json [09:06:21] [09:06:21]POST finish read [09:06:21]Found Content-Length = 791 [09:06:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:21]execute_script... [09:06: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)99625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:21]POST & json_proto [09:06:21]process_json_proto [09:06:21]json parsed OK: [09:06:21]protocol is kg_v1.0 [09:06:21]action value=close_receipt [09:06:21]process_action close_receipt [09:06:21]cmd_close_receipt [09:06:21]MH_GetDate [09:06:21]Write to MH i2c: F0 00 00 B6 09 AE [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 09 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: F0 09 00 B6 09 00 10 54 1F 67 50 D1 6C 64 92 [09:06:21]GetLastDocTimeStamp 1730106049 [09:06:21]current date 1730106384 [09:06:21]FM_GetShiftState [09:06:21]SAM_PROTO_GetShiftState [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 01 00 [09:06:21]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2F [09:06:21]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetShiftState done [09:06:21]FM_GetShiftState done [09:06:21]opened in 1730075526 [09:06:21]opened+sec_in_day 1730161926 [09:06:21]quantity*price = 0 [09:06:21]sum+1 = 1 [09:06:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 29 28.10.2024 09:06 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53523 ФМ: 0000000000871792 ФД: 156813 ФПД: 31563168031675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156813&fm=31563168031675&tin=02508201610067®Number=0000000000091693&sum=0 [09:06:23]StoreToDocumentArchive [09:06:23]shift 538 fd 156813 [09:06:23]save to /storage/0538/doc_00156813 [09:06:23]save last doc name /storage/0538/doc_00156813 to /storage/kkm_last_doc_name [09:06:23]save OK [09:06:23]Clear old archive folders... [09:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:23]tlvbuf is 01A94D40 [09:06:23]SAM_PROTO_ClearQueue [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 09 00 00 [09:06:23]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [09:06:23]RAPDU: 90 00 [09:06:23]wFMCommunicate OK [09:06:23]SAM_PROTO_ClearQueue done [09:06:23]KKMCreateOFDPacket [09:06:23]OFDProtocolAddRootSTLVToBuf [09:06:23]FM_MakeSignedData [09:06:23]FM_MakeSignedData [09:06:23]SAM_PROTO_SignData [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 0D 01 02 [09:06:23]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [09:06:23]RAPDU: 90 00 [09:06:23]wFMCommunicate OK [09:06:23]wFMCommunicate request_size=255 [09:06:23]MH_SAM_APDU [09:06: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 10 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 64 02 00 35 04 06 00 1C [09:06:23]Write to MH i2c: E2 02 01 C6 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 10 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 64 02 00 35 04 06 00 1C 00 00 BF [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [09:06:23]RAPDU: 90 00 [09:06:23]wFMCommunicate OK [09:06:23]wFMCommunicate request_size=10 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 0D 02 02 05 B4 DF 6B 23 BB [09:06:23]Write to MH i2c: E2 0D 00 C7 09 80 0D 02 02 05 00 B4 DF 6B 23 BB 00 00 30 [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [09:06:23]RAPDU: 90 00 [09:06:23]wFMCommunicate OK [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 0D 03 02 [09:06:23]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0B 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0B 00 C8 09 00 B2 88 A4 82 72 8E 21 6B 90 00 39 [09:06:23]RAPDU: B2 88 A4 82 72 8E 21 6B 90 00 [09:06:23]wFMCommunicate OK [09:06:23]SAM_PROTO_SignData done [09:06:23]FM_MakeSignedData done [09:06:23]CreateOFDProtocolMessage [09:06:23]wFMCommunicate request_size=4 [09:06:23]MH_SAM_APDU [09:06:23]CAPDU: 80 11 00 00 [09:06:23]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 17 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 17 00 C9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [09:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:06:23]wFMCommunicate OK [09:06:23]CreateOFDProtocolMessage done [09:06:23]OFDSenderStorePacket 156813 [09:06:23]StoreOFDPacket docnum=156813 [09:06:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 13 81 07 01 4D F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 10 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 64 02 00 35 04 06 00 1C B4 DF 6B 23 BB B2 88 A4 82 72 8E 21 6B [09:06:23]CheckFolder [09:06:23]dirname=/storage/ofd_packets [09:06:23]CheckFolder done [09:06:23]ProducePacketName [09:06:23]name=ofd_packets/00156813 [09:06:23]NVStorageSaveData ofd_packets/00156813 [09:06:23]File name is /storage/ofd_packets/00156813 [09:06:23]Write 301 bytes [09:06:23]NVStorageSaveData done [09:06:23]OFDSenderStorePacket done [09:06:23]KKMCreateOFDPacket done [09:06:23]NVStorageSaveData kkm_last_timestamp [09:06:23]File name is /storage/kkm_last_timestamp [09:06:23]Write 4 bytes [09:06:23]NVStorageSaveData done [09:06:23]OFD Sender: Processing packet 156813 [packets to send 31, broken 30] [09:06:23]ProducePacketName [09:06:23]name=ofd_packets/00156813 [09:06:23]OFD Sender: To server: pG, [09:06:23]CommunicateWithHost lk.salyk.kg:30040 [09:06:23]ConnectInit lk.salyk.kg [09:06:23]ExternCall_PrintAddStr [09:06:23]wPrintStart [09:06:23]Write to MH i2c: 01 00 00 CA 09 D3 [09:06:23]Write i2c OK [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 07 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [09:06:23]RasterBufferAndPrint [09:06:23]line Счет N : (1)99625 [09:06:23]line ИНН: 02508201610067 [09:06:23]line Контрольно-Кассовый Чек [09:06:23]line ПРОДАЖА [09:06:23]line ТРК (МРК, ГНК) : 31 [09:06:23]line Товар: 2710124130 [09:06:23]line Аи-92-К-5 [09:06:23]line 10.000 * 0.00 [09:06:23]line = 0.00 [09:06:23]line НДС 12% НСП 1% [09:06:23]line > о реализуемом товаре [09:06:23]line ИТОГО: 0.00 [09:06:23]line НСП 1% : 0.00 [09:06:23]line НДС 12% : 0.00 [09:06:23]line Наличными: 0.00 [09:06:23]line Безнал.: 0.00 [09:06:23]line Место: АЗС № 143 "Партнер Нефть" [09:06:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:06:23]line СНО: Общий режим [09:06:23]line Чек 29 28.10.2024 09:06 [09:06:23]line Смена: 538 ФФД: 1.0 [09:06:23]line ЗНМ: 0300000096 [09:06:23]line РНМ: 0000000000091693 [09:06:23]line Версия ККМ: 001 [09:06:23]line Талоны: Топливная Карта [09:06:23]line 53523 [09:06:23]line ФМ: 0000000000871792 [09:06:23]line ФД: 156813 [09:06:23]line ФПД: 31563168031675 [09:06:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156813&fm=31563168031675&tin=02508201610067®Number=0000000000091693&sum=0 [09:06:23]Connected sock=11 [09:06: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 37 39 32 0F 01 00 00 13 81 07 01 4D F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 10 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 64 02 00 35 04 06 00 1C B4 DF 6B 23 BB B2 88 A4 82 72 8E 21 6B [09:06:23]written 0, free lines is 4095 [09:06:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6B C5 47 00 EF 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 64 02 00 F4 03 04 00 7C F9 1E 67 B6 04 01 00 00 BB 2F 40 77 D4 CE 37 C2 [09:06:24]CommunicateWithHost err = 0 [09:06:24]CheckOFDResponse [09:06:24]1017 (14) - 77093643461234 [09:06:24]1041 (16) - 0000000000871792 [09:06:24]1040 (4) - 156813 [09:06:24]1012 (4) - 28.10.2024 02:39 [09:06:24]1206 (1) - 0 [09:06:24]OFD Sender: Remove packet 156813 [09:06:24]ProducePacketName [09:06:24]name=ofd_packets/00156813 [09:06:24]NVStorageDeleteData [09:06:24]Write to MH i2c: 01 00 00 F4 09 FD [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: 01 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: 01 07 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: 01 07 00 F4 09 00 00 00 00 00 DE 0C EE [09:06:24]RasterBufferAndPrint [09:06:24]line [09:06:24]line [09:06:24]line [09:06:24]line [09:06:24]line [09:06:24]written 0, free lines is 3300 [09:06:24]process_action close_receipt done [09:06:24]requested_data is exist [09:06:24]produce_requested_data [09:06:24]requested_item fm.sn is exist - process it [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 11 00 00 [09:06:24]Write to MH i2c: E2 08 00 FB 09 80 11 00 00 00 00 00 00 7E [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 17 00 FB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [09:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:06:24]wFMCommunicate OK [09:06:24]requested_item fd.num is exist - process it [09:06:24]SAM_PROTO_GetFieldsCounters [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 00 00 [09:06:24]Write to MH i2c: E2 08 00 FC 09 80 13 00 00 00 00 00 00 81 [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 62 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 62 00 FC 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 64 02 00 0E 04 04 00 1A 02 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 0D [09:06: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 64 02 00 0E 04 04 00 1A 02 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:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetFieldsCounters done [09:06:24]requested_item shift.num is exist - process it [09:06:24]requested_item shift.opened is exist - process it [09:06:24]req_shift_opened [09:06:24]FM_GetShiftState [09:06:24]SAM_PROTO_GetShiftState [09:06:24]wFMCommunicate request_size=4 [09:06:24]MH_SAM_APDU [09:06:24]CAPDU: 80 13 01 00 [09:06:24]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [09:06:24]Write i2c OK [09:06:24]MH_I2C_Read... [09:06:24]OFD Sender: No OFD packet to send [09:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:24]Read from MH i2c: E2 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 [09:06:24]MH_I2C_Read... [09:06:24]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 75 [09:06:24]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:06:24]wFMCommunicate OK [09:06:24]SAM_PROTO_GetShiftState done [09:06:24]FM_GetShiftState done [09:06:24]req_shift_opened done [09:06:24]requested_item shift.open_date is exist - process it [09:06:24]req_shift_open_date [09:06:24]req_shift_open_date done [09:06:24]produce_requested_data done [09:06:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156813,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:06:24]process_action_free close_receipt [09:06:24]json_value_free [09:06:24]json_value_free done [09:06:24]process_json_proto returns [09:06:24]Send response to host [09:06:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156813,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:06:24]free response buf [09:06:24]execute_script done [09:06:24]execute_script returns [09:06:24]free content buf [09:06:24]Sock 9.Close socket [09:06:24]Sock 9.Thread stoped [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:25]accept exits with 7 [09:08:25]New connection [09:08:25]New thread 3066604900 created [09:08:25]Thread 3066748260 joined [09:08:25]Waiting for new connection... [09:08:25] Sock 7.Parse request [09:08:25]Sock 7.Check first char [09:08:25]Sock 7.First char is OK [09:08:25]request: POST /json_proto HTTP/1.0 [09:08:25]Method: POST [09:08:25]URL: /json_proto [09:08:25]Method is POST - this is cgi request [09:08:25]url: /json_proto [09:08:25]query_string will be loaded in cgi processing [09:08:25]execute_cgi json_proto POST (null) [09:08:25]execute_cgi path=json_proto method=POST [09:08:25]POST find Content-Length [09:08:25]Host: 172.17.63.3:8080 [09:08:25]Content-Length: 791 [09:08:25]Content-Type: application/json [09:08:25] [09:08:25]POST finish read [09:08:25]Found Content-Length = 791 [09:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:25]execute_script... [09:08: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)99626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:25]POST & json_proto [09:08:25]process_json_proto [09:08:25]json parsed OK: [09:08:25]protocol is kg_v1.0 [09:08:25]action value=close_receipt [09:08:25]process_action close_receipt [09:08:25]cmd_close_receipt [09:08:25]MH_GetDate [09:08:25]Write to MH i2c: F0 00 00 FE 09 F6 [09:08:25]Write i2c OK [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 09 00 [09:08:25]MH_I2C_Read... [09:08:25]Read from MH i2c: F0 09 00 FE 09 00 8B 54 1F 67 50 D1 6C 64 55 [09:08:25]GetLastDocTimeStamp 1730106384 [09:08:25]current date 1730106507 [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 FF 09 80 13 01 00 00 00 00 00 85 [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 FF 09 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 77 [09:08:25]RAPDU: 09 00 01 86 DB 1E 67 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]opened in 1730075526 [09:08:25]opened+sec_in_day 1730161926 [09:08:25]quantity*price = 0 [09:08:25]sum+1 = 1 [09:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 30 28.10.2024 09:08 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53523 ФМ: 0000000000871792 ФД: 156814 ФПД: 133380542091595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156814&fm=133380542091595&tin=02508201610067®Number=0000000000091693&sum=0 [09:08:26]StoreToDocumentArchive [09:08:26]shift 538 fd 156814 [09:08:26]save to /storage/0538/doc_00156814 [09:08:26]save last doc name /storage/0538/doc_00156814 to /storage/kkm_last_doc_name [09:08:26]save OK [09:08:26]Clear old archive folders... [09:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:26]tlvbuf is 01A59EE0 [09:08:26]SAM_PROTO_ClearQueue [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 09 00 00 [09:08:26]Write to MH i2c: E2 08 00 0C 0A 80 09 00 00 00 00 00 00 88 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 0C 0A 00 90 00 8A [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]SAM_PROTO_ClearQueue done [09:08:26]KKMCreateOFDPacket [09:08:26]OFDProtocolAddRootSTLVToBuf [09:08:26]FM_MakeSignedData [09:08:26]FM_MakeSignedData [09:08:26]SAM_PROTO_SignData [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 0D 01 02 [09:08:26]Write to MH i2c: E2 08 00 0D 0A 80 0D 01 02 00 00 00 00 90 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 0D 0A 00 90 00 8B [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]wFMCommunicate request_size=255 [09:08:26]MH_SAM_APDU [09:08: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 64 02 00 35 04 06 00 79 [09:08:26]Write to MH i2c: E2 02 01 0E 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 64 02 00 35 04 06 00 79 00 00 E2 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 0E 0A 00 90 00 8C [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]wFMCommunicate request_size=10 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 0D 02 02 05 4F 13 D4 D1 4B [09:08:26]Write to MH i2c: E2 0D 00 0F 0A 80 0D 02 02 05 00 4F 13 D4 D1 4B 00 00 EF [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:26]Read from MH i2c: E2 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 [09:08:26]MH_I2C_Read... [09:08:26]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [09:08:26]RAPDU: 90 00 [09:08:26]wFMCommunicate OK [09:08:26]wFMCommunicate request_size=4 [09:08:26]MH_SAM_APDU [09:08:26]CAPDU: 80 0D 03 02 [09:08:26]Write to MH i2c: E2 08 00 10 0A 80 0D 03 02 00 00 00 00 95 [09:08:26]Write i2c OK [09:08:26]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0B 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0B 00 10 0A 00 B6 3C 1B F3 B1 1D 2A 96 90 00 24 [09:08:27]RAPDU: B6 3C 1B F3 B1 1D 2A 96 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_SignData done [09:08:27]FM_MakeSignedData done [09:08:27]CreateOFDProtocolMessage [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 11 00 00 [09:08:27]Write to MH i2c: E2 08 00 11 0A 80 11 00 00 00 00 00 00 95 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 11 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [09:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:27]wFMCommunicate OK [09:08:27]CreateOFDProtocolMessage done [09:08:27]OFDSenderStorePacket 156814 [09:08:27]StoreOFDPacket docnum=156814 [09:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 94 EB 07 01 20 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 64 02 00 35 04 06 00 79 4F 13 D4 D1 4B B6 3C 1B F3 B1 1D 2A 96 [09:08:27]CheckFolder [09:08:27]dirname=/storage/ofd_packets [09:08:27]CheckFolder done [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00156814 [09:08:27]NVStorageSaveData ofd_packets/00156814 [09:08:27]File name is /storage/ofd_packets/00156814 [09:08:27]Write 301 bytes [09:08:27]NVStorageSaveData done [09:08:27]OFDSenderStorePacket done [09:08:27]KKMCreateOFDPacket done [09:08:27]NVStorageSaveData kkm_last_timestamp [09:08:27]File name is /storage/kkm_last_timestamp [09:08:27]Write 4 bytes [09:08:27]NVStorageSaveData done [09:08:27]OFD Sender: Processing packet 156814 [packets to send 31, broken 30] [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00156814 [09:08:27]OFD Sender: To server: pG, [09:08:27]CommunicateWithHost lk.salyk.kg:30040 [09:08:27]ConnectInit lk.salyk.kg [09:08:27]ExternCall_PrintAddStr [09:08:27]wPrintStart [09:08:27]Write to MH i2c: 01 00 00 12 0A 1C [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 12 0A 00 00 00 00 00 FF 0F 31 [09:08:27]RasterBufferAndPrint [09:08:27]line Счет N : (1)99626 [09:08:27]line ИНН: 02508201610067 [09:08:27]line Контрольно-Кассовый Чек [09:08:27]line ПРОДАЖА [09:08:27]line ТРК (МРК, ГНК) : 31 [09:08:27]line Товар: 2710124130 [09:08:27]line Аи-92-К-5 [09:08:27]line 10.000 * 0.00 [09:08:27]line = 0.00 [09:08:27]line НДС 12% НСП 1% [09:08:27]line > о реализуемом товаре [09:08:27]line ИТОГО: 0.00 [09:08:27]line НСП 1% : 0.00 [09:08:27]line НДС 12% : 0.00 [09:08:27]line Наличными: 0.00 [09:08:27]line Безнал.: 0.00 [09:08:27]line Место: АЗС № 143 "Партнер Нефть" [09:08:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:08:27]line СНО: Общий режим [09:08:27]line Чек 30 28.10.2024 09:08 [09:08:27]line Смена: 538 ФФД: 1.0 [09:08:27]line ЗНМ: 0300000096 [09:08:27]line РНМ: 0000000000091693 [09:08:27]line Версия ККМ: 001 [09:08:27]line Талоны: Топливная Карта [09:08:27]line 53523 [09:08:27]line ФМ: 0000000000871792 [09:08:27]line ФД: 156814 [09:08:27]line ФПД: 133380542091595 [09:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T090827&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156814&fm=133380542091595&tin=02508201610067®Number=0000000000091693&sum=0 [09:08:27]written 0, free lines is 4095 [09:08:27]Connected sock=11 [09:08: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 37 39 32 0F 01 00 00 94 EB 07 01 20 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 8B 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 64 02 00 35 04 06 00 79 4F 13 D4 D1 4B B6 3C 1B F3 B1 1D 2A 96 [09:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 B3 47 00 11 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 64 02 00 F4 03 04 00 F8 F9 1E 67 B6 04 01 00 00 66 74 9A F4 7F E7 0B 07 [09:08:27]CommunicateWithHost err = 0 [09:08:27]CheckOFDResponse [09:08:27]1017 (14) - 77093643461234 [09:08:27]1041 (16) - 0000000000871792 [09:08:27]1040 (4) - 156814 [09:08:27]1012 (4) - 28.10.2024 02:42 [09:08:27]1206 (1) - 0 [09:08:27]OFD Sender: Remove packet 156814 [09:08:27]ProducePacketName [09:08:27]name=ofd_packets/00156814 [09:08:27]NVStorageDeleteData [09:08:27]Write to MH i2c: 01 00 00 3C 0A 46 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: 01 07 00 3C 0A 00 00 00 00 00 ED 0C 46 [09:08:27]RasterBufferAndPrint [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]line [09:08:27]written 0, free lines is 3315 [09:08:27]process_action close_receipt done [09:08:27]requested_data is exist [09:08:27]produce_requested_data [09:08:27]requested_item fm.sn is exist - process it [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 11 00 00 [09:08:27]Write to MH i2c: E2 08 00 43 0A 80 11 00 00 00 00 00 00 C7 [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 17 00 43 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [09:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:27]wFMCommunicate OK [09:08:27]requested_item fd.num is exist - process it [09:08:27]SAM_PROTO_GetFieldsCounters [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 13 00 00 [09:08:27]Write to MH i2c: E2 08 00 44 0A 80 13 00 00 00 00 00 00 CA [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 62 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 62 00 44 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 64 02 00 0E 04 04 00 1A 02 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 5A [09:08: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 64 02 00 0E 04 04 00 1A 02 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:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_GetFieldsCounters done [09:08:27]requested_item shift.num is exist - process it [09:08:27]requested_item shift.opened is exist - process it [09:08:27]req_shift_opened [09:08:27]FM_GetShiftState [09:08:27]SAM_PROTO_GetShiftState [09:08:27]wFMCommunicate request_size=4 [09:08:27]MH_SAM_APDU [09:08:27]CAPDU: 80 13 01 00 [09:08:27]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [09:08:27]Write i2c OK [09:08:27]MH_I2C_Read... [09:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:27]Read from MH i2c: E2 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0E 00 [09:08:27]MH_I2C_Read... [09:08:27]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BE [09:08:27]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:08:27]wFMCommunicate OK [09:08:27]SAM_PROTO_GetShiftState done [09:08:27]FM_GetShiftState done [09:08:27]req_shift_opened done [09:08:27]requested_item shift.open_date is exist - process it [09:08:27]req_shift_open_date [09:08:27]req_shift_open_date done [09:08:27]produce_requested_data done [09:08:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156814,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:08:27]process_action_free close_receipt [09:08:27]json_value_free [09:08:27]json_value_free done [09:08:27]process_json_proto returns [09:08:27]Send response to host [09:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156814,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:08:27]free response buf [09:08:27]execute_script done [09:08:27]execute_script returns [09:08:27]free content buf [09:08:27]Sock 7.Close socket [09:08:27]Sock 7.Thread stoped [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 46 0A 50 [09:09:22]*** FLAG_PRN_KEY set [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 46 0A 00 08 00 00 00 FF 0F 6D [09:09:22]state=0 [09:09:22]Key pressed [09:09:22]Feed [09:09:22]Write to MH i2c: D8 00 00 47 0A 28 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 01 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 01 00 47 0A 00 29 [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 48 0A 52 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 48 0A 00 48 00 00 00 3D 00 DE [09:09:22]state=2 [09:09:22]Key pressed [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 49 0A 53 [09:09:22]*** FLAG_PRN_KEY reset [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 49 0A 00 00 00 00 00 F5 0F 5E [09:09:22]state=2 [09:09:22]Stop feed [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 4A 0A 54 [09:09:22]*** FLAG_PRN_KEY set [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 4A 0A 00 08 00 00 00 FF 0F 71 [09:09:22]state=0 [09:09:22]Key pressed [09:09:22]Feed [09:09:22]Write to MH i2c: D8 00 00 4B 0A 2C [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 01 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: D8 01 00 4B 0A 00 2D [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 4C 0A 56 [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 4C 0A 00 48 00 00 00 3C 00 E1 [09:09:22]state=2 [09:09:22]Key pressed [09:09:22]int [09:09:22]Write to MH i2c: 01 00 00 4D 0A 57 [09:09:22]*** FLAG_PRN_KEY reset [09:09:22]Write i2c OK [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 [09:09:22]MH_I2C_Read... [09:09:22]Read from MH i2c: 01 07 00 4D 0A 00 00 00 00 00 F5 0F 62 [09:09:22]state=2 [09:09:22]Stop feed [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:05]accept exits with 9 [09:10:05]New connection [09:10:05]New thread 3066748260 created [09:10:05]Thread 3066604900 joined [09:10:05]Waiting for new connection... [09:10:05] Sock 9.Parse request [09:10:05]Sock 9.Check first char [09:10:05]Sock 9.First char is OK [09:10:05]request: POST /json_proto HTTP/1.0 [09:10:05]Method: POST [09:10:05]URL: /json_proto [09:10:05]Method is POST - this is cgi request [09:10:05]url: /json_proto [09:10:05]query_string will be loaded in cgi processing [09:10:05]execute_cgi json_proto POST (null) [09:10:05]execute_cgi path=json_proto method=POST [09:10:05]POST find Content-Length [09:10:05]Host: 172.17.63.3:8080 [09:10:05]Content-Length: 673 [09:10:05]Content-Type: application/json [09:10:05] [09:10:05]POST finish read [09:10:05]Found Content-Length = 673 [09:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:05]execute_script... [09:10: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)99627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:05]POST & json_proto [09:10:05]process_json_proto [09:10:05]json parsed OK: [09:10:05]protocol is kg_v1.0 [09:10:05]action value=close_receipt [09:10:05]process_action close_receipt [09:10:05]cmd_close_receipt [09:10:05]MH_GetDate [09:10:05]Write to MH i2c: F0 00 00 4E 0A 47 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: F0 09 00 4E 0A 00 EF 54 1F 67 50 D1 6C 64 0A [09:10:05]GetLastDocTimeStamp 1730106507 [09:10:05]current date 1730106607 [09:10:05]FM_GetShiftState [09:10:05]SAM_PROTO_GetShiftState [09:10:05]wFMCommunicate request_size=4 [09:10:05]MH_SAM_APDU [09:10:05]CAPDU: 80 13 01 00 [09:10:05]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [09:10:05]Write i2c OK [09:10:05]MH_I2C_Read... [09:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:05]Read from MH i2c: E2 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 [09:10:05]MH_I2C_Read... [09:10:05]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C8 [09:10:05]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:10:05]wFMCommunicate OK [09:10:05]SAM_PROTO_GetShiftState done [09:10:05]FM_GetShiftState done [09:10:05]opened in 1730075526 [09:10:05]opened+sec_in_day 1730161926 [09:10:05]quantity*price = 30022 [09:10:05]sum+1 = 30024 [09:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 31 28.10.2024 09:10 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156815 ФПД: 146349521442042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156815&fm=146349521442042&tin=02508201610067®Number=0000000000091693&sum=30000 [09:10:06]StoreToDocumentArchive [09:10:06]shift 538 fd 156815 [09:10:06]save to /storage/0538/doc_00156815 [09:10:06]save last doc name /storage/0538/doc_00156815 to /storage/kkm_last_doc_name [09:10:06]save OK [09:10:06]Clear old archive folders... [09:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:10:06]tlvbuf is 01A52600 [09:10:06]SAM_PROTO_ClearQueue [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 09 00 00 [09:10:06]Write to MH i2c: E2 08 00 5C 0A 80 09 00 00 00 00 00 00 D8 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_ClearQueue done [09:10:06]KKMCreateOFDPacket [09:10:06]OFDProtocolAddRootSTLVToBuf [09:10:06]FM_MakeSignedData [09:10:06]FM_MakeSignedData [09:10:06]SAM_PROTO_SignData [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 01 02 [09:10:06]Write to MH i2c: E2 08 00 5D 0A 80 0D 01 02 00 00 00 00 E0 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=255 [09:10:06]MH_SAM_APDU [09:10: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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 1F 00 00 00 F4 03 04 00 EF 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 64 02 00 35 04 06 00 85 1A A7 3D [09:10:06]Write to MH i2c: E2 02 01 5E 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 1F 00 00 00 F4 03 04 00 EF 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 64 02 00 35 04 06 00 85 1A A7 3D 00 00 A3 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=7 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 02 02 02 14 FA [09:10:06]Write to MH i2c: E2 0A 00 5F 0A 80 0D 02 02 02 00 14 FA 00 00 F5 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [09:10:06]RAPDU: 90 00 [09:10:06]wFMCommunicate OK [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 0D 03 02 [09:10:06]Write to MH i2c: E2 08 00 60 0A 80 0D 03 02 00 00 00 00 E5 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:06]Read from MH i2c: E2 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 [09:10:06]MH_I2C_Read... [09:10:06]Read from MH i2c: E2 0B 00 60 0A 00 63 15 2E A7 2F EF C1 72 90 00 84 [09:10:06]RAPDU: 63 15 2E A7 2F EF C1 72 90 00 [09:10:06]wFMCommunicate OK [09:10:06]SAM_PROTO_SignData done [09:10:06]FM_MakeSignedData done [09:10:06]CreateOFDProtocolMessage [09:10:06]wFMCommunicate request_size=4 [09:10:06]MH_SAM_APDU [09:10:06]CAPDU: 80 11 00 00 [09:10:06]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [09:10:06]Write i2c OK [09:10:06]MH_I2C_Read... [09:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:07]Read from MH i2c: E2 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 17 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [09:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:10:07]wFMCommunicate OK [09:10:07]CreateOFDProtocolMessage done [09:10:07]OFDSenderStorePacket 156815 [09:10:07]StoreOFDPacket docnum=156815 [09:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 59 08 04 01 0A 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 1F 00 00 00 F4 03 04 00 EF 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 64 02 00 35 04 06 00 85 1A A7 3D 14 FA 63 15 2E A7 2F EF C1 72 [09:10:07]CheckFolder [09:10:07]dirname=/storage/ofd_packets [09:10:07]CheckFolder done [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00156815 [09:10:07]NVStorageSaveData ofd_packets/00156815 [09:10:07]File name is /storage/ofd_packets/00156815 [09:10:07]Write 298 bytes [09:10:07]NVStorageSaveData done [09:10:07]OFDSenderStorePacket done [09:10:07]KKMCreateOFDPacket done [09:10:07]NVStorageSaveData kkm_last_timestamp [09:10:07]File name is /storage/kkm_last_timestamp [09:10:07]Write 4 bytes [09:10:07]NVStorageSaveData done [09:10:07]ExternCall_PrintAddStr [09:10:07]wPrintStart [09:10:07]Write to MH i2c: 01 00 00 62 0A 6C [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [09:10:07]RasterBufferAndPrint [09:10:07]line Счет N : (1)99627 [09:10:07]line ИНН: 02508201610067 [09:10:07]line Контрольно-Кассовый Чек [09:10:07]line ПРОДАЖА [09:10:07]line ТРК (МРК, ГНК) : 32 [09:10:07]line Товар: 2710194210 [09:10:07]line ДТ-К-5 [09:10:07]line 3.940 * 76.20 [09:10:07]line = 300.23 [09:10:07]line НДС 12% НСП 1% [09:10:07]line > о реализуемом товаре [09:10:07]line ОКРУГЛЕНИЕ: -0.23 [09:10:07]line ИТОГО: 300.00 [09:10:07]line Внесено: 300.00 [09:10:07]line СДАЧА: 0.00 [09:10:07]line НСП 1% : 2.66 [09:10:07]line НДС 12% : 31.88 [09:10:07]line Наличными: 300.00 [09:10:07]line Безнал.: 0.00 [09:10:07]line Место: АЗС № 143 "Партнер Нефть" [09:10:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:10:07]line СНО: Общий режим [09:10:07]line Чек 31 28.10.2024 09:10 [09:10:07]line Смена: 538 ФФД: 1.0 [09:10:07]line ЗНМ: 0300000096 [09:10:07]line РНМ: 0000000000091693 [09:10:07]line Версия ККМ: 001 [09:10:07]line ФМ: 0000000000871792 [09:10:07]line ФД: 156815 [09:10:07]line ФПД: 146349521442042 [09:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156815&fm=146349521442042&tin=02508201610067®Number=0000000000091693&sum=30000 [09:10:07]OFD Sender: Processing packet 156815 [packets to send 31, broken 30] [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00156815 [09:10:07]OFD Sender: To server: pG, [09:10:07]CommunicateWithHost lk.salyk.kg:30040 [09:10:07]ConnectInit lk.salyk.kg [09:10:07]written 0, free lines is 4095 [09:10:07]Connected sock=10 [09:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 59 08 04 01 0A 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 74 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 1F 00 00 00 F4 03 04 00 EF 54 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 64 02 00 35 04 06 00 85 1A A7 3D 14 FA 63 15 2E A7 2F EF C1 72 [09:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 34 47 00 84 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 37 39 32 10 04 04 00 8F 64 02 00 F4 03 04 00 5C FA 1E 67 B6 04 01 00 00 CF F9 C7 45 0F 18 FF 98 [09:10:07]CommunicateWithHost err = 0 [09:10:07]CheckOFDResponse [09:10:07]1017 (14) - 77093643461234 [09:10:07]1041 (16) - 0000000000871792 [09:10:07]1040 (4) - 156815 [09:10:07]1012 (4) - 28.10.2024 02:43 [09:10:07]1206 (1) - 0 [09:10:07]OFD Sender: Remove packet 156815 [09:10:07]ProducePacketName [09:10:07]name=ofd_packets/00156815 [09:10:07]NVStorageDeleteData [09:10:07]Write to MH i2c: 01 00 00 8D 0A 97 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: 01 07 00 8D 0A 00 00 00 00 00 F7 0C A1 [09:10:07]RasterBufferAndPrint [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]line [09:10:07]written 0, free lines is 3327 [09:10:07]process_action close_receipt done [09:10:07]requested_data is exist [09:10:07]produce_requested_data [09:10:07]requested_item fm.sn is exist - process it [09:10:07]wFMCommunicate request_size=4 [09:10:07]MH_SAM_APDU [09:10:07]CAPDU: 80 11 00 00 [09:10:07]Write to MH i2c: E2 08 00 94 0A 80 11 00 00 00 00 00 00 18 [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 [09:10:07]MH_I2C_Read... [09:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:07]Read from MH i2c: E2 17 00 [09:10:07]MH_I2C_Read... [09:10:07]Read from MH i2c: E2 17 00 94 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [09:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:10:07]wFMCommunicate OK [09:10:07]requested_item fd.num is exist - process it [09:10:07]SAM_PROTO_GetFieldsCounters [09:10:07]wFMCommunicate request_size=4 [09:10:07]MH_SAM_APDU [09:10:07]CAPDU: 80 13 00 00 [09:10:07]Write to MH i2c: E2 08 00 95 0A 80 13 00 00 00 00 00 00 1B [09:10:07]Write i2c OK [09:10:07]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 62 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 62 00 95 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 64 02 00 0E 04 04 00 1A 02 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 AF [09:10: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 64 02 00 0E 04 04 00 1A 02 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:10:08]wFMCommunicate OK [09:10:08]SAM_PROTO_GetFieldsCounters done [09:10:08]requested_item shift.num is exist - process it [09:10:08]requested_item shift.opened is exist - process it [09:10:08]req_shift_opened [09:10:08]FM_GetShiftState [09:10:08]SAM_PROTO_GetShiftState [09:10:08]wFMCommunicate request_size=4 [09:10:08]MH_SAM_APDU [09:10:08]CAPDU: 80 13 01 00 [09:10:08]Write to MH i2c: E2 08 00 96 0A 80 13 01 00 00 00 00 00 1D [09:10:08]Write i2c OK [09:10:08]MH_I2C_Read... [09:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:08]Read from MH i2c: E2 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 0E 00 [09:10:08]MH_I2C_Read... [09:10:08]Read from MH i2c: E2 0E 00 96 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0F [09:10:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:10:08]wFMCommunicate OK [09:10:08]SAM_PROTO_GetShiftState done [09:10:08]FM_GetShiftState done [09:10:08]req_shift_opened done [09:10:08]requested_item shift.open_date is exist - process it [09:10:08]req_shift_open_date [09:10:08]req_shift_open_date done [09:10:08]produce_requested_data done [09:10:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156815,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:10:08]process_action_free close_receipt [09:10:08]json_value_free [09:10:08]json_value_free done [09:10:08]process_json_proto returns [09:10:08]Send response to host [09:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156815,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:10:08]free response buf [09:10:08]execute_script done [09:10:08]execute_script returns [09:10:08]free content buf [09:10:08]Sock 9.Close socket [09:10:08]Sock 9.Thread stoped [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:32]int [09:11:32]Write to MH i2c: 01 00 00 97 0A A1 [09:11:32]*** FLAG_PRN_KEY set [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 97 0A 00 08 00 00 00 FF 0F BE [09:11:32]state=0 [09:11:32]Key pressed [09:11:32]Feed [09:11:32]Write to MH i2c: D8 00 00 98 0A 79 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: D8 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: D8 01 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: D8 01 00 98 0A 00 7A [09:11:32]int [09:11:32]Write to MH i2c: 01 00 00 99 0A A3 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 99 0A 00 48 00 00 00 3D 00 2F [09:11:32]state=2 [09:11:32]Key pressed [09:11:32]int [09:11:32]Write to MH i2c: 01 00 00 9A 0A A4 [09:11:32]*** FLAG_PRN_KEY reset [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 9A 0A 00 00 00 00 00 F6 0F B0 [09:11:32]state=2 [09:11:32]Stop feed [09:11:33]OFD Sender: No OFD packet to send [09:11:33]int [09:11:33]Write to MH i2c: 01 00 00 9B 0A A5 [09:11:33]*** FLAG_PRN_KEY set [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 9B 0A 00 08 00 00 00 FF 0F C2 [09:11:33]state=0 [09:11:33]Key pressed [09:11:33]Feed [09:11:33]Write to MH i2c: D8 00 00 9C 0A 7D [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D8 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D8 01 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: D8 01 00 9C 0A 00 7E [09:11:33]int [09:11:33]Write to MH i2c: 01 00 00 9D 0A A7 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: 01 07 00 9D 0A 00 48 00 00 00 3D 00 33 [09:11:33]state=2 [09:11:33]Key pressed [09:11:34]int [09:11:34]Write to MH i2c: 01 00 00 9E 0A A8 [09:11:34]*** FLAG_PRN_KEY reset [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 9E 0A 00 00 00 00 00 F6 0F B4 [09:11:34]state=2 [09:11:34]Stop feed [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:48]accept exits with 7 [09:11:48]New connection [09:11:48]New thread 3066604900 created [09:11:48]Thread 3066748260 joined [09:11:48]Waiting for new connection... [09:11:48] Sock 7.Parse request [09:11:48]Sock 7.Check first char [09:11:48]Sock 7.First char is OK [09:11:48]request: POST /json_proto HTTP/1.0 [09:11:48]Method: POST [09:11:48]URL: /json_proto [09:11:48]Method is POST - this is cgi request [09:11:48]url: /json_proto [09:11:48]query_string will be loaded in cgi processing [09:11:48]execute_cgi json_proto POST (null) [09:11:48]execute_cgi path=json_proto method=POST [09:11:48]POST find Content-Length [09:11:48]Host: 172.17.63.3:8080 [09:11:48]Content-Length: 791 [09:11:48]Content-Type: application/json [09:11:48] [09:11:48]POST finish read [09:11:48]Found Content-Length = 791 [09:11:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:48]execute_script... [09:11: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)99628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:48]POST & json_proto [09:11:48]process_json_proto [09:11:48]json parsed OK: [09:11:48]protocol is kg_v1.0 [09:11:48]action value=close_receipt [09:11:48]process_action close_receipt [09:11:48]cmd_close_receipt [09:11:48]MH_GetDate [09:11:48]Write to MH i2c: F0 00 00 9F 0A 98 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: F0 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: F0 09 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: F0 09 00 9F 0A 00 56 55 1F 67 50 D1 6C 64 C3 [09:11:48]GetLastDocTimeStamp 1730106607 [09:11:48]current date 1730106710 [09:11:48]FM_GetShiftState [09:11:48]SAM_PROTO_GetShiftState [09:11:48]wFMCommunicate request_size=4 [09:11:48]MH_SAM_APDU [09:11:48]CAPDU: 80 13 01 00 [09:11:48]Write to MH i2c: E2 08 00 A0 0A 80 13 01 00 00 00 00 00 27 [09:11:48]Write i2c OK [09:11:48]MH_I2C_Read... [09:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:48]Read from MH i2c: E2 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 0E 00 [09:11:48]MH_I2C_Read... [09:11:48]Read from MH i2c: E2 0E 00 A0 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 19 [09:11:48]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:11:48]wFMCommunicate OK [09:11:48]SAM_PROTO_GetShiftState done [09:11:48]FM_GetShiftState done [09:11:48]opened in 1730075526 [09:11:48]opened+sec_in_day 1730161926 [09:11:48]quantity*price = 0 [09:11:48]sum+1 = 1 [09:11:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 32 28.10.2024 09:11 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 53523 ФМ: 0000000000871792 ФД: 156816 ФПД: 52505133921501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091150&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156816&fm=52505133921501&tin=02508201610067®Number=0000000000091693&sum=0 [09:11:49]StoreToDocumentArchive [09:11:49]shift 538 fd 156816 [09:11:49]save to /storage/0538/doc_00156816 [09:11:49]save last doc name /storage/0538/doc_00156816 to /storage/kkm_last_doc_name [09:11:49]save OK [09:11:49]Clear old archive folders... [09:11:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:49]tlvbuf is 01A61630 [09:11:49]SAM_PROTO_ClearQueue [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 09 00 00 [09:11:49]Write to MH i2c: E2 08 00 AD 0A 80 09 00 00 00 00 00 00 29 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 AD 0A 00 90 00 2B [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]SAM_PROTO_ClearQueue done [09:11:49]KKMCreateOFDPacket [09:11:49]OFDProtocolAddRootSTLVToBuf [09:11:49]FM_MakeSignedData [09:11:49]FM_MakeSignedData [09:11:49]SAM_PROTO_SignData [09:11:49]wFMCommunicate request_size=4 [09:11:49]MH_SAM_APDU [09:11:49]CAPDU: 80 0D 01 02 [09:11:49]Write to MH i2c: E2 08 00 AE 0A 80 0D 01 02 00 00 00 00 31 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:49]Read from MH i2c: E2 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 [09:11:49]MH_I2C_Read... [09:11:49]Read from MH i2c: E2 03 00 AE 0A 00 90 00 2C [09:11:49]RAPDU: 90 00 [09:11:49]wFMCommunicate OK [09:11:49]wFMCommunicate request_size=255 [09:11:49]MH_SAM_APDU [09:11: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 56 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 64 02 00 35 04 06 00 2F [09:11:49]Write to MH i2c: E2 02 01 AF 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 56 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 64 02 00 35 04 06 00 2F 00 00 A4 [09:11:49]Write i2c OK [09:11:49]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 AF 0A 00 90 00 2D [09:11:50]RAPDU: 90 00 [09:11:50]wFMCommunicate OK [09:11:50]wFMCommunicate request_size=10 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 0D 02 02 05 C0 CD DB 34 DD [09:11:50]Write to MH i2c: E2 0D 00 B0 0A 80 0D 02 02 05 00 C0 CD DB 34 DD 00 00 B7 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 03 00 B0 0A 00 90 00 2E [09:11:50]RAPDU: 90 00 [09:11:50]wFMCommunicate OK [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 0D 03 02 [09:11:50]Write to MH i2c: E2 08 00 B1 0A 80 0D 03 02 00 00 00 00 36 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 0B 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 0B 00 B1 0A 00 68 D1 EA 42 34 80 56 A2 90 00 48 [09:11:50]RAPDU: 68 D1 EA 42 34 80 56 A2 90 00 [09:11:50]wFMCommunicate OK [09:11:50]SAM_PROTO_SignData done [09:11:50]FM_MakeSignedData done [09:11:50]CreateOFDProtocolMessage [09:11:50]wFMCommunicate request_size=4 [09:11:50]MH_SAM_APDU [09:11:50]CAPDU: 80 11 00 00 [09:11:50]Write to MH i2c: E2 08 00 B2 0A 80 11 00 00 00 00 00 00 36 [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:50]Read from MH i2c: E2 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 17 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: E2 17 00 B2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [09:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:11:50]wFMCommunicate OK [09:11:50]CreateOFDProtocolMessage done [09:11:50]OFDSenderStorePacket 156816 [09:11:50]StoreOFDPacket docnum=156816 [09:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 62 C5 07 01 AA FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 56 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 64 02 00 35 04 06 00 2F C0 CD DB 34 DD 68 D1 EA 42 34 80 56 A2 [09:11:50]CheckFolder [09:11:50]dirname=/storage/ofd_packets [09:11:50]CheckFolder done [09:11:50]ProducePacketName [09:11:50]name=ofd_packets/00156816 [09:11:50]NVStorageSaveData ofd_packets/00156816 [09:11:50]File name is /storage/ofd_packets/00156816 [09:11:50]Write 301 bytes [09:11:50]NVStorageSaveData done [09:11:50]OFDSenderStorePacket done [09:11:50]KKMCreateOFDPacket done [09:11:50]NVStorageSaveData kkm_last_timestamp [09:11:50]File name is /storage/kkm_last_timestamp [09:11:50]Write 4 bytes [09:11:50]NVStorageSaveData done [09:11:50]ExternCall_PrintAddStr [09:11:50]wPrintStart [09:11:50]Write to MH i2c: 01 00 00 B3 0A BD [09:11:50]Write i2c OK [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 07 00 [09:11:50]MH_I2C_Read... [09:11:50]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 FF 0F D2 [09:11:50]RasterBufferAndPrint [09:11:50]line Счет N : (1)99628 [09:11:50]line ИНН: 02508201610067 [09:11:50]line Контрольно-Кассовый Чек [09:11:50]line ПРОДАЖА [09:11:50]line ТРК (МРК, ГНК) : 31 [09:11:50]line Товар: 2710124130 [09:11:50]line Аи-92-К-5 [09:11:50]line 15.000 * 0.00 [09:11:50]line = 0.00 [09:11:50]line НДС 12% НСП 1% [09:11:50]line > о реализуемом товаре [09:11:50]line ИТОГО: 0.00 [09:11:50]line НСП 1% : 0.00 [09:11:50]line НДС 12% : 0.00 [09:11:50]line Наличными: 0.00 [09:11:50]line Безнал.: 0.00 [09:11:50]line Место: АЗС № 143 "Партнер Нефть" [09:11:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:11:50]line СНО: Общий режим [09:11:50]line Чек 32 28.10.2024 09:11 [09:11:50]line Смена: 538 ФФД: 1.0 [09:11:50]line ЗНМ: 0300000096 [09:11:50]line РНМ: 0000000000091693 [09:11:50]line Версия ККМ: 001 [09:11:50]line Талоны: Топливная Карта [09:11:50]line 53523 [09:11:50]line ФМ: 0000000000871792 [09:11:50]line ФД: 156816 [09:11:50]line ФПД: 52505133921501 [09:11:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091150&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156816&fm=52505133921501&tin=02508201610067®Number=0000000000091693&sum=0 [09:11:50]OFD Sender: Processing packet 156816 [packets to send 31, broken 30] [09:11:50]ProducePacketName [09:11:50]name=ofd_packets/00156816 [09:11:50]OFD Sender: To server: pG, [09:11:50]CommunicateWithHost lk.salyk.kg:30040 [09:11:50]ConnectInit lk.salyk.kg [09:11:50]written 0, free lines is 4095 [09:11:50]Connected sock=10 [09:11: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 37 39 32 0F 01 00 00 62 C5 07 01 AA FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 56 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 64 02 00 35 04 06 00 2F C0 CD DB 34 DD 68 D1 EA 42 34 80 56 A2 [09:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A2 95 47 00 38 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 64 02 00 F4 03 04 00 C3 FA 1E 67 B6 04 01 00 00 4E B4 1B 81 78 03 08 77 [09:11:51]CommunicateWithHost err = 0 [09:11:51]CheckOFDResponse [09:11:51]1017 (14) - 77093643461234 [09:11:51]1041 (16) - 0000000000871792 [09:11:51]1040 (4) - 156816 [09:11:51]1012 (4) - 28.10.2024 02:45 [09:11:51]1206 (1) - 0 [09:11:51]OFD Sender: Remove packet 156816 [09:11:51]ProducePacketName [09:11:51]name=ofd_packets/00156816 [09:11:51]NVStorageDeleteData [09:11:51]Write to MH i2c: 01 00 00 DD 0A E7 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: 01 07 00 DD 0A 00 00 00 00 00 EA 0C E4 [09:11:51]RasterBufferAndPrint [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]line [09:11:51]written 0, free lines is 3312 [09:11:51]process_action close_receipt done [09:11:51]requested_data is exist [09:11:51]produce_requested_data [09:11:51]requested_item fm.sn is exist - process it [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 11 00 00 [09:11:51]Write to MH i2c: E2 08 00 E4 0A 80 11 00 00 00 00 00 00 68 [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:51]Read from MH i2c: E2 17 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 17 00 E4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BD [09:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:11:51]wFMCommunicate OK [09:11:51]requested_item fd.num is exist - process it [09:11:51]SAM_PROTO_GetFieldsCounters [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 13 00 00 [09:11:51]Write to MH i2c: E2 08 00 E5 0A 80 13 00 00 00 00 00 00 6B [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 62 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 62 00 E5 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 64 02 00 0E 04 04 00 1A 02 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 03 [09:11: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 64 02 00 0E 04 04 00 1A 02 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:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_GetFieldsCounters done [09:11:51]requested_item shift.num is exist - process it [09:11:51]requested_item shift.opened is exist - process it [09:11:51]req_shift_opened [09:11:51]FM_GetShiftState [09:11:51]SAM_PROTO_GetShiftState [09:11:51]wFMCommunicate request_size=4 [09:11:51]MH_SAM_APDU [09:11:51]CAPDU: 80 13 01 00 [09:11:51]Write to MH i2c: E2 08 00 E6 0A 80 13 01 00 00 00 00 00 6D [09:11:51]Write i2c OK [09:11:51]MH_I2C_Read... [09:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:51]Read from MH i2c: E2 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 [09:11:51]MH_I2C_Read... [09:11:51]Read from MH i2c: E2 0E 00 E6 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 5F [09:11:51]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:11:51]wFMCommunicate OK [09:11:51]SAM_PROTO_GetShiftState done [09:11:51]FM_GetShiftState done [09:11:51]req_shift_opened done [09:11:51]requested_item shift.open_date is exist - process it [09:11:51]req_shift_open_date [09:11:51]req_shift_open_date done [09:11:51]produce_requested_data done [09:11:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156816,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:11:51]process_action_free close_receipt [09:11:51]json_value_free [09:11:51]json_value_free done [09:11:51]process_json_proto returns [09:11:51]Send response to host [09:11:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156816,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:11:51]free response buf [09:11:51]execute_script done [09:11:51]execute_script returns [09:11:51]free content buf [09:11:51]Sock 7.Close socket [09:11:51]Sock 7.Thread stoped [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:17]int [09:12:17]Write to MH i2c: 01 00 00 E7 0A F1 [09:12:17]*** FLAG_PRN_PAP1 set [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 E7 0A 00 01 00 00 00 FF 0F 07 [09:12:17]state=0 [09:12:17]No paper [09:12:17]int [09:12:17]Write to MH i2c: 01 00 00 E8 0A F2 [09:12:17]*** FLAG_PRN_PAP2 set [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 E8 0A 00 03 00 00 00 FF 0F 0A [09:12:17]state=0 [09:12:17]No paper [09:12:17]Cover opened [09:12:17]int [09:12:17]Write to MH i2c: 01 00 00 E9 0A F3 [09:12:17]*** FLAG_PRN_PAP2 reset [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 E9 0A 00 01 00 00 00 FF 0F 09 [09:12:17]state=3 [09:12:17]No paper [09:12:17]Cover closed [09:12:17]int [09:12:17]Write to MH i2c: 01 00 00 EA 0A F4 [09:12:17]*** FLAG_PRN_PAP2 set [09:12:17]Write i2c OK [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 [09:12:17]MH_I2C_Read... [09:12:17]Read from MH i2c: 01 07 00 EA 0A 00 03 00 00 00 FF 0F 0C [09:12:17]state=0 [09:12:17]No paper [09:12:17]Cover opened [09:12:19]int [09:12:19]Write to MH i2c: 01 00 00 EB 0A F5 [09:12:19]*** FLAG_PRN_PAP2 reset [09:12:19]Write i2c OK [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 07 00 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 07 00 EB 0A 00 01 00 00 00 FF 0F 0B [09:12:19]state=3 [09:12:19]No paper [09:12:19]Cover closed [09:12:19]int [09:12:19]Write to MH i2c: 01 00 00 EC 0A F6 [09:12:19]*** FLAG_PRN_PAP1 reset [09:12:19]Write i2c OK [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 07 00 [09:12:19]MH_I2C_Read... [09:12:19]Read from MH i2c: 01 07 00 EC 0A 00 00 00 00 00 FF 0F 0B [09:12:19]state=0 [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:55]accept exits with 9 [09:12:55]New connection [09:12:55]New thread 3066748260 created [09:12:55]Thread 3066604900 joined [09:12:55]Waiting for new connection... [09:12:55] Sock 9.Parse request [09:12:55]Sock 9.Check first char [09:12:55]Sock 9.First char is OK [09:12:55]request: POST /json_proto HTTP/1.0 [09:12:55]Method: POST [09:12:55]URL: /json_proto [09:12:55]Method is POST - this is cgi request [09:12:55]url: /json_proto [09:12:55]query_string will be loaded in cgi processing [09:12:55]execute_cgi json_proto POST (null) [09:12:55]execute_cgi path=json_proto method=POST [09:12:55]POST find Content-Length [09:12:55]Host: 172.17.63.3:8080 [09:12:55]Content-Length: 681 [09:12:55]Content-Type: application/json [09:12:55] [09:12:55]POST finish read [09:12:55]Found Content-Length = 681 [09:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:12:55]execute_script... [09:12: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)99629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:12:55]POST & json_proto [09:12:55]process_json_proto [09:12:55]json parsed OK: [09:12:55]protocol is kg_v1.0 [09:12:55]action value=close_receipt [09:12:55]process_action close_receipt [09:12:55]cmd_close_receipt [09:12:55]MH_GetDate [09:12:55]Write to MH i2c: F0 00 00 ED 0A E6 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 09 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: F0 09 00 ED 0A 00 99 55 1F 67 50 D1 6C 64 54 [09:12:55]GetLastDocTimeStamp 1730106710 [09:12:55]current date 1730106777 [09:12:55]FM_GetShiftState [09:12:55]SAM_PROTO_GetShiftState [09:12:55]wFMCommunicate request_size=4 [09:12:55]MH_SAM_APDU [09:12:55]CAPDU: 80 13 01 00 [09:12:55]Write to MH i2c: E2 08 00 EE 0A 80 13 01 00 00 00 00 00 75 [09:12:55]Write i2c OK [09:12:55]MH_I2C_Read... [09:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:55]Read from MH i2c: E2 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: E2 0E 00 [09:12:55]MH_I2C_Read... [09:12:55]Read from MH i2c: E2 0E 00 EE 0A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 67 [09:12:55]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:12:55]wFMCommunicate OK [09:12:55]SAM_PROTO_GetShiftState done [09:12:55]FM_GetShiftState done [09:12:55]opened in 1730075526 [09:12:55]opened+sec_in_day 1730161926 [09:12:55]quantity*price = 100015 [09:12:55]sum+1 = 100017 [09:12:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 33 28.10.2024 09:12 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156817 ФПД: 141032081650462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091258&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156817&fm=141032081650462&tin=02508201610067®Number=0000000000091693&sum=100000 [09:12:57]StoreToDocumentArchive [09:12:57]shift 538 fd 156817 [09:12:57]save to /storage/0538/doc_00156817 [09:12:57]save last doc name /storage/0538/doc_00156817 to /storage/kkm_last_doc_name [09:12:57]save OK [09:12:57]Clear old archive folders... [09:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:57]tlvbuf is 01A5A4D0 [09:12:57]SAM_PROTO_ClearQueue [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 09 00 00 [09:12:57]Write to MH i2c: E2 08 00 FB 0A 80 09 00 00 00 00 00 00 77 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 FB 0A 00 90 00 79 [09:12:57]RAPDU: 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_ClearQueue done [09:12:57]KKMCreateOFDPacket [09:12:57]OFDProtocolAddRootSTLVToBuf [09:12:57]FM_MakeSignedData [09:12:57]FM_MakeSignedData [09:12:57]SAM_PROTO_SignData [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 0D 01 02 [09:12:57]Write to MH i2c: E2 08 00 FC 0A 80 0D 01 02 00 00 00 00 7F [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [09:12:57]RAPDU: 90 00 [09:12:57]wFMCommunicate OK [09:12:57]wFMCommunicate request_size=255 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 21 00 00 00 F4 03 04 00 9A 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 64 02 00 35 04 06 00 80 [09:12:57]Write to MH i2c: E2 02 01 FD 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 21 00 00 00 F4 03 04 00 9A 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 64 02 00 35 04 06 00 80 00 00 36 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [09:12:57]RAPDU: 90 00 [09:12:57]wFMCommunicate OK [09:12:57]wFMCommunicate request_size=10 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 0D 02 02 05 44 97 20 F3 1E [09:12:57]Write to MH i2c: E2 0D 00 FE 0A 80 0D 02 02 05 00 44 97 20 F3 1E 00 00 98 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [09:12:57]RAPDU: 90 00 [09:12:57]wFMCommunicate OK [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 0D 03 02 [09:12:57]Write to MH i2c: E2 08 00 FF 0A 80 0D 03 02 00 00 00 00 84 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0B 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 0B 00 FF 0A 00 0A 50 FF EF 1B 99 DC 9A 90 00 F7 [09:12:57]RAPDU: 0A 50 FF EF 1B 99 DC 9A 90 00 [09:12:57]wFMCommunicate OK [09:12:57]SAM_PROTO_SignData done [09:12:57]FM_MakeSignedData done [09:12:57]CreateOFDProtocolMessage [09:12:57]wFMCommunicate request_size=4 [09:12:57]MH_SAM_APDU [09:12:57]CAPDU: 80 11 00 00 [09:12:57]Write to MH i2c: E2 08 00 00 0B 80 11 00 00 00 00 00 00 85 [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:57]Read from MH i2c: E2 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: E2 17 00 00 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [09:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:12:57]wFMCommunicate OK [09:12:57]CreateOFDProtocolMessage done [09:12:57]OFDSenderStorePacket 156817 [09:12:57]StoreOFDPacket docnum=156817 [09:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 0B 07 01 F5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 21 00 00 00 F4 03 04 00 9A 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 64 02 00 35 04 06 00 80 44 97 20 F3 1E 0A 50 FF EF 1B 99 DC 9A [09:12:57]CheckFolder [09:12:57]dirname=/storage/ofd_packets [09:12:57]CheckFolder done [09:12:57]ProducePacketName [09:12:57]name=ofd_packets/00156817 [09:12:57]NVStorageSaveData ofd_packets/00156817 [09:12:57]File name is /storage/ofd_packets/00156817 [09:12:57]Write 301 bytes [09:12:57]NVStorageSaveData done [09:12:57]OFDSenderStorePacket done [09:12:57]KKMCreateOFDPacket done [09:12:57]NVStorageSaveData kkm_last_timestamp [09:12:57]File name is /storage/kkm_last_timestamp [09:12:57]Write 4 bytes [09:12:57]NVStorageSaveData done [09:12:57]ExternCall_PrintAddStr [09:12:57]wPrintStart [09:12:57]Write to MH i2c: 01 00 00 01 0B 0C [09:12:57]Write i2c OK [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 [09:12:57]MH_I2C_Read... [09:12:57]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 FF 0F 21 [09:12:57]RasterBufferAndPrint [09:12:57]line Счет N : (1)99629 [09:12:57]line ИНН: 02508201610067 [09:12:57]line Контрольно-Кассовый Чек [09:12:57]line ПРОДАЖА [09:12:57]line ТРК (МРК, ГНК) : 31 [09:12:57]line Товар: 2710124130 [09:12:57]line Аи-92-К-5 [09:12:57]line 14.950 * 66.90 [09:12:57]line = 1000.16 [09:12:57]line НДС 12% НСП 1% [09:12:57]line > о реализуемом товаре [09:12:57]line ОКРУГЛЕНИЕ: -0.16 [09:12:57]line ИТОГО: 1000.00 [09:12:57]line Внесено: 1000.00 [09:12:57]line СДАЧА: 0.00 [09:12:57]line НСП 1% : 8.85 [09:12:57]line НДС 12% : 106.21 [09:12:57]line Наличными: 1000.00 [09:12:57]line Безнал.: 0.00 [09:12:57]line Место: АЗС № 143 "Партнер Нефть" [09:12:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:12:57]line СНО: Общий режим [09:12:57]line Чек 33 28.10.2024 09:12 [09:12:57]line Смена: 538 ФФД: 1.0 [09:12:57]line ЗНМ: 0300000096 [09:12:57]line РНМ: 0000000000091693 [09:12:57]line Версия ККМ: 001 [09:12:57]line ФМ: 0000000000871792 [09:12:57]line ФД: 156817 [09:12:57]line ФПД: 141032081650462 [09:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091258&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156817&fm=141032081650462&tin=02508201610067®Number=0000000000091693&sum=100000 [09:12:57]OFD Sender: Processing packet 156817 [packets to send 31, broken 30] [09:12:57]ProducePacketName [09:12:57]name=ofd_packets/00156817 [09:12:57]OFD Sender: To server: pG, [09:12:57]CommunicateWithHost lk.salyk.kg:30040 [09:12:57]ConnectInit lk.salyk.kg [09:12:57]written 0, free lines is 4095 [09:12:57]Connected sock=10 [09:12: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 37 39 32 0F 01 00 00 88 0B 07 01 F5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 21 00 00 00 F4 03 04 00 9A 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 64 02 00 35 04 06 00 80 44 97 20 F3 1E 0A 50 FF EF 1B 99 DC 9A [09:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 09 B5 47 00 2F 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 37 39 32 10 04 04 00 91 64 02 00 F4 03 04 00 06 FB 1E 67 B6 04 01 00 00 90 4B EB F1 1B 76 14 06 [09:12:58]CommunicateWithHost err = 0 [09:12:58]CheckOFDResponse [09:12:58]1017 (14) - 77093643461234 [09:12:58]1041 (16) - 0000000000871792 [09:12:58]1040 (4) - 156817 [09:12:58]1012 (4) - 28.10.2024 02:46 [09:12:58]1206 (1) - 0 [09:12:58]OFD Sender: Remove packet 156817 [09:12:58]ProducePacketName [09:12:58]name=ofd_packets/00156817 [09:12:58]NVStorageDeleteData [09:12:58]Write to MH i2c: 01 00 00 2C 0B 37 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 07 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 DD 0C 27 [09:12:58]RasterBufferAndPrint [09:12:58]line [09:12:58]line [09:12:58]line [09:12:58]line [09:12:58]line [09:12:58]written 0, free lines is 3300 [09:12:58]process_action close_receipt done [09:12:58]requested_data is exist [09:12:58]produce_requested_data [09:12:58]requested_item fm.sn is exist - process it [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 11 00 00 [09:12:58]Write to MH i2c: E2 08 00 33 0B 80 11 00 00 00 00 00 00 B8 [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 17 00 33 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [09:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:12:58]wFMCommunicate OK [09:12:58]requested_item fd.num is exist - process it [09:12:58]SAM_PROTO_GetFieldsCounters [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 13 00 00 [09:12:58]Write to MH i2c: E2 08 00 34 0B 80 13 00 00 00 00 00 00 BB [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 62 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 62 00 34 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 64 02 00 0E 04 04 00 1A 02 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 57 [09: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 64 02 00 0E 04 04 00 1A 02 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:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_GetFieldsCounters done [09:12:58]requested_item shift.num is exist - process it [09:12:58]requested_item shift.opened is exist - process it [09:12:58]req_shift_opened [09:12:58]FM_GetShiftState [09:12:58]SAM_PROTO_GetShiftState [09:12:58]wFMCommunicate request_size=4 [09:12:58]MH_SAM_APDU [09:12:58]CAPDU: 80 13 01 00 [09:12:58]Write to MH i2c: E2 08 00 35 0B 80 13 01 00 00 00 00 00 BD [09:12:58]Write i2c OK [09:12:58]MH_I2C_Read... [09:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:58]Read from MH i2c: E2 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0E 00 [09:12:58]MH_I2C_Read... [09:12:58]Read from MH i2c: E2 0E 00 35 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 AF [09:12:58]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:12:58]wFMCommunicate OK [09:12:58]SAM_PROTO_GetShiftState done [09:12:58]FM_GetShiftState done [09:12:58]req_shift_opened done [09:12:58]requested_item shift.open_date is exist - process it [09:12:58]req_shift_open_date [09:12:58]req_shift_open_date done [09:12:58]produce_requested_data done [09:12:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156817,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:12:58]process_action_free close_receipt [09:12:58]json_value_free [09:12:58]json_value_free done [09:12:58]process_json_proto returns [09:12:58]Send response to host [09:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156817,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:12:58]free response buf [09:12:58]execute_script done [09:12:58]execute_script returns [09:12:58]free content buf [09:12:58]Sock 9.Close socket [09:12:58]Sock 9.Thread stoped [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:20]accept exits with 7 [09:14:20]New connection [09:14:20]New thread 3066604900 created [09:14:20]Thread 3066748260 joined [09:14:20]Waiting for new connection... [09:14:20] Sock 7.Parse request [09:14:20]Sock 7.Check first char [09:14:20]Sock 7.First char is OK [09:14:20]request: POST /json_proto HTTP/1.0 [09:14:20]Method: POST [09:14:20]URL: /json_proto [09:14:20]Method is POST - this is cgi request [09:14:20]url: /json_proto [09:14:20]query_string will be loaded in cgi processing [09:14:20]execute_cgi json_proto POST (null) [09:14:20]execute_cgi path=json_proto method=POST [09:14:20]POST find Content-Length [09:14:20]Host: 172.17.63.3:8080 [09:14:20]Content-Length: 676 [09:14:20]Content-Type: application/json [09:14:20] [09:14:20]POST finish read [09:14:20]Found Content-Length = 676 [09:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:20]execute_script... [09:14: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)99630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:14:20]POST & json_proto [09:14:20]process_json_proto [09:14:20]json parsed OK: [09:14:20]protocol is kg_v1.0 [09:14:20]action value=close_receipt [09:14:20]process_action close_receipt [09:14:20]cmd_close_receipt [09:14:20]MH_GetDate [09:14:20]Write to MH i2c: F0 00 00 36 0B 30 [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: F0 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: F0 09 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: F0 09 00 36 0B 00 EF 55 1F 67 50 D1 6C 64 F4 [09:14:20]GetLastDocTimeStamp 1730106778 [09:14:20]current date 1730106863 [09:14:20]FM_GetShiftState [09:14:20]SAM_PROTO_GetShiftState [09:14:20]wFMCommunicate request_size=4 [09:14:20]MH_SAM_APDU [09:14:20]CAPDU: 80 13 01 00 [09:14:20]Write to MH i2c: E2 08 00 37 0B 80 13 01 00 00 00 00 00 BF [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:20]Read from MH i2c: E2 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 0E 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 0E 00 37 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B1 [09:14:20]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:14:20]wFMCommunicate OK [09:14:20]SAM_PROTO_GetShiftState done [09:14:20]FM_GetShiftState done [09:14:20]opened in 1730075526 [09:14:20]opened+sec_in_day 1730161926 [09:14:20]quantity*price = 50041 [09:14:20]sum+1 = 50042 [09:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 34 28.10.2024 09:14 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156818 ФПД: 234630572703752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156818&fm=234630572703752&tin=02508201610067®Number=0000000000091693&sum=50000 [09:14:22]StoreToDocumentArchive [09:14:22]shift 538 fd 156818 [09:14:22]save to /storage/0538/doc_00156818 [09:14:22]save last doc name /storage/0538/doc_00156818 to /storage/kkm_last_doc_name [09:14:22]save OK [09:14:22]Clear old archive folders... [09:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:22]tlvbuf is 01A94340 [09:14:22]SAM_PROTO_ClearQueue [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 09 00 00 [09:14:22]Write to MH i2c: E2 08 00 44 0B 80 09 00 00 00 00 00 00 C1 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 44 0B 00 90 00 C3 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]SAM_PROTO_ClearQueue done [09:14:22]KKMCreateOFDPacket [09:14:22]OFDProtocolAddRootSTLVToBuf [09:14:22]FM_MakeSignedData [09:14:22]FM_MakeSignedData [09:14:22]SAM_PROTO_SignData [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 01 02 [09:14:22]Write to MH i2c: E2 08 00 45 0B 80 0D 01 02 00 00 00 00 C9 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 45 0B 00 90 00 C4 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=255 [09:14:22]MH_SAM_APDU [09:14: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 22 00 00 00 F4 03 04 00 EF 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 64 02 00 35 04 06 00 D5 [09:14:22]Write to MH i2c: E2 02 01 46 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 22 00 00 00 F4 03 04 00 EF 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 64 02 00 35 04 06 00 D5 00 00 32 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 46 0B 00 90 00 C5 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=10 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 02 02 05 65 2F F0 80 08 [09:14:22]Write to MH i2c: E2 0D 00 47 0B 80 0D 02 02 05 00 65 2F F0 80 08 00 00 E2 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [09:14:22]RAPDU: 90 00 [09:14:22]wFMCommunicate OK [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 0D 03 02 [09:14:22]Write to MH i2c: E2 08 00 48 0B 80 0D 03 02 00 00 00 00 CE [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 0B 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 0B 00 48 0B 00 10 B9 EA 91 C9 CE 36 13 90 00 F3 [09:14:22]RAPDU: 10 B9 EA 91 C9 CE 36 13 90 00 [09:14:22]wFMCommunicate OK [09:14:22]SAM_PROTO_SignData done [09:14:22]FM_MakeSignedData done [09:14:22]CreateOFDProtocolMessage [09:14:22]wFMCommunicate request_size=4 [09:14:22]MH_SAM_APDU [09:14:22]CAPDU: 80 11 00 00 [09:14:22]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:22]Read from MH i2c: E2 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 17 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [09:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:14:22]wFMCommunicate OK [09:14:22]CreateOFDProtocolMessage done [09:14:22]OFDSenderStorePacket 156818 [09:14:22]StoreOFDPacket docnum=156818 [09:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 D1 07 01 79 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 22 00 00 00 F4 03 04 00 EF 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 64 02 00 35 04 06 00 D5 65 2F F0 80 08 10 B9 EA 91 C9 CE 36 13 [09:14:22]CheckFolder [09:14:22]dirname=/storage/ofd_packets [09:14:22]CheckFolder done [09:14:22]ProducePacketName [09:14:22]name=ofd_packets/00156818 [09:14:22]NVStorageSaveData ofd_packets/00156818 [09:14:22]File name is /storage/ofd_packets/00156818 [09:14:22]Write 301 bytes [09:14:22]NVStorageSaveData done [09:14:22]OFDSenderStorePacket done [09:14:22]KKMCreateOFDPacket done [09:14:22]NVStorageSaveData kkm_last_timestamp [09:14:22]File name is /storage/kkm_last_timestamp [09:14:22]Write 4 bytes [09:14:22]NVStorageSaveData done [09:14:22]ExternCall_PrintAddStr [09:14:22]wPrintStart [09:14:22]Write to MH i2c: 01 00 00 4A 0B 55 [09:14:22]Write i2c OK [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 07 00 [09:14:22]MH_I2C_Read... [09:14:22]Read from MH i2c: 01 07 00 4A 0B 00 00 00 00 00 FF 0F 6A [09:14:22]RasterBufferAndPrint [09:14:22]line Счет N : (1)99630 [09:14:22]line ИНН: 02508201610067 [09:14:22]line Контрольно-Кассовый Чек [09:14:22]line ПРОДАЖА [09:14:22]line ТРК (МРК, ГНК) : 31 [09:14:22]line Товар: 2710124130 [09:14:22]line Аи-92-К-5 [09:14:22]line 7.480 * 66.90 [09:14:22]line = 500.41 [09:14:22]line НДС 12% НСП 1% [09:14:22]line > о реализуемом товаре [09:14:22]line ОКРУГЛЕНИЕ: -0.41 [09:14:22]line ИТОГО: 500.00 [09:14:22]line Внесено: 500.00 [09:14:22]line СДАЧА: 0.00 [09:14:22]line НСП 1% : 4.43 [09:14:22]line НДС 12% : 53.14 [09:14:22]line Наличными: 500.00 [09:14:22]line Безнал.: 0.00 [09:14:22]line Место: АЗС № 143 "Партнер Нефть" [09:14:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:14:22]line СНО: Общий режим [09:14:22]line Чек 34 28.10.2024 09:14 [09:14:22]line Смена: 538 ФФД: 1.0 [09:14:22]line ЗНМ: 0300000096 [09:14:22]line РНМ: 0000000000091693 [09:14:22]line Версия ККМ: 001 [09:14:22]line ФМ: 0000000000871792 [09:14:22]line ФД: 156818 [09:14:22]line ФПД: 234630572703752 [09:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091423&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156818&fm=234630572703752&tin=02508201610067®Number=0000000000091693&sum=50000 [09:14:22]OFD Sender: Processing packet 156818 [packets to send 31, broken 30] [09:14:22]ProducePacketName [09:14:22]name=ofd_packets/00156818 [09:14:22]OFD Sender: To server: pG, [09:14:22]CommunicateWithHost lk.salyk.kg:30040 [09:14:22]ConnectInit lk.salyk.kg [09:14:22]written 0, free lines is 4095 [09:14:23]Connected sock=10 [09:14: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 37 39 32 0F 01 00 00 08 D1 07 01 79 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 22 00 00 00 F4 03 04 00 EF 55 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 64 02 00 35 04 06 00 D5 65 2F F0 80 08 10 B9 EA 91 C9 CE 36 13 [09:14:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 76 56 47 00 1A 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 37 39 32 10 04 04 00 92 64 02 00 F4 03 04 00 5B FB 1E 67 B6 04 01 00 00 21 FF F8 5B 3A 6E B4 04 [09:14:23]CommunicateWithHost err = 0 [09:14:23]CheckOFDResponse [09:14:23]1017 (14) - 77093643461234 [09:14:23]1041 (16) - 0000000000871792 [09:14:23]1040 (4) - 156818 [09:14:23]1012 (4) - 28.10.2024 02:47 [09:14:23]1206 (1) - 0 [09:14:23]OFD Sender: Remove packet 156818 [09:14:23]ProducePacketName [09:14:23]name=ofd_packets/00156818 [09:14:23]NVStorageDeleteData [09:14:23]Write to MH i2c: 01 00 00 75 0B 80 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 DC 0C 6F [09:14:23]RasterBufferAndPrint [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]line [09:14:23]written 0, free lines is 3298 [09:14:23]process_action close_receipt done [09:14:23]requested_data is exist [09:14:23]produce_requested_data [09:14:23]requested_item fm.sn is exist - process it [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 11 00 00 [09:14:23]Write to MH i2c: E2 08 00 7C 0B 80 11 00 00 00 00 00 00 01 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 17 00 7C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [09:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:14:23]wFMCommunicate OK [09:14:23]requested_item fd.num is exist - process it [09:14:23]SAM_PROTO_GetFieldsCounters [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 13 00 00 [09:14:23]Write to MH i2c: E2 08 00 7D 0B 80 13 00 00 00 00 00 00 04 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 62 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 62 00 7D 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 64 02 00 0E 04 04 00 1A 02 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 A4 [09:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:14:23]wFMCommunicate OK [09:14:23]SAM_PROTO_GetFieldsCounters done [09:14:23]requested_item shift.num is exist - process it [09:14:23]requested_item shift.opened is exist - process it [09:14:23]req_shift_opened [09:14:23]FM_GetShiftState [09:14:23]SAM_PROTO_GetShiftState [09:14:23]wFMCommunicate request_size=4 [09:14:23]MH_SAM_APDU [09:14:23]CAPDU: 80 13 01 00 [09:14:23]Write to MH i2c: E2 08 00 7E 0B 80 13 01 00 00 00 00 00 06 [09:14:23]Write i2c OK [09:14:23]MH_I2C_Read... [09:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:23]Read from MH i2c: E2 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 [09:14:23]MH_I2C_Read... [09:14:23]Read from MH i2c: E2 0E 00 7E 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 F8 [09:14:23]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:14:23]wFMCommunicate OK [09:14:23]SAM_PROTO_GetShiftState done [09:14:23]FM_GetShiftState done [09:14:23]req_shift_opened done [09:14:23]requested_item shift.open_date is exist - process it [09:14:23]req_shift_open_date [09:14:23]req_shift_open_date done [09:14:23]produce_requested_data done [09:14:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156818,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:14:23]process_action_free close_receipt [09:14:23]json_value_free [09:14:23]json_value_free done [09:14:23]process_json_proto returns [09:14:23]Send response to host [09:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156818,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:14:23]free response buf [09:14:23]execute_script done [09:14:23]execute_script returns [09:14:23]free content buf [09:14:23]Sock 7.Close socket [09:14:23]Sock 7.Thread stoped [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:27]accept exits with 9 [09:16:27]New connection [09:16:27]New thread 3066748260 created [09:16:27]Thread 3066604900 joined [09:16:27]Waiting for new connection... [09:16:27] Sock 9.Parse request [09:16:27]Sock 9.Check first char [09:16:27]Sock 9.First char is OK [09:16:27]request: POST /json_proto HTTP/1.0 [09:16:27]Method: POST [09:16:27]URL: /json_proto [09:16:27]Method is POST - this is cgi request [09:16:27]url: /json_proto [09:16:27]query_string will be loaded in cgi processing [09:16:27]execute_cgi json_proto POST (null) [09:16:27]execute_cgi path=json_proto method=POST [09:16:27]POST find Content-Length [09:16:27]Host: 172.17.63.3:8080 [09:16:27]Content-Length: 678 [09:16:27]Content-Type: application/json [09:16:27] [09:16:27]POST finish read [09:16:27]Found Content-Length = 678 [09:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:16:27]execute_script... [09:16: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)99631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:16:27]POST & json_proto [09:16:27]process_json_proto [09:16:27]json parsed OK: [09:16:27]protocol is kg_v1.0 [09:16:27]action value=close_receipt [09:16:27]process_action close_receipt [09:16:27]cmd_close_receipt [09:16:27]MH_GetDate [09:16:27]Write to MH i2c: F0 00 00 7F 0B 79 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: F0 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: F0 09 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: F0 09 00 7F 0B 00 6D 56 1F 67 50 D1 6C 64 BC [09:16:27]GetLastDocTimeStamp 1730106863 [09:16:27]current date 1730106989 [09:16:27]FM_GetShiftState [09:16:27]SAM_PROTO_GetShiftState [09:16:27]wFMCommunicate request_size=4 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 13 01 00 [09:16:27]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 0E 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FA [09:16:27]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:16:27]wFMCommunicate OK [09:16:27]SAM_PROTO_GetShiftState done [09:16:27]FM_GetShiftState done [09:16:27]opened in 1730075526 [09:16:27]opened+sec_in_day 1730161926 [09:16:27]quantity*price = 150037 [09:16:27]sum+1 = 150039 [09:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 35 28.10.2024 09:16 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156819 ФПД: 50061760522650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091629&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156819&fm=50061760522650&tin=02508201610067®Number=0000000000091693&sum=150000 [09:16:28]StoreToDocumentArchive [09:16:28]shift 538 fd 156819 [09:16:28]save to /storage/0538/doc_00156819 [09:16:28]save last doc name /storage/0538/doc_00156819 to /storage/kkm_last_doc_name [09:16:28]save OK [09:16:28]Clear old archive folders... [09:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:16:28]tlvbuf is 01A94D90 [09:16:28]SAM_PROTO_ClearQueue [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 09 00 00 [09:16:28]Write to MH i2c: E2 08 00 8D 0B 80 09 00 00 00 00 00 00 0A [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:28]Read from MH i2c: E2 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 03 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 03 00 8D 0B 00 90 00 0C [09:16:28]RAPDU: 90 00 [09:16:28]wFMCommunicate OK [09:16:28]SAM_PROTO_ClearQueue done [09:16:28]KKMCreateOFDPacket [09:16:28]OFDProtocolAddRootSTLVToBuf [09:16:28]FM_MakeSignedData [09:16:28]FM_MakeSignedData [09:16:28]SAM_PROTO_SignData [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 0D 01 02 [09:16:28]Write to MH i2c: E2 08 00 8E 0B 80 0D 01 02 00 00 00 00 12 [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 8E 0B 00 90 00 0D [09:16:29]RAPDU: 90 00 [09:16:29]wFMCommunicate OK [09:16:29]wFMCommunicate request_size=255 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 23 00 00 00 F4 03 04 00 6D 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 64 02 00 35 04 06 00 2D 87 E9 73 [09:16:29]Write to MH i2c: E2 02 01 8F 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 23 00 00 00 F4 03 04 00 6D 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 64 02 00 35 04 06 00 2D 87 E9 73 00 00 A4 [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 8F 0B 00 90 00 0E [09:16:29]RAPDU: 90 00 [09:16:29]wFMCommunicate OK [09:16:29]wFMCommunicate request_size=7 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 0D 02 02 02 E9 9A [09:16:29]Write to MH i2c: E2 0A 00 90 0B 80 0D 02 02 02 00 E9 9A 00 00 9C [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 03 00 90 0B 00 90 00 0F [09:16:29]RAPDU: 90 00 [09:16:29]wFMCommunicate OK [09:16:29]wFMCommunicate request_size=4 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 0D 03 02 [09:16:29]Write to MH i2c: E2 08 00 91 0B 80 0D 03 02 00 00 00 00 17 [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 0B 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 0B 00 91 0B 00 29 37 43 8B BA 3F 79 C4 90 00 7C [09:16:29]RAPDU: 29 37 43 8B BA 3F 79 C4 90 00 [09:16:29]wFMCommunicate OK [09:16:29]SAM_PROTO_SignData done [09:16:29]FM_MakeSignedData done [09:16:29]CreateOFDProtocolMessage [09:16:29]wFMCommunicate request_size=4 [09:16:29]MH_SAM_APDU [09:16:29]CAPDU: 80 11 00 00 [09:16:29]Write to MH i2c: E2 08 00 92 0B 80 11 00 00 00 00 00 00 17 [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:29]Read from MH i2c: E2 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 17 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: E2 17 00 92 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6C [09:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:29]wFMCommunicate OK [09:16:29]CreateOFDProtocolMessage done [09:16:29]OFDSenderStorePacket 156819 [09:16:29]StoreOFDPacket docnum=156819 [09:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D6 D2 04 01 8D 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 23 00 00 00 F4 03 04 00 6D 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 64 02 00 35 04 06 00 2D 87 E9 73 E9 9A 29 37 43 8B BA 3F 79 C4 [09:16:29]CheckFolder [09:16:29]dirname=/storage/ofd_packets [09:16:29]CheckFolder done [09:16:29]ProducePacketName [09:16:29]name=ofd_packets/00156819 [09:16:29]NVStorageSaveData ofd_packets/00156819 [09:16:29]File name is /storage/ofd_packets/00156819 [09:16:29]Write 298 bytes [09:16:29]NVStorageSaveData done [09:16:29]OFDSenderStorePacket done [09:16:29]KKMCreateOFDPacket done [09:16:29]NVStorageSaveData kkm_last_timestamp [09:16:29]File name is /storage/kkm_last_timestamp [09:16:29]Write 4 bytes [09:16:29]NVStorageSaveData done [09:16:29]ExternCall_PrintAddStr [09:16:29]wPrintStart [09:16:29]Write to MH i2c: 01 00 00 93 0B 9E [09:16:29]Write i2c OK [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: 01 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: 01 07 00 [09:16:29]MH_I2C_Read... [09:16:29]Read from MH i2c: 01 07 00 93 0B 00 00 00 00 00 FF 0F B3 [09:16:29]RasterBufferAndPrint [09:16:29]line Счет N : (1)99631 [09:16:29]line ИНН: 02508201610067 [09:16:29]line Контрольно-Кассовый Чек [09:16:29]line ПРОДАЖА [09:16:29]line ТРК (МРК, ГНК) : 32 [09:16:29]line Товар: 2710194210 [09:16:29]line ДТ-К-5 [09:16:29]line 19.690 * 76.20 [09:16:29]line = 1500.38 [09:16:29]line НДС 12% НСП 1% [09:16:29]line > о реализуемом товаре [09:16:29]line ОКРУГЛЕНИЕ: -0.38 [09:16:29]line ИТОГО: 1500.00 [09:16:29]line Внесено: 1500.00 [09:16:29]line СДАЧА: 0.00 [09:16:29]line НСП 1% : 13.28 [09:16:29]line НДС 12% : 159.33 [09:16:29]line Наличными: 1500.00 [09:16:29]line Безнал.: 0.00 [09:16:29]line Место: АЗС № 143 "Партнер Нефть" [09:16:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:16:29]line СНО: Общий режим [09:16:29]line Чек 35 28.10.2024 09:16 [09:16:29]line Смена: 538 ФФД: 1.0 [09:16:29]line ЗНМ: 0300000096 [09:16:29]line РНМ: 0000000000091693 [09:16:29]line Версия ККМ: 001 [09:16:29]line ФМ: 0000000000871792 [09:16:29]line ФД: 156819 [09:16:29]line ФПД: 50061760522650 [09:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091629&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156819&fm=50061760522650&tin=02508201610067®Number=0000000000091693&sum=150000 [09:16:29]OFD Sender: Processing packet 156819 [packets to send 31, broken 30] [09:16:29]ProducePacketName [09:16:29]name=ofd_packets/00156819 [09:16:29]OFD Sender: To server: pG, [09:16:29]CommunicateWithHost lk.salyk.kg:30040 [09:16:29]ConnectInit lk.salyk.kg [09:16:29]written 0, free lines is 4095 [09:16:29]Connected sock=10 [09:16: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 37 39 32 0C 01 00 00 D6 D2 04 01 8D 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 23 00 00 00 F4 03 04 00 6D 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 64 02 00 35 04 06 00 2D 87 E9 73 E9 9A 29 37 43 8B BA 3F 79 C4 [09:16:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9C 15 47 00 10 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 64 02 00 F4 03 04 00 DA FB 1E 67 B6 04 01 00 00 18 6B C6 4A 68 75 30 F7 [09:16:30]CommunicateWithHost err = 0 [09:16:30]CheckOFDResponse [09:16:30]1017 (14) - 77093643461234 [09:16:30]1041 (16) - 0000000000871792 [09:16:30]1040 (4) - 156819 [09:16:30]1012 (4) - 28.10.2024 02:50 [09:16:30]1206 (1) - 0 [09:16:30]OFD Sender: Remove packet 156819 [09:16:30]ProducePacketName [09:16:30]name=ofd_packets/00156819 [09:16:30]NVStorageDeleteData [09:16:30]Write to MH i2c: 01 00 00 BE 0B C9 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 07 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 F5 0C D1 [09:16:30]RasterBufferAndPrint [09:16:30]line [09:16:30]line [09:16:30]line [09:16:30]line [09:16:30]line [09:16:30]written 0, free lines is 3324 [09:16:30]process_action close_receipt done [09:16:30]requested_data is exist [09:16:30]produce_requested_data [09:16:30]requested_item fm.sn is exist - process it [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 11 00 00 [09:16:30]Write to MH i2c: E2 08 00 C5 0B 80 11 00 00 00 00 00 00 4A [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 C5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9F [09:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:16:30]wFMCommunicate OK [09:16:30]requested_item fd.num is exist - process it [09:16:30]SAM_PROTO_GetFieldsCounters [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 13 00 00 [09:16:30]Write to MH i2c: E2 08 00 C6 0B 80 13 00 00 00 00 00 00 4D [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 62 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 62 00 C6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 64 02 00 0E 04 04 00 1A 02 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 F1 [09:16: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_GetFieldsCounters done [09:16:30]requested_item shift.num is exist - process it [09:16:30]requested_item shift.opened is exist - process it [09:16:30]req_shift_opened [09:16:30]FM_GetShiftState [09:16:30]SAM_PROTO_GetShiftState [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 13 01 00 [09:16:30]Write to MH i2c: E2 08 00 C7 0B 80 13 01 00 00 00 00 00 4F [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:30]Read from MH i2c: E2 0E 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 0E 00 C7 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 41 [09:16:30]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_GetShiftState done [09:16:30]FM_GetShiftState done [09:16:30]req_shift_opened done [09:16:30]requested_item shift.open_date is exist - process it [09:16:30]req_shift_open_date [09:16:30]req_shift_open_date done [09:16:30]produce_requested_data done [09:16:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156819,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:16:30]process_action_free close_receipt [09:16:30]json_value_free [09:16:30]json_value_free done [09:16:30]process_json_proto returns [09:16:30]Send response to host [09:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156819,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:16:30]free response buf [09:16:30]execute_script done [09:16:30]execute_script returns [09:16:30]free content buf [09:16:30]Sock 9.Close socket [09:16:30]Sock 9.Thread stoped [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:09]accept exits with 7 [09:18:09]New connection [09:18:09]New thread 3066604900 created [09:18:09]Thread 3066748260 joined [09:18:09]Waiting for new connection... [09:18:09] Sock 7.Parse request [09:18:09]Sock 7.Check first char [09:18:09]Sock 7.First char is OK [09:18:09]request: POST /json_proto HTTP/1.0 [09:18:09]Method: POST [09:18:09]URL: /json_proto [09:18:09]Method is POST - this is cgi request [09:18:09]url: /json_proto [09:18:09]query_string will be loaded in cgi processing [09:18:09]execute_cgi json_proto POST (null) [09:18:09]execute_cgi path=json_proto method=POST [09:18:09]POST find Content-Length [09:18:09]Host: 172.17.63.3:8080 [09:18:09]Content-Length: 673 [09:18:09]Content-Type: application/json [09:18:09] [09:18:09]POST finish read [09:18:09]Found Content-Length = 673 [09:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:18:09]execute_script... [09:18: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)99632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:18:09]POST & json_proto [09:18:09]process_json_proto [09:18:09]json parsed OK: [09:18:09]protocol is kg_v1.0 [09:18:09]action value=close_receipt [09:18:09]process_action close_receipt [09:18:09]cmd_close_receipt [09:18:09]MH_GetDate [09:18:09]Write to MH i2c: F0 00 00 C8 0B C2 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: F0 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: F0 09 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: F0 09 00 C8 0B 00 D3 56 1F 67 50 D1 6C 64 6B [09:18:09]GetLastDocTimeStamp 1730106989 [09:18:09]current date 1730107091 [09:18:09]FM_GetShiftState [09:18:09]SAM_PROTO_GetShiftState [09:18:09]wFMCommunicate request_size=4 [09:18:09]MH_SAM_APDU [09:18:09]CAPDU: 80 13 01 00 [09:18:09]Write to MH i2c: E2 08 00 C9 0B 80 13 01 00 00 00 00 00 51 [09:18:09]Write i2c OK [09:18:09]MH_I2C_Read... [09:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:09]Read from MH i2c: E2 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 0E 00 [09:18:09]MH_I2C_Read... [09:18:09]Read from MH i2c: E2 0E 00 C9 0B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 43 [09:18:09]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:18:09]wFMCommunicate OK [09:18:09]SAM_PROTO_GetShiftState done [09:18:09]FM_GetShiftState done [09:18:09]opened in 1730075526 [09:18:09]opened+sec_in_day 1730161926 [09:18:09]quantity*price = 50063 [09:18:09]sum+1 = 50064 [09:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 36 28.10.2024 09:18 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156820 ФПД: 74773143511407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156820&fm=74773143511407&tin=02508201610067®Number=0000000000091693&sum=50000 [09:18:10]StoreToDocumentArchive [09:18:10]shift 538 fd 156820 [09:18:10]save to /storage/0538/doc_00156820 [09:18:10]save last doc name /storage/0538/doc_00156820 to /storage/kkm_last_doc_name [09:18:10]save OK [09:18:10]Clear old archive folders... [09:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:10]tlvbuf is 01A7BE10 [09:18:10]SAM_PROTO_ClearQueue [09:18:10]wFMCommunicate request_size=4 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 09 00 00 [09:18:10]Write to MH i2c: E2 08 00 D6 0B 80 09 00 00 00 00 00 00 53 [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:10]Read from MH i2c: E2 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [09:18:10]RAPDU: 90 00 [09:18:10]wFMCommunicate OK [09:18:10]SAM_PROTO_ClearQueue done [09:18:10]KKMCreateOFDPacket [09:18:10]OFDProtocolAddRootSTLVToBuf [09:18:10]FM_MakeSignedData [09:18:10]FM_MakeSignedData [09:18:10]SAM_PROTO_SignData [09:18:10]wFMCommunicate request_size=4 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 0D 01 02 [09:18:10]Write to MH i2c: E2 08 00 D7 0B 80 0D 01 02 00 00 00 00 5B [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:10]Read from MH i2c: E2 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [09:18:10]RAPDU: 90 00 [09:18:10]wFMCommunicate OK [09:18:10]wFMCommunicate request_size=255 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 24 00 00 00 F4 03 04 00 D3 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 64 02 00 35 04 06 00 44 01 7A A8 [09:18:10]Write to MH i2c: E2 02 01 D8 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 24 00 00 00 F4 03 04 00 D3 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 64 02 00 35 04 06 00 44 01 7A A8 00 00 BD [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]OFD Sender: No OFD packet to send [09:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:10]Read from MH i2c: E2 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [09:18:10]RAPDU: 90 00 [09:18:10]wFMCommunicate OK [09:18:10]wFMCommunicate request_size=7 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 0D 02 02 02 61 6F [09:18:10]Write to MH i2c: E2 0A 00 D9 0B 80 0D 02 02 02 00 61 6F 00 00 32 [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:10]Read from MH i2c: E2 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 [09:18:10]MH_I2C_Read... [09:18:10]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [09:18:10]RAPDU: 90 00 [09:18:10]wFMCommunicate OK [09:18:10]wFMCommunicate request_size=4 [09:18:10]MH_SAM_APDU [09:18:10]CAPDU: 80 0D 03 02 [09:18:10]Write to MH i2c: E2 08 00 DA 0B 80 0D 03 02 00 00 00 00 60 [09:18:10]Write i2c OK [09:18:10]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 0B 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 0B 00 DA 0B 00 30 D8 C5 C6 61 CA DC FF 90 00 FA [09:18:11]RAPDU: 30 D8 C5 C6 61 CA DC FF 90 00 [09:18:11]wFMCommunicate OK [09:18:11]SAM_PROTO_SignData done [09:18:11]FM_MakeSignedData done [09:18:11]CreateOFDProtocolMessage [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 11 00 00 [09:18:11]Write to MH i2c: E2 08 00 DB 0B 80 11 00 00 00 00 00 00 60 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 DB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [09:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:18:11]wFMCommunicate OK [09:18:11]CreateOFDProtocolMessage done [09:18:11]OFDSenderStorePacket 156820 [09:18:11]StoreOFDPacket docnum=156820 [09:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 FF 04 04 01 D9 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 24 00 00 00 F4 03 04 00 D3 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 64 02 00 35 04 06 00 44 01 7A A8 61 6F 30 D8 C5 C6 61 CA DC FF [09:18:11]CheckFolder [09:18:11]dirname=/storage/ofd_packets [09:18:11]CheckFolder done [09:18:11]ProducePacketName [09:18:11]name=ofd_packets/00156820 [09:18:11]NVStorageSaveData ofd_packets/00156820 [09:18:11]File name is /storage/ofd_packets/00156820 [09:18:11]Write 298 bytes [09:18:11]NVStorageSaveData done [09:18:11]OFDSenderStorePacket done [09:18:11]KKMCreateOFDPacket done [09:18:11]NVStorageSaveData kkm_last_timestamp [09:18:11]File name is /storage/kkm_last_timestamp [09:18:11]Write 4 bytes [09:18:11]NVStorageSaveData done [09:18:11]ExternCall_PrintAddStr [09:18:11]wPrintStart [09:18:11]Write to MH i2c: 01 00 00 DC 0B E7 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 DC 0B 00 00 00 00 00 FF 0F FC [09:18:11]RasterBufferAndPrint [09:18:11]line Счет N : (1)99632 [09:18:11]line ИНН: 02508201610067 [09:18:11]line Контрольно-Кассовый Чек [09:18:11]line ПРОДАЖА [09:18:11]line ТРК (МРК, ГНК) : 32 [09:18:11]line Товар: 2710194210 [09:18:11]line ДТ-К-5 [09:18:11]line 6.570 * 76.20 [09:18:11]line = 500.63 [09:18:11]line НДС 12% НСП 1% [09:18:11]line > о реализуемом товаре [09:18:11]line ОКРУГЛЕНИЕ: -0.63 [09:18:11]line ИТОГО: 500.00 [09:18:11]line Внесено: 500.00 [09:18:11]line СДАЧА: 0.00 [09:18:11]line НСП 1% : 4.43 [09:18:11]line НДС 12% : 53.16 [09:18:11]line Наличными: 500.00 [09:18:11]line Безнал.: 0.00 [09:18:11]line Место: АЗС № 143 "Партнер Нефть" [09:18:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:18:11]line СНО: Общий режим [09:18:11]line Чек 36 28.10.2024 09:18 [09:18:11]line Смена: 538 ФФД: 1.0 [09:18:11]line ЗНМ: 0300000096 [09:18:11]line РНМ: 0000000000091693 [09:18:11]line Версия ККМ: 001 [09:18:11]line ФМ: 0000000000871792 [09:18:11]line ФД: 156820 [09:18:11]line ФПД: 74773143511407 [09:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156820&fm=74773143511407&tin=02508201610067®Number=0000000000091693&sum=50000 [09:18:11]OFD Sender: Processing packet 156820 [packets to send 31, broken 30] [09:18:11]ProducePacketName [09:18:11]name=ofd_packets/00156820 [09:18:11]OFD Sender: To server: pG, [09:18:11]CommunicateWithHost lk.salyk.kg:30040 [09:18:11]ConnectInit lk.salyk.kg [09:18:11]written 0, free lines is 4095 [09:18:11]Connected sock=10 [09:18: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 37 39 32 0C 01 00 00 FF 04 04 01 D9 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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 24 00 00 00 F4 03 04 00 D3 56 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 64 02 00 35 04 06 00 44 01 7A A8 61 6F 30 D8 C5 C6 61 CA DC FF [09:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B0 D1 47 00 91 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 64 02 00 F4 03 04 00 40 FC 1E 67 B6 04 01 00 00 46 48 DE 2C 69 FA 14 D8 [09:18:11]CommunicateWithHost err = 0 [09:18:11]CheckOFDResponse [09:18:11]1017 (14) - 77093643461234 [09:18:11]1041 (16) - 0000000000871792 [09:18:11]1040 (4) - 156820 [09:18:11]1012 (4) - 28.10.2024 02:51 [09:18:11]1206 (1) - 0 [09:18:11]OFD Sender: Remove packet 156820 [09:18:11]ProducePacketName [09:18:11]name=ofd_packets/00156820 [09:18:11]NVStorageDeleteData [09:18:11]Write to MH i2c: 01 00 00 07 0C 13 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: 01 07 00 07 0C 00 00 00 00 00 DC 0C 02 [09:18:11]RasterBufferAndPrint [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]line [09:18:11]written 0, free lines is 3299 [09:18:11]process_action close_receipt done [09:18:11]requested_data is exist [09:18:11]produce_requested_data [09:18:11]requested_item fm.sn is exist - process it [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 11 00 00 [09:18:11]Write to MH i2c: E2 08 00 0E 0C 80 11 00 00 00 00 00 00 94 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:11]Read from MH i2c: E2 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 [09:18:11]MH_I2C_Read... [09:18:11]Read from MH i2c: E2 17 00 0E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [09:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:18:11]wFMCommunicate OK [09:18:11]requested_item fd.num is exist - process it [09:18:11]SAM_PROTO_GetFieldsCounters [09:18:11]wFMCommunicate request_size=4 [09:18:11]MH_SAM_APDU [09:18:11]CAPDU: 80 13 00 00 [09:18:11]Write to MH i2c: E2 08 00 0F 0C 80 13 00 00 00 00 00 00 97 [09:18:11]Write i2c OK [09:18:11]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 62 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 62 00 0F 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 64 02 00 0E 04 04 00 1A 02 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 3F [09:18: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 64 02 00 0E 04 04 00 1A 02 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 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_GetFieldsCounters done [09:18:12]requested_item shift.num is exist - process it [09:18:12]requested_item shift.opened is exist - process it [09:18:12]req_shift_opened [09:18:12]FM_GetShiftState [09:18:12]SAM_PROTO_GetShiftState [09:18:12]wFMCommunicate request_size=4 [09:18:12]MH_SAM_APDU [09:18:12]CAPDU: 80 13 01 00 [09:18:12]Write to MH i2c: E2 08 00 10 0C 80 13 01 00 00 00 00 00 99 [09:18:12]Write i2c OK [09:18:12]MH_I2C_Read... [09:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:12]Read from MH i2c: E2 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 [09:18:12]MH_I2C_Read... [09:18:12]Read from MH i2c: E2 0E 00 10 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 8B [09:18:12]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:18:12]wFMCommunicate OK [09:18:12]SAM_PROTO_GetShiftState done [09:18:12]FM_GetShiftState done [09:18:12]req_shift_opened done [09:18:12]requested_item shift.open_date is exist - process it [09:18:12]req_shift_open_date [09:18:12]req_shift_open_date done [09:18:12]produce_requested_data done [09:18:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156820,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:18:12]process_action_free close_receipt [09:18:12]json_value_free [09:18:12]json_value_free done [09:18:12]process_json_proto returns [09:18:12]Send response to host [09:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156820,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:18:12]free response buf [09:18:12]execute_script done [09:18:12]execute_script returns [09:18:12]free content buf [09:18:12]Sock 7.Close socket [09:18:12]Sock 7.Thread stoped [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [09:19:23]accept exits with 9 [09:19:23]New connection [09:19:23]New thread 3066748260 created [09:19:23]Thread 3066604900 joined [09:19:23]Waiting for new connection... [09:19:23] Sock 9.Parse request [09:19:23]Sock 9.Check first char [09:19:23]Sock 9.First char is OK [09:19:23]request: POST /json_proto HTTP/1.0 [09:19:23]Method: POST [09:19:23]URL: /json_proto [09:19:23]Method is POST - this is cgi request [09:19:23]url: /json_proto [09:19:23]query_string will be loaded in cgi processing [09:19:23]execute_cgi json_proto POST (null) [09:19:23]execute_cgi path=json_proto method=POST [09:19:23]POST find Content-Length [09:19:23]Host: 172.17.63.3:8080 [09:19:23]Content-Length: 676 [09:19:23]Content-Type: application/json [09:19:23] [09:19:23]POST finish read [09:19:23]Found Content-Length = 676 [09:19:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:23]execute_script... [09:19:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:23]POST & json_proto [09:19:23]process_json_proto [09:19:23]json parsed OK: [09:19:23]protocol is kg_v1.0 [09:19:23]action value=close_receipt [09:19:23]process_action close_receipt [09:19:23]cmd_close_receipt [09:19:23]MH_GetDate [09:19:23]Write to MH i2c: F0 00 00 11 0C 0C [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: F0 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: F0 09 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: F0 09 00 11 0C 00 1D 57 1F 67 50 D1 6C 64 00 [09:19:23]GetLastDocTimeStamp 1730107091 [09:19:23]current date 1730107165 [09:19:23]FM_GetShiftState [09:19:23]SAM_PROTO_GetShiftState [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 13 01 00 [09:19:23]Write to MH i2c: E2 08 00 12 0C 80 13 01 00 00 00 00 00 9B [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 0E 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 0E 00 12 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 8D [09:19:23]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:19:23]wFMCommunicate OK [09:19:23]SAM_PROTO_GetShiftState done [09:19:23]FM_GetShiftState done [09:19:23]opened in 1730075526 [09:19:23]opened+sec_in_day 1730161926 [09:19:23]quantity*price = 12042 [09:19:23]sum+1 = 12043 [09:19:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 37 28.10.2024 09:19 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156821 ФПД: 183417602879678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091925&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156821&fm=183417602879678&tin=02508201610067®Number=0000000000091693&sum=12000 [09:19:24]StoreToDocumentArchive [09:19:24]shift 538 fd 156821 [09:19:24]save to /storage/0538/doc_00156821 [09:19:24]save last doc name /storage/0538/doc_00156821 to /storage/kkm_last_doc_name [09:19:24]save OK [09:19:24]Clear old archive folders... [09:19:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:24]tlvbuf is 01A8D420 [09:19:24]SAM_PROTO_ClearQueue [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 09 00 00 [09:19:24]Write to MH i2c: E2 08 00 1F 0C 80 09 00 00 00 00 00 00 9D [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 03 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [09:19:24]RAPDU: 90 00 [09:19:24]wFMCommunicate OK [09:19:24]SAM_PROTO_ClearQueue done [09:19:24]KKMCreateOFDPacket [09:19:24]OFDProtocolAddRootSTLVToBuf [09:19:24]FM_MakeSignedData [09:19:24]FM_MakeSignedData [09:19:24]SAM_PROTO_SignData [09:19:24]wFMCommunicate request_size=4 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 0D 01 02 [09:19:24]Write to MH i2c: E2 08 00 20 0C 80 0D 01 02 00 00 00 00 A5 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:24]Read from MH i2c: E2 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 03 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: E2 03 00 20 0C 00 90 00 A0 [09:19:24]RAPDU: 90 00 [09:19:24]wFMCommunicate OK [09:19:24]wFMCommunicate request_size=255 [09:19:24]MH_SAM_APDU [09:19:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 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 1D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 64 02 00 35 04 06 00 A6 [09:19:25]Write to MH i2c: E2 02 01 21 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 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 1D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 64 02 00 35 04 06 00 A6 00 00 9E [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 03 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 03 00 21 0C 00 90 00 A1 [09:19:25]RAPDU: 90 00 [09:19:25]wFMCommunicate OK [09:19:25]wFMCommunicate request_size=10 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 0D 02 02 05 D1 3D 10 B0 BE [09:19:25]Write to MH i2c: E2 0D 00 22 0C 80 0D 02 02 05 00 D1 3D 10 B0 BE 00 00 3E [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 03 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [09:19:25]RAPDU: 90 00 [09:19:25]wFMCommunicate OK [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 0D 03 02 [09:19:25]Write to MH i2c: E2 08 00 23 0C 80 0D 03 02 00 00 00 00 AA [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0B 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0B 00 23 0C 00 03 E9 22 91 34 98 87 72 90 00 0F [09:19:25]RAPDU: 03 E9 22 91 34 98 87 72 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_SignData done [09:19:25]FM_MakeSignedData done [09:19:25]CreateOFDProtocolMessage [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 11 00 00 [09:19:25]Write to MH i2c: E2 08 00 24 0C 80 11 00 00 00 00 00 00 AA [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 24 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [09:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:25]wFMCommunicate OK [09:19:25]CreateOFDProtocolMessage done [09:19:25]OFDSenderStorePacket 156821 [09:19:25]StoreOFDPacket docnum=156821 [09:19:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 EC 07 01 63 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 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 1D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 64 02 00 35 04 06 00 A6 D1 3D 10 B0 BE 03 E9 22 91 34 98 87 72 [09:19:25]CheckFolder [09:19:25]dirname=/storage/ofd_packets [09:19:25]CheckFolder done [09:19:25]ProducePacketName [09:19:25]name=ofd_packets/00156821 [09:19:25]NVStorageSaveData ofd_packets/00156821 [09:19:25]File name is /storage/ofd_packets/00156821 [09:19:25]Write 301 bytes [09:19:25]NVStorageSaveData done [09:19:25]OFDSenderStorePacket done [09:19:25]KKMCreateOFDPacket done [09:19:25]NVStorageSaveData kkm_last_timestamp [09:19:25]File name is /storage/kkm_last_timestamp [09:19:25]Write 4 bytes [09:19:25]NVStorageSaveData done [09:19:25]ExternCall_PrintAddStr [09:19:25]wPrintStart [09:19:25]Write to MH i2c: 01 00 00 25 0C 31 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: 01 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: 01 07 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: 01 07 00 25 0C 00 00 00 00 00 FF 0F 46 [09:19:25]RasterBufferAndPrint [09:19:25]line Счет N : (1)99633 [09:19:25]line ИНН: 02508201610067 [09:19:25]line Контрольно-Кассовый Чек [09:19:25]line ПРОДАЖА [09:19:25]line ТРК (МРК, ГНК) : 31 [09:19:25]line Товар: 2710124130 [09:19:25]line Аи-92-К-5 [09:19:25]line 1.800 * 66.90 [09:19:25]line = 120.42 [09:19:25]line НДС 12% НСП 1% [09:19:25]line > о реализуемом товаре [09:19:25]line ОКРУГЛЕНИЕ: -0.42 [09:19:25]line ИТОГО: 120.00 [09:19:25]line Внесено: 120.00 [09:19:25]line СДАЧА: 0.00 [09:19:25]line НСП 1% : 1.07 [09:19:25]line НДС 12% : 12.79 [09:19:25]line Наличными: 120.00 [09:19:25]line Безнал.: 0.00 [09:19:25]line Место: АЗС № 143 "Партнер Нефть" [09:19:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:19:25]line СНО: Общий режим [09:19:25]line Чек 37 28.10.2024 09:19 [09:19:25]line Смена: 538 ФФД: 1.0 [09:19:25]line ЗНМ: 0300000096 [09:19:25]line РНМ: 0000000000091693 [09:19:25]line Версия ККМ: 001 [09:19:25]line ФМ: 0000000000871792 [09:19:25]line ФД: 156821 [09:19:25]line ФПД: 183417602879678 [09:19:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091925&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156821&fm=183417602879678&tin=02508201610067®Number=0000000000091693&sum=12000 [09:19:25]OFD Sender: Processing packet 156821 [packets to send 31, broken 30] [09:19:25]ProducePacketName [09:19:25]name=ofd_packets/00156821 [09:19:25]OFD Sender: To server: pG, [09:19:25]CommunicateWithHost lk.salyk.kg:30040 [09:19:25]ConnectInit lk.salyk.kg [09:19:25]written 0, free lines is 4095 [09:19:25]Connected sock=10 [09:19:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 03 EC 07 01 63 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 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 1D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 64 02 00 35 04 06 00 A6 D1 3D 10 B0 BE 03 E9 22 91 34 98 87 72 [09:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 65 47 00 37 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 64 02 00 F4 03 04 00 8A FC 1E 67 B6 04 01 00 00 7C 18 1F 94 D0 E6 8F 79 [09:19:26]CommunicateWithHost err = 0 [09:19:26]CheckOFDResponse [09:19:26]1017 (14) - 77093643461234 [09:19:26]1041 (16) - 0000000000871792 [09:19:26]1040 (4) - 156821 [09:19:26]1012 (4) - 28.10.2024 02:52 [09:19:26]1206 (1) - 0 [09:19:26]OFD Sender: Remove packet 156821 [09:19:26]ProducePacketName [09:19:26]name=ofd_packets/00156821 [09:19:26]NVStorageDeleteData [09:19:26]Write to MH i2c: 01 00 00 50 0C 5C [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: 01 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: 01 07 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 DC 0C 4B [09:19:26]RasterBufferAndPrint [09:19:26]line [09:19:26]line [09:19:26]line [09:19:26]line [09:19:26]line [09:19:26]written 0, free lines is 3298 [09:19:26]process_action close_receipt done [09:19:26]requested_data is exist [09:19:26]produce_requested_data [09:19:26]requested_item fm.sn is exist - process it [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 11 00 00 [09:19:26]Write to MH i2c: E2 08 00 57 0C 80 11 00 00 00 00 00 00 DD [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 17 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 17 00 57 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [09:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:26]wFMCommunicate OK [09:19:26]requested_item fd.num is exist - process it [09:19:26]SAM_PROTO_GetFieldsCounters [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 13 00 00 [09:19:26]Write to MH i2c: E2 08 00 58 0C 80 13 00 00 00 00 00 00 E0 [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 62 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 62 00 58 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 64 02 00 0E 04 04 00 1A 02 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 8C [09:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 64 02 00 0E 04 04 00 1A 02 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 [09:19:26]wFMCommunicate OK [09:19:26]SAM_PROTO_GetFieldsCounters done [09:19:26]requested_item shift.num is exist - process it [09:19:26]requested_item shift.opened is exist - process it [09:19:26]req_shift_opened [09:19:26]FM_GetShiftState [09:19:26]SAM_PROTO_GetShiftState [09:19:26]wFMCommunicate request_size=4 [09:19:26]MH_SAM_APDU [09:19:26]CAPDU: 80 13 01 00 [09:19:26]Write to MH i2c: E2 08 00 59 0C 80 13 01 00 00 00 00 00 E2 [09:19:26]Write i2c OK [09:19:26]MH_I2C_Read... [09:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:26]Read from MH i2c: E2 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 0E 00 [09:19:26]MH_I2C_Read... [09:19:26]Read from MH i2c: E2 0E 00 59 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D4 [09:19:26]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:19:26]wFMCommunicate OK [09:19:26]SAM_PROTO_GetShiftState done [09:19:26]FM_GetShiftState done [09:19:26]req_shift_opened done [09:19:26]requested_item shift.open_date is exist - process it [09:19:26]req_shift_open_date [09:19:26]req_shift_open_date done [09:19:26]produce_requested_data done [09:19:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156821,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:19:26]process_action_free close_receipt [09:19:26]json_value_free [09:19:26]json_value_free done [09:19:26]process_json_proto returns [09:19:26]Send response to host [09:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156821,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:19:26]free response buf [09:19:26]execute_script done [09:19:26]execute_script returns [09:19:26]free content buf [09:19:26]Sock 9.Close socket [09:19:26]Sock 9.Thread stoped [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:27]accept exits with 7 [09:20:27]New connection [09:20:27]New thread 3066604900 created [09:20:27]Thread 3066748260 joined [09:20:27]Waiting for new connection... [09:20:27] Sock 7.Parse request [09:20:27]Sock 7.Check first char [09:20:27]Sock 7.First char is OK [09:20:27]request: POST /json_proto HTTP/1.0 [09:20:27]Method: POST [09:20:27]URL: /json_proto [09:20:27]Method is POST - this is cgi request [09:20:27]url: /json_proto [09:20:27]query_string will be loaded in cgi processing [09:20:27]execute_cgi json_proto POST (null) [09:20:27]execute_cgi path=json_proto method=POST [09:20:27]POST find Content-Length [09:20:27]Host: 172.17.63.3:8080 [09:20:27]Content-Length: 676 [09:20:27]Content-Type: application/json [09:20:27] [09:20:27]POST finish read [09:20:27]Found Content-Length = 676 [09:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:20:27]execute_script... [09:20:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:20:27]POST & json_proto [09:20:27]process_json_proto [09:20:27]json parsed OK: [09:20:27]protocol is kg_v1.0 [09:20:27]action value=close_receipt [09:20:27]process_action close_receipt [09:20:27]cmd_close_receipt [09:20:27]MH_GetDate [09:20:27]Write to MH i2c: F0 00 00 5A 0C 55 [09:20:27]Write i2c OK [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 09 00 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: F0 09 00 5A 0C 00 5D 57 1F 67 50 D1 6C 64 89 [09:20:27]GetLastDocTimeStamp 1730107165 [09:20:27]current date 1730107229 [09:20:27]FM_GetShiftState [09:20:27]SAM_PROTO_GetShiftState [09:20:27]wFMCommunicate request_size=4 [09:20:27]MH_SAM_APDU [09:20:27]CAPDU: 80 13 01 00 [09:20:27]Write to MH i2c: E2 08 00 5B 0C 80 13 01 00 00 00 00 00 E4 [09:20:27]Write i2c OK [09:20:27]MH_I2C_Read... [09:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:27]Read from MH i2c: E2 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: E2 0E 00 [09:20:27]MH_I2C_Read... [09:20:27]Read from MH i2c: E2 0E 00 5B 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D6 [09:20:27]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:20:27]wFMCommunicate OK [09:20:27]SAM_PROTO_GetShiftState done [09:20:27]FM_GetShiftState done [09:20:27]opened in 1730075526 [09:20:27]opened+sec_in_day 1730161926 [09:20:27]quantity*price = 20003 [09:20:27]sum+1 = 20004 [09:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 38 28.10.2024 09:20 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156822 ФПД: 25013827267114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092029&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156822&fm=25013827267114&tin=02508201610067®Number=0000000000091693&sum=20000 [09:20:27]StoreToDocumentArchive [09:20:27]shift 538 fd 156822 [09:20:27]save to /storage/0538/doc_00156822 [09:20:27]save last doc name /storage/0538/doc_00156822 to /storage/kkm_last_doc_name [09:20:27]save OK [09:20:27]Clear old archive folders... [09:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:28]tlvbuf is 01A7BF90 [09:20:28]SAM_PROTO_ClearQueue [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 09 00 00 [09:20:28]Write to MH i2c: E2 08 00 68 0C 80 09 00 00 00 00 00 00 E6 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_ClearQueue done [09:20:28]KKMCreateOFDPacket [09:20:28]OFDProtocolAddRootSTLVToBuf [09:20:28]FM_MakeSignedData [09:20:28]FM_MakeSignedData [09:20:28]SAM_PROTO_SignData [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 01 02 [09:20:28]Write to MH i2c: E2 08 00 69 0C 80 0D 01 02 00 00 00 00 EE [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=255 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 26 00 00 00 F4 03 04 00 5D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 64 02 00 35 04 06 00 16 [09:20:28]Write to MH i2c: E2 02 01 6A 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 26 00 00 00 F4 03 04 00 5D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 64 02 00 35 04 06 00 16 00 00 D2 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=10 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 02 02 05 BF FC 49 EA 2A [09:20:28]Write to MH i2c: E2 0D 00 6B 0C 80 0D 02 02 05 00 BF FC 49 EA 2A 00 00 13 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [09:20:28]RAPDU: 90 00 [09:20:28]wFMCommunicate OK [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 0D 03 02 [09:20:28]Write to MH i2c: E2 08 00 6C 0C 80 0D 03 02 00 00 00 00 F3 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 0B 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 0B 00 6C 0C 00 97 66 A1 44 9B 25 DF B2 90 00 27 [09:20:28]RAPDU: 97 66 A1 44 9B 25 DF B2 90 00 [09:20:28]wFMCommunicate OK [09:20:28]SAM_PROTO_SignData done [09:20:28]FM_MakeSignedData done [09:20:28]CreateOFDProtocolMessage [09:20:28]wFMCommunicate request_size=4 [09:20:28]MH_SAM_APDU [09:20:28]CAPDU: 80 11 00 00 [09:20:28]Write to MH i2c: E2 08 00 6D 0C 80 11 00 00 00 00 00 00 F3 [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:28]Read from MH i2c: E2 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: E2 17 00 6D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [09:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:20:28]wFMCommunicate OK [09:20:28]CreateOFDProtocolMessage done [09:20:28]OFDSenderStorePacket 156822 [09:20:28]StoreOFDPacket docnum=156822 [09:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 28 07 01 A5 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 26 00 00 00 F4 03 04 00 5D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 64 02 00 35 04 06 00 16 BF FC 49 EA 2A 97 66 A1 44 9B 25 DF B2 [09:20:28]CheckFolder [09:20:28]dirname=/storage/ofd_packets [09:20:28]CheckFolder done [09:20:28]ProducePacketName [09:20:28]name=ofd_packets/00156822 [09:20:28]NVStorageSaveData ofd_packets/00156822 [09:20:28]File name is /storage/ofd_packets/00156822 [09:20:28]Write 301 bytes [09:20:28]NVStorageSaveData done [09:20:28]OFDSenderStorePacket done [09:20:28]KKMCreateOFDPacket done [09:20:28]NVStorageSaveData kkm_last_timestamp [09:20:28]File name is /storage/kkm_last_timestamp [09:20:28]Write 4 bytes [09:20:28]NVStorageSaveData done [09:20:28]ExternCall_PrintAddStr [09:20:28]wPrintStart [09:20:28]Write to MH i2c: 01 00 00 6E 0C 7A [09:20:28]Write i2c OK [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: 01 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: 01 07 00 [09:20:28]MH_I2C_Read... [09:20:28]Read from MH i2c: 01 07 00 6E 0C 00 00 00 00 00 FF 0F 8F [09:20:28]RasterBufferAndPrint [09:20:28]line Счет N : (1)99634 [09:20:28]line ИНН: 02508201610067 [09:20:28]line Контрольно-Кассовый Чек [09:20:28]line ПРОДАЖА [09:20:28]line ТРК (МРК, ГНК) : 31 [09:20:28]line Товар: 2710124130 [09:20:28]line Аи-92-К-5 [09:20:28]line 2.990 * 66.90 [09:20:28]line = 200.03 [09:20:28]line НДС 12% НСП 1% [09:20:28]line > о реализуемом товаре [09:20:28]line ОКРУГЛЕНИЕ: -0.03 [09:20:28]line ИТОГО: 200.00 [09:20:28]line Внесено: 200.00 [09:20:28]line СДАЧА: 0.00 [09:20:28]line НСП 1% : 1.77 [09:20:28]line НДС 12% : 21.24 [09:20:28]line Наличными: 200.00 [09:20:28]line Безнал.: 0.00 [09:20:28]line Место: АЗС № 143 "Партнер Нефть" [09:20:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:20:28]line СНО: Общий режим [09:20:28]line Чек 38 28.10.2024 09:20 [09:20:28]line Смена: 538 ФФД: 1.0 [09:20:28]line ЗНМ: 0300000096 [09:20:28]line РНМ: 0000000000091693 [09:20:28]line Версия ККМ: 001 [09:20:28]line ФМ: 0000000000871792 [09:20:28]line ФД: 156822 [09:20:28]line ФПД: 25013827267114 [09:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092029&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156822&fm=25013827267114&tin=02508201610067®Number=0000000000091693&sum=20000 [09:20:28]OFD Sender: Processing packet 156822 [packets to send 31, broken 30] [09:20:28]ProducePacketName [09:20:28]name=ofd_packets/00156822 [09:20:28]OFD Sender: To server: pG, [09:20:28]CommunicateWithHost lk.salyk.kg:30040 [09:20:28]ConnectInit lk.salyk.kg [09:20:28]written 0, free lines is 4095 [09:20:28]Connected sock=10 [09:20: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 37 39 32 0F 01 00 00 F4 28 07 01 A5 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 26 00 00 00 F4 03 04 00 5D 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 64 02 00 35 04 06 00 16 BF FC 49 EA 2A 97 66 A1 44 9B 25 DF B2 [09:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 DA 47 00 42 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 64 02 00 F4 03 04 00 C9 FC 1E 67 B6 04 01 00 00 EB 74 84 15 F4 5F 86 43 [09:20:29]CommunicateWithHost err = 0 [09:20:29]CheckOFDResponse [09:20:29]1017 (14) - 77093643461234 [09:20:29]1041 (16) - 0000000000871792 [09:20:29]1040 (4) - 156822 [09:20:29]1012 (4) - 28.10.2024 02:54 [09:20:29]1206 (1) - 0 [09:20:29]OFD Sender: Remove packet 156822 [09:20:29]ProducePacketName [09:20:29]name=ofd_packets/00156822 [09:20:29]NVStorageDeleteData [09:20:29]Write to MH i2c: 01 00 00 99 0C A5 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 D3 0C 8B [09:20:29]RasterBufferAndPrint [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]line [09:20:29]written 0, free lines is 3290 [09:20:29]process_action close_receipt done [09:20:29]requested_data is exist [09:20:29]produce_requested_data [09:20:29]requested_item fm.sn is exist - process it [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 11 00 00 [09:20:29]Write to MH i2c: E2 08 00 A0 0C 80 11 00 00 00 00 00 00 26 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:29]Read from MH i2c: E2 17 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 17 00 A0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [09:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:20:29]wFMCommunicate OK [09:20:29]requested_item fd.num is exist - process it [09:20:29]SAM_PROTO_GetFieldsCounters [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 13 00 00 [09:20:29]Write to MH i2c: E2 08 00 A1 0C 80 13 00 00 00 00 00 00 29 [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 62 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 62 00 A1 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 64 02 00 0E 04 04 00 1A 02 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 D9 [09:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 64 02 00 0E 04 04 00 1A 02 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 [09:20:29]wFMCommunicate OK [09:20:29]SAM_PROTO_GetFieldsCounters done [09:20:29]requested_item shift.num is exist - process it [09:20:29]requested_item shift.opened is exist - process it [09:20:29]req_shift_opened [09:20:29]FM_GetShiftState [09:20:29]SAM_PROTO_GetShiftState [09:20:29]wFMCommunicate request_size=4 [09:20:29]MH_SAM_APDU [09:20:29]CAPDU: 80 13 01 00 [09:20:29]Write to MH i2c: E2 08 00 A2 0C 80 13 01 00 00 00 00 00 2B [09:20:29]Write i2c OK [09:20:29]MH_I2C_Read... [09:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:29]Read from MH i2c: E2 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 0E 00 [09:20:29]MH_I2C_Read... [09:20:29]Read from MH i2c: E2 0E 00 A2 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 1D [09:20:29]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:20:29]wFMCommunicate OK [09:20:29]SAM_PROTO_GetShiftState done [09:20:29]FM_GetShiftState done [09:20:29]req_shift_opened done [09:20:29]requested_item shift.open_date is exist - process it [09:20:29]req_shift_open_date [09:20:29]req_shift_open_date done [09:20:29]produce_requested_data done [09:20:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156822,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:20:29]process_action_free close_receipt [09:20:29]json_value_free [09:20:29]json_value_free done [09:20:29]process_json_proto returns [09:20:29]Send response to host [09:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156822,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:20:29]free response buf [09:20:29]execute_script done [09:20:29]execute_script returns [09:20:29]free content buf [09:20:29]Sock 7.Close socket [09:20:29]Sock 7.Thread stoped [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]accept exits with 9 [09:21:24]New connection [09:21:24]New thread 3066748260 created [09:21:24]Thread 3066604900 joined [09:21:24]Waiting for new connection... [09:21:24] Sock 9.Parse request [09:21:24]Sock 9.Check first char [09:21:24]Sock 9.First char is OK [09:21:24]request: POST /json_proto HTTP/1.0 [09:21:24]Method: POST [09:21:24]URL: /json_proto [09:21:24]Method is POST - this is cgi request [09:21:24]url: /json_proto [09:21:24]query_string will be loaded in cgi processing [09:21:24]execute_cgi json_proto POST (null) [09:21:24]execute_cgi path=json_proto method=POST [09:21:24]POST find Content-Length [09:21:24]Host: 172.17.63.3:8080 [09:21:24]Content-Length: 676 [09:21:24]Content-Type: application/json [09:21:24] [09:21:24]POST finish read [09:21:24]Found Content-Length = 676 [09:21:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:24]execute_script... [09:21: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)99635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:24]POST & json_proto [09:21:24]process_json_proto [09:21:24]json parsed OK: [09:21:24]protocol is kg_v1.0 [09:21:24]action value=close_receipt [09:21:24]process_action close_receipt [09:21:24]cmd_close_receipt [09:21:24]MH_GetDate [09:21:24]Write to MH i2c: F0 00 00 A3 0C 9E [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: F0 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: F0 09 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: F0 09 00 A3 0C 00 96 57 1F 67 50 D1 6C 64 0B [09:21:24]GetLastDocTimeStamp 1730107229 [09:21:24]current date 1730107286 [09:21:24]FM_GetShiftState [09:21:24]SAM_PROTO_GetShiftState [09:21:24]wFMCommunicate request_size=4 [09:21:24]MH_SAM_APDU [09:21:24]CAPDU: 80 13 01 00 [09:21:24]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [09:21:24]Write i2c OK [09:21:24]MH_I2C_Read... [09:21:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:24]Read from MH i2c: E2 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 0E 00 [09:21:24]MH_I2C_Read... [09:21:24]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 1F [09:21:24]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:21:24]wFMCommunicate OK [09:21:24]SAM_PROTO_GetShiftState done [09:21:24]FM_GetShiftState done [09:21:24]opened in 1730075526 [09:21:24]opened+sec_in_day 1730161926 [09:21:24]quantity*price = 49037 [09:21:24]sum+1 = 49039 [09:21:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 39 28.10.2024 09:21 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156823 ФПД: 44421116242936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156823&fm=44421116242936&tin=02508201610067®Number=0000000000091693&sum=49000 [09:21:25]StoreToDocumentArchive [09:21:25]shift 538 fd 156823 [09:21:25]save to /storage/0538/doc_00156823 [09:21:25]save last doc name /storage/0538/doc_00156823 to /storage/kkm_last_doc_name [09:21:25]save OK [09:21:25]Clear old archive folders... [09:21:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:25]tlvbuf is 01A8D4E0 [09:21:25]SAM_PROTO_ClearQueue [09:21:25]wFMCommunicate request_size=4 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 09 00 00 [09:21:25]Write to MH i2c: E2 08 00 B1 0C 80 09 00 00 00 00 00 00 2F [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [09:21:25]RAPDU: 90 00 [09:21:25]wFMCommunicate OK [09:21:25]SAM_PROTO_ClearQueue done [09:21:25]KKMCreateOFDPacket [09:21:25]OFDProtocolAddRootSTLVToBuf [09:21:25]FM_MakeSignedData [09:21:25]FM_MakeSignedData [09:21:25]SAM_PROTO_SignData [09:21:25]wFMCommunicate request_size=4 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 0D 01 02 [09:21:25]Write to MH i2c: E2 08 00 B2 0C 80 0D 01 02 00 00 00 00 37 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [09:21:25]RAPDU: 90 00 [09:21:25]wFMCommunicate OK [09:21:25]wFMCommunicate request_size=255 [09:21:25]MH_SAM_APDU [09:21: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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 96 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 64 02 00 35 04 06 00 28 [09:21:25]Write to MH i2c: E2 02 01 B3 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 96 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 64 02 00 35 04 06 00 28 00 00 D5 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [09:21:25]RAPDU: 90 00 [09:21:25]wFMCommunicate OK [09:21:25]wFMCommunicate request_size=10 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 0D 02 02 05 66 98 DA AB F8 [09:21:25]Write to MH i2c: E2 0D 00 B4 0C 80 0D 02 02 05 00 66 98 DA AB F8 00 00 BF [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [09:21:25]RAPDU: 90 00 [09:21:25]wFMCommunicate OK [09:21:25]wFMCommunicate request_size=4 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 0D 03 02 [09:21:25]Write to MH i2c: E2 08 00 B5 0C 80 0D 03 02 00 00 00 00 3C [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 0B 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 0B 00 B5 0C 00 BE 82 24 D6 72 B2 BD FD 90 00 55 [09:21:25]RAPDU: BE 82 24 D6 72 B2 BD FD 90 00 [09:21:25]wFMCommunicate OK [09:21:25]SAM_PROTO_SignData done [09:21:25]FM_MakeSignedData done [09:21:25]CreateOFDProtocolMessage [09:21:25]wFMCommunicate request_size=4 [09:21:25]MH_SAM_APDU [09:21:25]CAPDU: 80 11 00 00 [09:21:25]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:25]Read from MH i2c: E2 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 17 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 91 [09:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:21:25]wFMCommunicate OK [09:21:25]CreateOFDProtocolMessage done [09:21:25]OFDSenderStorePacket 156823 [09:21:25]StoreOFDPacket docnum=156823 [09:21:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1D 43 07 01 59 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 96 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 64 02 00 35 04 06 00 28 66 98 DA AB F8 BE 82 24 D6 72 B2 BD FD [09:21:25]CheckFolder [09:21:25]dirname=/storage/ofd_packets [09:21:25]CheckFolder done [09:21:25]ProducePacketName [09:21:25]name=ofd_packets/00156823 [09:21:25]NVStorageSaveData ofd_packets/00156823 [09:21:25]File name is /storage/ofd_packets/00156823 [09:21:25]Write 301 bytes [09:21:25]NVStorageSaveData done [09:21:25]OFDSenderStorePacket done [09:21:25]KKMCreateOFDPacket done [09:21:25]NVStorageSaveData kkm_last_timestamp [09:21:25]File name is /storage/kkm_last_timestamp [09:21:25]Write 4 bytes [09:21:25]NVStorageSaveData done [09:21:25]ExternCall_PrintAddStr [09:21:25]wPrintStart [09:21:25]Write to MH i2c: 01 00 00 B7 0C C3 [09:21:25]Write i2c OK [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 [09:21:25]MH_I2C_Read... [09:21:25]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 FF 0F D8 [09:21:25]RasterBufferAndPrint [09:21:25]line Счет N : (1)99635 [09:21:25]line ИНН: 02508201610067 [09:21:25]line Контрольно-Кассовый Чек [09:21:25]line ПРОДАЖА [09:21:25]line ТРК (МРК, ГНК) : 31 [09:21:25]line Товар: 2710124130 [09:21:25]line Аи-92-К-5 [09:21:25]line 7.330 * 66.90 [09:21:25]line = 490.38 [09:21:25]line НДС 12% НСП 1% [09:21:25]line > о реализуемом товаре [09:21:25]line ОКРУГЛЕНИЕ: -0.38 [09:21:25]line ИТОГО: 490.00 [09:21:25]line Внесено: 490.00 [09:21:25]line СДАЧА: 0.00 [09:21:25]line НСП 1% : 4.34 [09:21:25]line НДС 12% : 52.08 [09:21:25]line Наличными: 490.00 [09:21:25]line Безнал.: 0.00 [09:21:25]line Место: АЗС № 143 "Партнер Нефть" [09:21:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:21:25]line СНО: Общий режим [09:21:25]line Чек 39 28.10.2024 09:21 [09:21:25]line Смена: 538 ФФД: 1.0 [09:21:25]line ЗНМ: 0300000096 [09:21:25]line РНМ: 0000000000091693 [09:21:25]line Версия ККМ: 001 [09:21:25]line ФМ: 0000000000871792 [09:21:25]line ФД: 156823 [09:21:25]line ФПД: 44421116242936 [09:21:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156823&fm=44421116242936&tin=02508201610067®Number=0000000000091693&sum=49000 [09:21:26]OFD Sender: Processing packet 156823 [packets to send 31, broken 30] [09:21:26]ProducePacketName [09:21:26]name=ofd_packets/00156823 [09:21:26]OFD Sender: To server: pG, [09:21:26]CommunicateWithHost lk.salyk.kg:30040 [09:21:26]ConnectInit lk.salyk.kg [09:21:26]written 0, free lines is 4095 [09:21:26]Connected sock=10 [09:21: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 37 39 32 0F 01 00 00 1D 43 07 01 59 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 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 96 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 64 02 00 35 04 06 00 28 66 98 DA AB F8 BE 82 24 D6 72 B2 BD FD [09:21:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8D 51 47 00 3E 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 37 39 32 10 04 04 00 97 64 02 00 F4 03 04 00 03 FD 1E 67 B6 04 01 00 00 4F 8A E1 48 CF 11 59 BE [09:21:26]CommunicateWithHost err = 0 [09:21:26]CheckOFDResponse [09:21:26]1017 (14) - 77093643461234 [09:21:26]1041 (16) - 0000000000871792 [09:21:26]1040 (4) - 156823 [09:21:26]1012 (4) - 28.10.2024 02:54 [09:21:26]1206 (1) - 0 [09:21:26]OFD Sender: Remove packet 156823 [09:21:26]ProducePacketName [09:21:26]name=ofd_packets/00156823 [09:21:26]NVStorageDeleteData [09:21:26]Write to MH i2c: 01 00 00 E2 0C EE [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: 01 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: 01 07 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: 01 07 00 E2 0C 00 00 00 00 00 DE 0C DF [09:21:26]RasterBufferAndPrint [09:21:26]line [09:21:26]line [09:21:26]line [09:21:26]line [09:21:26]line [09:21:26]written 0, free lines is 3300 [09:21:26]process_action close_receipt done [09:21:26]requested_data is exist [09:21:26]produce_requested_data [09:21:26]requested_item fm.sn is exist - process it [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 11 00 00 [09:21:26]Write to MH i2c: E2 08 00 E9 0C 80 11 00 00 00 00 00 00 6F [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 17 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 17 00 E9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [09:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:21:26]wFMCommunicate OK [09:21:26]requested_item fd.num is exist - process it [09:21:26]SAM_PROTO_GetFieldsCounters [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 13 00 00 [09:21:26]Write to MH i2c: E2 08 00 EA 0C 80 13 00 00 00 00 00 00 72 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:26]Read from MH i2c: E2 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 62 00 [09:21:26]MH_I2C_Read... [09:21:26]Read from MH i2c: E2 62 00 EA 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 64 02 00 0E 04 04 00 1A 02 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 [09:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 64 02 00 0E 04 04 00 1A 02 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 [09:21:26]wFMCommunicate OK [09:21:26]SAM_PROTO_GetFieldsCounters done [09:21:26]requested_item shift.num is exist - process it [09:21:26]requested_item shift.opened is exist - process it [09:21:26]req_shift_opened [09:21:26]FM_GetShiftState [09:21:26]SAM_PROTO_GetShiftState [09:21:26]wFMCommunicate request_size=4 [09:21:26]MH_SAM_APDU [09:21:26]CAPDU: 80 13 01 00 [09:21:26]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [09:21:26]Write i2c OK [09:21:26]MH_I2C_Read... [09:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:27]Read from MH i2c: E2 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0E 00 [09:21:27]MH_I2C_Read... [09:21:27]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 66 [09:21:27]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:21:27]wFMCommunicate OK [09:21:27]SAM_PROTO_GetShiftState done [09:21:27]FM_GetShiftState done [09:21:27]req_shift_opened done [09:21:27]requested_item shift.open_date is exist - process it [09:21:27]req_shift_open_date [09:21:27]req_shift_open_date done [09:21:27]produce_requested_data done [09:21:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156823,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:21:27]process_action_free close_receipt [09:21:27]json_value_free [09:21:27]json_value_free done [09:21:27]process_json_proto returns [09:21:27]Send response to host [09:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156823,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:21:27]free response buf [09:21:27]execute_script done [09:21:27]execute_script returns [09:21:27]free content buf [09:21:27]Sock 9.Close socket [09:21:27]Sock 9.Thread stoped [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:22]accept exits with 7 [09:22:22]New connection [09:22:22]New thread 3066604900 created [09:22:22]Thread 3066748260 joined [09:22:22]Waiting for new connection... [09:22:22] Sock 7.Parse request [09:22:22]Sock 7.Check first char [09:22:22]Sock 7.First char is OK [09:22:22]request: POST /json_proto HTTP/1.0 [09:22:22]Method: POST [09:22:22]URL: /json_proto [09:22:22]Method is POST - this is cgi request [09:22:22]url: /json_proto [09:22:22]query_string will be loaded in cgi processing [09:22:22]execute_cgi json_proto POST (null) [09:22:22]execute_cgi path=json_proto method=POST [09:22:22]POST find Content-Length [09:22:22]Host: 172.17.63.3:8080 [09:22:22]Content-Length: 676 [09:22:22]Content-Type: application/json [09:22:22] [09:22:22]POST finish read [09:22:22]Found Content-Length = 676 [09:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [09:22:22]execute_script... [09:22: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)99636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "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" ] } } [09:22:22]POST & json_proto [09:22:22]process_json_proto [09:22:22]json parsed OK: [09:22:22]protocol is kg_v1.0 [09:22:22]action value=close_receipt [09:22:22]process_action close_receipt [09:22:22]cmd_close_receipt [09:22:22]MH_GetDate [09:22:22]Write to MH i2c: F0 00 00 EC 0C E7 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 09 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: F0 09 00 EC 0C 00 D0 57 1F 67 50 D1 6C 64 8E [09:22:22]GetLastDocTimeStamp 1730107286 [09:22:22]current date 1730107344 [09:22:22]FM_GetShiftState [09:22:22]SAM_PROTO_GetShiftState [09:22:22]wFMCommunicate request_size=4 [09:22:22]MH_SAM_APDU [09:22:22]CAPDU: 80 13 01 00 [09:22:22]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [09:22:22]Write i2c OK [09:22:22]MH_I2C_Read... [09:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:22]Read from MH i2c: E2 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 [09:22:22]MH_I2C_Read... [09:22:22]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 68 [09:22:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:22:22]wFMCommunicate OK [09:22:22]SAM_PROTO_GetShiftState done [09:22:22]FM_GetShiftState done [09:22:22]opened in 1730075526 [09:22:22]opened+sec_in_day 1730161926 [09:22:22]quantity*price = 22010 [09:22:22]sum+1 = 22011 [09:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 40 28.10.2024 09:22 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156824 ФПД: 121378367925577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156824&fm=121378367925577&tin=02508201610067®Number=0000000000091693&sum=22000 [09:22:23]StoreToDocumentArchive [09:22:23]shift 538 fd 156824 [09:22:23]save to /storage/0538/doc_00156824 [09:22:23]save last doc name /storage/0538/doc_00156824 to /storage/kkm_last_doc_name [09:22:23]save OK [09:22:23]Clear old archive folders... [09:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:23]tlvbuf is 01A8D240 [09:22:23]SAM_PROTO_ClearQueue [09:22:23]wFMCommunicate request_size=4 [09:22:23]MH_SAM_APDU [09:22:23]CAPDU: 80 09 00 00 [09:22:23]Write to MH i2c: E2 08 00 FA 0C 80 09 00 00 00 00 00 00 78 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [09:22:23]RAPDU: 90 00 [09:22:23]wFMCommunicate OK [09:22:23]SAM_PROTO_ClearQueue done [09:22:23]KKMCreateOFDPacket [09:22:23]OFDProtocolAddRootSTLVToBuf [09:22:23]FM_MakeSignedData [09:22:23]FM_MakeSignedData [09:22:23]SAM_PROTO_SignData [09:22:23]wFMCommunicate request_size=4 [09:22:23]MH_SAM_APDU [09:22:23]CAPDU: 80 0D 01 02 [09:22:23]Write to MH i2c: E2 08 00 FB 0C 80 0D 01 02 00 00 00 00 80 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:23]Read from MH i2c: E2 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 [09:22:23]MH_I2C_Read... [09:22:23]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [09:22:23]RAPDU: 90 00 [09:22:23]wFMCommunicate OK [09:22:23]wFMCommunicate request_size=255 [09:22:23]MH_SAM_APDU [09:22: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 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 21 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 28 00 00 00 F4 03 04 00 D0 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 64 02 00 35 04 06 00 6E [09:22:23]Write to MH i2c: E2 02 01 FC 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 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 21 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 28 00 00 00 F4 03 04 00 D0 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 64 02 00 35 04 06 00 6E 00 00 D4 [09:22:23]Write i2c OK [09:22:23]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [09:22:24]RAPDU: 90 00 [09:22:24]wFMCommunicate OK [09:22:24]wFMCommunicate request_size=10 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 0D 02 02 05 64 9A 80 ED 49 [09:22:24]Write to MH i2c: E2 0D 00 FD 0C 80 0D 02 02 05 00 64 9A 80 ED 49 00 00 41 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [09:22:24]RAPDU: 90 00 [09:22:24]wFMCommunicate OK [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 0D 03 02 [09:22:24]Write to MH i2c: E2 08 00 FE 0C 80 0D 03 02 00 00 00 00 85 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 0B 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 0B 00 FE 0C 00 DD B2 F4 8F FC 24 7B 6A 90 00 9D [09:22:24]RAPDU: DD B2 F4 8F FC 24 7B 6A 90 00 [09:22:24]wFMCommunicate OK [09:22:24]SAM_PROTO_SignData done [09:22:24]FM_MakeSignedData done [09:22:24]CreateOFDProtocolMessage [09:22:24]wFMCommunicate request_size=4 [09:22:24]MH_SAM_APDU [09:22:24]CAPDU: 80 11 00 00 [09:22:24]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:24]Read from MH i2c: E2 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [09:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:22:24]wFMCommunicate OK [09:22:24]CreateOFDProtocolMessage done [09:22:24]OFDSenderStorePacket 156824 [09:22:24]StoreOFDPacket docnum=156824 [09:22:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E BC 07 01 EE 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 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 21 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 28 00 00 00 F4 03 04 00 D0 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 64 02 00 35 04 06 00 6E 64 9A 80 ED 49 DD B2 F4 8F FC 24 7B 6A [09:22:24]CheckFolder [09:22:24]dirname=/storage/ofd_packets [09:22:24]CheckFolder done [09:22:24]ProducePacketName [09:22:24]name=ofd_packets/00156824 [09:22:24]NVStorageSaveData ofd_packets/00156824 [09:22:24]File name is /storage/ofd_packets/00156824 [09:22:24]Write 301 bytes [09:22:24]NVStorageSaveData done [09:22:24]OFDSenderStorePacket done [09:22:24]KKMCreateOFDPacket done [09:22:24]NVStorageSaveData kkm_last_timestamp [09:22:24]File name is /storage/kkm_last_timestamp [09:22:24]Write 4 bytes [09:22:24]NVStorageSaveData done [09:22:24]ExternCall_PrintAddStr [09:22:24]wPrintStart [09:22:24]Write to MH i2c: 01 00 00 00 0D 0D [09:22:24]Write i2c OK [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 07 00 [09:22:24]MH_I2C_Read... [09:22:24]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 FF 0F 22 [09:22:24]RasterBufferAndPrint [09:22:24]line Счет N : (1)99636 [09:22:24]line ИНН: 02508201610067 [09:22:24]line Контрольно-Кассовый Чек [09:22:24]line ПРОДАЖА [09:22:24]line ТРК (МРК, ГНК) : 31 [09:22:24]line Товар: 2710124130 [09:22:24]line Аи-92-К-5 [09:22:24]line 3.290 * 66.90 [09:22:24]line = 220.10 [09:22:24]line НДС 12% НСП 1% [09:22:24]line > о реализуемом товаре [09:22:24]line ОКРУГЛЕНИЕ: -0.10 [09:22:24]line ИТОГО: 220.00 [09:22:24]line Внесено: 220.00 [09:22:24]line СДАЧА: 0.00 [09:22:24]line НСП 1% : 1.95 [09:22:24]line НДС 12% : 23.37 [09:22:24]line Наличными: 220.00 [09:22:24]line Безнал.: 0.00 [09:22:24]line Место: АЗС № 143 "Партнер Нефть" [09:22:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:22:24]line СНО: Общий режим [09:22:24]line Чек 40 28.10.2024 09:22 [09:22:24]line Смена: 538 ФФД: 1.0 [09:22:24]line ЗНМ: 0300000096 [09:22:24]line РНМ: 0000000000091693 [09:22:24]line Версия ККМ: 001 [09:22:24]line ФМ: 0000000000871792 [09:22:24]line ФД: 156824 [09:22:24]line ФПД: 121378367925577 [09:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156824&fm=121378367925577&tin=02508201610067®Number=0000000000091693&sum=22000 [09:22:24]OFD Sender: Processing packet 156824 [packets to send 31, broken 30] [09:22:24]ProducePacketName [09:22:24]name=ofd_packets/00156824 [09:22:24]OFD Sender: To server: pG, [09:22:24]CommunicateWithHost lk.salyk.kg:30040 [09:22:24]ConnectInit lk.salyk.kg [09:22:24]written 0, free lines is 4095 [09:22:24]Connected sock=10 [09:22: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 37 39 32 0F 01 00 00 2E BC 07 01 EE 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 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 21 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 28 00 00 00 F4 03 04 00 D0 57 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 64 02 00 35 04 06 00 6E 64 9A 80 ED 49 DD B2 F4 8F FC 24 7B 6A [09:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D AF 47 00 29 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 37 39 32 10 04 04 00 98 64 02 00 F4 03 04 00 3D FD 1E 67 B6 04 01 00 00 C7 D2 F6 01 42 87 5A 9F [09:22:25]CommunicateWithHost err = 0 [09:22:25]CheckOFDResponse [09:22:25]1017 (14) - 77093643461234 [09:22:25]1041 (16) - 0000000000871792 [09:22:25]1040 (4) - 156824 [09:22:25]1012 (4) - 28.10.2024 02:55 [09:22:25]1206 (1) - 0 [09:22:25]OFD Sender: Remove packet 156824 [09:22:25]ProducePacketName [09:22:25]name=ofd_packets/00156824 [09:22:25]NVStorageDeleteData [09:22:25]Write to MH i2c: 01 00 00 2B 0D 38 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 07 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: 01 07 00 2B 0D 00 00 00 00 00 DD 0C 28 [09:22:25]RasterBufferAndPrint [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]line [09:22:25]written 0, free lines is 3299 [09:22:25]process_action close_receipt done [09:22:25]requested_data is exist [09:22:25]produce_requested_data [09:22:25]requested_item fm.sn is exist - process it [09:22:25]wFMCommunicate request_size=4 [09:22:25]MH_SAM_APDU [09:22:25]CAPDU: 80 11 00 00 [09:22:25]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 17 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 17 00 32 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [09:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:22:25]wFMCommunicate OK [09:22:25]requested_item fd.num is exist - process it [09:22:25]SAM_PROTO_GetFieldsCounters [09:22:25]wFMCommunicate request_size=4 [09:22:25]MH_SAM_APDU [09:22:25]CAPDU: 80 13 00 00 [09:22:25]Write to MH i2c: E2 08 00 33 0D 80 13 00 00 00 00 00 00 BC [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 62 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 62 00 33 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 64 02 00 0E 04 04 00 1A 02 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 74 [09:22: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 64 02 00 0E 04 04 00 1A 02 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 [09:22:25]wFMCommunicate OK [09:22:25]SAM_PROTO_GetFieldsCounters done [09:22:25]requested_item shift.num is exist - process it [09:22:25]requested_item shift.opened is exist - process it [09:22:25]req_shift_opened [09:22:25]FM_GetShiftState [09:22:25]SAM_PROTO_GetShiftState [09:22:25]wFMCommunicate request_size=4 [09:22:25]MH_SAM_APDU [09:22:25]CAPDU: 80 13 01 00 [09:22:25]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [09:22:25]Write i2c OK [09:22:25]MH_I2C_Read... [09:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:25]Read from MH i2c: E2 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 0E 00 [09:22:25]MH_I2C_Read... [09:22:25]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B0 [09:22:25]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:22:25]wFMCommunicate OK [09:22:25]SAM_PROTO_GetShiftState done [09:22:25]FM_GetShiftState done [09:22:25]req_shift_opened done [09:22:25]requested_item shift.open_date is exist - process it [09:22:25]req_shift_open_date [09:22:25]req_shift_open_date done [09:22:25]produce_requested_data done [09:22:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156824,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:22:25]process_action_free close_receipt [09:22:25]json_value_free [09:22:25]json_value_free done [09:22:25]process_json_proto returns [09:22:25]Send response to host [09:22:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156824,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:22:25]free response buf [09:22:25]execute_script done [09:22:25]execute_script returns [09:22:25]free content buf [09:22:25]Sock 7.Close socket [09:22:25]Sock 7.Thread stoped [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:08]accept exits with 9 [09:24:08]New connection [09:24:08]New thread 3066748260 created [09:24:08]Thread 3066604900 joined [09:24:08]Waiting for new connection... [09:24:08] Sock 9.Parse request [09:24:08]Sock 9.Check first char [09:24:08]Sock 9.First char is OK [09:24:08]request: POST /json_proto HTTP/1.0 [09:24:08]Method: POST [09:24:08]URL: /json_proto [09:24:08]Method is POST - this is cgi request [09:24:08]url: /json_proto [09:24:08]query_string will be loaded in cgi processing [09:24:08]execute_cgi json_proto POST (null) [09:24:08]execute_cgi path=json_proto method=POST [09:24:08]POST find Content-Length [09:24:08]Host: 172.17.63.3:8080 [09:24:08]Content-Length: 681 [09:24:08]Content-Type: application/json [09:24:08] [09:24:08]POST finish read [09:24:08]Found Content-Length = 681 [09:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:24:08]execute_script... [09:24: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)99637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:24:08]POST & json_proto [09:24:08]process_json_proto [09:24:08]json parsed OK: [09:24:08]protocol is kg_v1.0 [09:24:08]action value=close_receipt [09:24:08]process_action close_receipt [09:24:08]cmd_close_receipt [09:24:08]MH_GetDate [09:24:08]Write to MH i2c: F0 00 00 35 0D 31 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: F0 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: F0 09 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: F0 09 00 35 0D 00 3B 58 1F 67 50 D1 6C 64 44 [09:24:08]GetLastDocTimeStamp 1730107344 [09:24:08]current date 1730107451 [09:24:08]FM_GetShiftState [09:24:08]SAM_PROTO_GetShiftState [09:24:08]wFMCommunicate request_size=4 [09:24:08]MH_SAM_APDU [09:24:08]CAPDU: 80 13 01 00 [09:24:08]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:08]Read from MH i2c: E2 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 0E 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B2 [09:24:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:24:08]wFMCommunicate OK [09:24:08]SAM_PROTO_GetShiftState done [09:24:08]FM_GetShiftState done [09:24:08]opened in 1730075526 [09:24:08]opened+sec_in_day 1730161926 [09:24:08]quantity*price = 100015 [09:24:08]sum+1 = 100017 [09:24:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 41 28.10.2024 09:24 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156825 ФПД: 29623050231510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156825&fm=29623050231510&tin=02508201610067®Number=0000000000091693&sum=100000 [09:24:10]StoreToDocumentArchive [09:24:10]shift 538 fd 156825 [09:24:10]save to /storage/0538/doc_00156825 [09:24:10]save last doc name /storage/0538/doc_00156825 to /storage/kkm_last_doc_name [09:24:10]save OK [09:24:10]Clear old archive folders... [09:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:10]tlvbuf is 01A7EB80 [09:24:10]SAM_PROTO_ClearQueue [09:24:10]wFMCommunicate request_size=4 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 09 00 00 [09:24:10]Write to MH i2c: E2 08 00 43 0D 80 09 00 00 00 00 00 00 C2 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [09:24:10]RAPDU: 90 00 [09:24:10]wFMCommunicate OK [09:24:10]SAM_PROTO_ClearQueue done [09:24:10]KKMCreateOFDPacket [09:24:10]OFDProtocolAddRootSTLVToBuf [09:24:10]FM_MakeSignedData [09:24:10]FM_MakeSignedData [09:24:10]SAM_PROTO_SignData [09:24:10]wFMCommunicate request_size=4 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 0D 01 02 [09:24:10]Write to MH i2c: E2 08 00 44 0D 80 0D 01 02 00 00 00 00 CA [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [09:24:10]RAPDU: 90 00 [09:24:10]wFMCommunicate OK [09:24:10]wFMCommunicate request_size=255 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 29 00 00 00 F4 03 04 00 3B 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 64 02 00 35 04 06 00 1A [09:24:10]Write to MH i2c: E2 02 01 45 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 29 00 00 00 F4 03 04 00 3B 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 64 02 00 35 04 06 00 1A 00 00 CF [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [09:24:10]RAPDU: 90 00 [09:24:10]wFMCommunicate OK [09:24:10]wFMCommunicate request_size=10 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 0D 02 02 05 F1 27 62 DE D6 [09:24:10]Write to MH i2c: E2 0D 00 46 0D 80 0D 02 02 05 00 F1 27 62 DE D6 00 00 05 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [09:24:10]RAPDU: 90 00 [09:24:10]wFMCommunicate OK [09:24:10]wFMCommunicate request_size=4 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 0D 03 02 [09:24:10]Write to MH i2c: E2 08 00 47 0D 80 0D 03 02 00 00 00 00 CF [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 0B 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 0B 00 47 0D 00 3E 1F AB 05 B3 31 5D DF 90 00 FD [09:24:10]RAPDU: 3E 1F AB 05 B3 31 5D DF 90 00 [09:24:10]wFMCommunicate OK [09:24:10]SAM_PROTO_SignData done [09:24:10]FM_MakeSignedData done [09:24:10]CreateOFDProtocolMessage [09:24:10]wFMCommunicate request_size=4 [09:24:10]MH_SAM_APDU [09:24:10]CAPDU: 80 11 00 00 [09:24:10]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:10]Read from MH i2c: E2 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 17 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: E2 17 00 48 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [09:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:24:10]wFMCommunicate OK [09:24:10]CreateOFDProtocolMessage done [09:24:10]OFDSenderStorePacket 156825 [09:24:10]StoreOFDPacket docnum=156825 [09:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1A 8B 07 01 D8 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 29 00 00 00 F4 03 04 00 3B 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 64 02 00 35 04 06 00 1A F1 27 62 DE D6 3E 1F AB 05 B3 31 5D DF [09:24:10]CheckFolder [09:24:10]dirname=/storage/ofd_packets [09:24:10]CheckFolder done [09:24:10]ProducePacketName [09:24:10]name=ofd_packets/00156825 [09:24:10]NVStorageSaveData ofd_packets/00156825 [09:24:10]File name is /storage/ofd_packets/00156825 [09:24:10]Write 301 bytes [09:24:10]NVStorageSaveData done [09:24:10]OFDSenderStorePacket done [09:24:10]KKMCreateOFDPacket done [09:24:10]NVStorageSaveData kkm_last_timestamp [09:24:10]File name is /storage/kkm_last_timestamp [09:24:10]Write 4 bytes [09:24:10]NVStorageSaveData done [09:24:10]ExternCall_PrintAddStr [09:24:10]wPrintStart [09:24:10]Write to MH i2c: 01 00 00 49 0D 56 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 07 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 FF 0F 6B [09:24:10]RasterBufferAndPrint [09:24:10]line Счет N : (1)99637 [09:24:10]line ИНН: 02508201610067 [09:24:10]line Контрольно-Кассовый Чек [09:24:10]line ПРОДАЖА [09:24:10]line ТРК (МРК, ГНК) : 31 [09:24:10]line Товар: 2710124130 [09:24:10]line Аи-92-К-5 [09:24:10]line 14.950 * 66.90 [09:24:10]line = 1000.16 [09:24:10]line НДС 12% НСП 1% [09:24:10]line > о реализуемом товаре [09:24:10]line ОКРУГЛЕНИЕ: -0.16 [09:24:10]line ИТОГО: 1000.00 [09:24:10]line Внесено: 1000.00 [09:24:10]line СДАЧА: 0.00 [09:24:10]line НСП 1% : 8.85 [09:24:10]line НДС 12% : 106.21 [09:24:10]line Наличными: 1000.00 [09:24:10]line Безнал.: 0.00 [09:24:10]line Место: АЗС № 143 "Партнер Нефть" [09:24:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:24:10]line СНО: Общий режим [09:24:10]line Чек 41 28.10.2024 09:24 [09:24:10]line Смена: 538 ФФД: 1.0 [09:24:10]line ЗНМ: 0300000096 [09:24:10]line РНМ: 0000000000091693 [09:24:10]line Версия ККМ: 001 [09:24:10]line ФМ: 0000000000871792 [09:24:10]line ФД: 156825 [09:24:10]line ФПД: 29623050231510 [09:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156825&fm=29623050231510&tin=02508201610067®Number=0000000000091693&sum=100000 [09:24:10]OFD Sender: Processing packet 156825 [packets to send 31, broken 30] [09:24:10]ProducePacketName [09:24:10]name=ofd_packets/00156825 [09:24:10]OFD Sender: To server: pG, [09:24:10]CommunicateWithHost lk.salyk.kg:30040 [09:24:10]ConnectInit lk.salyk.kg [09:24:10]written 0, free lines is 4095 [09:24:11]Connected sock=10 [09:24: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 37 39 32 0F 01 00 00 1A 8B 07 01 D8 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 29 00 00 00 F4 03 04 00 3B 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 64 02 00 35 04 06 00 1A F1 27 62 DE D6 3E 1F AB 05 B3 31 5D DF [09:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A8 5C 47 00 10 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 64 02 00 F4 03 04 00 A7 FD 1E 67 B6 04 01 00 00 ED 1A F0 5D 9A C6 73 54 [09:24:11]CommunicateWithHost err = 0 [09:24:11]CheckOFDResponse [09:24:11]1017 (14) - 77093643461234 [09:24:11]1041 (16) - 0000000000871792 [09:24:11]1040 (4) - 156825 [09:24:11]1012 (4) - 28.10.2024 02:57 [09:24:11]1206 (1) - 0 [09:24:11]OFD Sender: Remove packet 156825 [09:24:11]ProducePacketName [09:24:11]name=ofd_packets/00156825 [09:24:11]NVStorageDeleteData [09:24:11]Write to MH i2c: 01 00 00 74 0D 81 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: 01 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: 01 07 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 D3 0C 67 [09:24:11]RasterBufferAndPrint [09:24:11]line [09:24:11]line [09:24:11]line [09:24:11]line [09:24:11]line [09:24:11]written 0, free lines is 3289 [09:24:11]process_action close_receipt done [09:24:11]requested_data is exist [09:24:11]produce_requested_data [09:24:11]requested_item fm.sn is exist - process it [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 11 00 00 [09:24:11]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 17 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [09:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:24:11]wFMCommunicate OK [09:24:11]requested_item fd.num is exist - process it [09:24:11]SAM_PROTO_GetFieldsCounters [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 13 00 00 [09:24:11]Write to MH i2c: E2 08 00 7C 0D 80 13 00 00 00 00 00 00 05 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 62 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 62 00 7C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 64 02 00 0E 04 04 00 1A 02 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 C1 [09: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:11]wFMCommunicate OK [09:24:11]SAM_PROTO_GetFieldsCounters done [09:24:11]requested_item shift.num is exist - process it [09:24:11]requested_item shift.opened is exist - process it [09:24:11]req_shift_opened [09:24:11]FM_GetShiftState [09:24:11]SAM_PROTO_GetShiftState [09:24:11]wFMCommunicate request_size=4 [09:24:11]MH_SAM_APDU [09:24:11]CAPDU: 80 13 01 00 [09:24:11]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [09:24:11]Write i2c OK [09:24:11]MH_I2C_Read... [09:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:11]Read from MH i2c: E2 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 0E 00 [09:24:11]MH_I2C_Read... [09:24:11]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 F9 [09:24:11]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:24:11]wFMCommunicate OK [09:24:11]SAM_PROTO_GetShiftState done [09:24:11]FM_GetShiftState done [09:24:11]req_shift_opened done [09:24:11]requested_item shift.open_date is exist - process it [09:24:11]req_shift_open_date [09:24:11]req_shift_open_date done [09:24:11]produce_requested_data done [09:24:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156825,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:24:11]process_action_free close_receipt [09:24:11]json_value_free [09:24:11]json_value_free done [09:24:11]process_json_proto returns [09:24:11]Send response to host [09:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156825,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:24:11]free response buf [09:24:11]execute_script done [09:24:11]execute_script returns [09:24:11]free content buf [09:24:11]Sock 9.Close socket [09:24:11]Sock 9.Thread stoped [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:55]accept exits with 7 [09:24:55]New connection [09:24:55]New thread 3066604900 created [09:24:55]Thread 3066748260 joined [09:24:55]Waiting for new connection... [09:24:55] Sock 7.Parse request [09:24:55]Sock 7.Check first char [09:24:55]Sock 7.First char is OK [09:24:55]request: POST /json_proto HTTP/1.0 [09:24:55]Method: POST [09:24:55]URL: /json_proto [09:24:55]Method is POST - this is cgi request [09:24:55]url: /json_proto [09:24:55]query_string will be loaded in cgi processing [09:24:55]execute_cgi json_proto POST (null) [09:24:55]execute_cgi path=json_proto method=POST [09:24:55]POST find Content-Length [09:24:55]Host: 172.17.63.3:8080 [09:24:55]Content-Length: 676 [09:24:55]Content-Type: application/json [09:24:55] [09:24:55]POST finish read [09:24:55]Found Content-Length = 676 [09:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:55]execute_script... [09:24: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)99638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:55]POST & json_proto [09:24:55]process_json_proto [09:24:55]json parsed OK: [09:24:55]protocol is kg_v1.0 [09:24:55]action value=close_receipt [09:24:55]process_action close_receipt [09:24:55]cmd_close_receipt [09:24:55]MH_GetDate [09:24:55]Write to MH i2c: F0 00 00 7E 0D 7A [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 09 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: F0 09 00 7E 0D 00 6A 58 1F 67 50 D1 6C 64 BC [09:24:55]GetLastDocTimeStamp 1730107451 [09:24:55]current date 1730107498 [09:24:55]FM_GetShiftState [09:24:55]SAM_PROTO_GetShiftState [09:24:55]wFMCommunicate request_size=4 [09:24:55]MH_SAM_APDU [09:24:55]CAPDU: 80 13 01 00 [09:24:55]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [09:24:55]Write i2c OK [09:24:55]MH_I2C_Read... [09:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:55]Read from MH i2c: E2 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 0E 00 [09:24:55]MH_I2C_Read... [09:24:55]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FB [09:24:55]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:24:55]wFMCommunicate OK [09:24:55]SAM_PROTO_GetShiftState done [09:24:55]FM_GetShiftState done [09:24:55]opened in 1730075526 [09:24:55]opened+sec_in_day 1730161926 [09:24:55]quantity*price = 30038 [09:24:55]sum+1 = 30039 [09:24:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 42 28.10.2024 09:24 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156826 ФПД: 146307363292218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092458&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156826&fm=146307363292218&tin=02508201610067®Number=0000000000091693&sum=30000 [09:24:57]StoreToDocumentArchive [09:24:57]shift 538 fd 156826 [09:24:57]save to /storage/0538/doc_00156826 [09:24:57]save last doc name /storage/0538/doc_00156826 to /storage/kkm_last_doc_name [09:24:57]save OK [09:24:57]Clear old archive folders... [09:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:57]tlvbuf is 01AB2540 [09:24:57]SAM_PROTO_ClearQueue [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 09 00 00 [09:24:57]Write to MH i2c: E2 08 00 8C 0D 80 09 00 00 00 00 00 00 0B [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]SAM_PROTO_ClearQueue done [09:24:57]KKMCreateOFDPacket [09:24:57]OFDProtocolAddRootSTLVToBuf [09:24:57]FM_MakeSignedData [09:24:57]FM_MakeSignedData [09:24:57]SAM_PROTO_SignData [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 01 02 [09:24:57]Write to MH i2c: E2 08 00 8D 0D 80 0D 01 02 00 00 00 00 13 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=255 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 6A 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 64 02 00 35 04 06 00 85 [09:24:57]Write to MH i2c: E2 02 01 8E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 6A 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 64 02 00 35 04 06 00 85 00 00 AE [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=10 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 02 02 05 10 D6 6A C4 3A [09:24:57]Write to MH i2c: E2 0D 00 8F 0D 80 0D 02 02 05 00 10 D6 6A C4 3A 00 00 6E [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [09:24:57]RAPDU: 90 00 [09:24:57]wFMCommunicate OK [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 0D 03 02 [09:24:57]Write to MH i2c: E2 08 00 90 0D 80 0D 03 02 00 00 00 00 18 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 0B 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 0B 00 90 0D 00 07 E1 4D 7A 7C 3C 22 D9 90 00 7B [09:24:57]RAPDU: 07 E1 4D 7A 7C 3C 22 D9 90 00 [09:24:57]wFMCommunicate OK [09:24:57]SAM_PROTO_SignData done [09:24:57]FM_MakeSignedData done [09:24:57]CreateOFDProtocolMessage [09:24:57]wFMCommunicate request_size=4 [09:24:57]MH_SAM_APDU [09:24:57]CAPDU: 80 11 00 00 [09:24:57]Write to MH i2c: E2 08 00 91 0D 80 11 00 00 00 00 00 00 18 [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:57]Read from MH i2c: E2 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 17 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: E2 17 00 91 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [09:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:24:57]wFMCommunicate OK [09:24:57]CreateOFDProtocolMessage done [09:24:57]OFDSenderStorePacket 156826 [09:24:57]StoreOFDPacket docnum=156826 [09:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F7 50 07 01 B9 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 6A 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 64 02 00 35 04 06 00 85 10 D6 6A C4 3A 07 E1 4D 7A 7C 3C 22 D9 [09:24:57]CheckFolder [09:24:57]dirname=/storage/ofd_packets [09:24:57]CheckFolder done [09:24:57]ProducePacketName [09:24:57]name=ofd_packets/00156826 [09:24:57]NVStorageSaveData ofd_packets/00156826 [09:24:57]File name is /storage/ofd_packets/00156826 [09:24:57]Write 301 bytes [09:24:57]NVStorageSaveData done [09:24:57]OFDSenderStorePacket done [09:24:57]KKMCreateOFDPacket done [09:24:57]NVStorageSaveData kkm_last_timestamp [09:24:57]File name is /storage/kkm_last_timestamp [09:24:57]Write 4 bytes [09:24:57]NVStorageSaveData done [09:24:57]OFD Sender: Processing packet 156826 [packets to send 31, broken 30] [09:24:57]ProducePacketName [09:24:57]name=ofd_packets/00156826 [09:24:57]OFD Sender: To server: pG, [09:24:57]CommunicateWithHost lk.salyk.kg:30040 [09:24:57]ConnectInit lk.salyk.kg [09:24:57]ExternCall_PrintAddStr [09:24:57]wPrintStart [09:24:57]Write to MH i2c: 01 00 00 92 0D 9F [09:24:57]Write i2c OK [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 07 00 [09:24:57]MH_I2C_Read... [09:24:57]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [09:24:57]RasterBufferAndPrint [09:24:57]line Счет N : (1)99638 [09:24:57]line ИНН: 02508201610067 [09:24:57]line Контрольно-Кассовый Чек [09:24:57]line ПРОДАЖА [09:24:57]line ТРК (МРК, ГНК) : 31 [09:24:57]line Товар: 2710124130 [09:24:57]line Аи-92-К-5 [09:24:57]line 4.490 * 66.90 [09:24:57]line = 300.38 [09:24:57]line НДС 12% НСП 1% [09:24:57]line > о реализуемом товаре [09:24:57]line ОКРУГЛЕНИЕ: -0.38 [09:24:57]line ИТОГО: 300.00 [09:24:57]line Внесено: 300.00 [09:24:57]line СДАЧА: 0.00 [09:24:57]line НСП 1% : 2.66 [09:24:57]line НДС 12% : 31.90 [09:24:57]line Наличными: 300.00 [09:24:57]line Безнал.: 0.00 [09:24:57]line Место: АЗС № 143 "Партнер Нефть" [09:24:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:24:57]line СНО: Общий режим [09:24:57]line Чек 42 28.10.2024 09:24 [09:24:57]line Смена: 538 ФФД: 1.0 [09:24:57]line ЗНМ: 0300000096 [09:24:57]line РНМ: 0000000000091693 [09:24:57]line Версия ККМ: 001 [09:24:57]line ФМ: 0000000000871792 [09:24:57]line ФД: 156826 [09:24:57]line ФПД: 146307363292218 [09:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092458&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156826&fm=146307363292218&tin=02508201610067®Number=0000000000091693&sum=30000 [09:24:57]Connected sock=11 [09:24: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 37 39 32 0F 01 00 00 F7 50 07 01 B9 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 6A 58 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 64 02 00 35 04 06 00 85 10 D6 6A C4 3A 07 E1 4D 7A 7C 3C 22 D9 [09:24:57]written 0, free lines is 4095 [09:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6B 14 47 00 28 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 64 02 00 F4 03 04 00 D6 FD 1E 67 B6 04 01 00 00 53 D2 16 0D 3D DC A8 29 [09:24:58]CommunicateWithHost err = 0 [09:24:58]CheckOFDResponse [09:24:58]1017 (14) - 77093643461234 [09:24:58]1041 (16) - 0000000000871792 [09:24:58]1040 (4) - 156826 [09:24:58]1012 (4) - 28.10.2024 02:58 [09:24:58]1206 (1) - 0 [09:24:58]OFD Sender: Remove packet 156826 [09:24:58]ProducePacketName [09:24:58]name=ofd_packets/00156826 [09:24:58]NVStorageDeleteData [09:24:58]Write to MH i2c: 01 00 00 BD 0D CA [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 07 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 DC 0C B9 [09:24:58]RasterBufferAndPrint [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]line [09:24:58]written 0, free lines is 3298 [09:24:58]process_action close_receipt done [09:24:58]requested_data is exist [09:24:58]produce_requested_data [09:24:58]requested_item fm.sn is exist - process it [09:24:58]wFMCommunicate request_size=4 [09:24:58]MH_SAM_APDU [09:24:58]CAPDU: 80 11 00 00 [09:24:58]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:58]Read from MH i2c: E2 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 17 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [09:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:24:58]wFMCommunicate OK [09:24:58]requested_item fd.num is exist - process it [09:24:58]SAM_PROTO_GetFieldsCounters [09:24:58]wFMCommunicate request_size=4 [09:24:58]MH_SAM_APDU [09:24:58]CAPDU: 80 13 00 00 [09:24:58]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:58]Read from MH i2c: E2 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 62 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 62 00 C5 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 64 02 00 0E 04 04 00 1A 02 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 0E [09:24: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 64 02 00 0E 04 04 00 1A 02 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 [09:24:58]wFMCommunicate OK [09:24:58]SAM_PROTO_GetFieldsCounters done [09:24:58]requested_item shift.num is exist - process it [09:24:58]requested_item shift.opened is exist - process it [09:24:58]req_shift_opened [09:24:58]FM_GetShiftState [09:24:58]SAM_PROTO_GetShiftState [09:24:58]wFMCommunicate request_size=4 [09:24:58]MH_SAM_APDU [09:24:58]CAPDU: 80 13 01 00 [09:24:58]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [09:24:58]OFD Sender: No OFD packet to send [09:24:58]Write i2c OK [09:24:58]MH_I2C_Read... [09:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:58]Read from MH i2c: E2 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 0E 00 [09:24:58]MH_I2C_Read... [09:24:58]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 42 [09:24:58]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:24:58]wFMCommunicate OK [09:24:58]SAM_PROTO_GetShiftState done [09:24:58]FM_GetShiftState done [09:24:58]req_shift_opened done [09:24:58]requested_item shift.open_date is exist - process it [09:24:58]req_shift_open_date [09:24:58]req_shift_open_date done [09:24:58]produce_requested_data done [09:24:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156826,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:24:58]process_action_free close_receipt [09:24:58]json_value_free [09:24:58]json_value_free done [09:24:58]process_json_proto returns [09:24:58]Send response to host [09:24:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156826,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:24:58]free response buf [09:24:58]execute_script done [09:24:58]execute_script returns [09:24:58]free content buf [09:24:58]Sock 7.Close socket [09:24:58]Sock 7.Thread stoped [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:42]int [09:25:42]Write to MH i2c: 01 00 00 C7 0D D4 [09:25:42]*** FLAG_PRN_KEY set [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 C7 0D 00 08 00 00 00 FF 0F F1 [09:25:42]state=0 [09:25:42]Key pressed [09:25:42]Feed [09:25:42]Write to MH i2c: D8 00 00 C8 0D AC [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D8 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D8 01 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: D8 01 00 C8 0D 00 AD [09:25:42]int [09:25:42]Write to MH i2c: 01 00 00 C9 0D D6 [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 C9 0D 00 48 00 00 00 3D 00 62 [09:25:42]state=2 [09:25:42]Key pressed [09:25:42]int [09:25:42]Write to MH i2c: 01 00 00 CA 0D D7 [09:25:42]*** FLAG_PRN_KEY reset [09:25:42]Write i2c OK [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 [09:25:42]MH_I2C_Read... [09:25:42]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 F6 0F E3 [09:25:42]state=2 [09:25:42]Stop feed [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:26]accept exits with 9 [09:30:26]New connection [09:30:26]New thread 3066748260 created [09:30:26]Thread 3066604900 joined [09:30:26]Waiting for new connection... [09:30:26] Sock 9.Parse request [09:30:26]Sock 9.Check first char [09:30:26]Sock 9.First char is OK [09:30:26]request: POST /json_proto HTTP/1.0 [09:30:26]Method: POST [09:30:26]URL: /json_proto [09:30:26]Method is POST - this is cgi request [09:30:26]url: /json_proto [09:30:26]query_string will be loaded in cgi processing [09:30:26]execute_cgi json_proto POST (null) [09:30:26]execute_cgi path=json_proto method=POST [09:30:26]POST find Content-Length [09:30:26]Host: 172.17.63.3:8080 [09:30:26]Content-Length: 678 [09:30:26]Content-Type: application/json [09:30:26] [09:30:26]POST finish read [09:30:26]Found Content-Length = 678 [09:30:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:30:26]execute_script... [09:30: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)99639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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:30:26]POST & json_proto [09:30:26]process_json_proto [09:30:26]json parsed OK: [09:30:26]protocol is kg_v1.0 [09:30:26]action value=close_receipt [09:30:26]process_action close_receipt [09:30:26]cmd_close_receipt [09:30:26]MH_GetDate [09:30:26]Write to MH i2c: F0 00 00 CB 0D C7 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 09 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: F0 09 00 CB 0D 00 B4 59 1F 67 50 D1 6C 64 54 [09:30:26]GetLastDocTimeStamp 1730107498 [09:30:26]current date 1730107828 [09:30:26]FM_GetShiftState [09:30:26]SAM_PROTO_GetShiftState [09:30:26]wFMCommunicate request_size=4 [09:30:26]MH_SAM_APDU [09:30:26]CAPDU: 80 13 01 00 [09:30:26]Write to MH i2c: E2 08 00 CC 0D 80 13 01 00 00 00 00 00 56 [09:30:26]Write i2c OK [09:30:26]MH_I2C_Read... [09:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:26]Read from MH i2c: E2 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 [09:30:26]MH_I2C_Read... [09:30:26]Read from MH i2c: E2 0E 00 CC 0D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 48 [09:30:26]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:30:26]wFMCommunicate OK [09:30:26]SAM_PROTO_GetShiftState done [09:30:26]FM_GetShiftState done [09:30:26]opened in 1730075526 [09:30:26]opened+sec_in_day 1730161926 [09:30:26]quantity*price = 150037 [09:30:26]sum+1 = 150039 [09:30:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 43 28.10.2024 09:30 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156827 ФПД: 83784768176756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156827&fm=83784768176756&tin=02508201610067®Number=0000000000091693&sum=150000 [09:30:27]StoreToDocumentArchive [09:30:27]shift 538 fd 156827 [09:30:27]save to /storage/0538/doc_00156827 [09:30:27]save last doc name /storage/0538/doc_00156827 to /storage/kkm_last_doc_name [09:30:27]save OK [09:30:27]Clear old archive folders... [09:30:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:30:27]tlvbuf is 01A94810 [09:30:27]SAM_PROTO_ClearQueue [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 09 00 00 [09:30:27]Write to MH i2c: E2 08 00 D9 0D 80 09 00 00 00 00 00 00 58 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [09:30:27]RAPDU: 90 00 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_ClearQueue done [09:30:27]KKMCreateOFDPacket [09:30:27]OFDProtocolAddRootSTLVToBuf [09:30:27]FM_MakeSignedData [09:30:27]FM_MakeSignedData [09:30:27]SAM_PROTO_SignData [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 0D 01 02 [09:30:27]Write to MH i2c: E2 08 00 DA 0D 80 0D 01 02 00 00 00 00 60 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [09:30:27]RAPDU: 90 00 [09:30:27]wFMCommunicate OK [09:30:27]wFMCommunicate request_size=255 [09:30:27]MH_SAM_APDU [09:30: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 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 2B 00 00 00 F4 03 04 00 B4 59 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 64 02 00 35 04 06 00 4C 33 A9 58 [09:30:27]Write to MH i2c: E2 02 01 DB 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 2B 00 00 00 F4 03 04 00 B4 59 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 64 02 00 35 04 06 00 4C 33 A9 58 00 00 BC [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [09:30:27]RAPDU: 90 00 [09:30:27]wFMCommunicate OK [09:30:27]wFMCommunicate request_size=7 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 0D 02 02 02 42 74 [09:30:27]Write to MH i2c: E2 0A 00 DC 0D 80 0D 02 02 02 00 42 74 00 00 1D [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [09:30:27]RAPDU: 90 00 [09:30:27]wFMCommunicate OK [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 0D 03 02 [09:30:27]Write to MH i2c: E2 08 00 DD 0D 80 0D 03 02 00 00 00 00 65 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0B 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 0B 00 DD 0D 00 A5 89 D4 09 38 87 7E 82 90 00 30 [09:30:27]RAPDU: A5 89 D4 09 38 87 7E 82 90 00 [09:30:27]wFMCommunicate OK [09:30:27]SAM_PROTO_SignData done [09:30:27]FM_MakeSignedData done [09:30:27]CreateOFDProtocolMessage [09:30:27]wFMCommunicate request_size=4 [09:30:27]MH_SAM_APDU [09:30:27]CAPDU: 80 11 00 00 [09:30:27]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:27]Read from MH i2c: E2 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: E2 17 00 DE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BA [09:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:30:27]wFMCommunicate OK [09:30:27]CreateOFDProtocolMessage done [09:30:27]OFDSenderStorePacket 156827 [09:30:27]StoreOFDPacket docnum=156827 [09:30:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 98 C9 04 01 CF 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 2B 00 00 00 F4 03 04 00 B4 59 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 64 02 00 35 04 06 00 4C 33 A9 58 42 74 A5 89 D4 09 38 87 7E 82 [09:30:27]CheckFolder [09:30:27]dirname=/storage/ofd_packets [09:30:27]CheckFolder done [09:30:27]ProducePacketName [09:30:27]name=ofd_packets/00156827 [09:30:27]NVStorageSaveData ofd_packets/00156827 [09:30:27]File name is /storage/ofd_packets/00156827 [09:30:27]Write 298 bytes [09:30:27]NVStorageSaveData done [09:30:27]OFDSenderStorePacket done [09:30:27]KKMCreateOFDPacket done [09:30:27]NVStorageSaveData kkm_last_timestamp [09:30:27]File name is /storage/kkm_last_timestamp [09:30:27]Write 4 bytes [09:30:27]NVStorageSaveData done [09:30:27]ExternCall_PrintAddStr [09:30:27]wPrintStart [09:30:27]Write to MH i2c: 01 00 00 DF 0D EC [09:30:27]Write i2c OK [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 [09:30:27]MH_I2C_Read... [09:30:27]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 FF 0F 01 [09:30:27]RasterBufferAndPrint [09:30:27]line Счет N : (1)99639 [09:30:27]line ИНН: 02508201610067 [09:30:27]line Контрольно-Кассовый Чек [09:30:27]line ПРОДАЖА [09:30:27]line ТРК (МРК, ГНК) : 32 [09:30:27]line Товар: 2710194210 [09:30:27]line ДТ-К-5 [09:30:27]line 19.690 * 76.20 [09:30:27]line = 1500.38 [09:30:27]line НДС 12% НСП 1% [09:30:27]line > о реализуемом товаре [09:30:27]line ОКРУГЛЕНИЕ: -0.38 [09:30:27]line ИТОГО: 1500.00 [09:30:27]line Внесено: 1500.00 [09:30:27]line СДАЧА: 0.00 [09:30:27]line НСП 1% : 13.28 [09:30:27]line НДС 12% : 159.33 [09:30:27]line Наличными: 1500.00 [09:30:27]line Безнал.: 0.00 [09:30:27]line Место: АЗС № 143 "Партнер Нефть" [09:30:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:30:27]line СНО: Общий режим [09:30:27]line Чек 43 28.10.2024 09:30 [09:30:27]line Смена: 538 ФФД: 1.0 [09:30:27]line ЗНМ: 0300000096 [09:30:27]line РНМ: 0000000000091693 [09:30:27]line Версия ККМ: 001 [09:30:27]line ФМ: 0000000000871792 [09:30:27]line ФД: 156827 [09:30:27]line ФПД: 83784768176756 [09:30:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156827&fm=83784768176756&tin=02508201610067®Number=0000000000091693&sum=150000 [09:30:28]OFD Sender: Processing packet 156827 [packets to send 31, broken 30] [09:30:28]ProducePacketName [09:30:28]name=ofd_packets/00156827 [09:30:28]OFD Sender: To server: pG, [09:30:28]CommunicateWithHost lk.salyk.kg:30040 [09:30:28]ConnectInit lk.salyk.kg [09:30:28]written 0, free lines is 4095 [09:30:28]Connected sock=10 [09:30: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 37 39 32 0C 01 00 00 98 C9 04 01 CF 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 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 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 2B 00 00 00 F4 03 04 00 B4 59 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 64 02 00 35 04 06 00 4C 33 A9 58 42 74 A5 89 D4 09 38 87 7E 82 [09:30:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 08 B7 47 00 EB DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 64 02 00 F4 03 04 00 21 FF 1E 67 B6 04 01 00 00 81 9E C1 4A D4 7F 9E 7C [09:30:28]CommunicateWithHost err = 0 [09:30:28]CheckOFDResponse [09:30:28]1017 (14) - 77093643461234 [09:30:28]1041 (16) - 0000000000871792 [09:30:28]1040 (4) - 156827 [09:30:28]1012 (4) - 28.10.2024 03:04 [09:30:28]1206 (1) - 0 [09:30:28]OFD Sender: Remove packet 156827 [09:30:28]ProducePacketName [09:30:28]name=ofd_packets/00156827 [09:30:28]NVStorageDeleteData [09:30:28]Write to MH i2c: 01 00 00 0A 0E 18 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 07 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 E1 0C 0C [09:30:28]RasterBufferAndPrint [09:30:28]line [09:30:28]line [09:30:28]line [09:30:28]line [09:30:28]line [09:30:28]written 0, free lines is 3303 [09:30:28]process_action close_receipt done [09:30:28]requested_data is exist [09:30:28]produce_requested_data [09:30:28]requested_item fm.sn is exist - process it [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 11 00 00 [09:30:28]Write to MH i2c: E2 08 00 11 0E 80 11 00 00 00 00 00 00 99 [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 17 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 17 00 11 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [09:30:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:30:28]wFMCommunicate OK [09:30:28]requested_item fd.num is exist - process it [09:30:28]SAM_PROTO_GetFieldsCounters [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 13 00 00 [09:30:28]Write to MH i2c: E2 08 00 12 0E 80 13 00 00 00 00 00 00 9C [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 62 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 62 00 12 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 64 02 00 0E 04 04 00 1A 02 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 60 [09:30: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 64 02 00 0E 04 04 00 1A 02 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 [09:30:28]wFMCommunicate OK [09:30:28]SAM_PROTO_GetFieldsCounters done [09:30:28]requested_item shift.num is exist - process it [09:30:28]requested_item shift.opened is exist - process it [09:30:28]req_shift_opened [09:30:28]FM_GetShiftState [09:30:28]SAM_PROTO_GetShiftState [09:30:28]wFMCommunicate request_size=4 [09:30:28]MH_SAM_APDU [09:30:28]CAPDU: 80 13 01 00 [09:30:28]Write to MH i2c: E2 08 00 13 0E 80 13 01 00 00 00 00 00 9E [09:30:28]Write i2c OK [09:30:28]MH_I2C_Read... [09:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:28]Read from MH i2c: E2 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0E 00 [09:30:28]MH_I2C_Read... [09:30:28]Read from MH i2c: E2 0E 00 13 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 90 [09:30:28]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:30:28]wFMCommunicate OK [09:30:28]SAM_PROTO_GetShiftState done [09:30:28]FM_GetShiftState done [09:30:28]req_shift_opened done [09:30:28]requested_item shift.open_date is exist - process it [09:30:28]req_shift_open_date [09:30:28]req_shift_open_date done [09:30:28]produce_requested_data done [09:30:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156827,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:30:28]process_action_free close_receipt [09:30:28]json_value_free [09:30:28]json_value_free done [09:30:28]process_json_proto returns [09:30:28]Send response to host [09:30:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156827,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:30:28]free response buf [09:30:28]execute_script done [09:30:28]execute_script returns [09:30:28]free content buf [09:30:28]Sock 9.Close socket [09:30:28]Sock 9.Thread stoped [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:16]accept exits with 7 [09:41:16]New connection [09:41:16]New thread 3066604900 created [09:41:16]Thread 3066748260 joined [09:41:16]Waiting for new connection... [09:41:16] Sock 7.Parse request [09:41:16]Sock 7.Check first char [09:41:16]Sock 7.First char is OK [09:41:16]request: POST /json_proto HTTP/1.0 [09:41:16]Method: POST [09:41:16]URL: /json_proto [09:41:16]Method is POST - this is cgi request [09:41:16]url: /json_proto [09:41:16]query_string will be loaded in cgi processing [09:41:16]execute_cgi json_proto POST (null) [09:41:16]execute_cgi path=json_proto method=POST [09:41:16]POST find Content-Length [09:41:16]Host: 172.17.63.3:8080 [09:41:16]Content-Length: 677 [09:41:16]Content-Type: application/json [09:41:16] [09:41:16]POST finish read [09:41:16]Found Content-Length = 677 [09:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:16]execute_script... [09:41: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)99640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:16]POST & json_proto [09:41:16]process_json_proto [09:41:16]json parsed OK: [09:41:16]protocol is kg_v1.0 [09:41:16]action value=close_receipt [09:41:16]process_action close_receipt [09:41:16]cmd_close_receipt [09:41:16]MH_GetDate [09:41:16]Write to MH i2c: F0 00 00 14 0E 11 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: F0 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: F0 09 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: F0 09 00 14 0E 00 3E 5C 1F 67 50 D1 6C 64 2B [09:41:16]GetLastDocTimeStamp 1730107828 [09:41:16]current date 1730108478 [09:41:16]FM_GetShiftState [09:41:16]SAM_PROTO_GetShiftState [09:41:16]wFMCommunicate request_size=4 [09:41:16]MH_SAM_APDU [09:41:16]CAPDU: 80 13 01 00 [09:41:16]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [09:41:16]Write i2c OK [09:41:16]MH_I2C_Read... [09:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:16]Read from MH i2c: E2 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 [09:41:16]MH_I2C_Read... [09:41:16]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 92 [09:41:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:41:16]wFMCommunicate OK [09:41:16]SAM_PROTO_GetShiftState done [09:41:16]FM_GetShiftState done [09:41:16]opened in 1730075526 [09:41:16]opened+sec_in_day 1730161926 [09:41:16]quantity*price = 70044 [09:41:16]sum+1 = 70045 [09:41:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 44 28.10.2024 09:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156828 ФПД: 40272442844199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094118&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156828&fm=40272442844199&tin=02508201610067®Number=0000000000091693&sum=70000 [09:41:17]StoreToDocumentArchive [09:41:17]shift 538 fd 156828 [09:41:17]save to /storage/0538/doc_00156828 [09:41:17]save last doc name /storage/0538/doc_00156828 to /storage/kkm_last_doc_name [09:41:17]save OK [09:41:17]Clear old archive folders... [09:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:17]tlvbuf is 01A8D270 [09:41:17]SAM_PROTO_ClearQueue [09:41:17]wFMCommunicate request_size=4 [09:41:17]MH_SAM_APDU [09:41:17]CAPDU: 80 09 00 00 [09:41:17]Write to MH i2c: E2 08 00 22 0E 80 09 00 00 00 00 00 00 A2 [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:17]Read from MH i2c: E2 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 03 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [09:41:17]RAPDU: 90 00 [09:41:17]wFMCommunicate OK [09:41:17]SAM_PROTO_ClearQueue done [09:41:17]KKMCreateOFDPacket [09:41:17]OFDProtocolAddRootSTLVToBuf [09:41:17]FM_MakeSignedData [09:41:17]FM_MakeSignedData [09:41:17]SAM_PROTO_SignData [09:41:17]wFMCommunicate request_size=4 [09:41:17]MH_SAM_APDU [09:41:17]CAPDU: 80 0D 01 02 [09:41:17]Write to MH i2c: E2 08 00 23 0E 80 0D 01 02 00 00 00 00 AA [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:17]Read from MH i2c: E2 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 03 00 [09:41:17]MH_I2C_Read... [09:41:17]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [09:41:17]RAPDU: 90 00 [09:41:17]wFMCommunicate OK [09:41:17]wFMCommunicate request_size=255 [09:41:17]MH_SAM_APDU [09:41: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 2C 00 00 00 F4 03 04 00 3E 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 64 02 00 35 04 06 00 24 [09:41:17]Write to MH i2c: E2 02 01 24 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 2C 00 00 00 F4 03 04 00 3E 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 64 02 00 35 04 06 00 24 00 00 DC [09:41:17]Write i2c OK [09:41:17]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 03 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [09:41:18]RAPDU: 90 00 [09:41:18]wFMCommunicate OK [09:41:18]wFMCommunicate request_size=10 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 0D 02 02 05 A0 A8 A6 64 27 [09:41:18]Write to MH i2c: E2 0D 00 25 0E 80 0D 02 02 05 00 A0 A8 A6 64 27 00 00 30 [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 03 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [09:41:18]RAPDU: 90 00 [09:41:18]wFMCommunicate OK [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 0D 03 02 [09:41:18]Write to MH i2c: E2 08 00 26 0E 80 0D 03 02 00 00 00 00 AF [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0B 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 0B 00 26 0E 00 31 D9 67 54 79 39 B6 9D 90 00 7A [09:41:18]RAPDU: 31 D9 67 54 79 39 B6 9D 90 00 [09:41:18]wFMCommunicate OK [09:41:18]SAM_PROTO_SignData done [09:41:18]FM_MakeSignedData done [09:41:18]CreateOFDProtocolMessage [09:41:18]wFMCommunicate request_size=4 [09:41:18]MH_SAM_APDU [09:41:18]CAPDU: 80 11 00 00 [09:41:18]Write to MH i2c: E2 08 00 27 0E 80 11 00 00 00 00 00 00 AF [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:18]Read from MH i2c: E2 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 17 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: E2 17 00 27 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [09:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:41:18]wFMCommunicate OK [09:41:18]CreateOFDProtocolMessage done [09:41:18]OFDSenderStorePacket 156828 [09:41:18]StoreOFDPacket docnum=156828 [09:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 74 07 01 B5 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 2C 00 00 00 F4 03 04 00 3E 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 64 02 00 35 04 06 00 24 A0 A8 A6 64 27 31 D9 67 54 79 39 B6 9D [09:41:18]CheckFolder [09:41:18]dirname=/storage/ofd_packets [09:41:18]CheckFolder done [09:41:18]ProducePacketName [09:41:18]name=ofd_packets/00156828 [09:41:18]NVStorageSaveData ofd_packets/00156828 [09:41:18]File name is /storage/ofd_packets/00156828 [09:41:18]Write 301 bytes [09:41:18]NVStorageSaveData done [09:41:18]OFDSenderStorePacket done [09:41:18]KKMCreateOFDPacket done [09:41:18]NVStorageSaveData kkm_last_timestamp [09:41:18]File name is /storage/kkm_last_timestamp [09:41:18]Write 4 bytes [09:41:18]NVStorageSaveData done [09:41:18]ExternCall_PrintAddStr [09:41:18]wPrintStart [09:41:18]Write to MH i2c: 01 00 00 28 0E 36 [09:41:18]Write i2c OK [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: 01 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: 01 07 00 [09:41:18]MH_I2C_Read... [09:41:18]Read from MH i2c: 01 07 00 28 0E 00 00 00 00 00 FF 0F 4B [09:41:18]RasterBufferAndPrint [09:41:18]line Счет N : (1)99640 [09:41:18]line ИНН: 02508201610067 [09:41:18]line Контрольно-Кассовый Чек [09:41:18]line ПРОДАЖА [09:41:18]line ТРК (МРК, ГНК) : 31 [09:41:18]line Товар: 2710124130 [09:41:18]line Аи-92-К-5 [09:41:18]line 10.470 * 66.90 [09:41:18]line = 700.44 [09:41:18]line НДС 12% НСП 1% [09:41:18]line > о реализуемом товаре [09:41:18]line ОКРУГЛЕНИЕ: -0.44 [09:41:18]line ИТОГО: 700.00 [09:41:18]line Внесено: 700.00 [09:41:18]line СДАЧА: 0.00 [09:41:18]line НСП 1% : 6.20 [09:41:18]line НДС 12% : 74.38 [09:41:18]line Наличными: 700.00 [09:41:18]line Безнал.: 0.00 [09:41:18]line Место: АЗС № 143 "Партнер Нефть" [09:41:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:41:18]line СНО: Общий режим [09:41:18]line Чек 44 28.10.2024 09:41 [09:41:18]line Смена: 538 ФФД: 1.0 [09:41:18]line ЗНМ: 0300000096 [09:41:18]line РНМ: 0000000000091693 [09:41:18]line Версия ККМ: 001 [09:41:18]line ФМ: 0000000000871792 [09:41:18]line ФД: 156828 [09:41:18]line ФПД: 40272442844199 [09:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094118&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156828&fm=40272442844199&tin=02508201610067®Number=0000000000091693&sum=70000 [09:41:18]OFD Sender: Processing packet 156828 [packets to send 31, broken 30] [09:41:18]ProducePacketName [09:41:18]name=ofd_packets/00156828 [09:41:18]OFD Sender: To server: pG, [09:41:18]CommunicateWithHost lk.salyk.kg:30040 [09:41:18]ConnectInit lk.salyk.kg [09:41:18]written 0, free lines is 4095 [09:41:18]Connected sock=10 [09:41: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 37 39 32 0F 01 00 00 F8 74 07 01 B5 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 2C 00 00 00 F4 03 04 00 3E 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 64 02 00 35 04 06 00 24 A0 A8 A6 64 27 31 D9 67 54 79 39 B6 9D [09:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 43 56 47 00 EE 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 37 39 32 10 04 04 00 9C 64 02 00 F4 03 04 00 AB 01 1F 67 B6 04 01 00 00 28 6B EA 21 A6 4C AE 67 [09:41:18]CommunicateWithHost err = 0 [09:41:18]CheckOFDResponse [09:41:18]1017 (14) - 77093643461234 [09:41:18]1041 (16) - 0000000000871792 [09:41:18]1040 (4) - 156828 [09:41:18]1012 (4) - 28.10.2024 03:14 [09:41:18]1206 (1) - 0 [09:41:18]OFD Sender: Remove packet 156828 [09:41:18]ProducePacketName [09:41:18]name=ofd_packets/00156828 [09:41:18]NVStorageDeleteData [09:41:19]Write to MH i2c: 01 00 00 53 0E 61 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: 01 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: 01 07 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 D0 0C 44 [09:41:19]RasterBufferAndPrint [09:41:19]line [09:41:19]line [09:41:19]line [09:41:19]line [09:41:19]line [09:41:19]written 0, free lines is 3288 [09:41:19]process_action close_receipt done [09:41:19]requested_data is exist [09:41:19]produce_requested_data [09:41:19]requested_item fm.sn is exist - process it [09:41:19]wFMCommunicate request_size=4 [09:41:19]MH_SAM_APDU [09:41:19]CAPDU: 80 11 00 00 [09:41:19]Write to MH i2c: E2 08 00 5A 0E 80 11 00 00 00 00 00 00 E2 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:19]Read from MH i2c: E2 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 17 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 17 00 5A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [09:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:41:19]wFMCommunicate OK [09:41:19]requested_item fd.num is exist - process it [09:41:19]SAM_PROTO_GetFieldsCounters [09:41:19]wFMCommunicate request_size=4 [09:41:19]MH_SAM_APDU [09:41:19]CAPDU: 80 13 00 00 [09:41:19]Write to MH i2c: E2 08 00 5B 0E 80 13 00 00 00 00 00 00 E5 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:19]Read from MH i2c: E2 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 62 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 62 00 5B 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 64 02 00 0E 04 04 00 1A 02 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 AD [09:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 64 02 00 0E 04 04 00 1A 02 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 [09:41:19]wFMCommunicate OK [09:41:19]SAM_PROTO_GetFieldsCounters done [09:41:19]requested_item shift.num is exist - process it [09:41:19]requested_item shift.opened is exist - process it [09:41:19]req_shift_opened [09:41:19]FM_GetShiftState [09:41:19]SAM_PROTO_GetShiftState [09:41:19]wFMCommunicate request_size=4 [09:41:19]MH_SAM_APDU [09:41:19]CAPDU: 80 13 01 00 [09:41:19]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [09:41:19]Write i2c OK [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 [09:41:19]MH_I2C_Read... [09:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:19]Read from MH i2c: E2 0E 00 [09:41:19]MH_I2C_Read... [09:41:19]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D9 [09:41:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:41:19]wFMCommunicate OK [09:41:19]SAM_PROTO_GetShiftState done [09:41:19]FM_GetShiftState done [09:41:19]req_shift_opened done [09:41:19]requested_item shift.open_date is exist - process it [09:41:19]req_shift_open_date [09:41:19]req_shift_open_date done [09:41:19]produce_requested_data done [09:41:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156828,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:41:19]process_action_free close_receipt [09:41:19]json_value_free [09:41:19]json_value_free done [09:41:19]process_json_proto returns [09:41:19]Send response to host [09:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156828,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:41:19]free response buf [09:41:19]execute_script done [09:41:19]execute_script returns [09:41:19]free content buf [09:41:19]Sock 7.Close socket [09:41:19]Sock 7.Thread stoped [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:18]int [09:42:18]Write to MH i2c: 01 00 00 5D 0E 6B [09:42:18]*** FLAG_PRN_KEY set [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 5D 0E 00 08 00 00 00 FF 0F 88 [09:42:18]state=0 [09:42:18]Key pressed [09:42:18]Feed [09:42:18]Write to MH i2c: D8 00 00 5E 0E 43 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D8 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D8 01 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: D8 01 00 5E 0E 00 44 [09:42:18]int [09:42:18]Write to MH i2c: 01 00 00 5F 0E 6D [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 5F 0E 00 48 00 00 00 3D 00 F9 [09:42:18]state=2 [09:42:18]Key pressed [09:42:18]int [09:42:18]Write to MH i2c: 01 00 00 60 0E 6E [09:42:18]*** FLAG_PRN_KEY reset [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 F6 0F 7A [09:42:18]state=2 [09:42:18]Stop feed [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]accept exits with 9 [09:43:19]New connection [09:43:19]New thread 3066748260 created [09:43:19]Thread 3066604900 joined [09:43:19]Waiting for new connection... [09:43:19] Sock 9.Parse request [09:43:19]Sock 9.Check first char [09:43:19]Sock 9.First char is OK [09:43:19]request: POST /json_proto HTTP/1.0 [09:43:19]Method: POST [09:43:19]URL: /json_proto [09:43:19]Method is POST - this is cgi request [09:43:19]url: /json_proto [09:43:19]query_string will be loaded in cgi processing [09:43:19]execute_cgi json_proto POST (null) [09:43:19]execute_cgi path=json_proto method=POST [09:43:19]POST find Content-Length [09:43:19]Host: 172.17.63.3:8080 [09:43:19]Content-Length: 791 [09:43:19]Content-Type: application/json [09:43:19] [09:43:19]POST finish read [09:43:19]Found Content-Length = 791 [09:43:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29852", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:19]execute_script... [09:43: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)99641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A29852", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:19]POST & json_proto [09:43:19]process_json_proto [09:43:19]json parsed OK: [09:43:19]protocol is kg_v1.0 [09:43:19]action value=close_receipt [09:43:19]process_action close_receipt [09:43:19]cmd_close_receipt [09:43:19]MH_GetDate [09:43:19]Write to MH i2c: F0 00 00 61 0E 5E [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: F0 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: F0 09 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: F0 09 00 61 0E 00 B9 5C 1F 67 50 D1 6C 64 F3 [09:43:19]GetLastDocTimeStamp 1730108478 [09:43:19]current date 1730108601 [09:43:19]FM_GetShiftState [09:43:19]SAM_PROTO_GetShiftState [09:43:19]wFMCommunicate request_size=4 [09:43:19]MH_SAM_APDU [09:43:19]CAPDU: 80 13 01 00 [09:43:19]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [09:43:19]Write i2c OK [09:43:19]MH_I2C_Read... [09:43:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:19]Read from MH i2c: E2 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0E 00 [09:43:19]MH_I2C_Read... [09:43:19]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DF [09:43:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:43:19]wFMCommunicate OK [09:43:19]SAM_PROTO_GetShiftState done [09:43:19]FM_GetShiftState done [09:43:19]opened in 1730075526 [09:43:19]opened+sec_in_day 1730161926 [09:43:19]quantity*price = 0 [09:43:19]sum+1 = 1 [09:43:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 45 28.10.2024 09:43 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 29852 ФМ: 0000000000871792 ФД: 156829 ФПД: 207422416155283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156829&fm=207422416155283&tin=02508201610067®Number=0000000000091693&sum=0 [09:43:20]StoreToDocumentArchive [09:43:20]shift 538 fd 156829 [09:43:20]save to /storage/0538/doc_00156829 [09:43:20]save last doc name /storage/0538/doc_00156829 to /storage/kkm_last_doc_name [09:43:20]save OK [09:43:20]Clear old archive folders... [09:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:20]tlvbuf is 01A7B570 [09:43:20]SAM_PROTO_ClearQueue [09:43:20]wFMCommunicate request_size=4 [09:43:20]MH_SAM_APDU [09:43:20]CAPDU: 80 09 00 00 [09:43:20]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:20]Read from MH i2c: E2 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [09:43:20]RAPDU: 90 00 [09:43:20]wFMCommunicate OK [09:43:20]SAM_PROTO_ClearQueue done [09:43:20]KKMCreateOFDPacket [09:43:20]OFDProtocolAddRootSTLVToBuf [09:43:20]FM_MakeSignedData [09:43:20]FM_MakeSignedData [09:43:20]SAM_PROTO_SignData [09:43:20]wFMCommunicate request_size=4 [09:43:20]MH_SAM_APDU [09:43:20]CAPDU: 80 0D 01 02 [09:43:20]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:20]Read from MH i2c: E2 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [09:43:20]RAPDU: 90 00 [09:43:20]wFMCommunicate OK [09:43:20]wFMCommunicate request_size=255 [09:43:20]MH_SAM_APDU [09:43: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B9 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 64 02 00 35 04 06 00 BC [09:43:20]Write to MH i2c: E2 02 01 71 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B9 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 64 02 00 35 04 06 00 BC 00 00 4E [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:20]Read from MH i2c: E2 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [09:43:20]RAPDU: 90 00 [09:43:20]wFMCommunicate OK [09:43:20]wFMCommunicate request_size=10 [09:43:20]MH_SAM_APDU [09:43:20]CAPDU: 80 0D 02 02 05 A6 4B 6E F2 93 [09:43:20]Write to MH i2c: E2 0D 00 72 0E 80 0D 02 02 05 00 A6 4B 6E F2 93 00 00 E8 [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:20]Read from MH i2c: E2 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 [09:43:20]MH_I2C_Read... [09:43:20]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [09:43:20]RAPDU: 90 00 [09:43:20]wFMCommunicate OK [09:43:20]wFMCommunicate request_size=4 [09:43:20]MH_SAM_APDU [09:43:20]CAPDU: 80 0D 03 02 [09:43:20]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [09:43:20]Write i2c OK [09:43:20]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0B 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 0B 00 73 0E 00 91 BD 0C 79 78 00 A1 3F 90 00 28 [09:43:21]RAPDU: 91 BD 0C 79 78 00 A1 3F 90 00 [09:43:21]wFMCommunicate OK [09:43:21]SAM_PROTO_SignData done [09:43:21]FM_MakeSignedData done [09:43:21]CreateOFDProtocolMessage [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 11 00 00 [09:43:21]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 51 [09:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:43:21]wFMCommunicate OK [09:43:21]CreateOFDProtocolMessage done [09:43:21]OFDSenderStorePacket 156829 [09:43:21]StoreOFDPacket docnum=156829 [09:43:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 8A 07 01 C3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B9 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 64 02 00 35 04 06 00 BC A6 4B 6E F2 93 91 BD 0C 79 78 00 A1 3F [09:43:21]CheckFolder [09:43:21]dirname=/storage/ofd_packets [09:43:21]CheckFolder done [09:43:21]ProducePacketName [09:43:21]name=ofd_packets/00156829 [09:43:21]NVStorageSaveData ofd_packets/00156829 [09:43:21]File name is /storage/ofd_packets/00156829 [09:43:21]Write 301 bytes [09:43:21]NVStorageSaveData done [09:43:21]OFDSenderStorePacket done [09:43:21]KKMCreateOFDPacket done [09:43:21]NVStorageSaveData kkm_last_timestamp [09:43:21]File name is /storage/kkm_last_timestamp [09:43:21]Write 4 bytes [09:43:21]NVStorageSaveData done [09:43:21]ExternCall_PrintAddStr [09:43:21]wPrintStart [09:43:21]Write to MH i2c: 01 00 00 75 0E 83 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [09:43:21]RasterBufferAndPrint [09:43:21]line Счет N : (1)99641 [09:43:21]line ИНН: 02508201610067 [09:43:21]line Контрольно-Кассовый Чек [09:43:21]line ПРОДАЖА [09:43:21]line ТРК (МРК, ГНК) : 31 [09:43:21]line Товар: 2710124130 [09:43:21]line Аи-92-К-5 [09:43:21]line 30.000 * 0.00 [09:43:21]line = 0.00 [09:43:21]line НДС 12% НСП 1% [09:43:21]line > о реализуемом товаре [09:43:21]line ИТОГО: 0.00 [09:43:21]line НСП 1% : 0.00 [09:43:21]line НДС 12% : 0.00 [09:43:21]line Наличными: 0.00 [09:43:21]line Безнал.: 0.00 [09:43:21]line Место: АЗС № 143 "Партнер Нефть" [09:43:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:43:21]line СНО: Общий режим [09:43:21]line Чек 45 28.10.2024 09:43 [09:43:21]line Смена: 538 ФФД: 1.0 [09:43:21]line ЗНМ: 0300000096 [09:43:21]line РНМ: 0000000000091693 [09:43:21]line Версия ККМ: 001 [09:43:21]line Талоны: Топливная Карта [09:43:21]line 29852 [09:43:21]line ФМ: 0000000000871792 [09:43:21]line ФД: 156829 [09:43:21]line ФПД: 207422416155283 [09:43:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156829&fm=207422416155283&tin=02508201610067®Number=0000000000091693&sum=0 [09:43:21]written 0, free lines is 4095 [09:43:21]OFD Sender: Processing packet 156829 [packets to send 31, broken 30] [09:43:21]ProducePacketName [09:43:21]name=ofd_packets/00156829 [09:43:21]OFD Sender: To server: pG, [09:43:21]CommunicateWithHost lk.salyk.kg:30040 [09:43:21]ConnectInit lk.salyk.kg [09:43:21]Connected sock=10 [09:43: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 37 39 32 0F 01 00 00 C9 8A 07 01 C3 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B9 5C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 64 02 00 35 04 06 00 BC A6 4B 6E F2 93 91 BD 0C 79 78 00 A1 3F [09:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3B F5 47 00 05 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 64 02 00 F4 03 04 00 26 02 1F 67 B6 04 01 00 00 FA CC 59 B1 F3 8B C8 39 [09:43:21]CommunicateWithHost err = 0 [09:43:21]CheckOFDResponse [09:43:21]1017 (14) - 77093643461234 [09:43:21]1041 (16) - 0000000000871792 [09:43:21]1040 (4) - 156829 [09:43:21]1012 (4) - 28.10.2024 03:16 [09:43:21]1206 (1) - 0 [09:43:21]OFD Sender: Remove packet 156829 [09:43:21]ProducePacketName [09:43:21]name=ofd_packets/00156829 [09:43:21]NVStorageDeleteData [09:43:21]Write to MH i2c: 01 00 00 9F 0E AD [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: 01 07 00 9F 0E 00 00 00 00 00 EF 0C AF [09:43:21]RasterBufferAndPrint [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]line [09:43:21]written 0, free lines is 3317 [09:43:21]process_action close_receipt done [09:43:21]requested_data is exist [09:43:21]produce_requested_data [09:43:21]requested_item fm.sn is exist - process it [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 11 00 00 [09:43:21]Write to MH i2c: E2 08 00 A6 0E 80 11 00 00 00 00 00 00 2E [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:21]Read from MH i2c: E2 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 [09:43:21]MH_I2C_Read... [09:43:21]Read from MH i2c: E2 17 00 A6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [09:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:43:21]wFMCommunicate OK [09:43:21]requested_item fd.num is exist - process it [09:43:21]SAM_PROTO_GetFieldsCounters [09:43:21]wFMCommunicate request_size=4 [09:43:21]MH_SAM_APDU [09:43:21]CAPDU: 80 13 00 00 [09:43:21]Write to MH i2c: E2 08 00 A7 0E 80 13 00 00 00 00 00 00 31 [09:43:21]Write i2c OK [09:43:21]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 62 00 A7 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 64 02 00 0E 04 04 00 1A 02 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 FD [09:43: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 64 02 00 0E 04 04 00 1A 02 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 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetFieldsCounters done [09:43:22]requested_item shift.num is exist - process it [09:43:22]requested_item shift.opened is exist - process it [09:43:22]req_shift_opened [09:43:22]FM_GetShiftState [09:43:22]SAM_PROTO_GetShiftState [09:43:22]wFMCommunicate request_size=4 [09:43:22]MH_SAM_APDU [09:43:22]CAPDU: 80 13 01 00 [09:43:22]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [09:43:22]Write i2c OK [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 [09:43:22]MH_I2C_Read... [09:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:22]Read from MH i2c: E2 0E 00 [09:43:22]MH_I2C_Read... [09:43:22]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 25 [09:43:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:43:22]wFMCommunicate OK [09:43:22]SAM_PROTO_GetShiftState done [09:43:22]FM_GetShiftState done [09:43:22]req_shift_opened done [09:43:22]requested_item shift.open_date is exist - process it [09:43:22]req_shift_open_date [09:43:22]req_shift_open_date done [09:43:22]produce_requested_data done [09:43:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156829,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:43:22]process_action_free close_receipt [09:43:22]json_value_free [09:43:22]json_value_free done [09:43:22]process_json_proto returns [09:43:22]Send response to host [09:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156829,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:43:22]free response buf [09:43:22]execute_script done [09:43:22]execute_script returns [09:43:22]free content buf [09:43:22]Sock 9.Close socket [09:43:22]Sock 9.Thread stoped [09:43:22]OFD Sender: No OFD packet to send [09:43:23]int [09:43:23]Write to MH i2c: 01 00 00 A9 0E B7 [09:43:23]*** FLAG_PRN_KEY set [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 A9 0E 00 08 00 00 00 FF 0F D4 [09:43:23]state=0 [09:43:23]Key pressed [09:43:23]Feed [09:43:23]Write to MH i2c: D8 00 00 AA 0E 8F [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: D8 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: D8 01 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: D8 01 00 AA 0E 00 90 [09:43:23]int [09:43:23]Write to MH i2c: 01 00 00 AB 0E B9 [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 AB 0E 00 48 00 00 00 3C 00 44 [09:43:23]state=2 [09:43:23]Key pressed [09:43:23]int [09:43:23]Write to MH i2c: 01 00 00 AC 0E BA [09:43:23]*** FLAG_PRN_KEY reset [09:43:23]Write i2c OK [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 [09:43:23]MH_I2C_Read... [09:43:23]Read from MH i2c: 01 07 00 AC 0E 00 00 00 00 00 FF 0F CF [09:43:23]state=2 [09:43:23]Stop feed [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44: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: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:32]accept exits with 7 [09:45:32]New connection [09:45:32]New thread 3066604900 created [09:45:32]Thread 3066748260 joined [09:45:32]Waiting for new connection... [09:45:32] Sock 7.Parse request [09:45:32]Sock 7.Check first char [09:45:32]Sock 7.First char is OK [09:45:32]request: POST /json_proto HTTP/1.0 [09:45:32]Method: POST [09:45:32]URL: /json_proto [09:45:32]Method is POST - this is cgi request [09:45:32]url: /json_proto [09:45:32]query_string will be loaded in cgi processing [09:45:32]execute_cgi json_proto POST (null) [09:45:32]execute_cgi path=json_proto method=POST [09:45:32]POST find Content-Length [09:45:32]Host: 172.17.63.3:8080 [09:45:32]Content-Length: 681 [09:45:32]Content-Type: application/json [09:45:32] [09:45:32]POST finish read [09:45:32]Found Content-Length = 681 [09:45:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:45:32]execute_script... [09:45: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)99642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:45:32]POST & json_proto [09:45:32]process_json_proto [09:45:32]json parsed OK: [09:45:32]protocol is kg_v1.0 [09:45:32]action value=close_receipt [09:45:32]process_action close_receipt [09:45:32]cmd_close_receipt [09:45:32]MH_GetDate [09:45:32]Write to MH i2c: F0 00 00 AD 0E AA [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: F0 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: F0 09 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: F0 09 00 AD 0E 00 3E 5D 1F 67 50 D1 6C 64 C5 [09:45:32]GetLastDocTimeStamp 1730108601 [09:45:32]current date 1730108734 [09:45:32]FM_GetShiftState [09:45:32]SAM_PROTO_GetShiftState [09:45:32]wFMCommunicate request_size=4 [09:45:32]MH_SAM_APDU [09:45:32]CAPDU: 80 13 01 00 [09:45:32]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [09:45:32]Write i2c OK [09:45:32]MH_I2C_Read... [09:45:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:32]Read from MH i2c: E2 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0E 00 [09:45:32]MH_I2C_Read... [09:45:32]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2B [09:45:32]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:45:32]wFMCommunicate OK [09:45:32]SAM_PROTO_GetShiftState done [09:45:32]FM_GetShiftState done [09:45:32]opened in 1730075526 [09:45:32]opened+sec_in_day 1730161926 [09:45:32]quantity*price = 100015 [09:45:32]sum+1 = 100017 [09:45:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 46 28.10.2024 09:45 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156830 ФПД: 107197090124160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094534&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156830&fm=107197090124160&tin=02508201610067®Number=0000000000091693&sum=100000 [09:45:33]StoreToDocumentArchive [09:45:33]shift 538 fd 156830 [09:45:33]save to /storage/0538/doc_00156830 [09:45:33]save last doc name /storage/0538/doc_00156830 to /storage/kkm_last_doc_name [09:45:33]save OK [09:45:33]Clear old archive folders... [09:45:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:33]tlvbuf is 01A94270 [09:45:33]SAM_PROTO_ClearQueue [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 09 00 00 [09:45:33]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 03 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [09:45:33]RAPDU: 90 00 [09:45:33]wFMCommunicate OK [09:45:33]SAM_PROTO_ClearQueue done [09:45:33]KKMCreateOFDPacket [09:45:33]OFDProtocolAddRootSTLVToBuf [09:45:33]FM_MakeSignedData [09:45:33]FM_MakeSignedData [09:45:33]SAM_PROTO_SignData [09:45:33]wFMCommunicate request_size=4 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 0D 01 02 [09:45:33]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:33]Read from MH i2c: E2 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 03 00 [09:45:33]MH_I2C_Read... [09:45:33]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [09:45:33]RAPDU: 90 00 [09:45:33]wFMCommunicate OK [09:45:33]wFMCommunicate request_size=255 [09:45:33]MH_SAM_APDU [09:45:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 2E 00 00 00 F4 03 04 00 3E 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 64 02 00 35 04 06 00 61 [09:45:33]Write to MH i2c: E2 02 01 BD 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 2E 00 00 00 F4 03 04 00 3E 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 64 02 00 35 04 06 00 61 00 00 A1 [09:45:33]Write i2c OK [09:45:33]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=10 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 02 02 05 7E C4 7A 51 80 [09:45:34]Write to MH i2c: E2 0D 00 BE 0E 80 0D 02 02 05 00 7E C4 7A 51 80 00 00 DD [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [09:45:34]RAPDU: 90 00 [09:45:34]wFMCommunicate OK [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 0D 03 02 [09:45:34]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 0B 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 0B 00 BF 0E 00 99 75 80 7D 32 D7 94 0C 90 00 FD [09:45:34]RAPDU: 99 75 80 7D 32 D7 94 0C 90 00 [09:45:34]wFMCommunicate OK [09:45:34]SAM_PROTO_SignData done [09:45:34]FM_MakeSignedData done [09:45:34]CreateOFDProtocolMessage [09:45:34]wFMCommunicate request_size=4 [09:45:34]MH_SAM_APDU [09:45:34]CAPDU: 80 11 00 00 [09:45:34]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:34]Read from MH i2c: E2 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 17 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9D [09:45:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:34]wFMCommunicate OK [09:45:34]CreateOFDProtocolMessage done [09:45:34]OFDSenderStorePacket 156830 [09:45:34]StoreOFDPacket docnum=156830 [09:45:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 AC 07 01 EC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 2E 00 00 00 F4 03 04 00 3E 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 64 02 00 35 04 06 00 61 7E C4 7A 51 80 99 75 80 7D 32 D7 94 0C [09:45:34]CheckFolder [09:45:34]dirname=/storage/ofd_packets [09:45:34]CheckFolder done [09:45:34]ProducePacketName [09:45:34]name=ofd_packets/00156830 [09:45:34]NVStorageSaveData ofd_packets/00156830 [09:45:34]File name is /storage/ofd_packets/00156830 [09:45:34]Write 301 bytes [09:45:34]NVStorageSaveData done [09:45:34]OFDSenderStorePacket done [09:45:34]KKMCreateOFDPacket done [09:45:34]NVStorageSaveData kkm_last_timestamp [09:45:34]File name is /storage/kkm_last_timestamp [09:45:34]Write 4 bytes [09:45:34]NVStorageSaveData done [09:45:34]ExternCall_PrintAddStr [09:45:34]wPrintStart [09:45:34]Write to MH i2c: 01 00 00 C1 0E CF [09:45:34]Write i2c OK [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: 01 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: 01 07 00 [09:45:34]MH_I2C_Read... [09:45:34]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [09:45:34]RasterBufferAndPrint [09:45:34]line Счет N : (1)99642 [09:45:34]line ИНН: 02508201610067 [09:45:34]line Контрольно-Кассовый Чек [09:45:34]line ПРОДАЖА [09:45:34]line ТРК (МРК, ГНК) : 31 [09:45:34]line Товар: 2710124130 [09:45:34]line Аи-92-К-5 [09:45:34]line 14.950 * 66.90 [09:45:34]line = 1000.16 [09:45:34]line НДС 12% НСП 1% [09:45:34]line > о реализуемом товаре [09:45:34]line ОКРУГЛЕНИЕ: -0.16 [09:45:34]line ИТОГО: 1000.00 [09:45:34]line Внесено: 1000.00 [09:45:34]line СДАЧА: 0.00 [09:45:34]line НСП 1% : 8.85 [09:45:34]line НДС 12% : 106.21 [09:45:34]line Наличными: 1000.00 [09:45:34]line Безнал.: 0.00 [09:45:34]line Место: АЗС № 143 "Партнер Нефть" [09:45:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:45:34]line СНО: Общий режим [09:45:34]line Чек 46 28.10.2024 09:45 [09:45:34]line Смена: 538 ФФД: 1.0 [09:45:34]line ЗНМ: 0300000096 [09:45:34]line РНМ: 0000000000091693 [09:45:34]line Версия ККМ: 001 [09:45:34]line ФМ: 0000000000871792 [09:45:34]line ФД: 156830 [09:45:34]line ФПД: 107197090124160 [09:45:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094534&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156830&fm=107197090124160&tin=02508201610067®Number=0000000000091693&sum=100000 [09:45:34]OFD Sender: Processing packet 156830 [packets to send 31, broken 30] [09:45:34]ProducePacketName [09:45:34]name=ofd_packets/00156830 [09:45:34]OFD Sender: To server: pG, [09:45:34]CommunicateWithHost lk.salyk.kg:30040 [09:45:34]ConnectInit lk.salyk.kg [09:45:34]written 0, free lines is 4095 [09:45:34]Connected sock=10 [09:45: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 37 39 32 0F 01 00 00 64 AC 07 01 EC BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 2E 00 00 00 F4 03 04 00 3E 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 64 02 00 35 04 06 00 61 7E C4 7A 51 80 99 75 80 7D 32 D7 94 0C [09:45:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E9 CA 47 00 8B E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 64 02 00 F4 03 04 00 AB 02 1F 67 B6 04 01 00 00 4B 9E 52 45 45 6E 91 7B [09:45:34]CommunicateWithHost err = 0 [09:45:34]CheckOFDResponse [09:45:34]1017 (14) - 77093643461234 [09:45:34]1041 (16) - 0000000000871792 [09:45:34]1040 (4) - 156830 [09:45:34]1012 (4) - 28.10.2024 03:19 [09:45:34]1206 (1) - 0 [09:45:34]OFD Sender: Remove packet 156830 [09:45:34]ProducePacketName [09:45:34]name=ofd_packets/00156830 [09:45:34]NVStorageDeleteData [09:45:35]Write to MH i2c: 01 00 00 EC 0E FA [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 D4 0C E1 [09:45:35]RasterBufferAndPrint [09:45:35]line [09:45:35]line [09:45:35]line [09:45:35]line [09:45:35]line [09:45:35]written 0, free lines is 3293 [09:45:35]process_action close_receipt done [09:45:35]requested_data is exist [09:45:35]produce_requested_data [09:45:35]requested_item fm.sn is exist - process it [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 11 00 00 [09:45:35]Write to MH i2c: E2 08 00 F3 0E 80 11 00 00 00 00 00 00 7B [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 17 00 F3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D0 [09:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:35]wFMCommunicate OK [09:45:35]requested_item fd.num is exist - process it [09:45:35]SAM_PROTO_GetFieldsCounters [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 13 00 00 [09:45:35]Write to MH i2c: E2 08 00 F4 0E 80 13 00 00 00 00 00 00 7E [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 62 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 62 00 F4 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 64 02 00 0E 04 04 00 1A 02 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 4E [09:45: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 64 02 00 0E 04 04 00 1A 02 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 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_GetFieldsCounters done [09:45:35]requested_item shift.num is exist - process it [09:45:35]requested_item shift.opened is exist - process it [09:45:35]req_shift_opened [09:45:35]FM_GetShiftState [09:45:35]SAM_PROTO_GetShiftState [09:45:35]wFMCommunicate request_size=4 [09:45:35]MH_SAM_APDU [09:45:35]CAPDU: 80 13 01 00 [09:45:35]Write to MH i2c: E2 08 00 F5 0E 80 13 01 00 00 00 00 00 80 [09:45:35]Write i2c OK [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 [09:45:35]MH_I2C_Read... [09:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:35]Read from MH i2c: E2 0E 00 [09:45:35]MH_I2C_Read... [09:45:35]Read from MH i2c: E2 0E 00 F5 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 72 [09:45:35]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:45:35]wFMCommunicate OK [09:45:35]SAM_PROTO_GetShiftState done [09:45:35]FM_GetShiftState done [09:45:35]req_shift_opened done [09:45:35]requested_item shift.open_date is exist - process it [09:45:35]req_shift_open_date [09:45:35]req_shift_open_date done [09:45:35]produce_requested_data done [09:45:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156830,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:45:35]process_action_free close_receipt [09:45:35]json_value_free [09:45:35]json_value_free done [09:45:35]process_json_proto returns [09:45:35]Send response to host [09:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156830,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:45:35]free response buf [09:45:35]execute_script done [09:45:35]execute_script returns [09:45:35]free content buf [09:45:35]Sock 7.Close socket [09:45:35]Sock 7.Thread stoped [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:35]accept exits with 9 [09:47:35]New connection [09:47:35]New thread 3066748260 created [09:47:35]Thread 3066604900 joined [09:47:35]Waiting for new connection... [09:47:35] Sock 9.Parse request [09:47:35]Sock 9.Check first char [09:47:35]Sock 9.First char is OK [09:47:35]request: POST /json_proto HTTP/1.0 [09:47:35]Method: POST [09:47:35]URL: /json_proto [09:47:35]Method is POST - this is cgi request [09:47:35]url: /json_proto [09:47:35]query_string will be loaded in cgi processing [09:47:35]execute_cgi json_proto POST (null) [09:47:35]execute_cgi path=json_proto method=POST [09:47:35]POST find Content-Length [09:47:35]Host: 172.17.63.3:8080 [09:47:36]Content-Length: 799 [09:47:36]Content-Type: application/json [09:47:36] [09:47:36]POST finish read [09:47:36]Found Content-Length = 799 [09:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581478", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:36]execute_script... [09:47: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)99643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4581478", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:36]POST & json_proto [09:47:36]process_json_proto [09:47:36]json parsed OK: [09:47:36]protocol is kg_v1.0 [09:47:36]action value=close_receipt [09:47:36]process_action close_receipt [09:47:36]cmd_close_receipt [09:47:36]MH_GetDate [09:47:36]Write to MH i2c: F0 00 00 F6 0E F3 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: F0 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: F0 09 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: F0 09 00 F6 0E 00 BA 5D 1F 67 50 D1 6C 64 8A [09:47:36]GetLastDocTimeStamp 1730108734 [09:47:36]current date 1730108858 [09:47:36]FM_GetShiftState [09:47:36]SAM_PROTO_GetShiftState [09:47:36]wFMCommunicate request_size=4 [09:47:36]MH_SAM_APDU [09:47:36]CAPDU: 80 13 01 00 [09:47:36]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [09:47:36]Write i2c OK [09:47:36]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 74 [09:47:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetShiftState done [09:47:36]FM_GetShiftState done [09:47:36]opened in 1730075526 [09:47:36]opened+sec_in_day 1730161926 [09:47:36]quantity*price = 0 [09:47:36]sum+1 = 1 [09:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 47 28.10.2024 09:47 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4581478 ФМ: 0000000000871792 ФД: 156831 ФПД: 257315116686928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156831&fm=257315116686928&tin=02508201610067®Number=0000000000091693&sum=0 [09:47:37]StoreToDocumentArchive [09:47:37]shift 538 fd 156831 [09:47:37]save to /storage/0538/doc_00156831 [09:47:37]save last doc name /storage/0538/doc_00156831 to /storage/kkm_last_doc_name [09:47:37]save OK [09:47:37]Clear old archive folders... [09:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:37]tlvbuf is 01A7E3D0 [09:47:37]SAM_PROTO_ClearQueue [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 09 00 00 [09:47:37]Write to MH i2c: E2 08 00 04 0F 80 09 00 00 00 00 00 00 85 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_ClearQueue done [09:47:37]KKMCreateOFDPacket [09:47:37]OFDProtocolAddRootSTLVToBuf [09:47:37]FM_MakeSignedData [09:47:37]FM_MakeSignedData [09:47:37]SAM_PROTO_SignData [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 01 02 [09:47:37]Write to MH i2c: E2 08 00 05 0F 80 0D 01 02 00 00 00 00 8D [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=255 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 64 02 00 35 04 06 00 EA [09:47:37]Write to MH i2c: E2 02 01 06 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 64 02 00 35 04 06 00 EA 00 00 AA [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=10 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 02 02 05 06 D8 20 1E 50 [09:47:37]Write to MH i2c: E2 0D 00 07 0F 80 0D 02 02 05 00 06 D8 20 1E 50 00 00 06 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [09:47:37]RAPDU: 90 00 [09:47:37]wFMCommunicate OK [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 0D 03 02 [09:47:37]Write to MH i2c: E2 08 00 08 0F 80 0D 03 02 00 00 00 00 92 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 0B 00 08 0F 00 F9 1A 5D 64 07 4B B9 7F 90 00 F1 [09:47:37]RAPDU: F9 1A 5D 64 07 4B B9 7F 90 00 [09:47:37]wFMCommunicate OK [09:47:37]SAM_PROTO_SignData done [09:47:37]FM_MakeSignedData done [09:47:37]CreateOFDProtocolMessage [09:47:37]wFMCommunicate request_size=4 [09:47:37]MH_SAM_APDU [09:47:37]CAPDU: 80 11 00 00 [09:47:37]Write to MH i2c: E2 08 00 09 0F 80 11 00 00 00 00 00 00 92 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:37]Read from MH i2c: E2 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: E2 17 00 09 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E7 [09:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:47:37]wFMCommunicate OK [09:47:37]CreateOFDProtocolMessage done [09:47:37]OFDSenderStorePacket 156831 [09:47:37]StoreOFDPacket docnum=156831 [09:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2F 9A 07 01 44 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 64 02 00 35 04 06 00 EA 06 D8 20 1E 50 F9 1A 5D 64 07 4B B9 7F [09:47:37]CheckFolder [09:47:37]dirname=/storage/ofd_packets [09:47:37]CheckFolder done [09:47:37]ProducePacketName [09:47:37]name=ofd_packets/00156831 [09:47:37]NVStorageSaveData ofd_packets/00156831 [09:47:37]File name is /storage/ofd_packets/00156831 [09:47:37]Write 301 bytes [09:47:37]NVStorageSaveData done [09:47:37]OFDSenderStorePacket done [09:47:37]KKMCreateOFDPacket done [09:47:37]NVStorageSaveData kkm_last_timestamp [09:47:37]File name is /storage/kkm_last_timestamp [09:47:37]Write 4 bytes [09:47:37]NVStorageSaveData done [09:47:37]ExternCall_PrintAddStr [09:47:37]wPrintStart [09:47:37]Write to MH i2c: 01 00 00 0A 0F 19 [09:47:37]Write i2c OK [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 [09:47:37]MH_I2C_Read... [09:47:37]Read from MH i2c: 01 07 00 0A 0F 00 00 00 00 00 FF 0F 2E [09:47:37]RasterBufferAndPrint [09:47:37]line Счет N : (1)99643 [09:47:37]line ИНН: 02508201610067 [09:47:37]line Контрольно-Кассовый Чек [09:47:37]line ПРОДАЖА [09:47:37]line ТРК (МРК, ГНК) : 31 [09:47:37]line Товар: 2710124130 [09:47:37]line Аи-92-К-5 [09:47:37]line 10.000 * 0.00 [09:47:37]line = 0.00 [09:47:37]line НДС 12% НСП 1% [09:47:37]line > о реализуемом товаре [09:47:37]line ИТОГО: 0.00 [09:47:37]line НСП 1% : 0.00 [09:47:37]line НДС 12% : 0.00 [09:47:37]line Наличными: 0.00 [09:47:37]line Безнал.: 0.00 [09:47:37]line Место: АЗС № 143 "Партнер Нефть" [09:47:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:47:37]line СНО: Общий режим [09:47:37]line Чек 47 28.10.2024 09:47 [09:47:37]line Смена: 538 ФФД: 1.0 [09:47:37]line ЗНМ: 0300000096 [09:47:37]line РНМ: 0000000000091693 [09:47:37]line Версия ККМ: 001 [09:47:37]line Талоны: Топливные Талоны [09:47:37]line 4581478 [09:47:37]line ФМ: 0000000000871792 [09:47:37]line ФД: 156831 [09:47:37]line ФПД: 257315116686928 [09:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156831&fm=257315116686928&tin=02508201610067®Number=0000000000091693&sum=0 [09:47:38]written 0, free lines is 4095 [09:47:38]OFD Sender: Processing packet 156831 [packets to send 31, broken 30] [09:47:38]ProducePacketName [09:47:38]name=ofd_packets/00156831 [09:47:38]OFD Sender: To server: pG, [09:47:38]CommunicateWithHost lk.salyk.kg:30040 [09:47:38]ConnectInit lk.salyk.kg [09:47:38]Write to MH i2c: 01 00 00 34 0F 43 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: 01 07 00 34 0F 00 00 00 00 00 E1 0C 37 [09:47:38]RasterBufferAndPrint [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]line [09:47:38]written 0, free lines is 3303 [09:47:38]process_action close_receipt done [09:47:38]requested_data is exist [09:47:38]produce_requested_data [09:47:38]requested_item fm.sn is exist - process it [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 11 00 00 [09:47:38]Write to MH i2c: E2 08 00 3B 0F 80 11 00 00 00 00 00 00 C4 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 17 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 17 00 3B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 19 [09:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:47:38]wFMCommunicate OK [09:47:38]requested_item fd.num is exist - process it [09:47:38]SAM_PROTO_GetFieldsCounters [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 13 00 00 [09:47:38]Write to MH i2c: E2 08 00 3C 0F 80 13 00 00 00 00 00 00 C7 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 62 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 62 00 3C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 64 02 00 0E 04 04 00 1A 02 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 9B [09:47: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 64 02 00 0E 04 04 00 1A 02 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 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_GetFieldsCounters done [09:47:38]requested_item shift.num is exist - process it [09:47:38]requested_item shift.opened is exist - process it [09:47:38]req_shift_opened [09:47:38]FM_GetShiftState [09:47:38]SAM_PROTO_GetShiftState [09:47:38]wFMCommunicate request_size=4 [09:47:38]MH_SAM_APDU [09:47:38]CAPDU: 80 13 01 00 [09:47:38]Write to MH i2c: E2 08 00 3D 0F 80 13 01 00 00 00 00 00 C9 [09:47:38]Write i2c OK [09:47:38]MH_I2C_Read... [09:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:38]Read from MH i2c: E2 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0E 00 [09:47:38]MH_I2C_Read... [09:47:38]Read from MH i2c: E2 0E 00 3D 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BB [09:47:38]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:47:38]wFMCommunicate OK [09:47:38]SAM_PROTO_GetShiftState done [09:47:38]FM_GetShiftState done [09:47:38]req_shift_opened done [09:47:38]requested_item shift.open_date is exist - process it [09:47:38]req_shift_open_date [09:47:38]req_shift_open_date done [09:47:38]produce_requested_data done [09:47:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156831,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:47:38]process_action_free close_receipt [09:47:38]json_value_free [09:47:38]json_value_free done [09:47:38]process_json_proto returns [09:47:38]Send response to host [09:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156831,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:47:38]free response buf [09:47:38]execute_script done [09:47:38]execute_script returns [09:47:38]free content buf [09:47:38]Sock 9.Close socket [09:47:38]Sock 9.Thread stoped [09:49:13]accept exits with 7 [09:49:13]New connection [09:49:13]New thread 3066604900 created [09:49:13]Thread 3066748260 joined [09:49:13]Waiting for new connection... [09:49:13] Sock 7.Parse request [09:49:13]Sock 7.Check first char [09:49:13]Sock 7.First char is OK [09:49:13]request: POST /json_proto HTTP/1.0 [09:49:13]Method: POST [09:49:13]URL: /json_proto [09:49:13]Method is POST - this is cgi request [09:49:13]url: /json_proto [09:49:13]query_string will be loaded in cgi processing [09:49:13]execute_cgi json_proto POST (null) [09:49:13]execute_cgi path=json_proto method=POST [09:49:13]POST find Content-Length [09:49:13]Host: 172.17.63.3:8080 [09:49:13]Content-Length: 676 [09:49:13]Content-Type: application/json [09:49:13] [09:49:13]POST finish read [09:49:13]Found Content-Length = 676 [09:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:13]execute_script... [09:49: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)99644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:13]POST & json_proto [09:49:13]process_json_proto [09:49:13]json parsed OK: [09:49:13]protocol is kg_v1.0 [09:49:13]action value=close_receipt [09:49:13]process_action close_receipt [09:49:13]cmd_close_receipt [09:49:13]MH_GetDate [09:49:13]Write to MH i2c: F0 00 00 3E 0F 3C [09:49:13]Write i2c OK [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: F0 [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: F0 09 00 [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: F0 09 00 3E 0F 00 1C 5E 1F 67 50 D1 6C 64 36 [09:49:13]GetLastDocTimeStamp 1730108858 [09:49:13]current date 1730108956 [09:49:13]FM_GetShiftState [09:49:13]SAM_PROTO_GetShiftState [09:49:13]wFMCommunicate request_size=4 [09:49:13]MH_SAM_APDU [09:49:13]CAPDU: 80 13 01 00 [09:49:13]Write to MH i2c: E2 08 00 3F 0F 80 13 01 00 00 00 00 00 CB [09:49:13]Write i2c OK [09:49:13]MH_I2C_Read... [09:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:13]Read from MH i2c: E2 [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: E2 0E 00 [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: E2 0E 00 3F 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BD [09:49:13]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:49:13]wFMCommunicate OK [09:49:13]SAM_PROTO_GetShiftState done [09:49:13]FM_GetShiftState done [09:49:13]opened in 1730075526 [09:49:13]opened+sec_in_day 1730161926 [09:49:13]quantity*price = 30038 [09:49:13]sum+1 = 30039 [09:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 48 28.10.2024 09:49 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156832 ФПД: 99873056857726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094916&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156832&fm=99873056857726&tin=02508201610067®Number=0000000000091693&sum=30000 [09:49:15]StoreToDocumentArchive [09:49:15]shift 538 fd 156832 [09:49:15]save to /storage/0538/doc_00156832 [09:49:15]save last doc name /storage/0538/doc_00156832 to /storage/kkm_last_doc_name [09:49:15]save OK [09:49:15]Clear old archive folders... [09:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:15]tlvbuf is 01A8AC50 [09:49:15]SAM_PROTO_ClearQueue [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 09 00 00 [09:49:15]Write to MH i2c: E2 08 00 4C 0F 80 09 00 00 00 00 00 00 CD [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]SAM_PROTO_ClearQueue done [09:49:15]KKMCreateOFDPacket [09:49:15]OFDProtocolAddRootSTLVToBuf [09:49:15]FM_MakeSignedData [09:49:15]FM_MakeSignedData [09:49:15]SAM_PROTO_SignData [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 01 02 [09:49:15]Write to MH i2c: E2 08 00 4D 0F 80 0D 01 02 00 00 00 00 D5 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=255 [09:49:15]MH_SAM_APDU [09:49: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 5E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 64 02 00 35 04 06 00 5A [09:49:15]Write to MH i2c: E2 02 01 4E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 5E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 64 02 00 35 04 06 00 5A 00 00 09 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=10 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 02 02 05 D5 82 13 9E 7E [09:49:15]Write to MH i2c: E2 0D 00 4F 0F 80 0D 02 02 05 00 D5 82 13 9E 7E 00 00 68 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 03 02 [09:49:15]Write to MH i2c: E2 08 00 50 0F 80 0D 03 02 00 00 00 00 DA [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 0B 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 0B 00 50 0F 00 03 6B 26 11 35 19 8E A0 90 00 FC [09:49:15]RAPDU: 03 6B 26 11 35 19 8E A0 90 00 [09:49:15]wFMCommunicate OK [09:49:15]SAM_PROTO_SignData done [09:49:15]FM_MakeSignedData done [09:49:15]CreateOFDProtocolMessage [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 11 00 00 [09:49:15]Write to MH i2c: E2 08 00 51 0F 80 11 00 00 00 00 00 00 DA [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 17 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 17 00 51 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2F [09:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:49:15]wFMCommunicate OK [09:49:15]CreateOFDProtocolMessage done [09:49:15]OFDSenderStorePacket 156832 [09:49:15]StoreOFDPacket docnum=156832 [09:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 54 07 01 93 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 5E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 64 02 00 35 04 06 00 5A D5 82 13 9E 7E 03 6B 26 11 35 19 8E A0 [09:49:15]CheckFolder [09:49:15]dirname=/storage/ofd_packets [09:49:15]CheckFolder done [09:49:15]ProducePacketName [09:49:15]name=ofd_packets/00156832 [09:49:15]NVStorageSaveData ofd_packets/00156832 [09:49:15]File name is /storage/ofd_packets/00156832 [09:49:15]Write 301 bytes [09:49:15]NVStorageSaveData done [09:49:15]OFDSenderStorePacket done [09:49:15]KKMCreateOFDPacket done [09:49:15]NVStorageSaveData kkm_last_timestamp [09:49:15]File name is /storage/kkm_last_timestamp [09:49:15]Write 4 bytes [09:49:15]NVStorageSaveData done [09:49:15]ExternCall_PrintAddStr [09:49:15]wPrintStart [09:49:15]Write to MH i2c: 01 00 00 52 0F 61 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 07 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: 01 07 00 52 0F 00 00 00 00 00 FF 0F 76 [09:49:15]RasterBufferAndPrint [09:49:15]line Счет N : (1)99644 [09:49:15]line ИНН: 02508201610067 [09:49:15]line Контрольно-Кассовый Чек [09:49:15]line ПРОДАЖА [09:49:15]line ТРК (МРК, ГНК) : 31 [09:49:15]line Товар: 2710124130 [09:49:15]line Аи-92-К-5 [09:49:15]line 4.490 * 66.90 [09:49:15]line = 300.38 [09:49:15]line НДС 12% НСП 1% [09:49:15]line > о реализуемом товаре [09:49:15]line ОКРУГЛЕНИЕ: -0.38 [09:49:15]line ИТОГО: 300.00 [09:49:15]line Внесено: 300.00 [09:49:15]line СДАЧА: 0.00 [09:49:15]line НСП 1% : 2.66 [09:49:15]line НДС 12% : 31.90 [09:49:15]line Наличными: 300.00 [09:49:15]line Безнал.: 0.00 [09:49:15]line Место: АЗС № 143 "Партнер Нефть" [09:49:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:49:15]line СНО: Общий режим [09:49:15]line Чек 48 28.10.2024 09:49 [09:49:15]line Смена: 538 ФФД: 1.0 [09:49:15]line ЗНМ: 0300000096 [09:49:15]line РНМ: 0000000000091693 [09:49:15]line Версия ККМ: 001 [09:49:15]line ФМ: 0000000000871792 [09:49:15]line ФД: 156832 [09:49:15]line ФПД: 99873056857726 [09:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094916&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156832&fm=99873056857726&tin=02508201610067®Number=0000000000091693&sum=30000 [09:49:15]written 0, free lines is 4095 [09:49:16]Write to MH i2c: 01 00 00 7D 0F 8C [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 D7 0C 76 [09:49:16]RasterBufferAndPrint [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]written 0, free lines is 3290 [09:49:16]process_action close_receipt done [09:49:16]requested_data is exist [09:49:16]produce_requested_data [09:49:16]requested_item fm.sn is exist - process it [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 11 00 00 [09:49:16]Write to MH i2c: E2 08 00 84 0F 80 11 00 00 00 00 00 00 0D [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 84 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [09:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:49:16]wFMCommunicate OK [09:49:16]requested_item fd.num is exist - process it [09:49:16]SAM_PROTO_GetFieldsCounters [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 13 00 00 [09:49:16]Write to MH i2c: E2 08 00 85 0F 80 13 00 00 00 00 00 00 10 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 62 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 62 00 85 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 64 02 00 0E 04 04 00 1A 02 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 E8 [09:49: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 64 02 00 0E 04 04 00 1A 02 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 [09:49:16]wFMCommunicate OK [09:49:16]SAM_PROTO_GetFieldsCounters done [09:49:16]requested_item shift.num is exist - process it [09:49:16]requested_item shift.opened is exist - process it [09:49:16]req_shift_opened [09:49:16]FM_GetShiftState [09:49:16]SAM_PROTO_GetShiftState [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 13 01 00 [09:49:16]Write to MH i2c: E2 08 00 86 0F 80 13 01 00 00 00 00 00 12 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0E 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0E 00 86 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 04 [09:49:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:49:16]wFMCommunicate OK [09:49:16]SAM_PROTO_GetShiftState done [09:49:16]FM_GetShiftState done [09:49:16]req_shift_opened done [09:49:16]requested_item shift.open_date is exist - process it [09:49:16]req_shift_open_date [09:49:16]req_shift_open_date done [09:49:16]produce_requested_data done [09:49:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156832,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:49:16]process_action_free close_receipt [09:49:16]json_value_free [09:49:16]json_value_free done [09:49:16]process_json_proto returns [09:49:16]Send response to host [09:49:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156832,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:49:16]free response buf [09:49:16]execute_script done [09:49:16]execute_script returns [09:49:16]free content buf [09:49:16]Sock 7.Close socket [09:49:16]Sock 7.Thread stoped [09:49:52]ConnectInit Can't connect to host [09:49:52]CommunicateWithHost connect error [09:49:52]CommunicateWithHost err = -1 [09:49:52]OFD Sender: Server communicate error [09:49:52]OFD Sender: Processing packet 156831 [packets to send 32, broken 30] [09:49:52]ProducePacketName [09:49:52]name=ofd_packets/00156831 [09:49:52]OFD Sender: To server: pG, [09:49:52]CommunicateWithHost lk.salyk.kg:30040 [09:49:52]ConnectInit lk.salyk.kg [09:49:52]Connected sock=7 [09:49: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 37 39 32 0F 01 00 00 2F 9A 07 01 44 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 BA 5D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 64 02 00 35 04 06 00 EA 06 D8 20 1E 50 F9 1A 5D 64 07 4B B9 7F [09:49:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2F 35 47 00 8B B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 64 02 00 F4 03 04 00 AD 03 1F 67 B6 04 01 00 00 C2 B3 AE 45 6D 33 E1 44 [09:49:52]CommunicateWithHost err = 0 [09:49:52]CheckOFDResponse [09:49:52]1017 (14) - 77093643461234 [09:49:52]1041 (16) - 0000000000871792 [09:49:52]1040 (4) - 156831 [09:49:52]1012 (4) - 28.10.2024 03:23 [09:49:52]1206 (1) - 0 [09:49:52]OFD Sender: Remove packet 156831 [09:49:52]ProducePacketName [09:49:52]name=ofd_packets/00156831 [09:49:52]NVStorageDeleteData [09:49:53]OFD Sender: Processing packet 156832 [packets to send 31, broken 30] [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00156832 [09:49:53]OFD Sender: To server: pG, [09:49:53]CommunicateWithHost lk.salyk.kg:30040 [09:49:53]ConnectInit lk.salyk.kg [09:49:53]Connected sock=7 [09:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 54 07 01 93 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 1C 5E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 64 02 00 35 04 06 00 5A D5 82 13 9E 7E 03 6B 26 11 35 19 8E A0 [09:49:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 26 AF 47 00 22 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 37 39 32 10 04 04 00 A0 64 02 00 F4 03 04 00 AE 03 1F 67 B6 04 01 00 00 A2 F0 54 42 53 F6 A4 D0 [09:49:53]CommunicateWithHost err = 0 [09:49:53]CheckOFDResponse [09:49:53]1017 (14) - 77093643461234 [09:49:53]1041 (16) - 0000000000871792 [09:49:53]1040 (4) - 156832 [09:49:53]1012 (4) - 28.10.2024 03:23 [09:49:53]1206 (1) - 0 [09:49:53]OFD Sender: Remove packet 156832 [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00156832 [09:49:53]NVStorageDeleteData [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [09:53:33]New connection [09:53:33]New thread 3066748260 created [09:53:33]Thread 3066604900 joined [09:53:33]Waiting for new connection... [09:53:33] Sock 9.Parse request [09:53:33]Sock 9.Check first char [09:53:33]Sock 9.First char is OK [09:53:33]request: POST /json_proto HTTP/1.0 [09:53:33]Method: POST [09:53:33]URL: /json_proto [09:53:33]Method is POST - this is cgi request [09:53:33]url: /json_proto [09:53:33]query_string will be loaded in cgi processing [09:53:33]execute_cgi json_proto POST (null) [09:53:33]execute_cgi path=json_proto method=POST [09:53:33]POST find Content-Length [09:53:33]Host: 172.17.63.3:8080 [09:53:33]Content-Length: 768 [09:53:33]Content-Type: application/json [09:53:33] [09:53:33]POST finish read [09:53:33]Found Content-Length = 768 [09:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:33]execute_script... [09:53: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)99645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:33]POST & json_proto [09:53:33]process_json_proto [09:53:33]json parsed OK: [09:53:33]protocol is kg_v1.0 [09:53:33]action value=close_receipt [09:53:33]process_action close_receipt [09:53:33]cmd_close_receipt [09:53:33]MH_GetDate [09:53:33]Write to MH i2c: F0 00 00 87 0F 85 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 09 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 09 00 87 0F 00 1F 5F 1F 67 50 D1 6C 64 83 [09:53:33]GetLastDocTimeStamp 1730108956 [09:53:33]current date 1730109215 [09:53:33]FM_GetShiftState [09:53:33]SAM_PROTO_GetShiftState [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 13 01 00 [09:53:33]Write to MH i2c: E2 08 00 88 0F 80 13 01 00 00 00 00 00 14 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 88 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 06 [09:53:33]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_GetShiftState done [09:53:33]FM_GetShiftState done [09:53:33]opened in 1730075526 [09:53:33]opened+sec_in_day 1730161926 [09:53:33]quantity*price = 180027 [09:53:33]sum+1 = 180029 [09:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.28 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 0.00 Безнал.: 1800.28 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 49 28.10.2024 09:53 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156833 ФПД: 249411650457401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095335&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156833&fm=249411650457401&tin=02508201610067®Number=0000000000091693&sum=180028 [09:53:34]StoreToDocumentArchive [09:53:34]shift 538 fd 156833 [09:53:34]save to /storage/0538/doc_00156833 [09:53:34]save last doc name /storage/0538/doc_00156833 to /storage/kkm_last_doc_name [09:53:34]save OK [09:53:34]Clear old archive folders... [09:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:34]tlvbuf is 01A55960 [09:53:34]SAM_PROTO_ClearQueue [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 09 00 00 [09:53:34]Write to MH i2c: E2 08 00 95 0F 80 09 00 00 00 00 00 00 16 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 03 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 03 00 95 0F 00 90 00 18 [09:53:34]RAPDU: 90 00 [09:53:34]wFMCommunicate OK [09:53:34]SAM_PROTO_ClearQueue done [09:53:34]KKMCreateOFDPacket [09:53:34]OFDProtocolAddRootSTLVToBuf [09:53:34]FM_MakeSignedData [09:53:34]FM_MakeSignedData [09:53:34]SAM_PROTO_SignData [09:53:34]wFMCommunicate request_size=4 [09:53:34]MH_SAM_APDU [09:53:34]CAPDU: 80 0D 01 02 [09:53:34]Write to MH i2c: E2 08 00 96 0F 80 0D 01 02 00 00 00 00 1E [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:34]Read from MH i2c: E2 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 03 00 [09:53:34]MH_I2C_Read... [09:53:34]Read from MH i2c: E2 03 00 96 0F 00 90 00 19 [09:53:34]RAPDU: 90 00 [09:53:34]wFMCommunicate OK [09:53:34]wFMCommunicate request_size=255 [09:53:34]MH_SAM_APDU [09:53: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 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 1F 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 64 02 00 35 04 06 00 E2 [09:53:34]Write to MH i2c: E2 02 01 97 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 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 1F 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 64 02 00 35 04 06 00 E2 00 00 58 [09:53:34]Write i2c OK [09:53:34]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 97 0F 00 90 00 1A [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=10 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 02 02 05 D6 AC D4 0F 39 [09:53:35]Write to MH i2c: E2 0D 00 98 0F 80 0D 02 02 05 00 D6 AC D4 0F 39 00 00 C9 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 03 02 [09:53:35]Write to MH i2c: E2 08 00 99 0F 80 0D 03 02 00 00 00 00 23 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0B 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0B 00 99 0F 00 D1 41 2F 7D 00 76 76 7F 90 00 4D [09:53:35]RAPDU: D1 41 2F 7D 00 76 76 7F 90 00 [09:53:35]wFMCommunicate OK [09:53:35]SAM_PROTO_SignData done [09:53:35]FM_MakeSignedData done [09:53:35]CreateOFDProtocolMessage [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 11 00 00 [09:53:35]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 17 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [09:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:35]wFMCommunicate OK [09:53:35]CreateOFDProtocolMessage done [09:53:35]OFDSenderStorePacket 156833 [09:53:35]StoreOFDPacket docnum=156833 [09:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C B2 07 01 4C DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 1F 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 64 02 00 35 04 06 00 E2 D6 AC D4 0F 39 D1 41 2F 7D 00 76 76 7F [09:53:35]CheckFolder [09:53:35]dirname=/storage/ofd_packets [09:53:35]CheckFolder done [09:53:35]ProducePacketName [09:53:35]name=ofd_packets/00156833 [09:53:35]NVStorageSaveData ofd_packets/00156833 [09:53:35]File name is /storage/ofd_packets/00156833 [09:53:35]Write 301 bytes [09:53:35]NVStorageSaveData done [09:53:35]OFDSenderStorePacket done [09:53:35]KKMCreateOFDPacket done [09:53:35]NVStorageSaveData kkm_last_timestamp [09:53:35]File name is /storage/kkm_last_timestamp [09:53:35]Write 4 bytes [09:53:35]NVStorageSaveData done [09:53:35]ExternCall_PrintAddStr [09:53:35]wPrintStart [09:53:35]Write to MH i2c: 01 00 00 9B 0F AA [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 07 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 07 00 9B 0F 00 00 00 00 00 FF 0F BF [09:53:35]RasterBufferAndPrint [09:53:35]line Счет N : (1)99645 [09:53:35]line ИНН: 02508201610067 [09:53:35]line Контрольно-Кассовый Чек [09:53:35]line ПРОДАЖА [09:53:35]line ТРК (МРК, ГНК) : 31 [09:53:35]line Товар: 2710124130 [09:53:35]line Аи-92-К-5 [09:53:35]line 26.910 * 66.90 [09:53:35]line = 1800.28 [09:53:35]line НДС 12% НСП 1% [09:53:35]line > о реализуемом товаре [09:53:35]line ИТОГО: 1800.28 [09:53:35]line НСП 1% : 15.93 [09:53:35]line НДС 12% : 191.18 [09:53:35]line Наличными: 0.00 [09:53:35]line Безнал.: 1800.28 [09:53:35]line Место: АЗС № 143 "Партнер Нефть" [09:53:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:53:35]line СНО: Общий режим [09:53:35]line Чек 49 28.10.2024 09:53 [09:53:35]line Смена: 538 ФФД: 1.0 [09:53:35]line ЗНМ: 0300000096 [09:53:35]line РНМ: 0000000000091693 [09:53:35]line Версия ККМ: 001 [09:53:35]line Платежная система: Mbank [09:53:35]line ФМ: 0000000000871792 [09:53:35]line ФД: 156833 [09:53:35]line ФПД: 249411650457401 [09:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095335&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156833&fm=249411650457401&tin=02508201610067®Number=0000000000091693&sum=180028 [09:53:35]OFD Sender: Processing packet 156833 [packets to send 31, broken 30] [09:53:35]ProducePacketName [09:53:35]name=ofd_packets/00156833 [09:53:35]OFD Sender: To server: pG, [09:53:35]CommunicateWithHost lk.salyk.kg:30040 [09:53:35]ConnectInit lk.salyk.kg [09:53:35]written 0, free lines is 4095 [09:53:35]Connected sock=10 [09:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4C B2 07 01 4C DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 1F 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 64 02 00 35 04 06 00 E2 D6 AC D4 0F 39 D1 41 2F 7D 00 76 76 7F [09:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6F 1F 47 00 62 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 37 39 32 10 04 04 00 A1 64 02 00 F4 03 04 00 8C 04 1F 67 B6 04 01 00 00 A4 B7 1F 45 99 D0 7A 15 [09:53:36]CommunicateWithHost err = 0 [09:53:36]CheckOFDResponse [09:53:36]1017 (14) - 77093643461234 [09:53:36]1041 (16) - 0000000000871792 [09:53:36]1040 (4) - 156833 [09:53:36]1012 (4) - 28.10.2024 03:27 [09:53:36]1206 (1) - 0 [09:53:36]OFD Sender: Remove packet 156833 [09:53:36]ProducePacketName [09:53:36]name=ofd_packets/00156833 [09:53:36]NVStorageDeleteData [09:53:36]Write to MH i2c: 01 00 00 C4 0F D3 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 C4 0F 00 00 00 00 00 02 0D E9 [09:53:36]RasterBufferAndPrint [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]written 0, free lines is 3337 [09:53:36]process_action close_receipt done [09:53:36]requested_data is exist [09:53:36]produce_requested_data [09:53:36]requested_item fm.sn is exist - process it [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 11 00 00 [09:53:36]Write to MH i2c: E2 08 00 CB 0F 80 11 00 00 00 00 00 00 54 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:36]Read from MH i2c: E2 17 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 CB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [09:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:36]wFMCommunicate OK [09:53:36]requested_item fd.num is exist - process it [09:53:36]SAM_PROTO_GetFieldsCounters [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 00 00 [09:53:36]Write to MH i2c: E2 08 00 CC 0F 80 13 00 00 00 00 00 00 57 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 CC 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 64 02 00 0E 04 04 00 1A 02 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 33 [09:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 64 02 00 0E 04 04 00 1A 02 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 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetFieldsCounters done [09:53:36]requested_item shift.num is exist - process it [09:53:36]requested_item shift.opened is exist - process it [09:53:36]req_shift_opened [09:53:36]FM_GetShiftState [09:53:36]SAM_PROTO_GetShiftState [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 01 00 [09:53:36]Write to MH i2c: E2 08 00 CD 0F 80 13 01 00 00 00 00 00 59 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 CD 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4B [09:53:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetShiftState done [09:53:36]FM_GetShiftState done [09:53:36]req_shift_opened done [09:53:36]requested_item shift.open_date is exist - process it [09:53:36]req_shift_open_date [09:53:36]req_shift_open_date done [09:53:36]produce_requested_data done [09:53:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156833,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:53:36]process_action_free close_receipt [09:53:36]json_value_free [09:53:36]json_value_free done [09:53:36]process_json_proto returns [09:53:36]Send response to host [09:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156833,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:53:36]free response buf [09:53:36]execute_script done [09:53:36]execute_script returns [09:53:36]free content buf [09:53:36]Sock 9.Close socket [09:53:36]Sock 9.Thread stoped [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:08]accept exits with 7 [09:55:08]New connection [09:55:08]New thread 3066604900 created [09:55:08]Thread 3066748260 joined [09:55:08]Waiting for new connection... [09:55:08] Sock 7.Parse request [09:55:08]Sock 7.Check first char [09:55:08]Sock 7.First char is OK [09:55:08]request: POST /json_proto HTTP/1.0 [09:55:08]Method: POST [09:55:08]URL: /json_proto [09:55:08]Method is POST - this is cgi request [09:55:08]url: /json_proto [09:55:08]query_string will be loaded in cgi processing [09:55:08]execute_cgi json_proto POST (null) [09:55:08]execute_cgi path=json_proto method=POST [09:55:08]POST find Content-Length [09:55:08]Host: 172.17.63.3:8080 [09:55:08]Content-Length: 676 [09:55:08]Content-Type: application/json [09:55:08] [09:55:08]POST finish read [09:55:08]Found Content-Length = 676 [09:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:55:08]execute_script... [09: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 : (1)99646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:55:08]POST & json_proto [09:55:08]process_json_proto [09:55:08]json parsed OK: [09:55:08]protocol is kg_v1.0 [09:55:08]action value=close_receipt [09:55:08]process_action close_receipt [09:55:08]cmd_close_receipt [09:55:08]MH_GetDate [09:55:08]Write to MH i2c: F0 00 00 CE 0F CC [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 09 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: F0 09 00 CE 0F 00 7E 5F 1F 67 50 D1 6C 64 29 [09:55:08]GetLastDocTimeStamp 1730109215 [09:55:08]current date 1730109310 [09:55:08]FM_GetShiftState [09:55:08]SAM_PROTO_GetShiftState [09:55:08]wFMCommunicate request_size=4 [09:55:08]MH_SAM_APDU [09:55:08]CAPDU: 80 13 01 00 [09:55:08]Write to MH i2c: E2 08 00 CF 0F 80 13 01 00 00 00 00 00 5B [09:55:08]Write i2c OK [09:55:08]MH_I2C_Read... [09:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:08]Read from MH i2c: E2 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0E 00 [09:55:08]MH_I2C_Read... [09:55:08]Read from MH i2c: E2 0E 00 CF 0F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4D [09:55:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:55:08]wFMCommunicate OK [09:55:08]SAM_PROTO_GetShiftState done [09:55:08]FM_GetShiftState done [09:55:08]opened in 1730075526 [09:55:08]opened+sec_in_day 1730161926 [09:55:08]quantity*price = 20003 [09:55:08]sum+1 = 20004 [09:55:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 50 28.10.2024 09:55 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156834 ФПД: 29528236596481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156834&fm=29528236596481&tin=02508201610067®Number=0000000000091693&sum=20000 [09:55:09]StoreToDocumentArchive [09:55:09]shift 538 fd 156834 [09:55:09]save to /storage/0538/doc_00156834 [09:55:09]save last doc name /storage/0538/doc_00156834 to /storage/kkm_last_doc_name [09:55:09]save OK [09:55:09]Clear old archive folders... [09:55:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:09]tlvbuf is 01A8C860 [09:55:09]SAM_PROTO_ClearQueue [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 09 00 00 [09:55:09]Write to MH i2c: E2 08 00 DC 0F 80 09 00 00 00 00 00 00 5D [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 DC 0F 00 90 00 5F [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_ClearQueue done [09:55:09]KKMCreateOFDPacket [09:55:09]OFDProtocolAddRootSTLVToBuf [09:55:09]FM_MakeSignedData [09:55:09]FM_MakeSignedData [09:55:09]SAM_PROTO_SignData [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 01 02 [09:55:09]Write to MH i2c: E2 08 00 DD 0F 80 0D 01 02 00 00 00 00 65 [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 DD 0F 00 90 00 60 [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=255 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 32 00 00 00 F4 03 04 00 7E 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 64 02 00 35 04 06 00 1A [09:55:09]Write to MH i2c: E2 02 01 DE 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 32 00 00 00 F4 03 04 00 7E 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 64 02 00 35 04 06 00 1A 00 00 8E [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 DE 0F 00 90 00 61 [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=10 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 02 02 05 DB 14 0D 9D 01 [09:55:09]Write to MH i2c: E2 0D 00 DF 0F 80 0D 02 02 05 00 DB 14 0D 9D 01 00 00 0C [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 03 00 DF 0F 00 90 00 62 [09:55:09]RAPDU: 90 00 [09:55:09]wFMCommunicate OK [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 0D 03 02 [09:55:09]Write to MH i2c: E2 08 00 E0 0F 80 0D 03 02 00 00 00 00 6A [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:09]Read from MH i2c: E2 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 [09:55:09]MH_I2C_Read... [09:55:09]Read from MH i2c: E2 0B 00 E0 0F 00 7E FF 6C EB 3A 7F EB CF 90 00 B2 [09:55:09]RAPDU: 7E FF 6C EB 3A 7F EB CF 90 00 [09:55:09]wFMCommunicate OK [09:55:09]SAM_PROTO_SignData done [09:55:09]FM_MakeSignedData done [09:55:09]CreateOFDProtocolMessage [09:55:09]wFMCommunicate request_size=4 [09:55:09]MH_SAM_APDU [09:55:09]CAPDU: 80 11 00 00 [09:55:09]Write to MH i2c: E2 08 00 E1 0F 80 11 00 00 00 00 00 00 6A [09:55:09]Write i2c OK [09:55:09]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 17 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 17 00 E1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [09:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:55:10]wFMCommunicate OK [09:55:10]CreateOFDProtocolMessage done [09:55:10]OFDSenderStorePacket 156834 [09:55:10]StoreOFDPacket docnum=156834 [09:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 36 07 01 5F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 32 00 00 00 F4 03 04 00 7E 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 64 02 00 35 04 06 00 1A DB 14 0D 9D 01 7E FF 6C EB 3A 7F EB CF [09:55:10]CheckFolder [09:55:10]dirname=/storage/ofd_packets [09:55:10]CheckFolder done [09:55:10]ProducePacketName [09:55:10]name=ofd_packets/00156834 [09:55:10]NVStorageSaveData ofd_packets/00156834 [09:55:10]File name is /storage/ofd_packets/00156834 [09:55:10]Write 301 bytes [09:55:10]NVStorageSaveData done [09:55:10]OFDSenderStorePacket done [09:55:10]KKMCreateOFDPacket done [09:55:10]NVStorageSaveData kkm_last_timestamp [09:55:10]File name is /storage/kkm_last_timestamp [09:55:10]Write 4 bytes [09:55:10]NVStorageSaveData done [09:55:10]ExternCall_PrintAddStr [09:55:10]wPrintStart [09:55:10]Write to MH i2c: 01 00 00 E2 0F F1 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 E2 0F 00 00 00 00 00 FF 0F 06 [09:55:10]RasterBufferAndPrint [09:55:10]line Счет N : (1)99646 [09:55:10]line ИНН: 02508201610067 [09:55:10]line Контрольно-Кассовый Чек [09:55:10]line ПРОДАЖА [09:55:10]line ТРК (МРК, ГНК) : 31 [09:55:10]line Товар: 2710124130 [09:55:10]line Аи-92-К-5 [09:55:10]line 2.990 * 66.90 [09:55:10]line = 200.03 [09:55:10]line НДС 12% НСП 1% [09:55:10]line > о реализуемом товаре [09:55:10]line ОКРУГЛЕНИЕ: -0.03 [09:55:10]line ИТОГО: 200.00 [09:55:10]line Внесено: 200.00 [09:55:10]line СДАЧА: 0.00 [09:55:10]line НСП 1% : 1.77 [09:55:10]line НДС 12% : 21.24 [09:55:10]line Наличными: 200.00 [09:55:10]line Безнал.: 0.00 [09:55:10]line Место: АЗС № 143 "Партнер Нефть" [09:55:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:55:10]line СНО: Общий режим [09:55:10]line Чек 50 28.10.2024 09:55 [09:55:10]line Смена: 538 ФФД: 1.0 [09:55:10]line ЗНМ: 0300000096 [09:55:10]line РНМ: 0000000000091693 [09:55:10]line Версия ККМ: 001 [09:55:10]line ФМ: 0000000000871792 [09:55:10]line ФД: 156834 [09:55:10]line ФПД: 29528236596481 [09:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156834&fm=29528236596481&tin=02508201610067®Number=0000000000091693&sum=20000 [09:55:10]OFD Sender: Processing packet 156834 [packets to send 31, broken 30] [09:55:10]ProducePacketName [09:55:10]name=ofd_packets/00156834 [09:55:10]OFD Sender: To server: pG, [09:55:10]CommunicateWithHost lk.salyk.kg:30040 [09:55:10]ConnectInit lk.salyk.kg [09:55:10]written 0, free lines is 4095 [09:55:10]Connected sock=10 [09: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 37 39 32 0F 01 00 00 AE 36 07 01 5F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 32 00 00 00 F4 03 04 00 7E 5F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 64 02 00 35 04 06 00 1A DB 14 0D 9D 01 7E FF 6C EB 3A 7F EB CF [09:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B5 11 47 00 A8 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 64 02 00 F4 03 04 00 EB 04 1F 67 B6 04 01 00 00 14 5B 8C FA 22 D8 F3 74 [09:55:10]CommunicateWithHost err = 0 [09:55:10]CheckOFDResponse [09:55:10]1017 (14) - 77093643461234 [09:55:10]1041 (16) - 0000000000871792 [09:55:10]1040 (4) - 156834 [09:55:10]1012 (4) - 28.10.2024 03:28 [09:55:10]1206 (1) - 0 [09:55:10]OFD Sender: Remove packet 156834 [09:55:10]ProducePacketName [09:55:10]name=ofd_packets/00156834 [09:55:10]NVStorageDeleteData [09:55:10]Write to MH i2c: 01 00 00 0D 10 1D [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 D2 0C 02 [09:55:10]RasterBufferAndPrint [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]line [09:55:10]written 0, free lines is 3290 [09:55:10]process_action close_receipt done [09:55:10]requested_data is exist [09:55:10]produce_requested_data [09:55:10]requested_item fm.sn is exist - process it [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 11 00 00 [09:55:10]Write to MH i2c: E2 08 00 14 10 80 11 00 00 00 00 00 00 9E [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:10]Read from MH i2c: E2 17 00 [09:55:10]MH_I2C_Read... [09:55:10]Read from MH i2c: E2 17 00 14 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [09:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:55:10]wFMCommunicate OK [09:55:10]requested_item fd.num is exist - process it [09:55:10]SAM_PROTO_GetFieldsCounters [09:55:10]wFMCommunicate request_size=4 [09:55:10]MH_SAM_APDU [09:55:10]CAPDU: 80 13 00 00 [09:55:10]Write to MH i2c: E2 08 00 15 10 80 13 00 00 00 00 00 00 A1 [09:55:10]Write i2c OK [09:55:10]MH_I2C_Read... [09:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 62 00 15 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 64 02 00 0E 04 04 00 1A 02 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 81 [09:55: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 64 02 00 0E 04 04 00 1A 02 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 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetFieldsCounters done [09:55:11]requested_item shift.num is exist - process it [09:55:11]requested_item shift.opened is exist - process it [09:55:11]req_shift_opened [09:55:11]FM_GetShiftState [09:55:11]SAM_PROTO_GetShiftState [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 01 00 [09:55:11]Write to MH i2c: E2 08 00 16 10 80 13 01 00 00 00 00 00 A3 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 16 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 95 [09:55:11]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetShiftState done [09:55:11]FM_GetShiftState done [09:55:11]req_shift_opened done [09:55:11]requested_item shift.open_date is exist - process it [09:55:11]req_shift_open_date [09:55:11]req_shift_open_date done [09:55:11]produce_requested_data done [09:55:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156834,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:55:11]process_action_free close_receipt [09:55:11]json_value_free [09:55:11]json_value_free done [09:55:11]process_json_proto returns [09:55:11]Send response to host [09:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156834,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:55:11]free response buf [09:55:11]execute_script done [09:55:11]execute_script returns [09:55:11]free content buf [09:55:11]Sock 7.Close socket [09:55:11]Sock 7.Thread stoped [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]accept exits with 9 [09:57:46]New connection [09:57:46]New thread 3066748260 created [09:57:46]Thread 3066604900 joined [09:57:46]Waiting for new connection... [09:57:46] Sock 9.Parse request [09:57:46]Sock 9.Check first char [09:57:46]Sock 9.First char is OK [09:57:46]request: POST /json_proto HTTP/1.0 [09:57:46]Method: POST [09:57:46]URL: /json_proto [09:57:46]Method is POST - this is cgi request [09:57:46]url: /json_proto [09:57:46]query_string will be loaded in cgi processing [09:57:46]execute_cgi json_proto POST (null) [09:57:46]execute_cgi path=json_proto method=POST [09:57:46]POST find Content-Length [09:57:46]Host: 172.17.63.3:8080 [09:57:46]Content-Length: 676 [09:57:46]Content-Type: application/json [09:57:46] [09:57:46]POST finish read [09:57:46]Found Content-Length = 676 [09:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:57:46]execute_script... [09:57: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)99647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [09:57:46]POST & json_proto [09:57:46]process_json_proto [09:57:46]json parsed OK: [09:57:46]protocol is kg_v1.0 [09:57:46]action value=close_receipt [09:57:46]process_action close_receipt [09:57:46]cmd_close_receipt [09:57:46]MH_GetDate [09:57:46]Write to MH i2c: F0 00 00 17 10 16 [09:57:46]Write i2c OK [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: F0 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: F0 09 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: F0 09 00 17 10 00 1C 60 1F 67 50 D1 6C 64 12 [09:57:46]GetLastDocTimeStamp 1730109310 [09:57:46]current date 1730109468 [09:57:46]FM_GetShiftState [09:57:46]SAM_PROTO_GetShiftState [09:57:46]wFMCommunicate request_size=4 [09:57:46]MH_SAM_APDU [09:57:46]CAPDU: 80 13 01 00 [09:57:46]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [09:57:46]Write i2c OK [09:57:46]MH_I2C_Read... [09:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:46]Read from MH i2c: E2 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 0E 00 [09:57:46]MH_I2C_Read... [09:57:46]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 97 [09:57:46]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:57:46]wFMCommunicate OK [09:57:46]SAM_PROTO_GetShiftState done [09:57:46]FM_GetShiftState done [09:57:46]opened in 1730075526 [09:57:46]opened+sec_in_day 1730161926 [09:57:46]quantity*price = 20003 [09:57:46]sum+1 = 20004 [09:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 51 28.10.2024 09:57 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156835 ФПД: 23575655536041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095748&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156835&fm=23575655536041&tin=02508201610067®Number=0000000000091693&sum=20000 [09:57:47]StoreToDocumentArchive [09:57:47]shift 538 fd 156835 [09:57:47]save to /storage/0538/doc_00156835 [09:57:47]save last doc name /storage/0538/doc_00156835 to /storage/kkm_last_doc_name [09:57:47]save OK [09:57:47]Clear old archive folders... [09:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:47]tlvbuf is 01A5A850 [09:57:47]SAM_PROTO_ClearQueue [09:57:47]wFMCommunicate request_size=4 [09:57:47]MH_SAM_APDU [09:57:47]CAPDU: 80 09 00 00 [09:57:47]Write to MH i2c: E2 08 00 25 10 80 09 00 00 00 00 00 00 A7 [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 25 10 00 90 00 A9 [09:57:47]RAPDU: 90 00 [09:57:47]wFMCommunicate OK [09:57:47]SAM_PROTO_ClearQueue done [09:57:47]KKMCreateOFDPacket [09:57:47]OFDProtocolAddRootSTLVToBuf [09:57:47]FM_MakeSignedData [09:57:47]FM_MakeSignedData [09:57:47]SAM_PROTO_SignData [09:57:47]wFMCommunicate request_size=4 [09:57:47]MH_SAM_APDU [09:57:47]CAPDU: 80 0D 01 02 [09:57:47]Write to MH i2c: E2 08 00 26 10 80 0D 01 02 00 00 00 00 AF [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 26 10 00 90 00 AA [09:57:47]RAPDU: 90 00 [09:57:47]wFMCommunicate OK [09:57:47]wFMCommunicate request_size=255 [09:57:47]MH_SAM_APDU [09:57: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 00 00 00 F4 03 04 00 1C 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 64 02 00 35 04 06 00 15 [09:57:47]Write to MH i2c: E2 02 01 27 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 00 00 00 F4 03 04 00 1C 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 64 02 00 35 04 06 00 15 00 00 74 [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [09:57:47]RAPDU: 90 00 [09:57:47]wFMCommunicate OK [09:57:47]wFMCommunicate request_size=10 [09:57:47]MH_SAM_APDU [09:57:47]CAPDU: 80 0D 02 02 05 71 22 92 D5 A9 [09:57:47]Write to MH i2c: E2 0D 00 28 10 80 0D 02 02 05 00 71 22 92 D5 A9 00 00 5F [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [09:57:47]RAPDU: 90 00 [09:57:47]wFMCommunicate OK [09:57:47]wFMCommunicate request_size=4 [09:57:47]MH_SAM_APDU [09:57:47]CAPDU: 80 0D 03 02 [09:57:47]Write to MH i2c: E2 08 00 29 10 80 0D 03 02 00 00 00 00 B4 [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 0B 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 0B 00 29 10 00 13 C1 9B C0 57 0B FE F9 90 00 3D [09:57:47]RAPDU: 13 C1 9B C0 57 0B FE F9 90 00 [09:57:47]wFMCommunicate OK [09:57:47]SAM_PROTO_SignData done [09:57:47]FM_MakeSignedData done [09:57:47]CreateOFDProtocolMessage [09:57:47]wFMCommunicate request_size=4 [09:57:47]MH_SAM_APDU [09:57:47]CAPDU: 80 11 00 00 [09:57:47]Write to MH i2c: E2 08 00 2A 10 80 11 00 00 00 00 00 00 B4 [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:47]Read from MH i2c: E2 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 17 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: E2 17 00 2A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [09:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:47]wFMCommunicate OK [09:57:47]CreateOFDProtocolMessage done [09:57:47]OFDSenderStorePacket 156835 [09:57:47]StoreOFDPacket docnum=156835 [09:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A 31 07 01 8F B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 00 00 00 F4 03 04 00 1C 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 64 02 00 35 04 06 00 15 71 22 92 D5 A9 13 C1 9B C0 57 0B FE F9 [09:57:47]CheckFolder [09:57:47]dirname=/storage/ofd_packets [09:57:47]CheckFolder done [09:57:47]ProducePacketName [09:57:47]name=ofd_packets/00156835 [09:57:47]NVStorageSaveData ofd_packets/00156835 [09:57:47]File name is /storage/ofd_packets/00156835 [09:57:47]Write 301 bytes [09:57:47]NVStorageSaveData done [09:57:47]OFDSenderStorePacket done [09:57:47]KKMCreateOFDPacket done [09:57:47]NVStorageSaveData kkm_last_timestamp [09:57:47]File name is /storage/kkm_last_timestamp [09:57:47]Write 4 bytes [09:57:47]NVStorageSaveData done [09:57:47]ExternCall_PrintAddStr [09:57:47]wPrintStart [09:57:47]Write to MH i2c: 01 00 00 2B 10 3B [09:57:47]Write i2c OK [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: 01 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: 01 07 00 [09:57:47]MH_I2C_Read... [09:57:47]Read from MH i2c: 01 07 00 2B 10 00 00 00 00 00 FF 0F 50 [09:57:47]RasterBufferAndPrint [09:57:47]line Счет N : (1)99647 [09:57:47]line ИНН: 02508201610067 [09:57:47]line Контрольно-Кассовый Чек [09:57:47]line ПРОДАЖА [09:57:47]line ТРК (МРК, ГНК) : 31 [09:57:47]line Товар: 2710124130 [09:57:47]line Аи-92-К-5 [09:57:47]line 2.990 * 66.90 [09:57:47]line = 200.03 [09:57:47]line НДС 12% НСП 1% [09:57:47]line > о реализуемом товаре [09:57:47]line ОКРУГЛЕНИЕ: -0.03 [09:57:47]line ИТОГО: 200.00 [09:57:47]line Внесено: 200.00 [09:57:47]line СДАЧА: 0.00 [09:57:47]line НСП 1% : 1.77 [09:57:47]line НДС 12% : 21.24 [09:57:47]line Наличными: 200.00 [09:57:47]line Безнал.: 0.00 [09:57:47]line Место: АЗС № 143 "Партнер Нефть" [09:57:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:57:47]line СНО: Общий режим [09:57:47]line Чек 51 28.10.2024 09:57 [09:57:47]line Смена: 538 ФФД: 1.0 [09:57:47]line ЗНМ: 0300000096 [09:57:47]line РНМ: 0000000000091693 [09:57:47]line Версия ККМ: 001 [09:57:47]line ФМ: 0000000000871792 [09:57:47]line ФД: 156835 [09:57:47]line ФПД: 23575655536041 [09:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095748&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156835&fm=23575655536041&tin=02508201610067®Number=0000000000091693&sum=20000 [09:57:48]OFD Sender: Processing packet 156835 [packets to send 31, broken 30] [09:57:48]ProducePacketName [09:57:48]name=ofd_packets/00156835 [09:57:48]OFD Sender: To server: pG, [09:57:48]CommunicateWithHost lk.salyk.kg:30040 [09:57:48]ConnectInit lk.salyk.kg [09:57:48]written 0, free lines is 4095 [09:57:48]Connected sock=10 [09:57: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 37 39 32 0F 01 00 00 6A 31 07 01 8F B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 00 00 00 F4 03 04 00 1C 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 64 02 00 35 04 06 00 15 71 22 92 D5 A9 13 C1 9B C0 57 0B FE F9 [09:57:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 74 47 00 81 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 64 02 00 F4 03 04 00 89 05 1F 67 B6 04 01 00 00 8C 98 93 05 9A 0E 10 1E [09:57:48]CommunicateWithHost err = 0 [09:57:48]CheckOFDResponse [09:57:48]1017 (14) - 77093643461234 [09:57:48]1041 (16) - 0000000000871792 [09:57:48]1040 (4) - 156835 [09:57:48]1012 (4) - 28.10.2024 03:31 [09:57:48]1206 (1) - 0 [09:57:48]OFD Sender: Remove packet 156835 [09:57:48]ProducePacketName [09:57:48]name=ofd_packets/00156835 [09:57:48]NVStorageDeleteData [09:57:48]Write to MH i2c: 01 00 00 56 10 66 [09:57:48]Write i2c OK [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: 01 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: 01 07 00 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: 01 07 00 56 10 00 00 00 00 00 DC 0C 55 [09:57:48]RasterBufferAndPrint [09:57:48]line [09:57:48]line [09:57:48]line [09:57:48]line [09:57:48]line [09:57:48]written 0, free lines is 3298 [09:57:48]process_action close_receipt done [09:57:48]requested_data is exist [09:57:48]produce_requested_data [09:57:48]requested_item fm.sn is exist - process it [09:57:48]wFMCommunicate request_size=4 [09:57:48]MH_SAM_APDU [09:57:48]CAPDU: 80 11 00 00 [09:57:48]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [09:57:48]Write i2c OK [09:57:48]MH_I2C_Read... [09:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:48]Read from MH i2c: E2 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: E2 17 00 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [09:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:48]wFMCommunicate OK [09:57:48]requested_item fd.num is exist - process it [09:57:48]SAM_PROTO_GetFieldsCounters [09:57:48]wFMCommunicate request_size=4 [09:57:48]MH_SAM_APDU [09:57:48]CAPDU: 80 13 00 00 [09:57:48]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [09:57:48]Write i2c OK [09:57:48]MH_I2C_Read... [09:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:48]Read from MH i2c: E2 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: E2 62 00 [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: E2 62 00 5E 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 64 02 00 0E 04 04 00 1A 02 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 CE [09:57: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 64 02 00 0E 04 04 00 1A 02 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 [09:57:48]wFMCommunicate OK [09:57:48]SAM_PROTO_GetFieldsCounters done [09:57:48]requested_item shift.num is exist - process it [09:57:48]requested_item shift.opened is exist - process it [09:57:48]req_shift_opened [09:57:48]FM_GetShiftState [09:57:48]SAM_PROTO_GetShiftState [09:57:48]wFMCommunicate request_size=4 [09:57:48]MH_SAM_APDU [09:57:48]CAPDU: 80 13 01 00 [09:57:48]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [09:57:48]Write i2c OK [09:57:48]MH_I2C_Read... [09:57:48]Read from MH i2c: E2 [09:57:48]MH_I2C_Read... [09:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:49]Read from MH i2c: E2 0E 00 [09:57:49]MH_I2C_Read... [09:57:49]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DE [09:57:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:57:49]wFMCommunicate OK [09:57:49]SAM_PROTO_GetShiftState done [09:57:49]FM_GetShiftState done [09:57:49]req_shift_opened done [09:57:49]requested_item shift.open_date is exist - process it [09:57:49]req_shift_open_date [09:57:49]req_shift_open_date done [09:57:49]produce_requested_data done [09:57:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156835,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:57:49]process_action_free close_receipt [09:57:49]json_value_free [09:57:49]json_value_free done [09:57:49]process_json_proto returns [09:57:49]Send response to host [09:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156835,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:57:49]free response buf [09:57:49]execute_script done [09:57:49]execute_script returns [09:57:49]free content buf [09:57:49]Sock 9.Close socket [09:57:49]Sock 9.Thread stoped [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: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:17]int [09:59:17]Write to MH i2c: 01 00 00 60 10 70 [09:59:17]*** FLAG_PRN_KEY set [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 60 10 00 08 00 00 00 FF 0F 8D [09:59:17]state=0 [09:59:17]Key pressed [09:59:17]Feed [09:59:17]Write to MH i2c: D8 00 00 61 10 48 [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: D8 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: D8 01 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: D8 01 00 61 10 00 49 [09:59:17]int [09:59:17]Write to MH i2c: 01 00 00 62 10 72 [09:59:17]Write i2c OK [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 [09:59:17]MH_I2C_Read... [09:59:17]Read from MH i2c: 01 07 00 62 10 00 48 00 00 00 3D 00 FE [09:59:17]state=2 [09:59:17]Key pressed [09:59:18]int [09:59:18]Write to MH i2c: 01 00 00 63 10 73 [09:59:18]*** FLAG_PRN_KEY reset [09:59:18]Write i2c OK [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 07 00 [09:59:18]MH_I2C_Read... [09:59:18]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 F6 0F 7F [09:59:18]state=2 [09:59:18]Stop feed [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:36]accept exits with 7 [09:59:36]New connection [09:59:36]New thread 3066604900 created [09:59:36]Thread 3066748260 joined [09:59:36]Waiting for new connection... [09:59:36] Sock 7.Parse request [09:59:36]Sock 7.Check first char [09:59:36]Sock 7.First char is OK [09:59:36]request: POST /json_proto HTTP/1.0 [09:59:36]Method: POST [09:59:36]URL: /json_proto [09:59:36]Method is POST - this is cgi request [09:59:36]url: /json_proto [09:59:36]query_string will be loaded in cgi processing [09:59:36]execute_cgi json_proto POST (null) [09:59:36]execute_cgi path=json_proto method=POST [09:59:36]POST find Content-Length [09:59:36]Host: 172.17.63.3:8080 [09:59:36]Content-Length: 796 [09:59:36]Content-Type: application/json [09:59:36] [09:59:36]POST finish read [09:59:36]Found Content-Length = 796 [09:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4469425", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:36]execute_script... [09:59:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4469425", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:36]POST & json_proto [09:59:36]process_json_proto [09:59:36]json parsed OK: [09:59:36]protocol is kg_v1.0 [09:59:36]action value=close_receipt [09:59:36]process_action close_receipt [09:59:36]cmd_close_receipt [09:59:36]MH_GetDate [09:59:36]Write to MH i2c: F0 00 00 64 10 63 [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: F0 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: F0 09 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: F0 09 00 64 10 00 8A 60 1F 67 50 D1 6C 64 CD [09:59:36]GetLastDocTimeStamp 1730109468 [09:59:36]current date 1730109578 [09:59:36]FM_GetShiftState [09:59:36]SAM_PROTO_GetShiftState [09:59:36]wFMCommunicate request_size=4 [09:59:36]MH_SAM_APDU [09:59:36]CAPDU: 80 13 01 00 [09:59:36]Write to MH i2c: E2 08 00 65 10 80 13 01 00 00 00 00 00 F2 [09:59:36]Write i2c OK [09:59:36]MH_I2C_Read... [09:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:36]Read from MH i2c: E2 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 [09:59:36]MH_I2C_Read... [09:59:36]Read from MH i2c: E2 0E 00 65 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E4 [09:59:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:59:36]wFMCommunicate OK [09:59:36]SAM_PROTO_GetShiftState done [09:59:36]FM_GetShiftState done [09:59:36]opened in 1730075526 [09:59:36]opened+sec_in_day 1730161926 [09:59:36]quantity*price = 0 [09:59:36]sum+1 = 1 [09:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 52 28.10.2024 09:59 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4469425 ФМ: 0000000000871792 ФД: 156836 ФПД: 158730006021262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156836&fm=158730006021262&tin=02508201610067®Number=0000000000091693&sum=0 [09:59:37]StoreToDocumentArchive [09:59:37]shift 538 fd 156836 [09:59:37]save to /storage/0538/doc_00156836 [09:59:37]save last doc name /storage/0538/doc_00156836 to /storage/kkm_last_doc_name [09:59:37]save OK [09:59:37]Clear old archive folders... [09:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:59:37]tlvbuf is 01A759A0 [09:59:37]SAM_PROTO_ClearQueue [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 09 00 00 [09:59:37]Write to MH i2c: E2 08 00 72 10 80 09 00 00 00 00 00 00 F4 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]SAM_PROTO_ClearQueue done [09:59:37]KKMCreateOFDPacket [09:59:37]OFDProtocolAddRootSTLVToBuf [09:59:37]FM_MakeSignedData [09:59:37]FM_MakeSignedData [09:59:37]SAM_PROTO_SignData [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 01 02 [09:59:37]Write to MH i2c: E2 08 00 73 10 80 0D 01 02 00 00 00 00 FC [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 73 10 00 90 00 F7 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=255 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8A 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 64 02 00 35 04 06 00 90 5D 35 9F [09:59:37]Write to MH i2c: E2 02 01 74 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8A 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 64 02 00 35 04 06 00 90 5D 35 9F 00 00 20 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 74 10 00 90 00 F8 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=7 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 02 02 02 C4 8E [09:59:37]Write to MH i2c: E2 0A 00 75 10 80 0D 02 02 02 00 C4 8E 00 00 55 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 03 00 75 10 00 90 00 F9 [09:59:37]RAPDU: 90 00 [09:59:37]wFMCommunicate OK [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 0D 03 02 [09:59:37]Write to MH i2c: E2 08 00 76 10 80 0D 03 02 00 00 00 00 01 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 0B 00 76 10 00 4F 00 F1 A7 01 7C 32 FE 90 00 96 [09:59:37]RAPDU: 4F 00 F1 A7 01 7C 32 FE 90 00 [09:59:37]wFMCommunicate OK [09:59:37]SAM_PROTO_SignData done [09:59:37]FM_MakeSignedData done [09:59:37]CreateOFDProtocolMessage [09:59:37]wFMCommunicate request_size=4 [09:59:37]MH_SAM_APDU [09:59:37]CAPDU: 80 11 00 00 [09:59:37]Write to MH i2c: E2 08 00 77 10 80 11 00 00 00 00 00 00 01 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:37]Read from MH i2c: E2 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: E2 17 00 77 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 56 [09:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:59:37]wFMCommunicate OK [09:59:37]CreateOFDProtocolMessage done [09:59:37]OFDSenderStorePacket 156836 [09:59:37]StoreOFDPacket docnum=156836 [09:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C8 9F 04 01 57 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8A 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 64 02 00 35 04 06 00 90 5D 35 9F C4 8E 4F 00 F1 A7 01 7C 32 FE [09:59:37]CheckFolder [09:59:37]dirname=/storage/ofd_packets [09:59:37]CheckFolder done [09:59:37]ProducePacketName [09:59:37]name=ofd_packets/00156836 [09:59:37]NVStorageSaveData ofd_packets/00156836 [09:59:37]File name is /storage/ofd_packets/00156836 [09:59:37]Write 298 bytes [09:59:37]NVStorageSaveData done [09:59:37]OFDSenderStorePacket done [09:59:37]KKMCreateOFDPacket done [09:59:37]NVStorageSaveData kkm_last_timestamp [09:59:37]File name is /storage/kkm_last_timestamp [09:59:37]Write 4 bytes [09:59:37]NVStorageSaveData done [09:59:37]ExternCall_PrintAddStr [09:59:37]wPrintStart [09:59:37]Write to MH i2c: 01 00 00 78 10 88 [09:59:37]Write i2c OK [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 [09:59:37]MH_I2C_Read... [09:59:37]Read from MH i2c: 01 07 00 78 10 00 00 00 00 00 FF 0F 9D [09:59:37]RasterBufferAndPrint [09:59:37]line Счет N : (1)99648 [09:59:37]line ИНН: 02508201610067 [09:59:37]line Контрольно-Кассовый Чек [09:59:37]line ПРОДАЖА [09:59:37]line ТРК (МРК, ГНК) : 32 [09:59:37]line Товар: 2710194210 [09:59:37]line ДТ-К-5 [09:59:37]line 10.000 * 0.00 [09:59:37]line = 0.00 [09:59:37]line НДС 12% НСП 1% [09:59:37]line > о реализуемом товаре [09:59:37]line ИТОГО: 0.00 [09:59:37]line НСП 1% : 0.00 [09:59:37]line НДС 12% : 0.00 [09:59:37]line Наличными: 0.00 [09:59:37]line Безнал.: 0.00 [09:59:37]line Место: АЗС № 143 "Партнер Нефть" [09:59:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:59:37]line СНО: Общий режим [09:59:37]line Чек 52 28.10.2024 09:59 [09:59:37]line Смена: 538 ФФД: 1.0 [09:59:37]line ЗНМ: 0300000096 [09:59:37]line РНМ: 0000000000091693 [09:59:37]line Версия ККМ: 001 [09:59:37]line Талоны: Топливные Талоны [09:59:37]line 4469425 [09:59:37]line ФМ: 0000000000871792 [09:59:37]line ФД: 156836 [09:59:37]line ФПД: 158730006021262 [09:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156836&fm=158730006021262&tin=02508201610067®Number=0000000000091693&sum=0 [09:59:38]OFD Sender: Processing packet 156836 [packets to send 31, broken 30] [09:59:38]ProducePacketName [09:59:38]name=ofd_packets/00156836 [09:59:38]OFD Sender: To server: pG, [09:59:38]CommunicateWithHost lk.salyk.kg:30040 [09:59:38]ConnectInit lk.salyk.kg [09:59:38]written 0, free lines is 4095 [09:59:38]Connected sock=10 [09:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C8 9F 04 01 57 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 8A 60 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 64 02 00 35 04 06 00 90 5D 35 9F C4 8E 4F 00 F1 A7 01 7C 32 FE [09:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 44 47 00 A2 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 37 39 32 10 04 04 00 A4 64 02 00 F4 03 04 00 F7 05 1F 67 B6 04 01 00 00 FF 9A 14 37 CF 4A AC A5 [09:59:38]CommunicateWithHost err = 0 [09:59:38]CheckOFDResponse [09:59:38]1017 (14) - 77093643461234 [09:59:38]1041 (16) - 0000000000871792 [09:59:38]1040 (4) - 156836 [09:59:38]1012 (4) - 28.10.2024 03:33 [09:59:38]1206 (1) - 0 [09:59:38]OFD Sender: Remove packet 156836 [09:59:38]ProducePacketName [09:59:38]name=ofd_packets/00156836 [09:59:38]NVStorageDeleteData [09:59:38]Write to MH i2c: 01 00 00 A2 10 B2 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 A2 10 00 00 00 00 00 DD 0C A2 [09:59:38]RasterBufferAndPrint [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]line [09:59:38]written 0, free lines is 3299 [09:59:38]process_action close_receipt done [09:59:38]requested_data is exist [09:59:38]produce_requested_data [09:59:38]requested_item fm.sn is exist - process it [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 11 00 00 [09:59:38]Write to MH i2c: E2 08 00 A9 10 80 11 00 00 00 00 00 00 33 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:38]Read from MH i2c: E2 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 17 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 17 00 A9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [09:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:59:38]wFMCommunicate OK [09:59:38]requested_item fd.num is exist - process it [09:59:38]SAM_PROTO_GetFieldsCounters [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 13 00 00 [09:59:38]Write to MH i2c: E2 08 00 AA 10 80 13 00 00 00 00 00 00 36 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:38]Read from MH i2c: E2 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 62 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 62 00 AA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 64 02 00 0E 04 04 00 1A 02 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 1E [09:59: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 64 02 00 0E 04 04 00 1A 02 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 [09:59:38]wFMCommunicate OK [09:59:38]SAM_PROTO_GetFieldsCounters done [09:59:38]requested_item shift.num is exist - process it [09:59:38]requested_item shift.opened is exist - process it [09:59:38]req_shift_opened [09:59:38]FM_GetShiftState [09:59:38]SAM_PROTO_GetShiftState [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 13 01 00 [09:59:38]Write to MH i2c: E2 08 00 AB 10 80 13 01 00 00 00 00 00 38 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:39]Read from MH i2c: E2 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 0E 00 [09:59:39]MH_I2C_Read... [09:59:39]Read from MH i2c: E2 0E 00 AB 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2A [09:59:39]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [09:59:39]wFMCommunicate OK [09:59:39]SAM_PROTO_GetShiftState done [09:59:39]FM_GetShiftState done [09:59:39]req_shift_opened done [09:59:39]requested_item shift.open_date is exist - process it [09:59:39]req_shift_open_date [09:59:39]req_shift_open_date done [09:59:39]produce_requested_data done [09:59:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156836,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [09:59:39]process_action_free close_receipt [09:59:39]json_value_free [09:59:39]json_value_free done [09:59:39]process_json_proto returns [09:59:39]Send response to host [09:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156836,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [09:59:39]free response buf [09:59:39]execute_script done [09:59:39]execute_script returns [09:59:39]free content buf [09:59:39]Sock 7.Close socket [09:59:39]Sock 7.Thread stoped [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:45]int [09:59:45]Write to MH i2c: 01 00 00 AC 10 BC [09:59:45]*** FLAG_PRN_KEY set [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 AC 10 00 08 00 00 00 FF 0F D9 [09:59:45]state=0 [09:59:45]Key pressed [09:59:45]Feed [09:59:45]Write to MH i2c: D8 00 00 AD 10 94 [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D8 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D8 01 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: D8 01 00 AD 10 00 95 [09:59:45]int [09:59:45]Write to MH i2c: 01 00 00 AE 10 BE [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 AE 10 00 48 00 00 00 3D 00 4A [09:59:45]state=2 [09:59:45]Key pressed [09:59:45]int [09:59:45]Write to MH i2c: 01 00 00 AF 10 BF [09:59:45]*** FLAG_PRN_KEY reset [09:59:45]Write i2c OK [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 [09:59:45]MH_I2C_Read... [09:59:45]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [09:59:45]state=2 [09:59:45]Stop feed [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: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:43]accept exits with 9 [10:05:43]New connection [10:05:43]New thread 3066748260 created [10:05:43]Thread 3066604900 joined [10:05:43]Waiting for new connection... [10:05:43] Sock 9.Parse request [10:05:43]Sock 9.Check first char [10:05:43]Sock 9.First char is OK [10:05:43]request: POST /json_proto HTTP/1.0 [10:05:43]Method: POST [10:05:43]URL: /json_proto [10:05:43]Method is POST - this is cgi request [10:05:43]url: /json_proto [10:05:43]query_string will be loaded in cgi processing [10:05:43]execute_cgi json_proto POST (null) [10:05:43]execute_cgi path=json_proto method=POST [10:05:43]POST find Content-Length [10:05:43]Host: 172.17.63.3:8080 [10:05:43]Content-Length: 676 [10:05:43]Content-Type: application/json [10:05:43] [10:05:43]POST finish read [10:05:43]Found Content-Length = 676 [10:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:05:43]execute_script... [10:05: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)99649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:05:43]POST & json_proto [10:05:43]process_json_proto [10:05:43]json parsed OK: [10:05:43]protocol is kg_v1.0 [10:05:43]action value=close_receipt [10:05:43]process_action close_receipt [10:05:43]cmd_close_receipt [10:05:43]MH_GetDate [10:05:43]Write to MH i2c: F0 00 00 B0 10 AF [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: F0 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: F0 09 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: F0 09 00 B0 10 00 FA 61 1F 67 50 D1 6C 64 8A [10:05:43]GetLastDocTimeStamp 1730109578 [10:05:43]current date 1730109946 [10:05:43]FM_GetShiftState [10:05:43]SAM_PROTO_GetShiftState [10:05:43]wFMCommunicate request_size=4 [10:05:43]MH_SAM_APDU [10:05:43]CAPDU: 80 13 01 00 [10:05:43]Write to MH i2c: E2 08 00 B1 10 80 13 01 00 00 00 00 00 3E [10:05:43]Write i2c OK [10:05:43]MH_I2C_Read... [10:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:43]Read from MH i2c: E2 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 0E 00 [10:05:43]MH_I2C_Read... [10:05:43]Read from MH i2c: E2 0E 00 B1 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 30 [10:05:43]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:05:43]wFMCommunicate OK [10:05:43]SAM_PROTO_GetShiftState done [10:05:43]FM_GetShiftState done [10:05:43]opened in 1730075526 [10:05:43]opened+sec_in_day 1730161926 [10:05:43]quantity*price = 30038 [10:05:43]sum+1 = 30039 [10:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 53 28.10.2024 10:05 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156837 ФПД: 221257172090484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100546&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156837&fm=221257172090484&tin=02508201610067®Number=0000000000091693&sum=30000 [10:05:44]StoreToDocumentArchive [10:05:44]shift 538 fd 156837 [10:05:44]save to /storage/0538/doc_00156837 [10:05:44]save last doc name /storage/0538/doc_00156837 to /storage/kkm_last_doc_name [10:05:44]save OK [10:05:44]Clear old archive folders... [10:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:44]tlvbuf is 01AA2940 [10:05:44]SAM_PROTO_ClearQueue [10:05:44]wFMCommunicate request_size=4 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 09 00 00 [10:05:44]Write to MH i2c: E2 08 00 BE 10 80 09 00 00 00 00 00 00 40 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:44]Read from MH i2c: E2 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 03 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 03 00 BE 10 00 90 00 42 [10:05:44]RAPDU: 90 00 [10:05:44]wFMCommunicate OK [10:05:44]SAM_PROTO_ClearQueue done [10:05:44]KKMCreateOFDPacket [10:05:44]OFDProtocolAddRootSTLVToBuf [10:05:44]FM_MakeSignedData [10:05:44]FM_MakeSignedData [10:05:44]SAM_PROTO_SignData [10:05:44]wFMCommunicate request_size=4 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 0D 01 02 [10:05:44]Write to MH i2c: E2 08 00 BF 10 80 0D 01 02 00 00 00 00 48 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:44]Read from MH i2c: E2 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 03 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 03 00 BF 10 00 90 00 43 [10:05:44]RAPDU: 90 00 [10:05:44]wFMCommunicate OK [10:05:44]wFMCommunicate request_size=255 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FA 61 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 64 02 00 35 04 06 00 C9 [10:05:44]Write to MH i2c: E2 02 01 C0 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FA 61 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 64 02 00 35 04 06 00 C9 00 00 D6 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]wFMCommunicate request_size=10 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 02 02 05 3B 73 25 7E 74 [10:05:45]Write to MH i2c: E2 0D 00 C1 10 80 0D 02 02 05 00 3B 73 25 7E 74 00 00 1A [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 03 02 [10:05:45]Write to MH i2c: E2 08 00 C2 10 80 0D 03 02 00 00 00 00 4D [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 0B 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 0B 00 C2 10 00 19 3A 1D A6 9E 05 D4 2F 90 00 0A [10:05:45]RAPDU: 19 3A 1D A6 9E 05 D4 2F 90 00 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_SignData done [10:05:45]FM_MakeSignedData done [10:05:45]CreateOFDProtocolMessage [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 11 00 00 [10:05:45]Write to MH i2c: E2 08 00 C3 10 80 11 00 00 00 00 00 00 4D [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 17 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 17 00 C3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [10:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:45]wFMCommunicate OK [10:05:45]CreateOFDProtocolMessage done [10:05:45]OFDSenderStorePacket 156837 [10:05:45]StoreOFDPacket docnum=156837 [10:05:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2D 62 07 01 33 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FA 61 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 64 02 00 35 04 06 00 C9 3B 73 25 7E 74 19 3A 1D A6 9E 05 D4 2F [10:05:45]CheckFolder [10:05:45]dirname=/storage/ofd_packets [10:05:45]CheckFolder done [10:05:45]ProducePacketName [10:05:45]name=ofd_packets/00156837 [10:05:45]NVStorageSaveData ofd_packets/00156837 [10:05:45]File name is /storage/ofd_packets/00156837 [10:05:45]Write 301 bytes [10:05:45]NVStorageSaveData done [10:05:45]OFDSenderStorePacket done [10:05:45]KKMCreateOFDPacket done [10:05:45]NVStorageSaveData kkm_last_timestamp [10:05:45]File name is /storage/kkm_last_timestamp [10:05:45]Write 4 bytes [10:05:45]NVStorageSaveData done [10:05:45]OFD Sender: Processing packet 156837 [packets to send 31, broken 30] [10:05:45]ProducePacketName [10:05:45]name=ofd_packets/00156837 [10:05:45]OFD Sender: To server: pG, [10:05:45]CommunicateWithHost lk.salyk.kg:30040 [10:05:45]ConnectInit lk.salyk.kg [10:05:45]ExternCall_PrintAddStr [10:05:45]wPrintStart [10:05:45]Write to MH i2c: 01 00 00 C4 10 D4 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: 01 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: 01 07 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: 01 07 00 C4 10 00 00 00 00 00 FF 0F E9 [10:05:45]RasterBufferAndPrint [10:05:45]line Счет N : (1)99649 [10:05:45]line ИНН: 02508201610067 [10:05:45]line Контрольно-Кассовый Чек [10:05:45]line ПРОДАЖА [10:05:45]line ТРК (МРК, ГНК) : 31 [10:05:45]line Товар: 2710124130 [10:05:45]line Аи-92-К-5 [10:05:45]line 4.490 * 66.90 [10:05:45]line = 300.38 [10:05:45]line НДС 12% НСП 1% [10:05:45]line > о реализуемом товаре [10:05:45]line ОКРУГЛЕНИЕ: -0.38 [10:05:45]line ИТОГО: 300.00 [10:05:45]line Внесено: 300.00 [10:05:45]line СДАЧА: 0.00 [10:05:45]line НСП 1% : 2.66 [10:05:45]line НДС 12% : 31.90 [10:05:45]line Наличными: 300.00 [10:05:45]line Безнал.: 0.00 [10:05:45]line Место: АЗС № 143 "Партнер Нефть" [10:05:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:05:45]line СНО: Общий режим [10:05:45]line Чек 53 28.10.2024 10:05 [10:05:45]line Смена: 538 ФФД: 1.0 [10:05:45]line ЗНМ: 0300000096 [10:05:45]line РНМ: 0000000000091693 [10:05:45]line Версия ККМ: 001 [10:05:45]line ФМ: 0000000000871792 [10:05:45]line ФД: 156837 [10:05:45]line ФПД: 221257172090484 [10:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100546&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156837&fm=221257172090484&tin=02508201610067®Number=0000000000091693&sum=30000 [10:05:45]Connected sock=11 [10:05: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 37 39 32 0F 01 00 00 2D 62 07 01 33 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FA 61 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 64 02 00 35 04 06 00 C9 3B 73 25 7E 74 19 3A 1D A6 9E 05 D4 2F [10:05:45]written 0, free lines is 4095 [10:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E9 44 47 00 17 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 37 39 32 10 04 04 00 A5 64 02 00 F4 03 04 00 66 07 1F 67 B6 04 01 00 00 5E 14 64 AE D3 39 D0 9D [10:05:45]CommunicateWithHost err = 0 [10:05:45]CheckOFDResponse [10:05:45]1017 (14) - 77093643461234 [10:05:45]1041 (16) - 0000000000871792 [10:05:45]1040 (4) - 156837 [10:05:45]1012 (4) - 28.10.2024 03:39 [10:05:45]1206 (1) - 0 [10:05:45]OFD Sender: Remove packet 156837 [10:05:45]ProducePacketName [10:05:45]name=ofd_packets/00156837 [10:05:45]NVStorageDeleteData [10:05:46]Write to MH i2c: 01 00 00 EF 10 FF [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 EF 10 00 00 00 00 00 D6 0C E8 [10:05:46]RasterBufferAndPrint [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]written 0, free lines is 3293 [10:05:46]process_action close_receipt done [10:05:46]requested_data is exist [10:05:46]produce_requested_data [10:05:46]requested_item fm.sn is exist - process it [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 11 00 00 [10:05:46]Write to MH i2c: E2 08 00 F6 10 80 11 00 00 00 00 00 00 80 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 F6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [10:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:46]wFMCommunicate OK [10:05:46]requested_item fd.num is exist - process it [10:05:46]SAM_PROTO_GetFieldsCounters [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 13 00 00 [10:05:46]Write to MH i2c: E2 08 00 F7 10 80 13 00 00 00 00 00 00 83 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 62 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 62 00 F7 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 64 02 00 0E 04 04 00 1A 02 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 6F [10:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_GetFieldsCounters done [10:05:46]requested_item shift.num is exist - process it [10:05:46]requested_item shift.opened is exist - process it [10:05:46]req_shift_opened [10:05:46]FM_GetShiftState [10:05:46]SAM_PROTO_GetShiftState [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 13 01 00 [10:05:46]Write to MH i2c: E2 08 00 F8 10 80 13 01 00 00 00 00 00 85 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]OFD Sender: No OFD packet to send [10:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0E 00 F8 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 77 [10:05:46]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_GetShiftState done [10:05:46]FM_GetShiftState done [10:05:46]req_shift_opened done [10:05:46]requested_item shift.open_date is exist - process it [10:05:46]req_shift_open_date [10:05:46]req_shift_open_date done [10:05:46]produce_requested_data done [10:05:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156837,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:05:46]process_action_free close_receipt [10:05:46]json_value_free [10:05:46]json_value_free done [10:05:46]process_json_proto returns [10:05:46]Send response to host [10:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156837,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:05:46]free response buf [10:05:46]execute_script done [10:05:46]execute_script returns [10:05:46]free content buf [10:05:46]Sock 9.Close socket [10:05:46]Sock 9.Thread stoped [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]accept exits with 7 [10:13:36]New connection [10:13:36]New thread 3066604900 created [10:13:36]Thread 3066748260 joined [10:13:36]Waiting for new connection... [10:13:36] Sock 7.Parse request [10:13:36]Sock 7.Check first char [10:13:36]Sock 7.First char is OK [10:13:36]request: POST /json_proto HTTP/1.0 [10:13:36]Method: POST [10:13:36]URL: /json_proto [10:13:36]Method is POST - this is cgi request [10:13:36]url: /json_proto [10:13:36]query_string will be loaded in cgi processing [10:13:36]execute_cgi json_proto POST (null) [10:13:36]execute_cgi path=json_proto method=POST [10:13:36]POST find Content-Length [10:13:36]Host: 172.17.63.3:8080 [10:13:36]Content-Length: 677 [10:13:36]Content-Type: application/json [10:13:36] [10:13:36]POST finish read [10:13:36]Found Content-Length = 677 [10:13:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:13:36]execute_script... [10:13: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)99650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:13:36]POST & json_proto [10:13:36]process_json_proto [10:13:36]json parsed OK: [10:13:36]protocol is kg_v1.0 [10:13:36]action value=close_receipt [10:13:36]process_action close_receipt [10:13:36]cmd_close_receipt [10:13:36]MH_GetDate [10:13:36]Write to MH i2c: F0 00 00 F9 10 F8 [10:13:36]Write i2c OK [10:13:36]MH_I2C_Read... [10:13:36]Read from MH i2c: F0 [10:13:36]MH_I2C_Read... [10:13:36]Read from MH i2c: F0 09 00 [10:13:36]MH_I2C_Read... [10:13:36]Read from MH i2c: F0 09 00 F9 10 00 D3 63 1F 67 50 D1 6C 64 AE [10:13:36]GetLastDocTimeStamp 1730109946 [10:13:36]current date 1730110419 [10:13:36]FM_GetShiftState [10:13:36]SAM_PROTO_GetShiftState [10:13:36]wFMCommunicate request_size=4 [10:13:36]MH_SAM_APDU [10:13:36]CAPDU: 80 13 01 00 [10:13:36]Write to MH i2c: E2 08 00 FA 10 80 13 01 00 00 00 00 00 87 [10:13:36]Write i2c OK [10:13:36]MH_I2C_Read... [10:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:36]Read from MH i2c: E2 [10:13:36]MH_I2C_Read... [10:13:36]Read from MH i2c: E2 0E 00 [10:13:36]MH_I2C_Read... [10:13:36]Read from MH i2c: E2 0E 00 FA 10 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 79 [10:13:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:13:36]wFMCommunicate OK [10:13:36]SAM_PROTO_GetShiftState done [10:13:36]FM_GetShiftState done [10:13:36]opened in 1730075526 [10:13:36]opened+sec_in_day 1730161926 [10:13:36]quantity*price = 70044 [10:13:36]sum+1 = 70045 [10:13:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 54 28.10.2024 10:13 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156838 ФПД: 129651050343015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156838&fm=129651050343015&tin=02508201610067®Number=0000000000091693&sum=70000 [10:13:37]StoreToDocumentArchive [10:13:37]shift 538 fd 156838 [10:13:37]save to /storage/0538/doc_00156838 [10:13:37]save last doc name /storage/0538/doc_00156838 to /storage/kkm_last_doc_name [10:13:37]save OK [10:13:37]Clear old archive folders... [10:13:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:37]tlvbuf is 01A7E400 [10:13:37]SAM_PROTO_ClearQueue [10:13:37]wFMCommunicate request_size=4 [10:13:37]MH_SAM_APDU [10:13:37]CAPDU: 80 09 00 00 [10:13:37]Write to MH i2c: E2 08 00 07 11 80 09 00 00 00 00 00 00 8A [10:13:37]Write i2c OK [10:13:37]MH_I2C_Read... [10:13:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]SAM_PROTO_ClearQueue done [10:13:38]KKMCreateOFDPacket [10:13:38]OFDProtocolAddRootSTLVToBuf [10:13:38]FM_MakeSignedData [10:13:38]FM_MakeSignedData [10:13:38]SAM_PROTO_SignData [10:13:38]wFMCommunicate request_size=4 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 0D 01 02 [10:13:38]Write to MH i2c: E2 08 00 08 11 80 0D 01 02 00 00 00 00 92 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]wFMCommunicate request_size=255 [10:13:38]MH_SAM_APDU [10:13: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 36 00 00 00 F4 03 04 00 D3 63 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 64 02 00 35 04 06 00 75 [10:13:38]Write to MH i2c: E2 02 01 09 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 36 00 00 00 F4 03 04 00 D3 63 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 64 02 00 35 04 06 00 75 00 00 C5 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]wFMCommunicate request_size=10 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 0D 02 02 05 EA BC CC EA 67 [10:13:38]Write to MH i2c: E2 0D 00 0A 11 80 0D 02 02 05 00 EA BC CC EA 67 00 00 62 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [10:13:38]RAPDU: 90 00 [10:13:38]wFMCommunicate OK [10:13:38]wFMCommunicate request_size=4 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 0D 03 02 [10:13:38]Write to MH i2c: E2 08 00 0B 11 80 0D 03 02 00 00 00 00 97 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 0B 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 0B 00 0B 11 00 EF A9 1A 49 9B 36 5D AF 90 00 70 [10:13:38]RAPDU: EF A9 1A 49 9B 36 5D AF 90 00 [10:13:38]wFMCommunicate OK [10:13:38]SAM_PROTO_SignData done [10:13:38]FM_MakeSignedData done [10:13:38]CreateOFDProtocolMessage [10:13:38]wFMCommunicate request_size=4 [10:13:38]MH_SAM_APDU [10:13:38]CAPDU: 80 11 00 00 [10:13:38]Write to MH i2c: E2 08 00 0C 11 80 11 00 00 00 00 00 00 97 [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:38]Read from MH i2c: E2 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 17 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: E2 17 00 0C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [10:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:13:38]wFMCommunicate OK [10:13:38]CreateOFDProtocolMessage done [10:13:38]OFDSenderStorePacket 156838 [10:13:38]StoreOFDPacket docnum=156838 [10:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A3 51 07 01 6F E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 36 00 00 00 F4 03 04 00 D3 63 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 64 02 00 35 04 06 00 75 EA BC CC EA 67 EF A9 1A 49 9B 36 5D AF [10:13:38]CheckFolder [10:13:38]dirname=/storage/ofd_packets [10:13:38]CheckFolder done [10:13:38]ProducePacketName [10:13:38]name=ofd_packets/00156838 [10:13:38]NVStorageSaveData ofd_packets/00156838 [10:13:38]File name is /storage/ofd_packets/00156838 [10:13:38]Write 301 bytes [10:13:38]NVStorageSaveData done [10:13:38]OFDSenderStorePacket done [10:13:38]KKMCreateOFDPacket done [10:13:38]NVStorageSaveData kkm_last_timestamp [10:13:38]File name is /storage/kkm_last_timestamp [10:13:38]Write 4 bytes [10:13:38]NVStorageSaveData done [10:13:38]ExternCall_PrintAddStr [10:13:38]wPrintStart [10:13:38]Write to MH i2c: 01 00 00 0D 11 1E [10:13:38]Write i2c OK [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: 01 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: 01 07 00 [10:13:38]MH_I2C_Read... [10:13:38]Read from MH i2c: 01 07 00 0D 11 00 00 00 00 00 FF 0F 33 [10:13:38]RasterBufferAndPrint [10:13:38]line Счет N : (1)99650 [10:13:38]line ИНН: 02508201610067 [10:13:38]line Контрольно-Кассовый Чек [10:13:38]line ПРОДАЖА [10:13:38]line ТРК (МРК, ГНК) : 31 [10:13:38]line Товар: 2710124130 [10:13:38]line Аи-92-К-5 [10:13:38]line 10.470 * 66.90 [10:13:38]line = 700.44 [10:13:38]line НДС 12% НСП 1% [10:13:38]line > о реализуемом товаре [10:13:38]line ОКРУГЛЕНИЕ: -0.44 [10:13:38]line ИТОГО: 700.00 [10:13:38]line Внесено: 700.00 [10:13:38]line СДАЧА: 0.00 [10:13:38]line НСП 1% : 6.20 [10:13:38]line НДС 12% : 74.38 [10:13:38]line Наличными: 700.00 [10:13:38]line Безнал.: 0.00 [10:13:38]line Место: АЗС № 143 "Партнер Нефть" [10:13:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:13:38]line СНО: Общий режим [10:13:38]line Чек 54 28.10.2024 10:13 [10:13:38]line Смена: 538 ФФД: 1.0 [10:13:38]line ЗНМ: 0300000096 [10:13:38]line РНМ: 0000000000091693 [10:13:38]line Версия ККМ: 001 [10:13:38]line ФМ: 0000000000871792 [10:13:38]line ФД: 156838 [10:13:38]line ФПД: 129651050343015 [10:13:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156838&fm=129651050343015&tin=02508201610067®Number=0000000000091693&sum=70000 [10:13:38]OFD Sender: Processing packet 156838 [packets to send 31, broken 30] [10:13:38]ProducePacketName [10:13:38]name=ofd_packets/00156838 [10:13:38]OFD Sender: To server: pG, [10:13:38]CommunicateWithHost lk.salyk.kg:30040 [10:13:38]ConnectInit lk.salyk.kg [10:13:38]written 0, free lines is 4095 [10:13:38]Connected sock=9 [10:13: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 37 39 32 0F 01 00 00 A3 51 07 01 6F E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 36 00 00 00 F4 03 04 00 D3 63 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 64 02 00 35 04 06 00 75 EA BC CC EA 67 EF A9 1A 49 9B 36 5D AF [10: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 37 39 32 4F 00 00 00 9E 30 47 00 E6 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 37 39 32 10 04 04 00 A6 64 02 00 F4 03 04 00 3F 09 1F 67 B6 04 01 00 00 4D 02 CA E1 5E 45 2C C2 [10:13:39]CommunicateWithHost err = 0 [10:13:39]CheckOFDResponse [10:13:39]1017 (14) - 77093643461234 [10:13:39]1041 (16) - 0000000000871792 [10:13:39]1040 (4) - 156838 [10:13:39]1012 (4) - 28.10.2024 03:47 [10:13:39]1206 (1) - 0 [10:13:39]OFD Sender: Remove packet 156838 [10:13:39]ProducePacketName [10:13:39]name=ofd_packets/00156838 [10:13:39]NVStorageDeleteData [10:13:39]Write to MH i2c: 01 00 00 38 11 49 [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: 01 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: 01 07 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: 01 07 00 38 11 00 00 00 00 00 D4 0C 30 [10:13:39]RasterBufferAndPrint [10:13:39]line [10:13:39]line [10:13:39]line [10:13:39]line [10:13:39]line [10:13:39]written 0, free lines is 3292 [10:13:39]process_action close_receipt done [10:13:39]requested_data is exist [10:13:39]produce_requested_data [10:13:39]requested_item fm.sn is exist - process it [10:13:39]wFMCommunicate request_size=4 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 11 00 00 [10:13:39]Write to MH i2c: E2 08 00 3F 11 80 11 00 00 00 00 00 00 CA [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 17 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 17 00 3F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [10:13:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:13:39]wFMCommunicate OK [10:13:39]requested_item fd.num is exist - process it [10:13:39]SAM_PROTO_GetFieldsCounters [10:13:39]wFMCommunicate request_size=4 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 13 00 00 [10:13:39]Write to MH i2c: E2 08 00 40 11 80 13 00 00 00 00 00 00 CD [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 62 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 62 00 40 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 64 02 00 0E 04 04 00 1A 02 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 BD [10:13: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 64 02 00 0E 04 04 00 1A 02 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 [10:13:39]wFMCommunicate OK [10:13:39]SAM_PROTO_GetFieldsCounters done [10:13:39]requested_item shift.num is exist - process it [10:13:39]requested_item shift.opened is exist - process it [10:13:39]req_shift_opened [10:13:39]FM_GetShiftState [10:13:39]SAM_PROTO_GetShiftState [10:13:39]wFMCommunicate request_size=4 [10:13:39]MH_SAM_APDU [10:13:39]CAPDU: 80 13 01 00 [10:13:39]Write to MH i2c: E2 08 00 41 11 80 13 01 00 00 00 00 00 CF [10:13:39]Write i2c OK [10:13:39]MH_I2C_Read... [10:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:39]Read from MH i2c: E2 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 0E 00 [10:13:39]MH_I2C_Read... [10:13:39]Read from MH i2c: E2 0E 00 41 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C1 [10:13:39]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:13:39]wFMCommunicate OK [10:13:39]SAM_PROTO_GetShiftState done [10:13:39]FM_GetShiftState done [10:13:39]req_shift_opened done [10:13:39]requested_item shift.open_date is exist - process it [10:13:39]req_shift_open_date [10:13:39]req_shift_open_date done [10:13:39]produce_requested_data done [10:13:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156838,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:13:39]process_action_free close_receipt [10:13:39]json_value_free [10:13:39]json_value_free done [10:13:39]process_json_proto returns [10:13:39]Send response to host [10:13:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156838,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:13:39]free response buf [10:13:39]execute_script done [10:13:39]execute_script returns [10:13:39]free content buf [10:13:39]Sock 7.Close socket [10:13:39]Sock 7.Thread stoped [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:25]accept exits with 10 [10:15:25]New connection [10:15:25]New thread 3066748260 created [10:15:25]Thread 3066604900 joined [10:15:25]Waiting for new connection... [10:15:25] Sock 10.Parse request [10:15:25]Sock 10.Check first char [10:15:25]Sock 10.First char is OK [10:15:25]request: POST /json_proto HTTP/1.0 [10:15:25]Method: POST [10:15:25]URL: /json_proto [10:15:25]Method is POST - this is cgi request [10:15:25]url: /json_proto [10:15:25]query_string will be loaded in cgi processing [10:15:25]execute_cgi json_proto POST (null) [10:15:25]execute_cgi path=json_proto method=POST [10:15:25]POST find Content-Length [10:15:25]Host: 172.17.63.3:8080 [10:15:25]Content-Length: 676 [10:15:25]Content-Type: application/json [10:15:25] [10:15:25]POST finish read [10:15:25]Found Content-Length = 676 [10:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:15:25]execute_script... [10:15: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)99652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:15:25]POST & json_proto [10:15:25]process_json_proto [10:15:25]json parsed OK: [10:15:25]protocol is kg_v1.0 [10:15:25]action value=close_receipt [10:15:25]process_action close_receipt [10:15:25]cmd_close_receipt [10:15:25]MH_GetDate [10:15:25]Write to MH i2c: F0 00 00 42 11 42 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 09 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: F0 09 00 42 11 00 40 64 1F 67 50 D1 6C 64 66 [10:15:25]GetLastDocTimeStamp 1730110419 [10:15:25]current date 1730110528 [10:15:25]FM_GetShiftState [10:15:25]SAM_PROTO_GetShiftState [10:15:25]wFMCommunicate request_size=4 [10:15:25]MH_SAM_APDU [10:15:25]CAPDU: 80 13 01 00 [10:15:25]Write to MH i2c: E2 08 00 43 11 80 13 01 00 00 00 00 00 D1 [10:15:25]Write i2c OK [10:15:25]MH_I2C_Read... [10:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:25]Read from MH i2c: E2 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 [10:15:25]MH_I2C_Read... [10:15:25]Read from MH i2c: E2 0E 00 43 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C3 [10:15:25]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:15:25]wFMCommunicate OK [10:15:25]SAM_PROTO_GetShiftState done [10:15:25]FM_GetShiftState done [10:15:25]opened in 1730075526 [10:15:25]opened+sec_in_day 1730161926 [10:15:25]quantity*price = 30038 [10:15:25]sum+1 = 30039 [10:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 55 28.10.2024 10:15 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156839 ФПД: 277789494571857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101528&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156839&fm=277789494571857&tin=02508201610067®Number=0000000000091693&sum=30000 [10:15:26]StoreToDocumentArchive [10:15:26]shift 538 fd 156839 [10:15:26]save to /storage/0538/doc_00156839 [10:15:26]save last doc name /storage/0538/doc_00156839 to /storage/kkm_last_doc_name [10:15:26]save OK [10:15:26]Clear old archive folders... [10:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:26]tlvbuf is 01A75CD0 [10:15:26]SAM_PROTO_ClearQueue [10:15:26]wFMCommunicate request_size=4 [10:15:26]MH_SAM_APDU [10:15:26]CAPDU: 80 09 00 00 [10:15:26]Write to MH i2c: E2 08 00 50 11 80 09 00 00 00 00 00 00 D3 [10:15:26]Write i2c OK [10:15:26]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [10:15:27]RAPDU: 90 00 [10:15:27]wFMCommunicate OK [10:15:27]SAM_PROTO_ClearQueue done [10:15:27]KKMCreateOFDPacket [10:15:27]OFDProtocolAddRootSTLVToBuf [10:15:27]FM_MakeSignedData [10:15:27]FM_MakeSignedData [10:15:27]SAM_PROTO_SignData [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 0D 01 02 [10:15:27]Write to MH i2c: E2 08 00 51 11 80 0D 01 02 00 00 00 00 DB [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [10:15:27]RAPDU: 90 00 [10:15:27]wFMCommunicate OK [10:15:27]wFMCommunicate request_size=255 [10:15:27]MH_SAM_APDU [10:15: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 40 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 64 02 00 35 04 06 00 FC [10:15:27]Write to MH i2c: E2 02 01 52 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 40 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 64 02 00 35 04 06 00 FC 00 00 E9 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [10:15:27]RAPDU: 90 00 [10:15:27]wFMCommunicate OK [10:15:27]wFMCommunicate request_size=10 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 0D 02 02 05 A5 E8 25 73 51 [10:15:27]Write to MH i2c: E2 0D 00 53 11 80 0D 02 02 05 00 A5 E8 25 73 51 00 00 5E [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [10:15:27]RAPDU: 90 00 [10:15:27]wFMCommunicate OK [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 0D 03 02 [10:15:27]Write to MH i2c: E2 08 00 54 11 80 0D 03 02 00 00 00 00 E0 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0B 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 0B 00 54 11 00 BA 5C 23 66 98 8E D4 2F 90 00 A9 [10:15:27]RAPDU: BA 5C 23 66 98 8E D4 2F 90 00 [10:15:27]wFMCommunicate OK [10:15:27]SAM_PROTO_SignData done [10:15:27]FM_MakeSignedData done [10:15:27]CreateOFDProtocolMessage [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 11 00 00 [10:15:27]Write to MH i2c: E2 08 00 55 11 80 11 00 00 00 00 00 00 E0 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:27]Read from MH i2c: E2 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: E2 17 00 55 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [10:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:15:27]wFMCommunicate OK [10:15:27]CreateOFDProtocolMessage done [10:15:27]OFDSenderStorePacket 156839 [10:15:27]StoreOFDPacket docnum=156839 [10:15:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 35 75 07 01 23 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 40 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 64 02 00 35 04 06 00 FC A5 E8 25 73 51 BA 5C 23 66 98 8E D4 2F [10:15:27]CheckFolder [10:15:27]dirname=/storage/ofd_packets [10:15:27]CheckFolder done [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00156839 [10:15:27]NVStorageSaveData ofd_packets/00156839 [10:15:27]File name is /storage/ofd_packets/00156839 [10:15:27]Write 301 bytes [10:15:27]NVStorageSaveData done [10:15:27]OFDSenderStorePacket done [10:15:27]KKMCreateOFDPacket done [10:15:27]NVStorageSaveData kkm_last_timestamp [10:15:27]File name is /storage/kkm_last_timestamp [10:15:27]Write 4 bytes [10:15:27]NVStorageSaveData done [10:15:27]ExternCall_PrintAddStr [10:15:27]wPrintStart [10:15:27]Write to MH i2c: 01 00 00 56 11 67 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 56 11 00 00 00 00 00 FF 0F 7C [10:15:27]RasterBufferAndPrint [10:15:27]line Счет N : (1)99652 [10:15:27]line ИНН: 02508201610067 [10:15:27]line Контрольно-Кассовый Чек [10:15:27]line ПРОДАЖА [10:15:27]line ТРК (МРК, ГНК) : 31 [10:15:27]line Товар: 2710124130 [10:15:27]line Аи-92-К-5 [10:15:27]line 4.490 * 66.90 [10:15:27]line = 300.38 [10:15:27]line НДС 12% НСП 1% [10:15:27]line > о реализуемом товаре [10:15:27]line ОКРУГЛЕНИЕ: -0.38 [10:15:27]line ИТОГО: 300.00 [10:15:27]line Внесено: 300.00 [10:15:27]line СДАЧА: 0.00 [10:15:27]line НСП 1% : 2.66 [10:15:27]line НДС 12% : 31.90 [10:15:27]line Наличными: 300.00 [10:15:27]line Безнал.: 0.00 [10:15:27]line Место: АЗС № 143 "Партнер Нефть" [10:15:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:15:27]line СНО: Общий режим [10:15:27]line Чек 55 28.10.2024 10:15 [10:15:27]line Смена: 538 ФФД: 1.0 [10:15:27]line ЗНМ: 0300000096 [10:15:27]line РНМ: 0000000000091693 [10:15:27]line Версия ККМ: 001 [10:15:27]line ФМ: 0000000000871792 [10:15:27]line ФД: 156839 [10:15:27]line ФПД: 277789494571857 [10:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101528&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156839&fm=277789494571857&tin=02508201610067®Number=0000000000091693&sum=30000 [10:15:27]written 0, free lines is 4095 [10:15:27]OFD Sender: Processing packet 156839 [packets to send 31, broken 30] [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00156839 [10:15:27]OFD Sender: To server: pG, [10:15:27]CommunicateWithHost lk.salyk.kg:30040 [10:15:27]ConnectInit lk.salyk.kg [10:15:27]Connected sock=9 [10:15: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 37 39 32 0F 01 00 00 35 75 07 01 23 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 40 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 64 02 00 35 04 06 00 FC A5 E8 25 73 51 BA 5C 23 66 98 8E D4 2F [10:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8C 81 47 00 AC 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 37 39 32 10 04 04 00 A7 64 02 00 F4 03 04 00 AC 09 1F 67 B6 04 01 00 00 32 3D 0C 0C DB DB D2 7E [10:15:27]CommunicateWithHost err = 0 [10:15:27]CheckOFDResponse [10:15:27]1017 (14) - 77093643461234 [10:15:27]1041 (16) - 0000000000871792 [10:15:27]1040 (4) - 156839 [10:15:27]1012 (4) - 28.10.2024 03:49 [10:15:27]1206 (1) - 0 [10:15:27]OFD Sender: Remove packet 156839 [10:15:27]ProducePacketName [10:15:27]name=ofd_packets/00156839 [10:15:27]NVStorageDeleteData [10:15:27]Write to MH i2c: 01 00 00 81 11 92 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 [10:15:27]MH_I2C_Read... [10:15:27]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 DE 0C 83 [10:15:27]RasterBufferAndPrint [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]line [10:15:27]written 0, free lines is 3300 [10:15:27]process_action close_receipt done [10:15:27]requested_data is exist [10:15:27]produce_requested_data [10:15:27]requested_item fm.sn is exist - process it [10:15:27]wFMCommunicate request_size=4 [10:15:27]MH_SAM_APDU [10:15:27]CAPDU: 80 11 00 00 [10:15:27]Write to MH i2c: E2 08 00 88 11 80 11 00 00 00 00 00 00 13 [10:15:27]Write i2c OK [10:15:27]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 17 00 [10:15:28]MH_I2C_Read... [10:15:28]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 37 39 32 90 00 68 [10:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:15:28]wFMCommunicate OK [10:15:28]requested_item fd.num is exist - process it [10:15:28]SAM_PROTO_GetFieldsCounters [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 00 00 [10:15:28]Write to MH i2c: E2 08 00 89 11 80 13 00 00 00 00 00 00 16 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 62 00 [10:15:28]MH_I2C_Read... [10:15:28]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 64 02 00 0E 04 04 00 1A 02 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 0A [10:15: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 64 02 00 0E 04 04 00 1A 02 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 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetFieldsCounters done [10:15:28]requested_item shift.num is exist - process it [10:15:28]requested_item shift.opened is exist - process it [10:15:28]req_shift_opened [10:15:28]FM_GetShiftState [10:15:28]SAM_PROTO_GetShiftState [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 01 00 [10:15:28]Write to MH i2c: E2 08 00 8A 11 80 13 01 00 00 00 00 00 18 [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 8A 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0A [10:15:28]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetShiftState done [10:15:28]FM_GetShiftState done [10:15:28]req_shift_opened done [10:15:28]requested_item shift.open_date is exist - process it [10:15:28]req_shift_open_date [10:15:28]req_shift_open_date done [10:15:28]produce_requested_data done [10:15:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156839,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:15:28]process_action_free close_receipt [10:15:28]json_value_free [10:15:28]json_value_free done [10:15:28]process_json_proto returns [10:15:28]Send response to host [10:15:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156839,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:15:28]free response buf [10:15:28]execute_script done [10:15:28]execute_script returns [10:15:28]free content buf [10:15:28]Sock 10.Close socket [10:15:28]Sock 10.Thread stoped [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:29]accept exits with 7 [10:16:29]New connection [10:16:29]New thread 3066604900 created [10:16:29]Thread 3066748260 joined [10:16:29]Waiting for new connection... [10:16:29] Sock 7.Parse request [10:16:29]Sock 7.Check first char [10:16:29]Sock 7.First char is OK [10:16:29]request: POST /json_proto HTTP/1.0 [10:16:29]Method: POST [10:16:29]URL: /json_proto [10:16:29]Method is POST - this is cgi request [10:16:29]url: /json_proto [10:16:29]query_string will be loaded in cgi processing [10:16:29]execute_cgi json_proto POST (null) [10:16:29]execute_cgi path=json_proto method=POST [10:16:29]POST find Content-Length [10:16:29]Host: 172.17.63.3:8080 [10:16:29]Content-Length: 676 [10:16:29]Content-Type: application/json [10:16:29] [10:16:29]POST finish read [10:16:29]Found Content-Length = 676 [10:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:16:29]execute_script... [10:16: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)99653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:16:29]POST & json_proto [10:16:29]process_json_proto [10:16:29]json parsed OK: [10:16:29]protocol is kg_v1.0 [10:16:29]action value=close_receipt [10:16:29]process_action close_receipt [10:16:29]cmd_close_receipt [10:16:29]MH_GetDate [10:16:29]Write to MH i2c: F0 00 00 8B 11 8B [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 8B 11 00 7F 64 1F 67 50 D1 6C 64 EE [10:16:29]GetLastDocTimeStamp 1730110528 [10:16:29]current date 1730110591 [10:16:29]FM_GetShiftState [10:16:29]SAM_PROTO_GetShiftState [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 13 01 00 [10:16:29]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0C [10:16:29]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_GetShiftState done [10:16:29]FM_GetShiftState done [10:16:29]opened in 1730075526 [10:16:29]opened+sec_in_day 1730161926 [10:16:29]quantity*price = 50041 [10:16:29]sum+1 = 50042 [10:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 56 28.10.2024 10:16 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156840 ФПД: 164271039461379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101631&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156840&fm=164271039461379&tin=02508201610067®Number=0000000000091693&sum=50000 [10:16:30]StoreToDocumentArchive [10:16:30]shift 538 fd 156840 [10:16:30]save to /storage/0538/doc_00156840 [10:16:30]save last doc name /storage/0538/doc_00156840 to /storage/kkm_last_doc_name [10:16:30]save OK [10:16:30]Clear old archive folders... [10:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:30]tlvbuf is B6E8FC00 [10:16:30]SAM_PROTO_ClearQueue [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 09 00 00 [10:16:30]Write to MH i2c: E2 08 00 99 11 80 09 00 00 00 00 00 00 1C [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]SAM_PROTO_ClearQueue done [10:16:30]KKMCreateOFDPacket [10:16:30]OFDProtocolAddRootSTLVToBuf [10:16:30]FM_MakeSignedData [10:16:30]FM_MakeSignedData [10:16:30]SAM_PROTO_SignData [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 01 02 [10:16:30]Write to MH i2c: E2 08 00 9A 11 80 0D 01 02 00 00 00 00 24 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=255 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 38 00 00 00 F4 03 04 00 7F 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 64 02 00 35 04 06 00 95 [10:16:30]Write to MH i2c: E2 02 01 9B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 38 00 00 00 F4 03 04 00 7F 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 64 02 00 35 04 06 00 95 00 00 18 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=10 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 02 02 05 67 54 F4 38 03 [10:16:30]Write to MH i2c: E2 0D 00 9C 11 80 0D 02 02 05 00 67 54 F4 38 03 00 00 1B [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [10:16:31]RAPDU: 90 00 [10:16:31]wFMCommunicate OK [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 0D 03 02 [10:16:31]Write to MH i2c: E2 08 00 9D 11 80 0D 03 02 00 00 00 00 29 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0B 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0B 00 9D 11 00 70 30 41 53 3E 75 00 1D 90 00 2E [10:16:31]RAPDU: 70 30 41 53 3E 75 00 1D 90 00 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_SignData done [10:16:31]FM_MakeSignedData done [10:16:31]CreateOFDProtocolMessage [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 11 00 00 [10:16:31]Write to MH i2c: E2 08 00 9E 11 80 11 00 00 00 00 00 00 29 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 [10:16:31]MH_I2C_Read... [10:16:31]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 37 39 32 90 00 7E [10:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:16:31]wFMCommunicate OK [10:16:31]CreateOFDProtocolMessage done [10:16:31]OFDSenderStorePacket 156840 [10:16:31]StoreOFDPacket docnum=156840 [10:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 63 07 01 4A 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 38 00 00 00 F4 03 04 00 7F 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 64 02 00 35 04 06 00 95 67 54 F4 38 03 70 30 41 53 3E 75 00 1D [10:16:31]CheckFolder [10:16:31]dirname=/storage/ofd_packets [10:16:31]CheckFolder done [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00156840 [10:16:31]NVStorageSaveData ofd_packets/00156840 [10:16:31]File name is /storage/ofd_packets/00156840 [10:16:31]Write 301 bytes [10:16:31]NVStorageSaveData done [10:16:31]OFDSenderStorePacket done [10:16:31]KKMCreateOFDPacket done [10:16:31]NVStorageSaveData kkm_last_timestamp [10:16:31]File name is /storage/kkm_last_timestamp [10:16:31]Write 4 bytes [10:16:31]NVStorageSaveData done [10:16:31]ExternCall_PrintAddStr [10:16:31]wPrintStart [10:16:31]Write to MH i2c: 01 00 00 9F 11 B0 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 9F 11 00 00 00 00 00 FF 0F C5 [10:16:31]RasterBufferAndPrint [10:16:31]line Счет N : (1)99653 [10:16:31]line ИНН: 02508201610067 [10:16:31]line Контрольно-Кассовый Чек [10:16:31]line ПРОДАЖА [10:16:31]line ТРК (МРК, ГНК) : 31 [10:16:31]line Товар: 2710124130 [10:16:31]line Аи-92-К-5 [10:16:31]line 7.480 * 66.90 [10:16:31]line = 500.41 [10:16:31]line НДС 12% НСП 1% [10:16:31]line > о реализуемом товаре [10:16:31]line ОКРУГЛЕНИЕ: -0.41 [10:16:31]line ИТОГО: 500.00 [10:16:31]line Внесено: 500.00 [10:16:31]line СДАЧА: 0.00 [10:16:31]line НСП 1% : 4.43 [10:16:31]line НДС 12% : 53.14 [10:16:31]line Наличными: 500.00 [10:16:31]line Безнал.: 0.00 [10:16:31]line Место: АЗС № 143 "Партнер Нефть" [10:16:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:16:31]line СНО: Общий режим [10:16:31]line Чек 56 28.10.2024 10:16 [10:16:31]line Смена: 538 ФФД: 1.0 [10:16:31]line ЗНМ: 0300000096 [10:16:31]line РНМ: 0000000000091693 [10:16:31]line Версия ККМ: 001 [10:16:31]line ФМ: 0000000000871792 [10:16:31]line ФД: 156840 [10:16:31]line ФПД: 164271039461379 [10:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101631&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156840&fm=164271039461379&tin=02508201610067®Number=0000000000091693&sum=50000 [10:16:31]written 0, free lines is 4095 [10:16:31]OFD Sender: Processing packet 156840 [packets to send 31, broken 30] [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00156840 [10:16:31]OFD Sender: To server: pG, [10:16:31]CommunicateWithHost lk.salyk.kg:30040 [10:16:31]ConnectInit lk.salyk.kg [10:16:31]Connected sock=10 [10:16: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 37 39 32 0F 01 00 00 B0 63 07 01 4A 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 38 00 00 00 F4 03 04 00 7F 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 64 02 00 35 04 06 00 95 67 54 F4 38 03 70 30 41 53 3E 75 00 1D [10:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC C1 47 00 B6 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 64 02 00 F4 03 04 00 EC 09 1F 67 B6 04 01 00 00 00 5E 50 DA FA 08 13 01 [10:16:31]CommunicateWithHost err = 0 [10:16:31]CheckOFDResponse [10:16:31]1017 (14) - 77093643461234 [10:16:31]1041 (16) - 0000000000871792 [10:16:31]1040 (4) - 156840 [10:16:31]1012 (4) - 28.10.2024 03:50 [10:16:31]1206 (1) - 0 [10:16:31]OFD Sender: Remove packet 156840 [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00156840 [10:16:31]NVStorageDeleteData [10:16:31]Write to MH i2c: 01 00 00 CA 11 DB [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 CA 11 00 00 00 00 00 E4 0C D2 [10:16:31]RasterBufferAndPrint [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]line [10:16:31]written 0, free lines is 3306 [10:16:31]process_action close_receipt done [10:16:31]requested_data is exist [10:16:31]produce_requested_data [10:16:31]requested_item fm.sn is exist - process it [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 11 00 00 [10:16:31]Write to MH i2c: E2 08 00 D1 11 80 11 00 00 00 00 00 00 5C [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 D1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [10:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:16:31]wFMCommunicate OK [10:16:31]requested_item fd.num is exist - process it [10:16:31]SAM_PROTO_GetFieldsCounters [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 13 00 00 [10:16:31]Write to MH i2c: E2 08 00 D2 11 80 13 00 00 00 00 00 00 5F [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 62 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 62 00 D2 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 64 02 00 0E 04 04 00 1A 02 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 57 [10:16: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 64 02 00 0E 04 04 00 1A 02 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 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_GetFieldsCounters done [10:16:31]requested_item shift.num is exist - process it [10:16:31]requested_item shift.opened is exist - process it [10:16:31]req_shift_opened [10:16:31]FM_GetShiftState [10:16:31]SAM_PROTO_GetShiftState [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 13 01 00 [10:16:31]Write to MH i2c: E2 08 00 D3 11 80 13 01 00 00 00 00 00 61 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0E 00 D3 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 53 [10:16:31]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_GetShiftState done [10:16:31]FM_GetShiftState done [10:16:31]req_shift_opened done [10:16:31]requested_item shift.open_date is exist - process it [10:16:31]req_shift_open_date [10:16:31]req_shift_open_date done [10:16:31]produce_requested_data done [10:16:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156840,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:16:31]process_action_free close_receipt [10:16:31]json_value_free [10:16:31]json_value_free done [10:16:31]process_json_proto returns [10:16:31]Send response to host [10:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156840,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:16:31]free response buf [10:16:31]execute_script done [10:16:31]execute_script returns [10:16:31]free content buf [10:16:31]Sock 7.Close socket [10:16:31]Sock 7.Thread stoped [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:34]accept exits with 9 [10:18:34]New connection [10:18:34]New thread 3066748260 created [10:18:34]Thread 3066604900 joined [10:18:34]Waiting for new connection... [10:18:34] Sock 9.Parse request [10:18:34]Sock 9.Check first char [10:18:34]Sock 9.First char is OK [10:18:34]request: POST /json_proto HTTP/1.0 [10:18:34]Method: POST [10:18:34]URL: /json_proto [10:18:34]Method is POST - this is cgi request [10:18:34]url: /json_proto [10:18:34]query_string will be loaded in cgi processing [10:18:34]execute_cgi json_proto POST (null) [10:18:34]execute_cgi path=json_proto method=POST [10:18:34]POST find Content-Length [10:18:34]Host: 172.17.63.3:8080 [10:18:34]Content-Length: 676 [10:18:34]Content-Type: application/json [10:18:34] [10:18:34]POST finish read [10:18:34]Found Content-Length = 676 [10:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:18:34]execute_script... [10: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)99654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [10:18:34]POST & json_proto [10:18:34]process_json_proto [10:18:34]json parsed OK: [10:18:34]protocol is kg_v1.0 [10:18:34]action value=close_receipt [10:18:34]process_action close_receipt [10:18:34]cmd_close_receipt [10:18:34]MH_GetDate [10:18:34]Write to MH i2c: F0 00 00 D4 11 D4 [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: F0 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: F0 09 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: F0 09 00 D4 11 00 FC 64 1F 67 50 D1 6C 64 B4 [10:18:34]GetLastDocTimeStamp 1730110591 [10:18:34]current date 1730110716 [10:18:34]FM_GetShiftState [10:18:34]SAM_PROTO_GetShiftState [10:18:34]wFMCommunicate request_size=4 [10:18:34]MH_SAM_APDU [10:18:34]CAPDU: 80 13 01 00 [10:18:34]Write to MH i2c: E2 08 00 D5 11 80 13 01 00 00 00 00 00 63 [10:18:34]Write i2c OK [10:18:34]MH_I2C_Read... [10:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:34]Read from MH i2c: E2 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 0E 00 [10:18:34]MH_I2C_Read... [10:18:34]Read from MH i2c: E2 0E 00 D5 11 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 55 [10:18:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:18:34]wFMCommunicate OK [10:18:34]SAM_PROTO_GetShiftState done [10:18:34]FM_GetShiftState done [10:18:34]opened in 1730075526 [10:18:34]opened+sec_in_day 1730161926 [10:18:34]quantity*price = 50041 [10:18:34]sum+1 = 50042 [10:18:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 57 28.10.2024 10:18 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156841 ФПД: 141316456865015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101836&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156841&fm=141316456865015&tin=02508201610067®Number=0000000000091693&sum=50000 [10:18:35]StoreToDocumentArchive [10:18:35]shift 538 fd 156841 [10:18:35]save to /storage/0538/doc_00156841 [10:18:35]save last doc name /storage/0538/doc_00156841 to /storage/kkm_last_doc_name [10:18:35]save OK [10:18:35]Clear old archive folders... [10:18:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:35]tlvbuf is 01AB1BD0 [10:18:35]SAM_PROTO_ClearQueue [10:18:35]wFMCommunicate request_size=4 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 09 00 00 [10:18:35]Write to MH i2c: E2 08 00 E2 11 80 09 00 00 00 00 00 00 65 [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:35]Read from MH i2c: E2 03 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [10:18:35]RAPDU: 90 00 [10:18:35]wFMCommunicate OK [10:18:35]SAM_PROTO_ClearQueue done [10:18:35]KKMCreateOFDPacket [10:18:35]OFDProtocolAddRootSTLVToBuf [10:18:35]FM_MakeSignedData [10:18:35]FM_MakeSignedData [10:18:35]SAM_PROTO_SignData [10:18:35]wFMCommunicate request_size=4 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 0D 01 02 [10:18:35]Write to MH i2c: E2 08 00 E3 11 80 0D 01 02 00 00 00 00 6D [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [10:18:35]RAPDU: 90 00 [10:18:35]wFMCommunicate OK [10:18:35]wFMCommunicate request_size=255 [10:18:35]MH_SAM_APDU [10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 FC 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 64 02 00 35 04 06 00 80 [10:18:35]Write to MH i2c: E2 02 01 E4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 FC 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 64 02 00 35 04 06 00 80 00 00 CB [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 E4 11 00 90 00 69 [10:18:35]RAPDU: 90 00 [10:18:35]wFMCommunicate OK [10:18:35]wFMCommunicate request_size=10 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 0D 02 02 05 86 CD 36 5C F7 [10:18:35]Write to MH i2c: E2 0D 00 E5 11 80 0D 02 02 05 00 86 CD 36 5C F7 00 00 56 [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [10:18:35]RAPDU: 90 00 [10:18:35]wFMCommunicate OK [10:18:35]wFMCommunicate request_size=4 [10:18:35]MH_SAM_APDU [10:18:35]CAPDU: 80 0D 03 02 [10:18:35]Write to MH i2c: E2 08 00 E6 11 80 0D 03 02 00 00 00 00 72 [10:18:35]Write i2c OK [10:18:35]MH_I2C_Read... [10:18:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:35]Read from MH i2c: E2 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0B 00 [10:18:35]MH_I2C_Read... [10:18:35]Read from MH i2c: E2 0B 00 E6 11 00 FA DD 15 A9 9C 99 B3 64 90 00 54 [10:18:36]RAPDU: FA DD 15 A9 9C 99 B3 64 90 00 [10:18:36]wFMCommunicate OK [10:18:36]SAM_PROTO_SignData done [10:18:36]FM_MakeSignedData done [10:18:36]CreateOFDProtocolMessage [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 11 00 00 [10:18:36]Write to MH i2c: E2 08 00 E7 11 80 11 00 00 00 00 00 00 72 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 E7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [10:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:18:36]wFMCommunicate OK [10:18:36]CreateOFDProtocolMessage done [10:18:36]OFDSenderStorePacket 156841 [10:18:36]StoreOFDPacket docnum=156841 [10:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B BC 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 FC 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 64 02 00 35 04 06 00 80 86 CD 36 5C F7 FA DD 15 A9 9C 99 B3 64 [10:18:36]CheckFolder [10:18:36]dirname=/storage/ofd_packets [10:18:36]CheckFolder done [10:18:36]ProducePacketName [10:18:36]name=ofd_packets/00156841 [10:18:36]NVStorageSaveData ofd_packets/00156841 [10:18:36]File name is /storage/ofd_packets/00156841 [10:18:36]Write 301 bytes [10:18:36]NVStorageSaveData done [10:18:36]OFDSenderStorePacket done [10:18:36]KKMCreateOFDPacket done [10:18:36]NVStorageSaveData kkm_last_timestamp [10:18:36]File name is /storage/kkm_last_timestamp [10:18:36]Write 4 bytes [10:18:36]NVStorageSaveData done [10:18:36]ExternCall_PrintAddStr [10:18:36]wPrintStart [10:18:36]Write to MH i2c: 01 00 00 E8 11 F9 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 07 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 07 00 E8 11 00 00 00 00 00 FF 0F 0E [10:18:36]RasterBufferAndPrint [10:18:36]line Счет N : (1)99654 [10:18:36]line ИНН: 02508201610067 [10:18:36]line Контрольно-Кассовый Чек [10:18:36]line ПРОДАЖА [10:18:36]line ТРК (МРК, ГНК) : 31 [10:18:36]line Товар: 2710124130 [10:18:36]line Аи-92-К-5 [10:18:36]line 7.480 * 66.90 [10:18:36]line = 500.41 [10:18:36]line НДС 12% НСП 1% [10:18:36]line > о реализуемом товаре [10:18:36]line ОКРУГЛЕНИЕ: -0.41 [10:18:36]line ИТОГО: 500.00 [10:18:36]line Внесено: 500.00 [10:18:36]line СДАЧА: 0.00 [10:18:36]line НСП 1% : 4.43 [10:18:36]line НДС 12% : 53.14 [10:18:36]line Наличными: 500.00 [10:18:36]line Безнал.: 0.00 [10:18:36]line Место: АЗС № 143 "Партнер Нефть" [10:18:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:18:36]line СНО: Общий режим [10:18:36]line Чек 57 28.10.2024 10:18 [10:18:36]line Смена: 538 ФФД: 1.0 [10:18:36]line ЗНМ: 0300000096 [10:18:36]line РНМ: 0000000000091693 [10:18:36]line Версия ККМ: 001 [10:18:36]line ФМ: 0000000000871792 [10:18:36]line ФД: 156841 [10:18:36]line ФПД: 141316456865015 [10:18:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101836&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156841&fm=141316456865015&tin=02508201610067®Number=0000000000091693&sum=50000 [10:18:36]OFD Sender: Processing packet 156841 [packets to send 31, broken 30] [10:18:36]ProducePacketName [10:18:36]name=ofd_packets/00156841 [10:18:36]OFD Sender: To server: pG, [10:18:36]CommunicateWithHost lk.salyk.kg:30040 [10:18:36]ConnectInit lk.salyk.kg [10:18:36]written 0, free lines is 4095 [10:18:36]Connected sock=10 [10: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 37 39 32 0F 01 00 00 7B BC 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 39 00 00 00 F4 03 04 00 FC 64 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 64 02 00 35 04 06 00 80 86 CD 36 5C F7 FA DD 15 A9 9C 99 B3 64 [10: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 37 39 32 4F 00 00 00 B1 16 47 00 BF 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 64 02 00 F4 03 04 00 69 0A 1F 67 B6 04 01 00 00 63 B6 74 23 BE B2 2B 59 [10:18:36]CommunicateWithHost err = 0 [10:18:36]CheckOFDResponse [10:18:36]1017 (14) - 77093643461234 [10:18:36]1041 (16) - 0000000000871792 [10:18:36]1040 (4) - 156841 [10:18:36]1012 (4) - 28.10.2024 03:52 [10:18:36]1206 (1) - 0 [10:18:36]OFD Sender: Remove packet 156841 [10:18:36]ProducePacketName [10:18:36]name=ofd_packets/00156841 [10:18:36]NVStorageDeleteData [10:18:36]Write to MH i2c: 01 00 00 13 12 25 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 07 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 D4 0C 0C [10:18:36]RasterBufferAndPrint [10:18:36]line [10:18:36]line [10:18:36]line [10:18:36]line [10:18:36]line [10:18:36]written 0, free lines is 3292 [10:18:36]process_action close_receipt done [10:18:36]requested_data is exist [10:18:36]produce_requested_data [10:18:36]requested_item fm.sn is exist - process it [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 11 00 00 [10:18:36]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:36]Read from MH i2c: E2 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 [10:18:36]MH_I2C_Read... [10:18:36]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [10:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:18:36]wFMCommunicate OK [10:18:36]requested_item fd.num is exist - process it [10:18:36]SAM_PROTO_GetFieldsCounters [10:18:36]wFMCommunicate request_size=4 [10:18:36]MH_SAM_APDU [10:18:36]CAPDU: 80 13 00 00 [10:18:36]Write to MH i2c: E2 08 00 1B 12 80 13 00 00 00 00 00 00 A9 [10:18:36]Write i2c OK [10:18:36]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 62 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 62 00 1B 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 64 02 00 0E 04 04 00 1A 02 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 A5 [10:18: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 64 02 00 0E 04 04 00 1A 02 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 [10:18:37]wFMCommunicate OK [10:18:37]SAM_PROTO_GetFieldsCounters done [10:18:37]requested_item shift.num is exist - process it [10:18:37]requested_item shift.opened is exist - process it [10:18:37]req_shift_opened [10:18:37]FM_GetShiftState [10:18:37]SAM_PROTO_GetShiftState [10:18:37]wFMCommunicate request_size=4 [10:18:37]MH_SAM_APDU [10:18:37]CAPDU: 80 13 01 00 [10:18:37]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [10:18:37]Write i2c OK [10:18:37]MH_I2C_Read... [10:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:37]Read from MH i2c: E2 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0E 00 [10:18:37]MH_I2C_Read... [10:18:37]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9D [10:18:37]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:18:37]wFMCommunicate OK [10:18:37]SAM_PROTO_GetShiftState done [10:18:37]FM_GetShiftState done [10:18:37]req_shift_opened done [10:18:37]requested_item shift.open_date is exist - process it [10:18:37]req_shift_open_date [10:18:37]req_shift_open_date done [10:18:37]produce_requested_data done [10:18:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156841,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:18:37]process_action_free close_receipt [10:18:37]json_value_free [10:18:37]json_value_free done [10:18:37]process_json_proto returns [10:18:37]Send response to host [10:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156841,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:18:37]free response buf [10:18:37]execute_script done [10:18:37]execute_script returns [10:18:37]free content buf [10:18:37]Sock 9.Close socket [10:18:37]Sock 9.Thread stoped [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:34]accept exits with 7 [10:20:34]New connection [10:20:34]New thread 3066604900 created [10:20:34]Thread 3066748260 joined [10:20:34]Waiting for new connection... [10:20:34] Sock 7.Parse request [10:20:34]Sock 7.Check first char [10:20:34]Sock 7.First char is OK [10:20:34]request: POST /json_proto HTTP/1.0 [10:20:34]Method: POST [10:20:34]URL: /json_proto [10:20:34]Method is POST - this is cgi request [10:20:34]url: /json_proto [10:20:34]query_string will be loaded in cgi processing [10:20:34]execute_cgi json_proto POST (null) [10:20:34]execute_cgi path=json_proto method=POST [10:20:34]POST find Content-Length [10:20:34]Host: 172.17.63.3:8080 [10:20:34]Content-Length: 676 [10:20:34]Content-Type: application/json [10:20:34] [10:20:34]POST finish read [10:20:34]Found Content-Length = 676 [10:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:20:34]execute_script... [10:20: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)99655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:20:34]POST & json_proto [10:20:34]process_json_proto [10:20:34]json parsed OK: [10:20:34]protocol is kg_v1.0 [10:20:34]action value=close_receipt [10:20:34]process_action close_receipt [10:20:34]cmd_close_receipt [10:20:34]MH_GetDate [10:20:34]Write to MH i2c: F0 00 00 1D 12 1E [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: F0 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: F0 09 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: F0 09 00 1D 12 00 74 65 1F 67 50 D1 6C 64 77 [10:20:34]GetLastDocTimeStamp 1730110716 [10:20:34]current date 1730110836 [10:20:34]FM_GetShiftState [10:20:34]SAM_PROTO_GetShiftState [10:20:34]wFMCommunicate request_size=4 [10:20:34]MH_SAM_APDU [10:20:34]CAPDU: 80 13 01 00 [10:20:34]Write to MH i2c: E2 08 00 1E 12 80 13 01 00 00 00 00 00 AD [10:20:34]Write i2c OK [10:20:34]MH_I2C_Read... [10:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:34]Read from MH i2c: E2 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0E 00 [10:20:34]MH_I2C_Read... [10:20:34]Read from MH i2c: E2 0E 00 1E 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9F [10:20:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:20:34]wFMCommunicate OK [10:20:34]SAM_PROTO_GetShiftState done [10:20:34]FM_GetShiftState done [10:20:34]opened in 1730075526 [10:20:34]opened+sec_in_day 1730161926 [10:20:34]quantity*price = 30038 [10:20:34]sum+1 = 30039 [10:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 58 28.10.2024 10:20 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156842 ФПД: 36402948641170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102036&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156842&fm=36402948641170&tin=02508201610067®Number=0000000000091693&sum=30000 [10:20:35]StoreToDocumentArchive [10:20:35]shift 538 fd 156842 [10:20:35]save to /storage/0538/doc_00156842 [10:20:35]save last doc name /storage/0538/doc_00156842 to /storage/kkm_last_doc_name [10:20:35]save OK [10:20:35]Clear old archive folders... [10:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:35]tlvbuf is 01A7E420 [10:20:35]SAM_PROTO_ClearQueue [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 09 00 00 [10:20:35]Write to MH i2c: E2 08 00 2B 12 80 09 00 00 00 00 00 00 AF [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [10:20:35]RAPDU: 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_ClearQueue done [10:20:35]KKMCreateOFDPacket [10:20:35]OFDProtocolAddRootSTLVToBuf [10:20:35]FM_MakeSignedData [10:20:35]FM_MakeSignedData [10:20:35]SAM_PROTO_SignData [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 0D 01 02 [10:20:35]Write to MH i2c: E2 08 00 2C 12 80 0D 01 02 00 00 00 00 B7 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [10:20:35]RAPDU: 90 00 [10:20:35]wFMCommunicate OK [10:20:35]wFMCommunicate request_size=255 [10:20:35]MH_SAM_APDU [10:20: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 65 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 64 02 00 35 04 06 00 21 [10:20:35]Write to MH i2c: E2 02 01 2D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 65 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 64 02 00 35 04 06 00 21 00 00 25 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 2D 12 00 90 00 B3 [10:20:35]RAPDU: 90 00 [10:20:35]wFMCommunicate OK [10:20:35]wFMCommunicate request_size=10 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 0D 02 02 05 1B B8 D2 91 92 [10:20:35]Write to MH i2c: E2 0D 00 2E 12 80 0D 02 02 05 00 1B B8 D2 91 92 00 00 8C [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 03 00 2E 12 00 90 00 B4 [10:20:35]RAPDU: 90 00 [10:20:35]wFMCommunicate OK [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 0D 03 02 [10:20:35]Write to MH i2c: E2 08 00 2F 12 80 0D 03 02 00 00 00 00 BC [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0B 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 0B 00 2F 12 00 61 C9 B1 63 8E 34 B4 32 90 00 A3 [10:20:35]RAPDU: 61 C9 B1 63 8E 34 B4 32 90 00 [10:20:35]wFMCommunicate OK [10:20:35]SAM_PROTO_SignData done [10:20:35]FM_MakeSignedData done [10:20:35]CreateOFDProtocolMessage [10:20:35]wFMCommunicate request_size=4 [10:20:35]MH_SAM_APDU [10:20:35]CAPDU: 80 11 00 00 [10:20:35]Write to MH i2c: E2 08 00 30 12 80 11 00 00 00 00 00 00 BC [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:35]Read from MH i2c: E2 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: E2 17 00 30 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 11 [10:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:20:35]wFMCommunicate OK [10:20:35]CreateOFDProtocolMessage done [10:20:35]OFDSenderStorePacket 156842 [10:20:35]StoreOFDPacket docnum=156842 [10:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 9A 07 01 97 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 65 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 64 02 00 35 04 06 00 21 1B B8 D2 91 92 61 C9 B1 63 8E 34 B4 32 [10:20:35]CheckFolder [10:20:35]dirname=/storage/ofd_packets [10:20:35]CheckFolder done [10:20:35]ProducePacketName [10:20:35]name=ofd_packets/00156842 [10:20:35]NVStorageSaveData ofd_packets/00156842 [10:20:35]File name is /storage/ofd_packets/00156842 [10:20:35]Write 301 bytes [10:20:35]NVStorageSaveData done [10:20:35]OFDSenderStorePacket done [10:20:35]KKMCreateOFDPacket done [10:20:35]NVStorageSaveData kkm_last_timestamp [10:20:35]File name is /storage/kkm_last_timestamp [10:20:35]Write 4 bytes [10:20:35]NVStorageSaveData done [10:20:35]ExternCall_PrintAddStr [10:20:35]wPrintStart [10:20:35]Write to MH i2c: 01 00 00 31 12 43 [10:20:35]Write i2c OK [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 [10:20:35]MH_I2C_Read... [10:20:35]Read from MH i2c: 01 07 00 31 12 00 00 00 00 00 FF 0F 58 [10:20:35]RasterBufferAndPrint [10:20:35]line Счет N : (1)99655 [10:20:35]line ИНН: 02508201610067 [10:20:35]line Контрольно-Кассовый Чек [10:20:35]line ПРОДАЖА [10:20:35]line ТРК (МРК, ГНК) : 31 [10:20:35]line Товар: 2710124130 [10:20:35]line Аи-92-К-5 [10:20:35]line 4.490 * 66.90 [10:20:35]line = 300.38 [10:20:35]line НДС 12% НСП 1% [10:20:35]line > о реализуемом товаре [10:20:35]line ОКРУГЛЕНИЕ: -0.38 [10:20:35]line ИТОГО: 300.00 [10:20:35]line Внесено: 300.00 [10:20:35]line СДАЧА: 0.00 [10:20:35]line НСП 1% : 2.66 [10:20:35]line НДС 12% : 31.90 [10:20:35]line Наличными: 300.00 [10:20:35]line Безнал.: 0.00 [10:20:35]line Место: АЗС № 143 "Партнер Нефть" [10:20:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:20:35]line СНО: Общий режим [10:20:35]line Чек 58 28.10.2024 10:20 [10:20:35]line Смена: 538 ФФД: 1.0 [10:20:35]line ЗНМ: 0300000096 [10:20:35]line РНМ: 0000000000091693 [10:20:35]line Версия ККМ: 001 [10:20:35]line ФМ: 0000000000871792 [10:20:35]line ФД: 156842 [10:20:35]line ФПД: 36402948641170 [10:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102036&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156842&fm=36402948641170&tin=02508201610067®Number=0000000000091693&sum=30000 [10:20:36]OFD Sender: Processing packet 156842 [packets to send 31, broken 30] [10:20:36]ProducePacketName [10:20:36]name=ofd_packets/00156842 [10:20:36]OFD Sender: To server: pG, [10:20:36]CommunicateWithHost lk.salyk.kg:30040 [10:20:36]ConnectInit lk.salyk.kg [10:20:36]written 0, free lines is 4095 [10:20:36]Connected sock=10 [10:20: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 37 39 32 0F 01 00 00 E5 9A 07 01 97 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 65 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 64 02 00 35 04 06 00 21 1B B8 D2 91 92 61 C9 B1 63 8E 34 B4 32 [10:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E1 97 47 00 2F 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 64 02 00 F4 03 04 00 E1 0A 1F 67 B6 04 01 00 00 ED 47 5C 84 F2 A5 94 D8 [10:20:36]CommunicateWithHost err = 0 [10:20:36]CheckOFDResponse [10:20:36]1017 (14) - 77093643461234 [10:20:36]1041 (16) - 0000000000871792 [10:20:36]1040 (4) - 156842 [10:20:36]1012 (4) - 28.10.2024 03:54 [10:20:36]1206 (1) - 0 [10:20:36]OFD Sender: Remove packet 156842 [10:20:36]ProducePacketName [10:20:36]name=ofd_packets/00156842 [10:20:36]NVStorageDeleteData [10:20:36]Write to MH i2c: 01 00 00 5C 12 6E [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: 01 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: 01 07 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: 01 07 00 5C 12 00 00 00 00 00 E4 0C 65 [10:20:36]RasterBufferAndPrint [10:20:36]line [10:20:36]line [10:20:36]line [10:20:36]line [10:20:36]line [10:20:36]written 0, free lines is 3306 [10:20:36]process_action close_receipt done [10:20:36]requested_data is exist [10:20:36]produce_requested_data [10:20:36]requested_item fm.sn is exist - process it [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 11 00 00 [10:20:36]Write to MH i2c: E2 08 00 63 12 80 11 00 00 00 00 00 00 EF [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 17 00 [10:20:36]MH_I2C_Read... [10:20:36]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 37 39 32 90 00 44 [10:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:20:36]wFMCommunicate OK [10:20:36]requested_item fd.num is exist - process it [10:20:36]SAM_PROTO_GetFieldsCounters [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 00 00 [10:20:36]Write to MH i2c: E2 08 00 64 12 80 13 00 00 00 00 00 00 F2 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 62 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 62 00 64 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 64 02 00 0E 04 04 00 1A 02 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 F2 [10:20: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 64 02 00 0E 04 04 00 1A 02 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 [10:20:36]wFMCommunicate OK [10:20:36]SAM_PROTO_GetFieldsCounters done [10:20:36]requested_item shift.num is exist - process it [10:20:36]requested_item shift.opened is exist - process it [10:20:36]req_shift_opened [10:20:36]FM_GetShiftState [10:20:36]SAM_PROTO_GetShiftState [10:20:36]wFMCommunicate request_size=4 [10:20:36]MH_SAM_APDU [10:20:36]CAPDU: 80 13 01 00 [10:20:36]Write to MH i2c: E2 08 00 65 12 80 13 01 00 00 00 00 00 F4 [10:20:36]Write i2c OK [10:20:36]MH_I2C_Read... [10:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:36]Read from MH i2c: E2 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 [10:20:36]MH_I2C_Read... [10:20:36]Read from MH i2c: E2 0E 00 65 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E6 [10:20:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:20:36]wFMCommunicate OK [10:20:36]SAM_PROTO_GetShiftState done [10:20:36]FM_GetShiftState done [10:20:36]req_shift_opened done [10:20:36]requested_item shift.open_date is exist - process it [10:20:36]req_shift_open_date [10:20:36]req_shift_open_date done [10:20:36]produce_requested_data done [10:20:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156842,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:20:36]process_action_free close_receipt [10:20:36]json_value_free [10:20:36]json_value_free done [10:20:36]process_json_proto returns [10:20:36]Send response to host [10:20:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156842,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:20:36]free response buf [10:20:36]execute_script done [10:20:36]execute_script returns [10:20:36]free content buf [10:20:36]Sock 7.Close socket [10:20:36]Sock 7.Thread stoped [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:18]accept exits with 9 [10:25:18]New connection [10:25:18]New thread 3066748260 created [10:25:18]Thread 3066604900 joined [10:25:18]Waiting for new connection... [10:25:18] Sock 9.Parse request [10:25:18]Sock 9.Check first char [10:25:18]Sock 9.First char is OK [10:25:18]request: POST /json_proto HTTP/1.0 [10:25:18]Method: POST [10:25:18]URL: /json_proto [10:25:18]Method is POST - this is cgi request [10:25:18]url: /json_proto [10:25:18]query_string will be loaded in cgi processing [10:25:18]execute_cgi json_proto POST (null) [10:25:18]execute_cgi path=json_proto method=POST [10:25:18]POST find Content-Length [10:25:18]Host: 172.17.63.3:8080 [10:25:18]Content-Length: 807 [10:25:18]Content-Type: application/json [10:25:18] [10:25:18]POST finish read [10:25:18]Found Content-Length = 807 [10:25:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564806.4564807", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:18]execute_script... [10:25: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)99656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564806.4564807", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:18]POST & json_proto [10:25:18]process_json_proto [10:25:18]json parsed OK: [10:25:18]protocol is kg_v1.0 [10:25:18]action value=close_receipt [10:25:18]process_action close_receipt [10:25:18]cmd_close_receipt [10:25:18]MH_GetDate [10:25:18]Write to MH i2c: F0 00 00 66 12 67 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: F0 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: F0 09 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: F0 09 00 66 12 00 90 66 1F 67 50 D1 6C 64 DD [10:25:18]GetLastDocTimeStamp 1730110836 [10:25:18]current date 1730111120 [10:25:18]FM_GetShiftState [10:25:18]SAM_PROTO_GetShiftState [10:25:18]wFMCommunicate request_size=4 [10:25:18]MH_SAM_APDU [10:25:18]CAPDU: 80 13 01 00 [10:25:18]Write to MH i2c: E2 08 00 67 12 80 13 01 00 00 00 00 00 F6 [10:25:18]Write i2c OK [10:25:18]MH_I2C_Read... [10:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:18]Read from MH i2c: E2 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 0E 00 [10:25:18]MH_I2C_Read... [10:25:18]Read from MH i2c: E2 0E 00 67 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E8 [10:25:18]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:25:18]wFMCommunicate OK [10:25:18]SAM_PROTO_GetShiftState done [10:25:18]FM_GetShiftState done [10:25:18]opened in 1730075526 [10:25:18]opened+sec_in_day 1730161926 [10:25:18]quantity*price = 0 [10:25:18]sum+1 = 1 [10:25:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 59 28.10.2024 10:25 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4564806.4564807 ФМ: 0000000000871792 ФД: 156843 ФПД: 222564376833062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156843&fm=222564376833062&tin=02508201610067®Number=0000000000091693&sum=0 [10:25:19]StoreToDocumentArchive [10:25:19]shift 538 fd 156843 [10:25:19]save to /storage/0538/doc_00156843 [10:25:19]save last doc name /storage/0538/doc_00156843 to /storage/kkm_last_doc_name [10:25:19]save OK [10:25:19]Clear old archive folders... [10:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:25:19]tlvbuf is B6E764D0 [10:25:19]SAM_PROTO_ClearQueue [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 09 00 00 [10:25:19]Write to MH i2c: E2 08 00 74 12 80 09 00 00 00 00 00 00 F8 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 74 12 00 90 00 FA [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_ClearQueue done [10:25:19]KKMCreateOFDPacket [10:25:19]OFDProtocolAddRootSTLVToBuf [10:25:19]FM_MakeSignedData [10:25:19]FM_MakeSignedData [10:25:19]SAM_PROTO_SignData [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 01 02 [10:25:19]Write to MH i2c: E2 08 00 75 12 80 0D 01 02 00 00 00 00 00 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 75 12 00 90 00 FB [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]wFMCommunicate request_size=255 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 90 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 64 02 00 35 04 06 00 CA [10:25:19]Write to MH i2c: E2 02 01 76 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 90 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 64 02 00 35 04 06 00 CA 00 00 2B [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 76 12 00 90 00 FC [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]wFMCommunicate request_size=10 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 02 02 05 6B CE 9E EC 26 [10:25:19]Write to MH i2c: E2 0D 00 77 12 80 0D 02 02 05 00 6B CE 9E EC 26 00 00 F6 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [10:25:19]RAPDU: 90 00 [10:25:19]wFMCommunicate OK [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 0D 03 02 [10:25:19]Write to MH i2c: E2 08 00 78 12 80 0D 03 02 00 00 00 00 05 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0B 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 0B 00 78 12 00 42 F9 44 6C 99 90 72 33 90 00 BF [10:25:19]RAPDU: 42 F9 44 6C 99 90 72 33 90 00 [10:25:19]wFMCommunicate OK [10:25:19]SAM_PROTO_SignData done [10:25:19]FM_MakeSignedData done [10:25:19]CreateOFDProtocolMessage [10:25:19]wFMCommunicate request_size=4 [10:25:19]MH_SAM_APDU [10:25:19]CAPDU: 80 11 00 00 [10:25:19]Write to MH i2c: E2 08 00 79 12 80 11 00 00 00 00 00 00 05 [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:19]Read from MH i2c: E2 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: E2 17 00 79 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [10:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:25:19]wFMCommunicate OK [10:25:19]CreateOFDProtocolMessage done [10:25:19]OFDSenderStorePacket 156843 [10:25:19]StoreOFDPacket docnum=156843 [10:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 77 07 01 6E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 90 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 64 02 00 35 04 06 00 CA 6B CE 9E EC 26 42 F9 44 6C 99 90 72 33 [10:25:19]CheckFolder [10:25:19]dirname=/storage/ofd_packets [10:25:19]CheckFolder done [10:25:19]ProducePacketName [10:25:19]name=ofd_packets/00156843 [10:25:19]NVStorageSaveData ofd_packets/00156843 [10:25:19]File name is /storage/ofd_packets/00156843 [10:25:19]Write 301 bytes [10:25:19]NVStorageSaveData done [10:25:19]OFDSenderStorePacket done [10:25:19]KKMCreateOFDPacket done [10:25:19]NVStorageSaveData kkm_last_timestamp [10:25:19]File name is /storage/kkm_last_timestamp [10:25:19]Write 4 bytes [10:25:19]NVStorageSaveData done [10:25:19]ExternCall_PrintAddStr [10:25:19]wPrintStart [10:25:19]Write to MH i2c: 01 00 00 7A 12 8C [10:25:19]Write i2c OK [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 [10:25:19]MH_I2C_Read... [10:25:19]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 FF 0F A1 [10:25:19]RasterBufferAndPrint [10:25:19]line Счет N : (1)99656 [10:25:19]line ИНН: 02508201610067 [10:25:19]line Контрольно-Кассовый Чек [10:25:19]line ПРОДАЖА [10:25:19]line ТРК (МРК, ГНК) : 31 [10:25:19]line Товар: 2710124130 [10:25:19]line Аи-92-К-5 [10:25:19]line 20.000 * 0.00 [10:25:19]line = 0.00 [10:25:19]line НДС 12% НСП 1% [10:25:19]line > о реализуемом товаре [10:25:19]line ИТОГО: 0.00 [10:25:19]line НСП 1% : 0.00 [10:25:19]line НДС 12% : 0.00 [10:25:19]line Наличными: 0.00 [10:25:19]line Безнал.: 0.00 [10:25:19]line Место: АЗС № 143 "Партнер Нефть" [10:25:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:25:19]line СНО: Общий режим [10:25:19]line Чек 59 28.10.2024 10:25 [10:25:19]line Смена: 538 ФФД: 1.0 [10:25:19]line ЗНМ: 0300000096 [10:25:19]line РНМ: 0000000000091693 [10:25:19]line Версия ККМ: 001 [10:25:19]line Талоны: Топливные Талоны [10:25:19]line 4564806.4564807 [10:25:19]line ФМ: 0000000000871792 [10:25:19]line ФД: 156843 [10:25:19]line ФПД: 222564376833062 [10:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156843&fm=222564376833062&tin=02508201610067®Number=0000000000091693&sum=0 [10:25:20]written 0, free lines is 4095 [10:25:20]OFD Sender: Processing packet 156843 [packets to send 31, broken 30] [10:25:20]ProducePacketName [10:25:20]name=ofd_packets/00156843 [10:25:20]OFD Sender: To server: pG, [10:25:20]CommunicateWithHost lk.salyk.kg:30040 [10:25:20]ConnectInit lk.salyk.kg [10:25:20]Connected sock=10 [10:25: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 37 39 32 0F 01 00 00 CD 77 07 01 6E 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 90 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 64 02 00 35 04 06 00 CA 6B CE 9E EC 26 42 F9 44 6C 99 90 72 33 [10:25:20]Write to MH i2c: 01 00 00 A4 12 B6 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 EE 0C B7 [10:25:20]RasterBufferAndPrint [10:25:20]line [10:25:20]line [10:25:20]line [10:25:20]line [10:25:20]line [10:25:20]written 0, free lines is 3316 [10:25:20]process_action close_receipt done [10:25:20]requested_data is exist [10:25:20]produce_requested_data [10:25:20]requested_item fm.sn is exist - process it [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 11 00 00 [10:25:20]Write to MH i2c: E2 08 00 AB 12 80 11 00 00 00 00 00 00 37 [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 17 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 17 00 AB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [10:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:25:20]wFMCommunicate OK [10:25:20]requested_item fd.num is exist - process it [10:25:20]SAM_PROTO_GetFieldsCounters [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 13 00 00 [10:25:20]Write to MH i2c: E2 08 00 AC 12 80 13 00 00 00 00 00 00 3A [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C0 89 47 00 5E 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 37 39 32 10 04 04 00 AB 64 02 00 F4 03 04 00 FD 0B 1F 67 B6 04 01 00 00 3F 37 CC 22 2B 06 C5 D1 [10:25:20]CommunicateWithHost err = 0 [10:25:20]CheckOFDResponse [10:25:20]1017 (14) - 77093643461234 [10:25:20]1041 (16) - 0000000000871792 [10:25:20]1040 (4) - 156843 [10:25:20]1012 (4) - 28.10.2024 03:58 [10:25:20]1206 (1) - 0 [10:25:20]OFD Sender: Remove packet 156843 [10:25:20]ProducePacketName [10:25:20]name=ofd_packets/00156843 [10:25:20]NVStorageDeleteData [10:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 62 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 62 00 AC 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 64 02 00 0E 04 04 00 1A 02 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 3E [10:25: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AB 64 02 00 0E 04 04 00 1A 02 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 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_GetFieldsCounters done [10:25:20]requested_item shift.num is exist - process it [10:25:20]requested_item shift.opened is exist - process it [10:25:20]req_shift_opened [10:25:20]FM_GetShiftState [10:25:20]SAM_PROTO_GetShiftState [10:25:20]wFMCommunicate request_size=4 [10:25:20]MH_SAM_APDU [10:25:20]CAPDU: 80 13 01 00 [10:25:20]Write to MH i2c: E2 08 00 AD 12 80 13 01 00 00 00 00 00 3C [10:25:20]Write i2c OK [10:25:20]MH_I2C_Read... [10:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:20]Read from MH i2c: E2 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 [10:25:20]MH_I2C_Read... [10:25:20]Read from MH i2c: E2 0E 00 AD 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2E [10:25:20]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:25:20]wFMCommunicate OK [10:25:20]SAM_PROTO_GetShiftState done [10:25:20]FM_GetShiftState done [10:25:20]req_shift_opened done [10:25:20]requested_item shift.open_date is exist - process it [10:25:20]req_shift_open_date [10:25:20]req_shift_open_date done [10:25:20]produce_requested_data done [10:25:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156843,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:25:20]process_action_free close_receipt [10:25:20]json_value_free [10:25:20]json_value_free done [10:25:20]process_json_proto returns [10:25:20]Send response to host [10:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156843,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:25:20]free response buf [10:25:20]execute_script done [10:25:20]execute_script returns [10:25:20]free content buf [10:25:20]Sock 9.Close socket [10:25:20]Sock 9.Thread stoped [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:17]accept exits with 7 [10:26:17]New connection [10:26:17]New thread 3066604900 created [10:26:17]Thread 3066748260 joined [10:26:17]Waiting for new connection... [10:26:17] Sock 7.Parse request [10:26:17]Sock 7.Check first char [10:26:17]Sock 7.First char is OK [10:26:17]request: POST /json_proto HTTP/1.0 [10:26:17]Method: POST [10:26:17]URL: /json_proto [10:26:17]Method is POST - this is cgi request [10:26:17]url: /json_proto [10:26:17]query_string will be loaded in cgi processing [10:26:17]execute_cgi json_proto POST (null) [10:26:17]execute_cgi path=json_proto method=POST [10:26:17]POST find Content-Length [10:26:17]Host: 172.17.63.3:8080 [10:26:17]Content-Length: 799 [10:26:17]Content-Type: application/json [10:26:17] [10:26:17]POST finish read [10:26:17]Found Content-Length = 799 [10:26:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564812", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:17]execute_script... [10:26: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)99657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564812", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:17]POST & json_proto [10:26:17]process_json_proto [10:26:17]json parsed OK: [10:26:17]protocol is kg_v1.0 [10:26:17]action value=close_receipt [10:26:17]process_action close_receipt [10:26:17]cmd_close_receipt [10:26:17]MH_GetDate [10:26:17]Write to MH i2c: F0 00 00 AE 12 AF [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 [10:26:17]MH_I2C_Read... [10:26:17]Read from MH i2c: F0 09 00 AE 12 00 CC 66 1F 67 50 D1 6C 64 61 [10:26:17]GetLastDocTimeStamp 1730111120 [10:26:17]current date 1730111180 [10:26:17]FM_GetShiftState [10:26:17]SAM_PROTO_GetShiftState [10:26:17]wFMCommunicate request_size=4 [10:26:17]MH_SAM_APDU [10:26:17]CAPDU: 80 13 01 00 [10:26:17]Write to MH i2c: E2 08 00 AF 12 80 13 01 00 00 00 00 00 3E [10:26:17]Write i2c OK [10:26:17]MH_I2C_Read... [10:26:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:18]Read from MH i2c: E2 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 [10:26:18]MH_I2C_Read... [10:26:18]Read from MH i2c: E2 0E 00 AF 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 30 [10:26:18]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:26:18]wFMCommunicate OK [10:26:18]SAM_PROTO_GetShiftState done [10:26:18]FM_GetShiftState done [10:26:18]opened in 1730075526 [10:26:18]opened+sec_in_day 1730161926 [10:26:18]quantity*price = 0 [10:26:18]sum+1 = 1 [10:26:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 60 28.10.2024 10:26 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4564812 ФМ: 0000000000871792 ФД: 156844 ФПД: 61802870403799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156844&fm=61802870403799&tin=02508201610067®Number=0000000000091693&sum=0 [10:26:19]StoreToDocumentArchive [10:26:19]shift 538 fd 156844 [10:26:19]save to /storage/0538/doc_00156844 [10:26:19]save last doc name /storage/0538/doc_00156844 to /storage/kkm_last_doc_name [10:26:19]save OK [10:26:19]Clear old archive folders... [10:26:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:19]tlvbuf is 01A7E300 [10:26:19]SAM_PROTO_ClearQueue [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 09 00 00 [10:26:19]Write to MH i2c: E2 08 00 BC 12 80 09 00 00 00 00 00 00 40 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_ClearQueue done [10:26:19]KKMCreateOFDPacket [10:26:19]OFDProtocolAddRootSTLVToBuf [10:26:19]FM_MakeSignedData [10:26:19]FM_MakeSignedData [10:26:19]SAM_PROTO_SignData [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 01 02 [10:26:19]Write to MH i2c: E2 08 00 BD 12 80 0D 01 02 00 00 00 00 48 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=255 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CC 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 64 02 00 35 04 06 00 38 [10:26:19]Write to MH i2c: E2 02 01 BE 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CC 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 64 02 00 35 04 06 00 38 00 00 E8 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=10 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 02 02 05 35 9A 22 F2 D7 [10:26:19]Write to MH i2c: E2 0D 00 BF 12 80 0D 02 02 05 00 35 9A 22 F2 D7 00 00 0F [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 03 00 BF 12 00 90 00 45 [10:26:19]RAPDU: 90 00 [10:26:19]wFMCommunicate OK [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 0D 03 02 [10:26:19]Write to MH i2c: E2 08 00 C0 12 80 0D 03 02 00 00 00 00 4D [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 0B 00 C0 12 00 06 F6 5C 86 5C EF 7E 2A 90 00 1F [10:26:19]RAPDU: 06 F6 5C 86 5C EF 7E 2A 90 00 [10:26:19]wFMCommunicate OK [10:26:19]SAM_PROTO_SignData done [10:26:19]FM_MakeSignedData done [10:26:19]CreateOFDProtocolMessage [10:26:19]wFMCommunicate request_size=4 [10:26:19]MH_SAM_APDU [10:26:19]CAPDU: 80 11 00 00 [10:26:19]Write to MH i2c: E2 08 00 C1 12 80 11 00 00 00 00 00 00 4D [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:19]Read from MH i2c: E2 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: E2 17 00 C1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [10:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:26:19]wFMCommunicate OK [10:26:19]CreateOFDProtocolMessage done [10:26:19]OFDSenderStorePacket 156844 [10:26:19]StoreOFDPacket docnum=156844 [10:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 27 A7 07 01 A5 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CC 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 64 02 00 35 04 06 00 38 35 9A 22 F2 D7 06 F6 5C 86 5C EF 7E 2A [10:26:19]CheckFolder [10:26:19]dirname=/storage/ofd_packets [10:26:19]CheckFolder done [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00156844 [10:26:19]NVStorageSaveData ofd_packets/00156844 [10:26:19]File name is /storage/ofd_packets/00156844 [10:26:19]Write 301 bytes [10:26:19]NVStorageSaveData done [10:26:19]OFDSenderStorePacket done [10:26:19]KKMCreateOFDPacket done [10:26:19]NVStorageSaveData kkm_last_timestamp [10:26:19]File name is /storage/kkm_last_timestamp [10:26:19]Write 4 bytes [10:26:19]NVStorageSaveData done [10:26:19]OFD Sender: Processing packet 156844 [packets to send 31, broken 30] [10:26:19]ProducePacketName [10:26:19]name=ofd_packets/00156844 [10:26:19]OFD Sender: To server: pG, [10:26:19]CommunicateWithHost lk.salyk.kg:30040 [10:26:19]ConnectInit lk.salyk.kg [10:26:19]ExternCall_PrintAddStr [10:26:19]wPrintStart [10:26:19]Write to MH i2c: 01 00 00 C2 12 D4 [10:26:19]Write i2c OK [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 [10:26:19]MH_I2C_Read... [10:26:19]Read from MH i2c: 01 07 00 C2 12 00 00 00 00 00 FF 0F E9 [10:26:19]RasterBufferAndPrint [10:26:19]line Счет N : (1)99657 [10:26:19]line ИНН: 02508201610067 [10:26:19]line Контрольно-Кассовый Чек [10:26:19]line ПРОДАЖА [10:26:19]line ТРК (МРК, ГНК) : 31 [10:26:19]line Товар: 2710124130 [10:26:19]line Аи-92-К-5 [10:26:19]line 10.000 * 0.00 [10:26:19]line = 0.00 [10:26:19]line НДС 12% НСП 1% [10:26:19]line > о реализуемом товаре [10:26:19]line ИТОГО: 0.00 [10:26:19]line НСП 1% : 0.00 [10:26:19]line НДС 12% : 0.00 [10:26:19]line Наличными: 0.00 [10:26:19]line Безнал.: 0.00 [10:26:19]line Место: АЗС № 143 "Партнер Нефть" [10:26:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:26:19]line СНО: Общий режим [10:26:19]line Чек 60 28.10.2024 10:26 [10:26:19]line Смена: 538 ФФД: 1.0 [10:26:19]line ЗНМ: 0300000096 [10:26:19]line РНМ: 0000000000091693 [10:26:19]line Версия ККМ: 001 [10:26:19]line Талоны: Топливные Талоны [10:26:19]line 4564812 [10:26:19]line ФМ: 0000000000871792 [10:26:19]line ФД: 156844 [10:26:19]line ФПД: 61802870403799 [10:26:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156844&fm=61802870403799&tin=02508201610067®Number=0000000000091693&sum=0 [10:26:20]Connected sock=11 [10:26: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 37 39 32 0F 01 00 00 27 A7 07 01 A5 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 CC 66 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 64 02 00 35 04 06 00 38 35 9A 22 F2 D7 06 F6 5C 86 5C EF 7E 2A [10:26:20]written 0, free lines is 4095 [10:26:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FD B7 47 00 22 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 64 02 00 F4 03 04 00 39 0C 1F 67 B6 04 01 00 00 8B C7 A5 5A 7F 0A 2D B4 [10:26:20]CommunicateWithHost err = 0 [10:26:20]CheckOFDResponse [10:26:20]1017 (14) - 77093643461234 [10:26:20]1041 (16) - 0000000000871792 [10:26:20]1040 (4) - 156844 [10:26:20]1012 (4) - 28.10.2024 03:59 [10:26:20]1206 (1) - 0 [10:26:20]OFD Sender: Remove packet 156844 [10:26:20]ProducePacketName [10:26:20]name=ofd_packets/00156844 [10:26:20]NVStorageDeleteData [10:26:20]Write to MH i2c: 01 00 00 EC 12 FE [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: 01 07 00 EC 12 00 00 00 00 00 ED 0C FE [10:26:20]RasterBufferAndPrint [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]line [10:26:20]written 0, free lines is 3315 [10:26:20]process_action close_receipt done [10:26:20]requested_data is exist [10:26:20]produce_requested_data [10:26:20]requested_item fm.sn is exist - process it [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 11 00 00 [10:26:20]Write to MH i2c: E2 08 00 F3 12 80 11 00 00 00 00 00 00 7F [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 17 00 F3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [10:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:26:20]wFMCommunicate OK [10:26:20]requested_item fd.num is exist - process it [10:26:20]SAM_PROTO_GetFieldsCounters [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 00 00 [10:26:20]Write to MH i2c: E2 08 00 F4 12 80 13 00 00 00 00 00 00 82 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 62 00 F4 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 64 02 00 0E 04 04 00 1A 02 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 8A [10: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 64 02 00 0E 04 04 00 1A 02 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 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetFieldsCounters done [10:26:20]requested_item shift.num is exist - process it [10:26:20]requested_item shift.opened is exist - process it [10:26:20]req_shift_opened [10:26:20]FM_GetShiftState [10:26:20]SAM_PROTO_GetShiftState [10:26:20]wFMCommunicate request_size=4 [10:26:20]MH_SAM_APDU [10:26:20]CAPDU: 80 13 01 00 [10:26:20]Write to MH i2c: E2 08 00 F5 12 80 13 01 00 00 00 00 00 84 [10:26:20]Write i2c OK [10:26:20]MH_I2C_Read... [10:26:20]OFD Sender: No OFD packet to send [10:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:20]Read from MH i2c: E2 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 [10:26:20]MH_I2C_Read... [10:26:20]Read from MH i2c: E2 0E 00 F5 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 76 [10:26:20]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:26:20]wFMCommunicate OK [10:26:20]SAM_PROTO_GetShiftState done [10:26:20]FM_GetShiftState done [10:26:20]req_shift_opened done [10:26:20]requested_item shift.open_date is exist - process it [10:26:20]req_shift_open_date [10:26:20]req_shift_open_date done [10:26:20]produce_requested_data done [10:26:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156844,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:26:20]process_action_free close_receipt [10:26:20]json_value_free [10:26:20]json_value_free done [10:26:20]process_json_proto returns [10:26:20]Send response to host [10:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156844,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:26:20]free response buf [10:26:20]execute_script done [10:26:20]execute_script returns [10:26:20]free content buf [10:26:20]Sock 7.Close socket [10:26:20]Sock 7.Thread stoped [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:43]accept exits with 9 [10:27:43]New connection [10:27:43]New thread 3066748260 created [10:27:43]Thread 3066604900 joined [10:27:43]Waiting for new connection... [10:27:43] Sock 9.Parse request [10:27:43]Sock 9.Check first char [10:27:43]Sock 9.First char is OK [10:27:43]request: POST /json_proto HTTP/1.0 [10:27:43]Method: POST [10:27:43]URL: /json_proto [10:27:43]Method is POST - this is cgi request [10:27:43]url: /json_proto [10:27:43]query_string will be loaded in cgi processing [10:27:43]execute_cgi json_proto POST (null) [10:27:43]execute_cgi path=json_proto method=POST [10:27:43]POST find Content-Length [10:27:43]Host: 172.17.63.3:8080 [10:27:43]Content-Length: 677 [10:27:43]Content-Type: application/json [10:27:43] [10:27:43]POST finish read [10:27:43]Found Content-Length = 677 [10:27:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [10:27:43]execute_script... [10: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)99658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [10:27:43]POST & json_proto [10:27:43]process_json_proto [10:27:43]json parsed OK: [10:27:43]protocol is kg_v1.0 [10:27:43]action value=close_receipt [10:27:43]process_action close_receipt [10:27:43]cmd_close_receipt [10:27:43]MH_GetDate [10:27:43]Write to MH i2c: F0 00 00 F6 12 F7 [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: F0 09 00 F6 12 00 21 67 1F 67 50 D1 6C 64 FF [10:27:43]GetLastDocTimeStamp 1730111180 [10:27:43]current date 1730111265 [10:27:43]FM_GetShiftState [10:27:43]SAM_PROTO_GetShiftState [10:27:43]wFMCommunicate request_size=4 [10:27:43]MH_SAM_APDU [10:27:43]CAPDU: 80 13 01 00 [10:27:43]Write to MH i2c: E2 08 00 F7 12 80 13 01 00 00 00 00 00 86 [10:27:43]Write i2c OK [10:27:43]MH_I2C_Read... [10:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:43]Read from MH i2c: E2 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 [10:27:43]MH_I2C_Read... [10:27:43]Read from MH i2c: E2 0E 00 F7 12 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 78 [10:27:43]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:27:43]wFMCommunicate OK [10:27:43]SAM_PROTO_GetShiftState done [10:27:43]FM_GetShiftState done [10:27:43]opened in 1730075526 [10:27:43]opened+sec_in_day 1730161926 [10:27:43]quantity*price = 80012 [10:27:43]sum+1 = 80013 [10:27:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 61 28.10.2024 10:27 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156845 ФПД: 121511081362555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102745&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156845&fm=121511081362555&tin=02508201610067®Number=0000000000091693&sum=80000 [10:27:44]StoreToDocumentArchive [10:27:44]shift 538 fd 156845 [10:27:44]save to /storage/0538/doc_00156845 [10:27:44]save last doc name /storage/0538/doc_00156845 to /storage/kkm_last_doc_name [10:27:44]save OK [10:27:44]Clear old archive folders... [10:27:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:44]tlvbuf is B6E76590 [10:27:44]SAM_PROTO_ClearQueue [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 09 00 00 [10:27:44]Write to MH i2c: E2 08 00 04 13 80 09 00 00 00 00 00 00 89 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 04 13 00 90 00 8B [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_ClearQueue done [10:27:44]KKMCreateOFDPacket [10:27:44]OFDProtocolAddRootSTLVToBuf [10:27:44]FM_MakeSignedData [10:27:44]FM_MakeSignedData [10:27:44]SAM_PROTO_SignData [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 01 02 [10:27:44]Write to MH i2c: E2 08 00 05 13 80 0D 01 02 00 00 00 00 91 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=255 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 3D 00 00 00 F4 03 04 00 21 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 64 02 00 35 04 06 00 6E [10:27:44]Write to MH i2c: E2 02 01 06 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 3D 00 00 00 F4 03 04 00 21 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 64 02 00 35 04 06 00 6E 00 00 F9 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=10 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 02 02 05 83 80 D7 44 7B [10:27:44]Write to MH i2c: E2 0D 00 07 13 80 0D 02 02 05 00 83 80 D7 44 7B 00 00 37 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [10:27:44]RAPDU: 90 00 [10:27:44]wFMCommunicate OK [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 0D 03 02 [10:27:44]Write to MH i2c: E2 08 00 08 13 80 0D 03 02 00 00 00 00 96 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0B 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 0B 00 08 13 00 FB B6 A3 9C F3 C0 50 9A 90 00 24 [10:27:44]RAPDU: FB B6 A3 9C F3 C0 50 9A 90 00 [10:27:44]wFMCommunicate OK [10:27:44]SAM_PROTO_SignData done [10:27:44]FM_MakeSignedData done [10:27:44]CreateOFDProtocolMessage [10:27:44]wFMCommunicate request_size=4 [10:27:44]MH_SAM_APDU [10:27:44]CAPDU: 80 11 00 00 [10:27:44]Write to MH i2c: E2 08 00 09 13 80 11 00 00 00 00 00 00 96 [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:44]Read from MH i2c: E2 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: E2 17 00 09 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [10:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:27:44]wFMCommunicate OK [10:27:44]CreateOFDProtocolMessage done [10:27:44]OFDSenderStorePacket 156845 [10:27:44]StoreOFDPacket docnum=156845 [10:27:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 62 27 07 01 2D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 3D 00 00 00 F4 03 04 00 21 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 64 02 00 35 04 06 00 6E 83 80 D7 44 7B FB B6 A3 9C F3 C0 50 9A [10:27:44]CheckFolder [10:27:44]dirname=/storage/ofd_packets [10:27:44]CheckFolder done [10:27:44]ProducePacketName [10:27:44]name=ofd_packets/00156845 [10:27:44]NVStorageSaveData ofd_packets/00156845 [10:27:44]File name is /storage/ofd_packets/00156845 [10:27:44]Write 301 bytes [10:27:44]NVStorageSaveData done [10:27:44]OFDSenderStorePacket done [10:27:44]KKMCreateOFDPacket done [10:27:44]NVStorageSaveData kkm_last_timestamp [10:27:44]File name is /storage/kkm_last_timestamp [10:27:44]Write 4 bytes [10:27:44]NVStorageSaveData done [10:27:44]OFD Sender: Processing packet 156845 [packets to send 31, broken 30] [10:27:44]ProducePacketName [10:27:44]name=ofd_packets/00156845 [10:27:44]OFD Sender: To server: pG, [10:27:44]CommunicateWithHost lk.salyk.kg:30040 [10:27:44]ConnectInit lk.salyk.kg [10:27:44]ExternCall_PrintAddStr [10:27:44]wPrintStart [10:27:44]Write to MH i2c: 01 00 00 0A 13 1D [10:27:44]Write i2c OK [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 07 00 [10:27:44]MH_I2C_Read... [10:27:44]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [10:27:44]RasterBufferAndPrint [10:27:44]line Счет N : (1)99658 [10:27:44]line ИНН: 02508201610067 [10:27:44]line Контрольно-Кассовый Чек [10:27:44]line ПРОДАЖА [10:27:44]line ТРК (МРК, ГНК) : 31 [10:27:44]line Товар: 2710124130 [10:27:44]line Аи-92-К-5 [10:27:44]line 11.960 * 66.90 [10:27:44]line = 800.12 [10:27:44]line НДС 12% НСП 1% [10:27:44]line > о реализуемом товаре [10:27:44]line ОКРУГЛЕНИЕ: -0.12 [10:27:44]line ИТОГО: 800.00 [10:27:44]line Внесено: 800.00 [10:27:44]line СДАЧА: 0.00 [10:27:44]line НСП 1% : 7.08 [10:27:44]line НДС 12% : 84.97 [10:27:44]line Наличными: 800.00 [10:27:44]line Безнал.: 0.00 [10:27:44]line Место: АЗС № 143 "Партнер Нефть" [10:27:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:27:44]line СНО: Общий режим [10:27:44]line Чек 61 28.10.2024 10:27 [10:27:44]line Смена: 538 ФФД: 1.0 [10:27:44]line ЗНМ: 0300000096 [10:27:44]line РНМ: 0000000000091693 [10:27:44]line Версия ККМ: 001 [10:27:44]line ФМ: 0000000000871792 [10:27:44]line ФД: 156845 [10:27:44]line ФПД: 121511081362555 [10:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102745&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156845&fm=121511081362555&tin=02508201610067®Number=0000000000091693&sum=80000 [10:27:45]Connected sock=11 [10: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 37 39 32 0F 01 00 00 62 27 07 01 2D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 3D 00 00 00 F4 03 04 00 21 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 64 02 00 35 04 06 00 6E 83 80 D7 44 7B FB B6 A3 9C F3 C0 50 9A [10:27:45]written 0, free lines is 4095 [10: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 37 39 32 4F 00 00 00 AC B9 47 00 58 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 64 02 00 F4 03 04 00 8E 0C 1F 67 B6 04 01 00 00 C7 FB EA 1B 1D 2D 6F 7A [10:27:45]CommunicateWithHost err = 0 [10:27:45]CheckOFDResponse [10:27:45]1017 (14) - 77093643461234 [10:27:45]1041 (16) - 0000000000871792 [10:27:45]1040 (4) - 156845 [10:27:45]1012 (4) - 28.10.2024 04:01 [10:27:45]1206 (1) - 0 [10:27:45]OFD Sender: Remove packet 156845 [10:27:45]ProducePacketName [10:27:45]name=ofd_packets/00156845 [10:27:45]NVStorageDeleteData [10:27:45]Write to MH i2c: 01 00 00 35 13 48 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: 01 07 00 35 13 00 00 00 00 00 DC 0C 37 [10:27:45]RasterBufferAndPrint [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]line [10:27:45]written 0, free lines is 3301 [10:27:45]process_action close_receipt done [10:27:45]requested_data is exist [10:27:45]produce_requested_data [10:27:45]requested_item fm.sn is exist - process it [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 11 00 00 [10:27:45]Write to MH i2c: E2 08 00 3C 13 80 11 00 00 00 00 00 00 C9 [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 17 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 17 00 3C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [10:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:27:45]wFMCommunicate OK [10:27:45]requested_item fd.num is exist - process it [10:27:45]SAM_PROTO_GetFieldsCounters [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 13 00 00 [10:27:45]Write to MH i2c: E2 08 00 3D 13 80 13 00 00 00 00 00 00 CC [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 62 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 62 00 3D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 64 02 00 0E 04 04 00 1A 02 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 D8 [10:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 64 02 00 0E 04 04 00 1A 02 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 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_GetFieldsCounters done [10:27:45]requested_item shift.num is exist - process it [10:27:45]requested_item shift.opened is exist - process it [10:27:45]req_shift_opened [10:27:45]FM_GetShiftState [10:27:45]SAM_PROTO_GetShiftState [10:27:45]wFMCommunicate request_size=4 [10:27:45]MH_SAM_APDU [10:27:45]CAPDU: 80 13 01 00 [10:27:45]Write to MH i2c: E2 08 00 3E 13 80 13 01 00 00 00 00 00 CE [10:27:45]Write i2c OK [10:27:45]MH_I2C_Read... [10:27:45]OFD Sender: No OFD packet to send [10:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:45]Read from MH i2c: E2 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 [10:27:45]MH_I2C_Read... [10:27:45]Read from MH i2c: E2 0E 00 3E 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C0 [10:27:45]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:27:45]wFMCommunicate OK [10:27:45]SAM_PROTO_GetShiftState done [10:27:45]FM_GetShiftState done [10:27:45]req_shift_opened done [10:27:45]requested_item shift.open_date is exist - process it [10:27:45]req_shift_open_date [10:27:45]req_shift_open_date done [10:27:45]produce_requested_data done [10:27:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156845,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:27:45]process_action_free close_receipt [10:27:45]json_value_free [10:27:45]json_value_free done [10:27:45]process_json_proto returns [10:27:45]Send response to host [10:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156845,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:27:45]free response buf [10:27:45]execute_script done [10:27:45]execute_script returns [10:27:45]free content buf [10:27:45]Sock 9.Close socket [10:27:45]Sock 9.Thread stoped [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:53]accept exits with 7 [10:28:53]New connection [10:28:53]New thread 3066604900 created [10:28:53]Thread 3066748260 joined [10:28:53]Waiting for new connection... [10:28:53] Sock 7.Parse request [10:28:53]Sock 7.Check first char [10:28:53]Sock 7.First char is OK [10:28:53]request: POST /json_proto HTTP/1.0 [10:28:53]Method: POST [10:28:53]URL: /json_proto [10:28:53]Method is POST - this is cgi request [10:28:53]url: /json_proto [10:28:53]query_string will be loaded in cgi processing [10:28:53]execute_cgi json_proto POST (null) [10:28:53]execute_cgi path=json_proto method=POST [10:28:53]POST find Content-Length [10:28:53]Host: 172.17.63.3:8080 [10:28:53]Content-Length: 673 [10:28:53]Content-Type: application/json [10:28:53] [10:28:53]POST finish read [10:28:53]Found Content-Length = 673 [10:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [10:28:53]execute_script... [10:28: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)99659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [10:28:53]POST & json_proto [10:28:53]process_json_proto [10:28:53]json parsed OK: [10:28:53]protocol is kg_v1.0 [10:28:53]action value=close_receipt [10:28:53]process_action close_receipt [10:28:53]cmd_close_receipt [10:28:53]MH_GetDate [10:28:53]Write to MH i2c: F0 00 00 3F 13 41 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 09 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: F0 09 00 3F 13 00 67 67 1F 67 50 D1 6C 64 8F [10:28:53]GetLastDocTimeStamp 1730111265 [10:28:53]current date 1730111335 [10:28:53]FM_GetShiftState [10:28:53]SAM_PROTO_GetShiftState [10:28:53]wFMCommunicate request_size=4 [10:28:53]MH_SAM_APDU [10:28:53]CAPDU: 80 13 01 00 [10:28:53]Write to MH i2c: E2 08 00 40 13 80 13 01 00 00 00 00 00 D0 [10:28:53]Write i2c OK [10:28:53]MH_I2C_Read... [10:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:53]Read from MH i2c: E2 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 [10:28:53]MH_I2C_Read... [10:28:53]Read from MH i2c: E2 0E 00 40 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C2 [10:28:53]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:28:53]wFMCommunicate OK [10:28:53]SAM_PROTO_GetShiftState done [10:28:53]FM_GetShiftState done [10:28:53]opened in 1730075526 [10:28:53]opened+sec_in_day 1730161926 [10:28:53]quantity*price = 50063 [10:28:53]sum+1 = 50064 [10:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 62 28.10.2024 10:28 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156846 ФПД: 210160891094228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102855&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156846&fm=210160891094228&tin=02508201610067®Number=0000000000091693&sum=50000 [10:28:54]StoreToDocumentArchive [10:28:54]shift 538 fd 156846 [10:28:54]save to /storage/0538/doc_00156846 [10:28:54]save last doc name /storage/0538/doc_00156846 to /storage/kkm_last_doc_name [10:28:54]save OK [10:28:54]Clear old archive folders... [10:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:54]tlvbuf is 01A5FA10 [10:28:54]SAM_PROTO_ClearQueue [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 09 00 00 [10:28:54]Write to MH i2c: E2 08 00 4D 13 80 09 00 00 00 00 00 00 D2 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]SAM_PROTO_ClearQueue done [10:28:54]KKMCreateOFDPacket [10:28:54]OFDProtocolAddRootSTLVToBuf [10:28:54]FM_MakeSignedData [10:28:54]FM_MakeSignedData [10:28:54]SAM_PROTO_SignData [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 0D 01 02 [10:28:54]Write to MH i2c: E2 08 00 4E 13 80 0D 01 02 00 00 00 00 DA [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]wFMCommunicate request_size=255 [10:28:54]MH_SAM_APDU [10:28: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 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3E 00 00 00 F4 03 04 00 67 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 64 02 00 35 04 06 00 BF 23 E5 42 [10:28:54]Write to MH i2c: E2 02 01 4F 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3E 00 00 00 F4 03 04 00 67 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 64 02 00 35 04 06 00 BF 23 E5 42 00 00 B7 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]wFMCommunicate request_size=7 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 0D 02 02 02 64 D4 [10:28:54]Write to MH i2c: E2 0A 00 50 13 80 0D 02 02 02 00 64 D4 00 00 19 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [10:28:54]RAPDU: 90 00 [10:28:54]wFMCommunicate OK [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 0D 03 02 [10:28:54]Write to MH i2c: E2 08 00 51 13 80 0D 03 02 00 00 00 00 DF [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 0B 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 0B 00 51 13 00 D1 1B 5F B2 4F 2B E0 6C 90 00 A3 [10:28:54]RAPDU: D1 1B 5F B2 4F 2B E0 6C 90 00 [10:28:54]wFMCommunicate OK [10:28:54]SAM_PROTO_SignData done [10:28:54]FM_MakeSignedData done [10:28:54]CreateOFDProtocolMessage [10:28:54]wFMCommunicate request_size=4 [10:28:54]MH_SAM_APDU [10:28:54]CAPDU: 80 11 00 00 [10:28:54]Write to MH i2c: E2 08 00 52 13 80 11 00 00 00 00 00 00 DF [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:54]Read from MH i2c: E2 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 17 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: E2 17 00 52 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [10:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:28:54]wFMCommunicate OK [10:28:54]CreateOFDProtocolMessage done [10:28:54]OFDSenderStorePacket 156846 [10:28:54]StoreOFDPacket docnum=156846 [10:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C2 99 04 01 AA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3E 00 00 00 F4 03 04 00 67 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 64 02 00 35 04 06 00 BF 23 E5 42 64 D4 D1 1B 5F B2 4F 2B E0 6C [10:28:54]CheckFolder [10:28:54]dirname=/storage/ofd_packets [10:28:54]CheckFolder done [10:28:54]ProducePacketName [10:28:54]name=ofd_packets/00156846 [10:28:54]NVStorageSaveData ofd_packets/00156846 [10:28:54]File name is /storage/ofd_packets/00156846 [10:28:54]Write 298 bytes [10:28:54]NVStorageSaveData done [10:28:54]OFDSenderStorePacket done [10:28:54]KKMCreateOFDPacket done [10:28:54]NVStorageSaveData kkm_last_timestamp [10:28:54]File name is /storage/kkm_last_timestamp [10:28:54]Write 4 bytes [10:28:54]NVStorageSaveData done [10:28:54]ExternCall_PrintAddStr [10:28:54]wPrintStart [10:28:54]Write to MH i2c: 01 00 00 53 13 66 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [10:28:54]RasterBufferAndPrint [10:28:54]line Счет N : (1)99659 [10:28:54]line ИНН: 02508201610067 [10:28:54]line Контрольно-Кассовый Чек [10:28:54]line ПРОДАЖА [10:28:54]line ТРК (МРК, ГНК) : 32 [10:28:54]line Товар: 2710194210 [10:28:54]line ДТ-К-5 [10:28:54]line 6.570 * 76.20 [10:28:54]line = 500.63 [10:28:54]line НДС 12% НСП 1% [10:28:54]line > о реализуемом товаре [10:28:54]line ОКРУГЛЕНИЕ: -0.63 [10:28:54]line ИТОГО: 500.00 [10:28:54]line Внесено: 500.00 [10:28:54]line СДАЧА: 0.00 [10:28:54]line НСП 1% : 4.43 [10:28:54]line НДС 12% : 53.16 [10:28:54]line Наличными: 500.00 [10:28:54]line Безнал.: 0.00 [10:28:54]line Место: АЗС № 143 "Партнер Нефть" [10:28:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:28:54]line СНО: Общий режим [10:28:54]line Чек 62 28.10.2024 10:28 [10:28:54]line Смена: 538 ФФД: 1.0 [10:28:54]line ЗНМ: 0300000096 [10:28:54]line РНМ: 0000000000091693 [10:28:55]line Версия ККМ: 001 [10:28:55]line ФМ: 0000000000871792 [10:28:55]line ФД: 156846 [10:28:55]line ФПД: 210160891094228 [10:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102855&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156846&fm=210160891094228&tin=02508201610067®Number=0000000000091693&sum=50000 [10:28:55]OFD Sender: Processing packet 156846 [packets to send 31, broken 30] [10:28:55]ProducePacketName [10:28:55]name=ofd_packets/00156846 [10:28:55]OFD Sender: To server: pG, [10:28:55]CommunicateWithHost lk.salyk.kg:30040 [10:28:55]ConnectInit lk.salyk.kg [10:28:55]written 0, free lines is 4095 [10:28:55]Connected sock=10 [10:28: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 37 39 32 0C 01 00 00 C2 99 04 01 AA 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 3E 00 00 00 F4 03 04 00 67 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 64 02 00 35 04 06 00 BF 23 E5 42 64 D4 D1 1B 5F B2 4F 2B E0 6C [10:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E4 7C 47 00 DD 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 37 39 32 10 04 04 00 AE 64 02 00 F4 03 04 00 D4 0C 1F 67 B6 04 01 00 00 41 F2 57 84 74 4E A7 A6 [10:28:55]CommunicateWithHost err = 0 [10:28:55]CheckOFDResponse [10:28:55]1017 (14) - 77093643461234 [10:28:55]1041 (16) - 0000000000871792 [10:28:55]1040 (4) - 156846 [10:28:55]1012 (4) - 28.10.2024 04:02 [10:28:55]1206 (1) - 0 [10:28:55]OFD Sender: Remove packet 156846 [10:28:55]ProducePacketName [10:28:55]name=ofd_packets/00156846 [10:28:55]NVStorageDeleteData [10:28:55]Write to MH i2c: 01 00 00 7E 13 91 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: 01 07 00 7E 13 00 00 00 00 00 E2 0C 86 [10:28:55]RasterBufferAndPrint [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]line [10:28:55]written 0, free lines is 3303 [10:28:55]process_action close_receipt done [10:28:55]requested_data is exist [10:28:55]produce_requested_data [10:28:55]requested_item fm.sn is exist - process it [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 11 00 00 [10:28:55]Write to MH i2c: E2 08 00 85 13 80 11 00 00 00 00 00 00 12 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 17 00 [10:28:55]MH_I2C_Read... [10:28:55]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 37 39 32 90 00 67 [10:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:28:55]wFMCommunicate OK [10:28:55]requested_item fd.num is exist - process it [10:28:55]SAM_PROTO_GetFieldsCounters [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 13 00 00 [10:28:55]Write to MH i2c: E2 08 00 86 13 80 13 00 00 00 00 00 00 15 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 62 00 [10:28:55]MH_I2C_Read... [10:28:55]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 64 02 00 0E 04 04 00 1A 02 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 25 [10:28: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 64 02 00 0E 04 04 00 1A 02 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 [10:28:55]wFMCommunicate OK [10:28:55]SAM_PROTO_GetFieldsCounters done [10:28:55]requested_item shift.num is exist - process it [10:28:55]requested_item shift.opened is exist - process it [10:28:55]req_shift_opened [10:28:55]FM_GetShiftState [10:28:55]SAM_PROTO_GetShiftState [10:28:55]wFMCommunicate request_size=4 [10:28:55]MH_SAM_APDU [10:28:55]CAPDU: 80 13 01 00 [10:28:55]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [10:28:55]Write i2c OK [10:28:55]MH_I2C_Read... [10:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:55]Read from MH i2c: E2 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0E 00 [10:28:55]MH_I2C_Read... [10:28:55]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 09 [10:28:55]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:28:55]wFMCommunicate OK [10:28:55]SAM_PROTO_GetShiftState done [10:28:55]FM_GetShiftState done [10:28:55]req_shift_opened done [10:28:55]requested_item shift.open_date is exist - process it [10:28:55]req_shift_open_date [10:28:55]req_shift_open_date done [10:28:55]produce_requested_data done [10:28:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156846,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:28:55]process_action_free close_receipt [10:28:55]json_value_free [10:28:55]json_value_free done [10:28:55]process_json_proto returns [10:28:55]Send response to host [10:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156846,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:28:55]free response buf [10:28:55]execute_script done [10:28:55]execute_script returns [10:28:55]free content buf [10:28:55]Sock 7.Close socket [10:28:55]Sock 7.Thread stoped [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:11]OFD Sender: No OFD packet to send [10:29:16]OFD Sender: No OFD packet to send [10:29:21]OFD Sender: No OFD packet to send [10:29:26]OFD Sender: No OFD packet to send [10:29:31]OFD Sender: No OFD packet to send [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]accept exits with 9 [10:31:06]New connection [10:31:06]New thread 3066748260 created [10:31:06]Thread 3066604900 joined [10:31:06]Waiting for new connection... [10:31:06] Sock 9.Parse request [10:31:06]Sock 9.Check first char [10:31:06]Sock 9.First char is OK [10:31:06]request: POST /json_proto HTTP/1.0 [10:31:06]Method: POST [10:31:06]URL: /json_proto [10:31:06]Method is POST - this is cgi request [10:31:06]url: /json_proto [10:31:06]query_string will be loaded in cgi processing [10:31:06]execute_cgi json_proto POST (null) [10:31:06]execute_cgi path=json_proto method=POST [10:31:06]POST find Content-Length [10:31:06]Host: 172.17.63.3:8080 [10:31:06]Content-Length: 765 [10:31:06]Content-Type: application/json [10:31:06] [10:31:06]POST finish read [10:31:06]Found Content-Length = 765 [10:31:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:06]execute_script... [10:31: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)99660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:06]POST & json_proto [10:31:06]process_json_proto [10:31:06]json parsed OK: [10:31:06]protocol is kg_v1.0 [10:31:06]action value=close_receipt [10:31:06]process_action close_receipt [10:31:06]cmd_close_receipt [10:31:06]MH_GetDate [10:31:06]Write to MH i2c: F0 00 00 88 13 8A [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: F0 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: F0 09 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: F0 09 00 88 13 00 EC 67 1F 67 50 D1 6C 64 5D [10:31:06]GetLastDocTimeStamp 1730111335 [10:31:06]current date 1730111468 [10:31:06]FM_GetShiftState [10:31:06]SAM_PROTO_GetShiftState [10:31:06]wFMCommunicate request_size=4 [10:31:06]MH_SAM_APDU [10:31:06]CAPDU: 80 13 01 00 [10:31:06]Write to MH i2c: E2 08 00 89 13 80 13 01 00 00 00 00 00 19 [10:31:06]Write i2c OK [10:31:06]MH_I2C_Read... [10:31:06]OFD Sender: No OFD packet to send [10:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:06]Read from MH i2c: E2 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0E 00 [10:31:06]MH_I2C_Read... [10:31:06]Read from MH i2c: E2 0E 00 89 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0B [10:31:06]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:31:06]wFMCommunicate OK [10:31:06]SAM_PROTO_GetShiftState done [10:31:06]FM_GetShiftState done [10:31:06]opened in 1730075526 [10:31:06]opened+sec_in_day 1730161926 [10:31:06]quantity*price = 30038 [10:31:06]sum+1 = 30039 [10:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 63 28.10.2024 10:31 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156847 ФПД: 54062544605954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156847&fm=54062544605954&tin=02508201610067®Number=0000000000091693&sum=30038 [10:31:07]StoreToDocumentArchive [10:31:07]shift 538 fd 156847 [10:31:07]save to /storage/0538/doc_00156847 [10:31:07]save last doc name /storage/0538/doc_00156847 to /storage/kkm_last_doc_name [10:31:07]save OK [10:31:07]Clear old archive folders... [10:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:07]tlvbuf is 01A5FAB0 [10:31:07]SAM_PROTO_ClearQueue [10:31:07]wFMCommunicate request_size=4 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 09 00 00 [10:31:07]Write to MH i2c: E2 08 00 96 13 80 09 00 00 00 00 00 00 1B [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [10:31:07]RAPDU: 90 00 [10:31:07]wFMCommunicate OK [10:31:07]SAM_PROTO_ClearQueue done [10:31:07]KKMCreateOFDPacket [10:31:07]OFDProtocolAddRootSTLVToBuf [10:31:07]FM_MakeSignedData [10:31:07]FM_MakeSignedData [10:31:07]SAM_PROTO_SignData [10:31:07]wFMCommunicate request_size=4 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 0D 01 02 [10:31:07]Write to MH i2c: E2 08 00 97 13 80 0D 01 02 00 00 00 00 23 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [10:31:07]RAPDU: 90 00 [10:31:07]wFMCommunicate OK [10:31:07]wFMCommunicate request_size=255 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EC 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 64 02 00 35 04 06 00 31 [10:31:07]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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EC 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 64 02 00 35 04 06 00 31 00 00 71 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [10:31:07]RAPDU: 90 00 [10:31:07]wFMCommunicate OK [10:31:07]wFMCommunicate request_size=10 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 0D 02 02 05 2B 6A C4 53 02 [10:31:07]Write to MH i2c: E2 0D 00 99 13 80 0D 02 02 05 00 2B 6A C4 53 02 00 00 DE [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [10:31:07]RAPDU: 90 00 [10:31:07]wFMCommunicate OK [10:31:07]wFMCommunicate request_size=4 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 0D 03 02 [10:31:07]Write to MH i2c: E2 08 00 9A 13 80 0D 03 02 00 00 00 00 28 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 0B 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 0B 00 9A 13 00 A0 6B 24 F1 C2 E8 2D E0 90 00 00 [10:31:07]RAPDU: A0 6B 24 F1 C2 E8 2D E0 90 00 [10:31:07]wFMCommunicate OK [10:31:07]SAM_PROTO_SignData done [10:31:07]FM_MakeSignedData done [10:31:07]CreateOFDProtocolMessage [10:31:07]wFMCommunicate request_size=4 [10:31:07]MH_SAM_APDU [10:31:07]CAPDU: 80 11 00 00 [10:31:07]Write to MH i2c: E2 08 00 9B 13 80 11 00 00 00 00 00 00 28 [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:07]Read from MH i2c: E2 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: E2 17 00 [10:31:07]MH_I2C_Read... [10:31:07]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 37 39 32 90 00 7D [10:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:31:07]wFMCommunicate OK [10:31:07]CreateOFDProtocolMessage done [10:31:07]OFDSenderStorePacket 156847 [10:31:07]StoreOFDPacket docnum=156847 [10:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 99 64 07 01 78 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EC 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 64 02 00 35 04 06 00 31 2B 6A C4 53 02 A0 6B 24 F1 C2 E8 2D E0 [10:31:07]CheckFolder [10:31:07]dirname=/storage/ofd_packets [10:31:07]CheckFolder done [10:31:07]ProducePacketName [10:31:07]name=ofd_packets/00156847 [10:31:07]NVStorageSaveData ofd_packets/00156847 [10:31:07]File name is /storage/ofd_packets/00156847 [10:31:07]Write 301 bytes [10:31:07]NVStorageSaveData done [10:31:07]OFDSenderStorePacket done [10:31:07]KKMCreateOFDPacket done [10:31:07]NVStorageSaveData kkm_last_timestamp [10:31:07]File name is /storage/kkm_last_timestamp [10:31:07]Write 4 bytes [10:31:07]NVStorageSaveData done [10:31:07]ExternCall_PrintAddStr [10:31:07]wPrintStart [10:31:07]Write to MH i2c: 01 00 00 9C 13 AF [10:31:07]Write i2c OK [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 [10:31:07]MH_I2C_Read... [10:31:07]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [10:31:07]RasterBufferAndPrint [10:31:07]line Счет N : (1)99660 [10:31:07]line ИНН: 02508201610067 [10:31:07]line Контрольно-Кассовый Чек [10:31:07]line ПРОДАЖА [10:31:07]line ТРК (МРК, ГНК) : 31 [10:31:07]line Товар: 2710124130 [10:31:07]line Аи-92-К-5 [10:31:07]line 4.490 * 66.90 [10:31:07]line = 300.38 [10:31:07]line НДС 12% НСП 1% [10:31:07]line > о реализуемом товаре [10:31:07]line ИТОГО: 300.38 [10:31:07]line НСП 1% : 2.66 [10:31:07]line НДС 12% : 31.90 [10:31:07]line Наличными: 0.00 [10:31:07]line Безнал.: 300.38 [10:31:07]line Место: АЗС № 143 "Партнер Нефть" [10:31:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:31:07]line СНО: Общий режим [10:31:07]line Чек 63 28.10.2024 10:31 [10:31:07]line Смена: 538 ФФД: 1.0 [10:31:07]line ЗНМ: 0300000096 [10:31:07]line РНМ: 0000000000091693 [10:31:07]line Версия ККМ: 001 [10:31:07]line Платежная система: Mbank [10:31:07]line ФМ: 0000000000871792 [10:31:07]line ФД: 156847 [10:31:07]line ФПД: 54062544605954 [10:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103108&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156847&fm=54062544605954&tin=02508201610067®Number=0000000000091693&sum=30038 [10:31:08]OFD Sender: Processing packet 156847 [packets to send 31, broken 30] [10:31:08]ProducePacketName [10:31:08]name=ofd_packets/00156847 [10:31:08]OFD Sender: To server: pG, [10:31:08]CommunicateWithHost lk.salyk.kg:30040 [10:31:08]ConnectInit lk.salyk.kg [10:31:08]written 0, free lines is 4095 [10:31:08]Connected sock=10 [10:31: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 37 39 32 0F 01 00 00 99 64 07 01 78 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 EC 67 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 64 02 00 35 04 06 00 31 2B 6A C4 53 02 A0 6B 24 F1 C2 E8 2D E0 [10:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 31 F5 47 00 DC 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 37 39 32 10 04 04 00 AF 64 02 00 F4 03 04 00 59 0D 1F 67 B6 04 01 00 00 1F A0 53 45 F8 00 7B 28 [10:31:08]CommunicateWithHost err = 0 [10:31:08]CheckOFDResponse [10:31:08]1017 (14) - 77093643461234 [10:31:08]1041 (16) - 0000000000871792 [10:31:08]1040 (4) - 156847 [10:31:08]1012 (4) - 28.10.2024 04:04 [10:31:08]1206 (1) - 0 [10:31:08]OFD Sender: Remove packet 156847 [10:31:08]ProducePacketName [10:31:08]name=ofd_packets/00156847 [10:31:08]NVStorageDeleteData [10:31:08]Write to MH i2c: 01 00 00 C5 13 D8 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 07 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: 01 07 00 C5 13 00 00 00 00 00 FE 0C E9 [10:31:08]RasterBufferAndPrint [10:31:08]line [10:31:08]line [10:31:08]line [10:31:08]line [10:31:08]line [10:31:08]written 0, free lines is 3332 [10:31:08]process_action close_receipt done [10:31:08]requested_data is exist [10:31:08]produce_requested_data [10:31:08]requested_item fm.sn is exist - process it [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 11 00 00 [10:31:08]Write to MH i2c: E2 08 00 CC 13 80 11 00 00 00 00 00 00 59 [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 17 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 17 00 CC 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [10:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:31:08]wFMCommunicate OK [10:31:08]requested_item fd.num is exist - process it [10:31:08]SAM_PROTO_GetFieldsCounters [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 13 00 00 [10:31:08]Write to MH i2c: E2 08 00 CD 13 80 13 00 00 00 00 00 00 5C [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 62 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 62 00 CD 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 64 02 00 0E 04 04 00 1A 02 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 70 [10: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 64 02 00 0E 04 04 00 1A 02 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 [10:31:08]wFMCommunicate OK [10:31:08]SAM_PROTO_GetFieldsCounters done [10:31:08]requested_item shift.num is exist - process it [10:31:08]requested_item shift.opened is exist - process it [10:31:08]req_shift_opened [10:31:08]FM_GetShiftState [10:31:08]SAM_PROTO_GetShiftState [10:31:08]wFMCommunicate request_size=4 [10:31:08]MH_SAM_APDU [10:31:08]CAPDU: 80 13 01 00 [10:31:08]Write to MH i2c: E2 08 00 CE 13 80 13 01 00 00 00 00 00 5E [10:31:08]Write i2c OK [10:31:08]MH_I2C_Read... [10:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:08]Read from MH i2c: E2 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 0E 00 [10:31:08]MH_I2C_Read... [10:31:08]Read from MH i2c: E2 0E 00 CE 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 50 [10:31:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:31:08]wFMCommunicate OK [10:31:08]SAM_PROTO_GetShiftState done [10:31:08]FM_GetShiftState done [10:31:08]req_shift_opened done [10:31:08]requested_item shift.open_date is exist - process it [10:31:08]req_shift_open_date [10:31:08]req_shift_open_date done [10:31:08]produce_requested_data done [10:31:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156847,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:31:08]process_action_free close_receipt [10:31:08]json_value_free [10:31:08]json_value_free done [10:31:08]process_json_proto returns [10:31:08]Send response to host [10:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156847,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:31:08]free response buf [10:31:08]execute_script done [10:31:08]execute_script returns [10:31:08]free content buf [10:31:08]Sock 9.Close socket [10:31:08]Sock 9.Thread stoped [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:47]accept exits with 7 [10:31:47]New connection [10:31:47]New thread 3066604900 created [10:31:47]Thread 3066748260 joined [10:31:47]Waiting for new connection... [10:31:47] Sock 7.Parse request [10:31:47]Sock 7.Check first char [10:31:47]Sock 7.First char is OK [10:31:47]request: POST /json_proto HTTP/1.0 [10:31:47]Method: POST [10:31:47]URL: /json_proto [10:31:47]Method is POST - this is cgi request [10:31:47]url: /json_proto [10:31:47]query_string will be loaded in cgi processing [10:31:47]execute_cgi json_proto POST (null) [10:31:47]execute_cgi path=json_proto method=POST [10:31:47]POST find Content-Length [10:31:47]Host: 172.17.63.3:8080 [10:31:47]Content-Length: 673 [10:31:47]Content-Type: application/json [10:31:47] [10:31:47]POST finish read [10:31:47]Found Content-Length = 673 [10:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [10:31:47]execute_script... [10:31: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)99661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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" ] } } [10:31:47]POST & json_proto [10:31:47]process_json_proto [10:31:47]json parsed OK: [10:31:47]protocol is kg_v1.0 [10:31:47]action value=close_receipt [10:31:47]process_action close_receipt [10:31:47]cmd_close_receipt [10:31:47]MH_GetDate [10:31:47]Write to MH i2c: F0 00 00 CF 13 D1 [10:31:47]Write i2c OK [10:31:47]MH_I2C_Read... [10:31:47]Read from MH i2c: F0 [10:31:47]MH_I2C_Read... [10:31:47]Read from MH i2c: F0 09 00 [10:31:47]MH_I2C_Read... [10:31:47]Read from MH i2c: F0 09 00 CF 13 00 16 68 1F 67 50 D1 6C 64 CF [10:31:47]GetLastDocTimeStamp 1730111468 [10:31:47]current date 1730111510 [10:31:47]FM_GetShiftState [10:31:47]SAM_PROTO_GetShiftState [10:31:47]wFMCommunicate request_size=4 [10:31:47]MH_SAM_APDU [10:31:47]CAPDU: 80 13 01 00 [10:31:47]Write to MH i2c: E2 08 00 D0 13 80 13 01 00 00 00 00 00 60 [10:31:47]Write i2c OK [10:31:47]MH_I2C_Read... [10:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:47]Read from MH i2c: E2 [10:31:47]MH_I2C_Read... [10:31:47]Read from MH i2c: E2 0E 00 [10:31:47]MH_I2C_Read... [10:31:47]Read from MH i2c: E2 0E 00 D0 13 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 52 [10:31:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:31:47]wFMCommunicate OK [10:31:47]SAM_PROTO_GetShiftState done [10:31:47]FM_GetShiftState done [10:31:47]opened in 1730075526 [10:31:47]opened+sec_in_day 1730161926 [10:31:47]quantity*price = 50063 [10:31:47]sum+1 = 50064 [10:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 64 28.10.2024 10:31 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156848 ФПД: 218447068406840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103150&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156848&fm=218447068406840&tin=02508201610067®Number=0000000000091693&sum=50000 [10:31:48]StoreToDocumentArchive [10:31:48]shift 538 fd 156848 [10:31:48]save to /storage/0538/doc_00156848 [10:31:48]save last doc name /storage/0538/doc_00156848 to /storage/kkm_last_doc_name [10:31:48]save OK [10:31:48]Clear old archive folders... [10:31:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:48]tlvbuf is 01AB2060 [10:31:48]SAM_PROTO_ClearQueue [10:31:48]wFMCommunicate request_size=4 [10:31:48]MH_SAM_APDU [10:31:48]CAPDU: 80 09 00 00 [10:31:48]Write to MH i2c: E2 08 00 DD 13 80 09 00 00 00 00 00 00 62 [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:48]Read from MH i2c: E2 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 03 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [10:31:48]RAPDU: 90 00 [10:31:48]wFMCommunicate OK [10:31:48]SAM_PROTO_ClearQueue done [10:31:48]KKMCreateOFDPacket [10:31:48]OFDProtocolAddRootSTLVToBuf [10:31:48]FM_MakeSignedData [10:31:48]FM_MakeSignedData [10:31:48]SAM_PROTO_SignData [10:31:48]wFMCommunicate request_size=4 [10:31:48]MH_SAM_APDU [10:31:48]CAPDU: 80 0D 01 02 [10:31:48]Write to MH i2c: E2 08 00 DE 13 80 0D 01 02 00 00 00 00 6A [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:48]Read from MH i2c: E2 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 03 00 [10:31:48]MH_I2C_Read... [10:31:48]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [10:31:48]RAPDU: 90 00 [10:31:48]wFMCommunicate OK [10:31:48]wFMCommunicate request_size=255 [10:31:48]MH_SAM_APDU [10:31:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 40 00 00 00 F4 03 04 00 16 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 64 02 00 35 04 06 00 C6 AD 2B EA [10:31:48]Write to MH i2c: E2 02 01 DF 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 40 00 00 00 F4 03 04 00 16 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 64 02 00 35 04 06 00 C6 AD 2B EA 00 00 7A [10:31:48]Write i2c OK [10:31:48]MH_I2C_Read... [10:31:49]OFD Sender: No OFD packet to send [10:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [10:31:49]RAPDU: 90 00 [10:31:49]wFMCommunicate OK [10:31:49]wFMCommunicate request_size=7 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 0D 02 02 02 24 38 [10:31:49]Write to MH i2c: E2 0A 00 E0 13 80 0D 02 02 02 00 24 38 00 00 CD [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [10:31:49]RAPDU: 90 00 [10:31:49]wFMCommunicate OK [10:31:49]wFMCommunicate request_size=4 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 0D 03 02 [10:31:49]Write to MH i2c: E2 08 00 E1 13 80 0D 03 02 00 00 00 00 6F [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 0B 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 0B 00 E1 13 00 73 00 F7 C2 E3 2B 95 93 90 00 D2 [10:31:49]RAPDU: 73 00 F7 C2 E3 2B 95 93 90 00 [10:31:49]wFMCommunicate OK [10:31:49]SAM_PROTO_SignData done [10:31:49]FM_MakeSignedData done [10:31:49]CreateOFDProtocolMessage [10:31:49]wFMCommunicate request_size=4 [10:31:49]MH_SAM_APDU [10:31:49]CAPDU: 80 11 00 00 [10:31:49]Write to MH i2c: E2 08 00 E2 13 80 11 00 00 00 00 00 00 6F [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:49]Read from MH i2c: E2 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 17 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: E2 17 00 E2 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [10:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:31:49]wFMCommunicate OK [10:31:49]CreateOFDProtocolMessage done [10:31:49]OFDSenderStorePacket 156848 [10:31:49]StoreOFDPacket docnum=156848 [10:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 AF C4 04 01 BE 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 40 00 00 00 F4 03 04 00 16 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 64 02 00 35 04 06 00 C6 AD 2B EA 24 38 73 00 F7 C2 E3 2B 95 93 [10:31:49]CheckFolder [10:31:49]dirname=/storage/ofd_packets [10:31:49]CheckFolder done [10:31:49]ProducePacketName [10:31:49]name=ofd_packets/00156848 [10:31:49]NVStorageSaveData ofd_packets/00156848 [10:31:49]File name is /storage/ofd_packets/00156848 [10:31:49]Write 298 bytes [10:31:49]NVStorageSaveData done [10:31:49]OFDSenderStorePacket done [10:31:49]KKMCreateOFDPacket done [10:31:49]NVStorageSaveData kkm_last_timestamp [10:31:49]File name is /storage/kkm_last_timestamp [10:31:49]Write 4 bytes [10:31:49]NVStorageSaveData done [10:31:49]ExternCall_PrintAddStr [10:31:49]wPrintStart [10:31:49]Write to MH i2c: 01 00 00 E3 13 F6 [10:31:49]Write i2c OK [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: 01 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: 01 07 00 [10:31:49]MH_I2C_Read... [10:31:49]Read from MH i2c: 01 07 00 E3 13 00 00 00 00 00 FF 0F 0B [10:31:49]RasterBufferAndPrint [10:31:49]line Счет N : (1)99661 [10:31:49]line ИНН: 02508201610067 [10:31:49]line Контрольно-Кассовый Чек [10:31:49]line ПРОДАЖА [10:31:49]line ТРК (МРК, ГНК) : 32 [10:31:49]line Товар: 2710194210 [10:31:49]line ДТ-К-5 [10:31:49]line 6.570 * 76.20 [10:31:49]line = 500.63 [10:31:49]line НДС 12% НСП 1% [10:31:49]line > о реализуемом товаре [10:31:49]line ОКРУГЛЕНИЕ: -0.63 [10:31:49]line ИТОГО: 500.00 [10:31:49]line Внесено: 500.00 [10:31:49]line СДАЧА: 0.00 [10:31:49]line НСП 1% : 4.43 [10:31:49]line НДС 12% : 53.16 [10:31:49]line Наличными: 500.00 [10:31:49]line Безнал.: 0.00 [10:31:49]line Место: АЗС № 143 "Партнер Нефть" [10:31:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:31:49]line СНО: Общий режим [10:31:49]line Чек 64 28.10.2024 10:31 [10:31:49]line Смена: 538 ФФД: 1.0 [10:31:49]line ЗНМ: 0300000096 [10:31:49]line РНМ: 0000000000091693 [10:31:49]line Версия ККМ: 001 [10:31:49]line ФМ: 0000000000871792 [10:31:49]line ФД: 156848 [10:31:49]line ФПД: 218447068406840 [10:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103150&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156848&fm=218447068406840&tin=02508201610067®Number=0000000000091693&sum=50000 [10:31:49]OFD Sender: Processing packet 156848 [packets to send 31, broken 30] [10:31:49]ProducePacketName [10:31:49]name=ofd_packets/00156848 [10:31:49]OFD Sender: To server: pG, [10:31:49]CommunicateWithHost lk.salyk.kg:30040 [10:31:49]ConnectInit lk.salyk.kg [10:31:49]written 0, free lines is 4095 [10:31:49]Connected sock=11 [10:31: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 37 39 32 0C 01 00 00 AF C4 04 01 BE 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 40 00 00 00 F4 03 04 00 16 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 64 02 00 35 04 06 00 C6 AD 2B EA 24 38 73 00 F7 C2 E3 2B 95 93 [10:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D 22 47 00 07 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 37 39 32 10 04 04 00 B0 64 02 00 F4 03 04 00 82 0D 1F 67 B6 04 01 00 00 61 8E 0F A8 54 C9 7D 8F [10:31:50]CommunicateWithHost err = 0 [10:31:50]CheckOFDResponse [10:31:50]1017 (14) - 77093643461234 [10:31:50]1041 (16) - 0000000000871792 [10:31:50]1040 (4) - 156848 [10:31:50]1012 (4) - 28.10.2024 04:05 [10:31:50]1206 (1) - 0 [10:31:50]OFD Sender: Remove packet 156848 [10:31:50]ProducePacketName [10:31:50]name=ofd_packets/00156848 [10:31:50]NVStorageDeleteData [10:31:50]Write to MH i2c: 01 00 00 0E 14 22 [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 0E 14 00 00 00 00 00 D6 0C 0B [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 3289 [10:31:50]process_action close_receipt done [10:31:50]requested_data is exist [10:31:50]produce_requested_data [10:31:50]requested_item fm.sn is exist - process it [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 11 00 00 [10:31:50]Write to MH i2c: E2 08 00 15 14 80 11 00 00 00 00 00 00 A3 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 17 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 17 00 15 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [10:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:31:50]wFMCommunicate OK [10:31:50]requested_item fd.num is exist - process it [10:31:50]SAM_PROTO_GetFieldsCounters [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 13 00 00 [10:31:50]Write to MH i2c: E2 08 00 16 14 80 13 00 00 00 00 00 00 A6 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 62 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 62 00 16 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 64 02 00 0E 04 04 00 1A 02 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 BE [10:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 64 02 00 0E 04 04 00 1A 02 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 [10:31:50]wFMCommunicate OK [10:31:50]SAM_PROTO_GetFieldsCounters done [10:31:50]requested_item shift.num is exist - process it [10:31:50]requested_item shift.opened is exist - process it [10:31:50]req_shift_opened [10:31:50]FM_GetShiftState [10:31:50]SAM_PROTO_GetShiftState [10:31:50]wFMCommunicate request_size=4 [10:31:50]MH_SAM_APDU [10:31:50]CAPDU: 80 13 01 00 [10:31:50]Write to MH i2c: E2 08 00 17 14 80 13 01 00 00 00 00 00 A8 [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:50]Read from MH i2c: E2 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0E 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: E2 0E 00 17 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9A [10:31:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:31:50]wFMCommunicate OK [10:31:50]SAM_PROTO_GetShiftState done [10:31:50]FM_GetShiftState done [10:31:50]req_shift_opened done [10:31:50]requested_item shift.open_date is exist - process it [10:31:50]req_shift_open_date [10:31:50]req_shift_open_date done [10:31:50]produce_requested_data done [10:31:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156848,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:31:50]process_action_free close_receipt [10:31:50]json_value_free [10:31:50]json_value_free done [10:31:50]process_json_proto returns [10:31:50]Send response to host [10:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156848,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:31:50]free response buf [10:31:50]execute_script done [10:31:50]execute_script returns [10:31:50]free content buf [10:31:50]Sock 7.Close socket [10:31:50]Sock 7.Thread stoped [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:45]accept exits with 9 [10:32:45]New connection [10:32:45]New thread 3066748260 created [10:32:45]Thread 3066604900 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.63.3:8080 [10:32:45]Content-Length: 799 [10:32:45]Content-Type: application/json [10:32:45] [10:32:45]POST finish read [10:32:45]Found Content-Length = 799 [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)99662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582903", "payments": [ { "type": 1, "sum" : 0.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)99662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4582903", "payments": [ { "type": 1, "sum" : 0.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 18 14 1B [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 18 14 00 50 68 1F 67 50 D1 6C 64 53 [10:32:45]GetLastDocTimeStamp 1730111510 [10:32:45]current date 1730111568 [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 19 14 80 13 01 00 00 00 00 00 AA [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 19 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9C [10:32:45]RAPDU: 09 00 01 86 DB 1E 67 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 1730075526 [10:32:45]opened+sec_in_day 1730161926 [10:32:45]quantity*price = 0 [10:32:45]sum+1 = 1 [10:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 65 28.10.2024 10:32 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4582903 ФМ: 0000000000871792 ФД: 156849 ФПД: 33802561389802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156849&fm=33802561389802&tin=02508201610067®Number=0000000000091693&sum=0 [10:32:46]StoreToDocumentArchive [10:32:46]shift 538 fd 156849 [10:32:46]save to /storage/0538/doc_00156849 [10:32:46]save last doc name /storage/0538/doc_00156849 to /storage/kkm_last_doc_name [10:32:47]save OK [10:32:47]Clear old archive folders... [10:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:32:47]tlvbuf is B6E76730 [10:32:47]SAM_PROTO_ClearQueue [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 09 00 00 [10:32:47]Write to MH i2c: E2 08 00 26 14 80 09 00 00 00 00 00 00 AC [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 09 00 00... 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 26 14 00 90 00 AE [10:32:47]RAPDU: 90 00 [10:32:47]wFMCommunicate OK [10:32:47]SAM_PROTO_ClearQueue done [10:32:47]KKMCreateOFDPacket [10:32:47]OFDProtocolAddRootSTLVToBuf [10:32:47]FM_MakeSignedData [10:32:47]FM_MakeSignedData [10:32:47]SAM_PROTO_SignData [10:32:47]wFMCommunicate request_size=4 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 0D 01 02 [10:32:47]Write to MH i2c: E2 08 00 27 14 80 0D 01 02 00 00 00 00 B4 [10:32:47]Write i2c OK [10:32:47]MH_I2C_Read... [10:32:47]*** iso7816_exchange 80 0D 01 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 27 14 00 90 00 AF [10:32:47]RAPDU: 90 00 [10:32:47]wFMCommunicate OK [10:32:47]wFMCommunicate request_size=255 [10:32:47]MH_SAM_APDU [10:32: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 50 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 64 02 00 35 04 06 00 1E [10:32:47]Write to MH i2c: E2 02 01 28 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 50 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 64 02 00 35 04 06 00 1E 00 00 CA [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 28 14 00 90 00 B0 [10:32:47]RAPDU: 90 00 [10:32:47]wFMCommunicate OK [10:32:47]wFMCommunicate request_size=10 [10:32:47]MH_SAM_APDU [10:32:47]CAPDU: 80 0D 02 02 05 BE 45 AA 04 EA [10:32:47]Write to MH i2c: E2 0D 00 29 14 80 0D 02 02 05 00 BE 45 AA 04 EA 00 00 5C [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 29 14 00 90 00 B1 [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 2A 14 80 0D 03 02 00 00 00 00 B9 [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 2A 14 00 09 D6 29 DA 9E EA 3C E1 90 00 41 [10:32:47]RAPDU: 09 D6 29 DA 9E EA 3C E1 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 2B 14 80 11 00 00 00 00 00 00 B9 [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 2B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [10:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:32:47]wFMCommunicate OK [10:32:47]CreateOFDProtocolMessage done [10:32:47]OFDSenderStorePacket 156849 [10:32:47]StoreOFDPacket docnum=156849 [10:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 BD 07 01 0B 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 50 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 64 02 00 35 04 06 00 1E BE 45 AA 04 EA 09 D6 29 DA 9E EA 3C E1 [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/00156849 [10:32:47]NVStorageSaveData ofd_packets/00156849 [10:32:47]File name is /storage/ofd_packets/00156849 [10:32:47]Write 301 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 2C 14 40 [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 2C 14 00 00 00 00 00 FF 0F 55 [10:32:47]RasterBufferAndPrint [10:32:47]line Счет N : (1)99662 [10:32:47]line ИНН: 02508201610067 [10:32:47]line Контрольно-Кассовый Чек [10:32:47]line ПРОДАЖА [10:32:47]line ТРК (МРК, ГНК) : 31 [10:32:47]line Товар: 2710124130 [10:32:47]line Аи-92-К-5 [10:32:47]line 10.000 * 0.00 [10:32:47]line = 0.00 [10:32:47]line НДС 12% НСП 1% [10:32:47]line > о реализуемом товаре [10:32:47]line ИТОГО: 0.00 [10:32:47]line НСП 1% : 0.00 [10:32:47]line НДС 12% : 0.00 [10:32:47]line Наличными: 0.00 [10:32:47]line Безнал.: 0.00 [10:32:47]line Место: АЗС № 143 "Партнер Нефть" [10:32:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:32:47]line СНО: Общий режим [10:32:47]line Чек 65 28.10.2024 10:32 [10:32:47]line Смена: 538 ФФД: 1.0 [10:32:47]line ЗНМ: 0300000096 [10:32:47]line РНМ: 0000000000091693 [10:32:47]line Версия ККМ: 001 [10:32:47]line Талоны: Топливные Талоны [10:32:47]line 4582903 [10:32:47]line ФМ: 0000000000871792 [10:32:47]line ФД: 156849 [10:32:47]line ФПД: 33802561389802 [10:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156849&fm=33802561389802&tin=02508201610067®Number=0000000000091693&sum=0 [10:32:47]written 0, free lines is 4095 [10:32:47]OFD Sender: Processing packet 156849 [packets to send 31, broken 30] [10:32:47]ProducePacketName [10:32:47]name=ofd_packets/00156849 [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:48]Connected sock=11 [10:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 BD 07 01 0B 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 50 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 64 02 00 35 04 06 00 1E BE 45 AA 04 EA 09 D6 29 DA 9E EA 3C E1 [10:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BA 30 47 00 86 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 64 02 00 F4 03 04 00 BD 0D 1F 67 B6 04 01 00 00 00 07 39 EB 53 7C AC 13 [10:32:48]CommunicateWithHost err = 0 [10:32:48]CheckOFDResponse [10:32:48]1017 (14) - 77093643461234 [10:32:48]1041 (16) - 0000000000871792 [10:32:48]1040 (4) - 156849 [10:32:48]1012 (4) - 28.10.2024 04:06 [10:32:48]1206 (1) - 0 [10:32:48]OFD Sender: Remove packet 156849 [10:32:48]ProducePacketName [10:32:48]name=ofd_packets/00156849 [10:32:48]NVStorageDeleteData [10:32:48]Write to MH i2c: 01 00 00 56 14 6A [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 56 14 00 00 00 00 00 E7 0C 64 [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 3309 [10:32:48]process_action close_receipt done [10:32:48]requested_data is exist [10:32:48]produce_requested_data [10:32:48]requested_item fm.sn is exist - process it [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 11 00 00 [10:32:48]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [10:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:32:48]wFMCommunicate OK [10:32:48]requested_item fd.num is exist - process it [10:32:48]SAM_PROTO_GetFieldsCounters [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 00 00 [10:32:48]Write to MH i2c: E2 08 00 5E 14 80 13 00 00 00 00 00 00 EE [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 62 00 5E 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 64 02 00 0E 04 04 00 1A 02 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 0A [10:32:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 64 02 00 0E 04 04 00 1A 02 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 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetFieldsCounters done [10:32:48]requested_item shift.num is exist - process it [10:32:48]requested_item shift.opened is exist - process it [10:32:48]req_shift_opened [10:32:48]FM_GetShiftState [10:32:48]SAM_PROTO_GetShiftState [10:32:48]wFMCommunicate request_size=4 [10:32:48]MH_SAM_APDU [10:32:48]CAPDU: 80 13 01 00 [10:32:48]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [10:32:48]Write i2c OK [10:32:48]MH_I2C_Read... [10:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:48]Read from MH i2c: E2 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 [10:32:48]MH_I2C_Read... [10:32:48]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E2 [10:32:48]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:32:48]wFMCommunicate OK [10:32:48]SAM_PROTO_GetShiftState done [10:32:48]FM_GetShiftState done [10:32:48]req_shift_opened done [10:32:48]requested_item shift.open_date is exist - process it [10:32:48]req_shift_open_date [10:32:48]req_shift_open_date done [10:32:48]produce_requested_data done [10:32:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156849,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:32:48]process_action_free close_receipt [10:32:48]json_value_free [10:32:48]json_value_free done [10:32:48]process_json_proto returns [10:32:48]Send response to host [10:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156849,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:32:48]free response buf [10:32:48]execute_script done [10:32:48]execute_script returns [10:32:48]free content buf [10:32:48]Sock 9.Close socket [10:32:48]Sock 9.Thread stoped [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:32:59]int [10:32:59]Write to MH i2c: 01 00 00 60 14 74 [10:32:59]*** FLAG_PRN_KEY set [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 07 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 07 00 60 14 00 08 00 00 00 FF 0F 91 [10:32:59]state=0 [10:32:59]Key pressed [10:32:59]Feed [10:32:59]Write to MH i2c: D8 00 00 61 14 4C [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: D8 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: D8 01 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: D8 01 00 61 14 00 4D [10:32:59]int [10:32:59]Write to MH i2c: 01 00 00 62 14 76 [10:32:59]Write i2c OK [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 07 00 [10:32:59]MH_I2C_Read... [10:32:59]Read from MH i2c: 01 07 00 62 14 00 48 00 00 00 3D 00 02 [10:32:59]state=2 [10:32:59]Key pressed [10:33:00]int [10:33:00]Write to MH i2c: 01 00 00 63 14 77 [10:33:00]*** FLAG_PRN_KEY reset [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 63 14 00 00 00 00 00 F6 0F 83 [10:33:00]state=2 [10:33:00]Stop feed [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:49]accept exits with 7 [10:34:49]New connection [10:34:49]New thread 3066604900 created [10:34:49]Thread 3066748260 joined [10:34:49]Waiting for new connection... [10:34:49] Sock 7.Parse request [10:34:49]Sock 7.Check first char [10:34:49]Sock 7.First char is OK [10:34:49]request: POST /json_proto HTTP/1.0 [10:34:49]Method: POST [10:34:49]URL: /json_proto [10:34:49]Method is POST - this is cgi request [10:34:49]url: /json_proto [10:34:49]query_string will be loaded in cgi processing [10:34:49]execute_cgi json_proto POST (null) [10:34:49]execute_cgi path=json_proto method=POST [10:34:49]POST find Content-Length [10:34:49]Host: 172.17.63.3:8080 [10:34:49]Content-Length: 676 [10:34:49]Content-Type: application/json [10:34:49] [10:34:49]POST finish read [10:34:49]Found Content-Length = 676 [10:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:34:49]execute_script... [10:34: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)99663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:34:49]POST & json_proto [10:34:49]process_json_proto [10:34:49]json parsed OK: [10:34:49]protocol is kg_v1.0 [10:34:49]action value=close_receipt [10:34:49]process_action close_receipt [10:34:49]cmd_close_receipt [10:34:49]MH_GetDate [10:34:49]Write to MH i2c: F0 00 00 64 14 67 [10:34:49]Write i2c OK [10:34:49]MH_I2C_Read... [10:34:49]Read from MH i2c: F0 [10:34:49]MH_I2C_Read... [10:34:49]Read from MH i2c: F0 09 00 [10:34:49]MH_I2C_Read... [10:34:49]Read from MH i2c: F0 09 00 64 14 00 CB 68 1F 67 50 D1 6C 64 1A [10:34:49]GetLastDocTimeStamp 1730111568 [10:34:49]current date 1730111691 [10:34:49]FM_GetShiftState [10:34:49]SAM_PROTO_GetShiftState [10:34:49]wFMCommunicate request_size=4 [10:34:49]MH_SAM_APDU [10:34:49]CAPDU: 80 13 01 00 [10:34:49]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [10:34:49]Write i2c OK [10:34:49]MH_I2C_Read... [10:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:49]Read from MH i2c: E2 [10:34:49]MH_I2C_Read... [10:34:49]Read from MH i2c: E2 0E 00 [10:34:49]MH_I2C_Read... [10:34:49]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E8 [10:34:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:34:49]wFMCommunicate OK [10:34:49]SAM_PROTO_GetShiftState done [10:34:49]FM_GetShiftState done [10:34:49]opened in 1730075526 [10:34:49]opened+sec_in_day 1730161926 [10:34:49]quantity*price = 30038 [10:34:49]sum+1 = 30039 [10:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 66 28.10.2024 10:34 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156850 ФПД: 144962541268119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103451&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156850&fm=144962541268119&tin=02508201610067®Number=0000000000091693&sum=30000 [10:34:50]StoreToDocumentArchive [10:34:50]shift 538 fd 156850 [10:34:50]save to /storage/0538/doc_00156850 [10:34:50]save last doc name /storage/0538/doc_00156850 to /storage/kkm_last_doc_name [10:34:50]save OK [10:34:50]Clear old archive folders... [10:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:50]tlvbuf is 01AB1BB0 [10:34:50]SAM_PROTO_ClearQueue [10:34:50]wFMCommunicate request_size=4 [10:34:50]MH_SAM_APDU [10:34:50]CAPDU: 80 09 00 00 [10:34:50]Write to MH i2c: E2 08 00 72 14 80 09 00 00 00 00 00 00 F8 [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [10:34:50]RAPDU: 90 00 [10:34:50]wFMCommunicate OK [10:34:50]SAM_PROTO_ClearQueue done [10:34:50]KKMCreateOFDPacket [10:34:50]OFDProtocolAddRootSTLVToBuf [10:34:50]FM_MakeSignedData [10:34:50]FM_MakeSignedData [10:34:50]SAM_PROTO_SignData [10:34:50]wFMCommunicate request_size=4 [10:34:50]MH_SAM_APDU [10:34:50]CAPDU: 80 0D 01 02 [10:34:50]Write to MH i2c: E2 08 00 73 14 80 0D 01 02 00 00 00 00 00 [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 73 14 00 90 00 FB [10:34:50]RAPDU: 90 00 [10:34:50]wFMCommunicate OK [10:34:50]wFMCommunicate request_size=255 [10:34:50]MH_SAM_APDU [10:34: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CB 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 64 02 00 35 04 06 00 83 [10:34:50]Write to MH i2c: E2 02 01 74 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CB 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 64 02 00 35 04 06 00 83 00 00 3A [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [10:34:50]RAPDU: 90 00 [10:34:50]wFMCommunicate OK [10:34:50]wFMCommunicate request_size=10 [10:34:50]MH_SAM_APDU [10:34:50]CAPDU: 80 0D 02 02 05 D7 B8 C7 2C 97 [10:34:50]Write to MH i2c: E2 0D 00 75 14 80 0D 02 02 05 00 D7 B8 C7 2C 97 00 00 26 [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [10:34:50]RAPDU: 90 00 [10:34:50]wFMCommunicate OK [10:34:50]wFMCommunicate request_size=4 [10:34:50]MH_SAM_APDU [10:34:50]CAPDU: 80 0D 03 02 [10:34:50]Write to MH i2c: E2 08 00 76 14 80 0D 03 02 00 00 00 00 05 [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 0B 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 0B 00 76 14 00 6F EC CB 06 59 CE D5 DB 90 00 09 [10:34:50]RAPDU: 6F EC CB 06 59 CE D5 DB 90 00 [10:34:50]wFMCommunicate OK [10:34:50]SAM_PROTO_SignData done [10:34:50]FM_MakeSignedData done [10:34:50]CreateOFDProtocolMessage [10:34:50]wFMCommunicate request_size=4 [10:34:50]MH_SAM_APDU [10:34:50]CAPDU: 80 11 00 00 [10:34:50]Write to MH i2c: E2 08 00 77 14 80 11 00 00 00 00 00 00 05 [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:50]Read from MH i2c: E2 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 17 00 [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: E2 17 00 77 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [10:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:34:50]wFMCommunicate OK [10:34:50]CreateOFDProtocolMessage done [10:34:50]OFDSenderStorePacket 156850 [10:34:50]StoreOFDPacket docnum=156850 [10:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 FC 07 01 63 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CB 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 64 02 00 35 04 06 00 83 D7 B8 C7 2C 97 6F EC CB 06 59 CE D5 DB [10:34:50]CheckFolder [10:34:50]dirname=/storage/ofd_packets [10:34:50]CheckFolder done [10:34:50]ProducePacketName [10:34:50]name=ofd_packets/00156850 [10:34:50]NVStorageSaveData ofd_packets/00156850 [10:34:50]File name is /storage/ofd_packets/00156850 [10:34:50]Write 301 bytes [10:34:50]NVStorageSaveData done [10:34:50]OFDSenderStorePacket done [10:34:50]KKMCreateOFDPacket done [10:34:50]NVStorageSaveData kkm_last_timestamp [10:34:50]File name is /storage/kkm_last_timestamp [10:34:50]Write 4 bytes [10:34:50]NVStorageSaveData done [10:34:50]ExternCall_PrintAddStr [10:34:50]wPrintStart [10:34:50]Write to MH i2c: 01 00 00 78 14 8C [10:34:50]Write i2c OK [10:34:50]MH_I2C_Read... [10:34:50]Read from MH i2c: 01 [10:34:50]MH_I2C_Read... [10:34:51]Read from MH i2c: 01 07 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 FF 0F A1 [10:34:51]RasterBufferAndPrint [10:34:51]line Счет N : (1)99663 [10:34:51]line ИНН: 02508201610067 [10:34:51]line Контрольно-Кассовый Чек [10:34:51]line ПРОДАЖА [10:34:51]line ТРК (МРК, ГНК) : 31 [10:34:51]line Товар: 2710124130 [10:34:51]line Аи-92-К-5 [10:34:51]line 4.490 * 66.90 [10:34:51]line = 300.38 [10:34:51]line НДС 12% НСП 1% [10:34:51]line > о реализуемом товаре [10:34:51]line ОКРУГЛЕНИЕ: -0.38 [10:34:51]line ИТОГО: 300.00 [10:34:51]line Внесено: 300.00 [10:34:51]line СДАЧА: 0.00 [10:34:51]line НСП 1% : 2.66 [10:34:51]line НДС 12% : 31.90 [10:34:51]line Наличными: 300.00 [10:34:51]line Безнал.: 0.00 [10:34:51]line Место: АЗС № 143 "Партнер Нефть" [10:34:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:34:51]line СНО: Общий режим [10:34:51]line Чек 66 28.10.2024 10:34 [10:34:51]line Смена: 538 ФФД: 1.0 [10:34:51]line ЗНМ: 0300000096 [10:34:51]line РНМ: 0000000000091693 [10:34:51]line Версия ККМ: 001 [10:34:51]line ФМ: 0000000000871792 [10:34:51]line ФД: 156850 [10:34:51]line ФПД: 144962541268119 [10:34:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T103451&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156850&fm=144962541268119&tin=02508201610067®Number=0000000000091693&sum=30000 [10:34:51]OFD Sender: Processing packet 156850 [packets to send 31, broken 30] [10:34:51]ProducePacketName [10:34:51]name=ofd_packets/00156850 [10:34:51]OFD Sender: To server: pG, [10:34:51]CommunicateWithHost lk.salyk.kg:30040 [10:34:51]ConnectInit lk.salyk.kg [10:34:51]written 0, free lines is 4095 [10:34:51]Connected sock=10 [10:34: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 37 39 32 0F 01 00 00 E5 FC 07 01 63 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 CB 68 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 64 02 00 35 04 06 00 83 D7 B8 C7 2C 97 6F EC CB 06 59 CE D5 DB [10:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 D5 47 00 BB C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 64 02 00 F4 03 04 00 38 0E 1F 67 B6 04 01 00 00 D5 66 1F 1C 11 28 CB 99 [10:34:51]CommunicateWithHost err = 0 [10:34:51]CheckOFDResponse [10:34:51]1017 (14) - 77093643461234 [10:34:51]1041 (16) - 0000000000871792 [10:34:51]1040 (4) - 156850 [10:34:51]1012 (4) - 28.10.2024 04:08 [10:34:51]1206 (1) - 0 [10:34:51]OFD Sender: Remove packet 156850 [10:34:51]ProducePacketName [10:34:51]name=ofd_packets/00156850 [10:34:51]NVStorageDeleteData [10:34:51]Write to MH i2c: 01 00 00 A3 14 B7 [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: 01 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: 01 07 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: 01 07 00 A3 14 00 00 00 00 00 D6 0C A0 [10:34:51]RasterBufferAndPrint [10:34:51]line [10:34:51]line [10:34:51]line [10:34:51]line [10:34:51]line [10:34:51]written 0, free lines is 3293 [10:34:51]process_action close_receipt done [10:34:51]requested_data is exist [10:34:51]produce_requested_data [10:34:51]requested_item fm.sn is exist - process it [10:34:51]wFMCommunicate request_size=4 [10:34:51]MH_SAM_APDU [10:34:51]CAPDU: 80 11 00 00 [10:34:51]Write to MH i2c: E2 08 00 AA 14 80 11 00 00 00 00 00 00 38 [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:51]Read from MH i2c: E2 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 17 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 17 00 AA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [10:34:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:34:51]wFMCommunicate OK [10:34:51]requested_item fd.num is exist - process it [10:34:51]SAM_PROTO_GetFieldsCounters [10:34:51]wFMCommunicate request_size=4 [10:34:51]MH_SAM_APDU [10:34:51]CAPDU: 80 13 00 00 [10:34:51]Write to MH i2c: E2 08 00 AB 14 80 13 00 00 00 00 00 00 3B [10:34:51]Write i2c OK [10:34:51]MH_I2C_Read... [10:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:51]Read from MH i2c: E2 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 62 00 [10:34:51]MH_I2C_Read... [10:34:51]Read from MH i2c: E2 62 00 AB 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 64 02 00 0E 04 04 00 1A 02 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 5B [10: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 64 02 00 0E 04 04 00 1A 02 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 [10:34:52]wFMCommunicate OK [10:34:52]SAM_PROTO_GetFieldsCounters done [10:34:52]requested_item shift.num is exist - process it [10:34:52]requested_item shift.opened is exist - process it [10:34:52]req_shift_opened [10:34:52]FM_GetShiftState [10:34:52]SAM_PROTO_GetShiftState [10:34:52]wFMCommunicate request_size=4 [10:34:52]MH_SAM_APDU [10:34:52]CAPDU: 80 13 01 00 [10:34:52]Write to MH i2c: E2 08 00 AC 14 80 13 01 00 00 00 00 00 3D [10:34:52]Write i2c OK [10:34:52]MH_I2C_Read... [10:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:52]Read from MH i2c: E2 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 [10:34:52]MH_I2C_Read... [10:34:52]Read from MH i2c: E2 0E 00 AC 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2F [10:34:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:34:52]wFMCommunicate OK [10:34:52]SAM_PROTO_GetShiftState done [10:34:52]FM_GetShiftState done [10:34:52]req_shift_opened done [10:34:52]requested_item shift.open_date is exist - process it [10:34:52]req_shift_open_date [10:34:52]req_shift_open_date done [10:34:52]produce_requested_data done [10:34:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156850,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:34:52]process_action_free close_receipt [10:34:52]json_value_free [10:34:52]json_value_free done [10:34:52]process_json_proto returns [10:34:52]Send response to host [10:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156850,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:34:52]free response buf [10:34:52]execute_script done [10:34:52]execute_script returns [10:34:52]free content buf [10:34:52]Sock 7.Close socket [10:34:52]Sock 7.Thread stoped [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:36:02]OFD Sender: No OFD packet to send [10:36:07]OFD Sender: No OFD packet to send [10:36:12]OFD Sender: No OFD packet to send [10:36:17]OFD Sender: No OFD packet to send [10:36:22]OFD Sender: No OFD packet to send [10:36:27]OFD Sender: No OFD packet to send [10:36:32]OFD Sender: No OFD packet to send [10:36:37]OFD Sender: No OFD packet to send [10:36:42]OFD Sender: No OFD packet to send [10:36:47]OFD Sender: No OFD packet to send [10:36:52]OFD Sender: No OFD packet to send [10:36:57]OFD Sender: No OFD packet to send [10:37:02]OFD Sender: No OFD packet to send [10:37:07]OFD Sender: No OFD packet to send [10:37:12]OFD Sender: No OFD packet to send [10:37:17]OFD Sender: No OFD packet to send [10:37:22]OFD Sender: No OFD packet to send [10:37:27]OFD Sender: No OFD packet to send [10:37:32]OFD Sender: No OFD packet to send [10:37:37]OFD Sender: No OFD packet to send [10:37:42]OFD Sender: No OFD packet to send [10:37:47]OFD Sender: No OFD packet to send [10:37:52]OFD Sender: No OFD packet to send [10:37:57]OFD Sender: No OFD packet to send [10:38:02]OFD Sender: No OFD packet to send [10:38:07]OFD Sender: No OFD packet to send [10:38:12]OFD Sender: No OFD packet to send [10:38:17]OFD Sender: No OFD packet to send [10:38:22]OFD Sender: No OFD packet to send [10:38:27]OFD Sender: No OFD packet to send [10:38:32]OFD Sender: No OFD packet to send [10:38:37]OFD Sender: No OFD packet to send [10:38:42]OFD Sender: No OFD packet to send [10:38:47]OFD Sender: No OFD packet to send [10:38:52]OFD Sender: No OFD packet to send [10:38:57]OFD Sender: No OFD packet to send [10:39:02]OFD Sender: No OFD packet to send [10:39:07]OFD Sender: No OFD packet to send [10:39:12]OFD Sender: No OFD packet to send [10:39:17]OFD Sender: No OFD packet to send [10:39:22]OFD Sender: No OFD packet to send [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:42]OFD Sender: No OFD packet to send [10:39:47]OFD Sender: No OFD packet to send [10:39:52]OFD Sender: No OFD packet to send [10:39:57]OFD Sender: No OFD packet to send [10:40:02]OFD Sender: No OFD packet to send [10:40:07]OFD Sender: No OFD packet to send [10:40:12]OFD Sender: No OFD packet to send [10:40:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:26]accept exits with 9 [10:41:26]New connection [10:41:26]New thread 3066748260 created [10:41:26]Thread 3066604900 joined [10:41:26]Waiting for new connection... [10:41:26] Sock 9.Parse request [10:41:26]Sock 9.Check first char [10:41:26]Sock 9.First char is OK [10:41:26]request: POST /json_proto HTTP/1.0 [10:41:26]Method: POST [10:41:26]URL: /json_proto [10:41:26]Method is POST - this is cgi request [10:41:26]url: /json_proto [10:41:26]query_string will be loaded in cgi processing [10:41:26]execute_cgi json_proto POST (null) [10:41:26]execute_cgi path=json_proto method=POST [10:41:26]POST find Content-Length [10:41:26]Host: 172.17.63.3:8080 [10:41:26]Content-Length: 765 [10:41:26]Content-Type: application/json [10:41:26] [10:41:26]POST finish read [10:41:26]Found Content-Length = 765 [10:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:26]execute_script... [10:41: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)99664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:26]POST & json_proto [10:41:26]process_json_proto [10:41:26]json parsed OK: [10:41:26]protocol is kg_v1.0 [10:41:26]action value=close_receipt [10:41:26]process_action close_receipt [10:41:26]cmd_close_receipt [10:41:26]MH_GetDate [10:41:26]Write to MH i2c: F0 00 00 AD 14 B0 [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: F0 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: F0 09 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: F0 09 00 AD 14 00 59 6A 1F 67 50 D1 6C 64 F3 [10:41:26]GetLastDocTimeStamp 1730111691 [10:41:26]current date 1730112089 [10:41:26]FM_GetShiftState [10:41:26]SAM_PROTO_GetShiftState [10:41:26]wFMCommunicate request_size=4 [10:41:26]MH_SAM_APDU [10:41:26]CAPDU: 80 13 01 00 [10:41:26]Write to MH i2c: E2 08 00 AE 14 80 13 01 00 00 00 00 00 3F [10:41:26]Write i2c OK [10:41:26]MH_I2C_Read... [10:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:26]Read from MH i2c: E2 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 [10:41:26]MH_I2C_Read... [10:41:26]Read from MH i2c: E2 0E 00 AE 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 31 [10:41:26]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:41:26]wFMCommunicate OK [10:41:26]SAM_PROTO_GetShiftState done [10:41:26]FM_GetShiftState done [10:41:26]opened in 1730075526 [10:41:26]opened+sec_in_day 1730161926 [10:41:26]quantity*price = 100050 [10:41:26]sum+1 = 100052 [10:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 67 28.10.2024 10:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156851 ФПД: 271727983142954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104129&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156851&fm=271727983142954&tin=02508201610067®Number=0000000000091693&sum=100051 [10:41:27]StoreToDocumentArchive [10:41:27]shift 538 fd 156851 [10:41:27]save to /storage/0538/doc_00156851 [10:41:27]save last doc name /storage/0538/doc_00156851 to /storage/kkm_last_doc_name [10:41:27]save OK [10:41:27]Clear old archive folders... [10:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:27]tlvbuf is 01A70970 [10:41:27]SAM_PROTO_ClearQueue [10:41:27]wFMCommunicate request_size=4 [10:41:27]MH_SAM_APDU [10:41:27]CAPDU: 80 09 00 00 [10:41:27]Write to MH i2c: E2 08 00 BB 14 80 09 00 00 00 00 00 00 41 [10:41:27]Write i2c OK [10:41:27]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_ClearQueue done [10:41:28]KKMCreateOFDPacket [10:41:28]OFDProtocolAddRootSTLVToBuf [10:41:28]FM_MakeSignedData [10:41:28]FM_MakeSignedData [10:41:28]SAM_PROTO_SignData [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 01 02 [10:41:28]Write to MH i2c: E2 08 00 BC 14 80 0D 01 02 00 00 00 00 49 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 BC 14 00 90 00 44 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=255 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 59 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 64 02 00 35 04 06 00 F7 22 99 E9 [10:41:28]Write to MH i2c: E2 02 01 BD 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 59 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 64 02 00 35 04 06 00 F7 22 99 E9 00 00 95 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 BD 14 00 90 00 45 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=7 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 02 02 02 28 2A [10:41:28]Write to MH i2c: E2 0A 00 BE 14 80 0D 02 02 02 00 28 2A 00 00 A2 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 03 00 BE 14 00 90 00 46 [10:41:28]RAPDU: 90 00 [10:41:28]wFMCommunicate OK [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 0D 03 02 [10:41:28]Write to MH i2c: E2 08 00 BF 14 80 0D 03 02 00 00 00 00 4E [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 0B 00 BF 14 00 1D A7 9F 1E 43 19 B7 A8 90 00 8B [10:41:28]RAPDU: 1D A7 9F 1E 43 19 B7 A8 90 00 [10:41:28]wFMCommunicate OK [10:41:28]SAM_PROTO_SignData done [10:41:28]FM_MakeSignedData done [10:41:28]CreateOFDProtocolMessage [10:41:28]wFMCommunicate request_size=4 [10:41:28]MH_SAM_APDU [10:41:28]CAPDU: 80 11 00 00 [10:41:28]Write to MH i2c: E2 08 00 C0 14 80 11 00 00 00 00 00 00 4E [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:28]Read from MH i2c: E2 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: E2 17 00 C0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A3 [10:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:41:28]wFMCommunicate OK [10:41:28]CreateOFDProtocolMessage done [10:41:28]OFDSenderStorePacket 156851 [10:41:28]StoreOFDPacket docnum=156851 [10:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 28 6D 04 01 2F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 59 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 64 02 00 35 04 06 00 F7 22 99 E9 28 2A 1D A7 9F 1E 43 19 B7 A8 [10:41:28]CheckFolder [10:41:28]dirname=/storage/ofd_packets [10:41:28]CheckFolder done [10:41:28]ProducePacketName [10:41:28]name=ofd_packets/00156851 [10:41:28]NVStorageSaveData ofd_packets/00156851 [10:41:28]File name is /storage/ofd_packets/00156851 [10:41:28]Write 298 bytes [10:41:28]NVStorageSaveData done [10:41:28]OFDSenderStorePacket done [10:41:28]KKMCreateOFDPacket done [10:41:28]NVStorageSaveData kkm_last_timestamp [10:41:28]File name is /storage/kkm_last_timestamp [10:41:28]Write 4 bytes [10:41:28]NVStorageSaveData done [10:41:28]ExternCall_PrintAddStr [10:41:28]wPrintStart [10:41:28]Write to MH i2c: 01 00 00 C1 14 D5 [10:41:28]Write i2c OK [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 [10:41:28]MH_I2C_Read... [10:41:28]Read from MH i2c: 01 07 00 C1 14 00 00 00 00 00 FF 0F EA [10:41:28]RasterBufferAndPrint [10:41:28]line Счет N : (1)99664 [10:41:28]line ИНН: 02508201610067 [10:41:28]line Контрольно-Кассовый Чек [10:41:28]line ПРОДАЖА [10:41:28]line ТРК (МРК, ГНК) : 32 [10:41:28]line Товар: 2710194210 [10:41:28]line ДТ-К-5 [10:41:28]line 13.130 * 76.20 [10:41:28]line = 1000.51 [10:41:28]line НДС 12% НСП 1% [10:41:28]line > о реализуемом товаре [10:41:28]line ИТОГО: 1000.51 [10:41:28]line НСП 1% : 8.85 [10:41:28]line НДС 12% : 106.25 [10:41:28]line Наличными: 0.00 [10:41:28]line Безнал.: 1000.51 [10:41:28]line Место: АЗС № 143 "Партнер Нефть" [10:41:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:41:28]line СНО: Общий режим [10:41:28]line Чек 67 28.10.2024 10:41 [10:41:28]line Смена: 538 ФФД: 1.0 [10:41:28]line ЗНМ: 0300000096 [10:41:28]line РНМ: 0000000000091693 [10:41:28]line Версия ККМ: 001 [10:41:28]line Платежная система: Mbank [10:41:28]line ФМ: 0000000000871792 [10:41:28]line ФД: 156851 [10:41:28]line ФПД: 271727983142954 [10:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104129&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156851&fm=271727983142954&tin=02508201610067®Number=0000000000091693&sum=100051 [10:41:28]OFD Sender: Processing packet 156851 [packets to send 31, broken 30] [10:41:28]ProducePacketName [10:41:28]name=ofd_packets/00156851 [10:41:28]OFD Sender: To server: pG, [10:41:28]CommunicateWithHost lk.salyk.kg:30040 [10:41:28]ConnectInit lk.salyk.kg [10:41:28]written 0, free lines is 4095 [10:41:28]Connected sock=10 [10:41: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 37 39 32 0C 01 00 00 28 6D 04 01 2F 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 59 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 64 02 00 35 04 06 00 F7 22 99 E9 28 2A 1D A7 9F 1E 43 19 B7 A8 [10:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D8 70 47 00 4F 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 37 39 32 10 04 04 00 B3 64 02 00 F4 03 04 00 C5 0F 1F 67 B6 04 01 00 00 CB 99 B9 CA 4D 6D 56 19 [10:41:29]CommunicateWithHost err = 0 [10:41:29]CheckOFDResponse [10:41:29]1017 (14) - 77093643461234 [10:41:29]1041 (16) - 0000000000871792 [10:41:29]1040 (4) - 156851 [10:41:29]1012 (4) - 28.10.2024 04:15 [10:41:29]1206 (1) - 0 [10:41:29]OFD Sender: Remove packet 156851 [10:41:29]ProducePacketName [10:41:29]name=ofd_packets/00156851 [10:41:29]NVStorageDeleteData [10:41:29]Write to MH i2c: 01 00 00 EA 14 FE [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: 01 07 00 EA 14 00 00 00 00 00 00 0D 12 [10:41:29]RasterBufferAndPrint [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]line [10:41:29]written 0, free lines is 3334 [10:41:29]process_action close_receipt done [10:41:29]requested_data is exist [10:41:29]produce_requested_data [10:41:29]requested_item fm.sn is exist - process it [10:41:29]wFMCommunicate request_size=4 [10:41:29]MH_SAM_APDU [10:41:29]CAPDU: 80 11 00 00 [10:41:29]Write to MH i2c: E2 08 00 F1 14 80 11 00 00 00 00 00 00 7F [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:29]Read from MH i2c: E2 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 17 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 17 00 F1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [10:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:41:29]wFMCommunicate OK [10:41:29]requested_item fd.num is exist - process it [10:41:29]SAM_PROTO_GetFieldsCounters [10:41:29]wFMCommunicate request_size=4 [10:41:29]MH_SAM_APDU [10:41:29]CAPDU: 80 13 00 00 [10:41:29]Write to MH i2c: E2 08 00 F2 14 80 13 00 00 00 00 00 00 82 [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:29]Read from MH i2c: E2 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 62 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 62 00 F2 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 64 02 00 0E 04 04 00 1A 02 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 A6 [10:41: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 64 02 00 0E 04 04 00 1A 02 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 [10:41:29]wFMCommunicate OK [10:41:29]SAM_PROTO_GetFieldsCounters done [10:41:29]requested_item shift.num is exist - process it [10:41:29]requested_item shift.opened is exist - process it [10:41:29]req_shift_opened [10:41:29]FM_GetShiftState [10:41:29]SAM_PROTO_GetShiftState [10:41:29]wFMCommunicate request_size=4 [10:41:29]MH_SAM_APDU [10:41:29]CAPDU: 80 13 01 00 [10:41:29]Write to MH i2c: E2 08 00 F3 14 80 13 01 00 00 00 00 00 84 [10:41:29]Write i2c OK [10:41:29]MH_I2C_Read... [10:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:29]Read from MH i2c: E2 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 0E 00 [10:41:29]MH_I2C_Read... [10:41:29]Read from MH i2c: E2 0E 00 F3 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 76 [10:41:29]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:41:29]wFMCommunicate OK [10:41:29]SAM_PROTO_GetShiftState done [10:41:29]FM_GetShiftState done [10:41:29]req_shift_opened done [10:41:29]requested_item shift.open_date is exist - process it [10:41:29]req_shift_open_date [10:41:29]req_shift_open_date done [10:41:29]produce_requested_data done [10:41:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156851,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:41:29]process_action_free close_receipt [10:41:29]json_value_free [10:41:29]json_value_free done [10:41:29]process_json_proto returns [10:41:29]Send response to host [10:41:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156851,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:41:29]free response buf [10:41:29]execute_script done [10:41:29]execute_script returns [10:41:29]free content buf [10:41:29]Sock 9.Close socket [10:41:29]Sock 9.Thread stoped [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:06]accept exits with 7 [10:43:06]New connection [10:43:06]New thread 3066604900 created [10:43:06]Thread 3066748260 joined [10:43:06]Waiting for new connection... [10:43:06] Sock 7.Parse request [10:43:06]Sock 7.Check first char [10:43:06]Sock 7.First char is OK [10:43:06]request: POST /json_proto HTTP/1.0 [10:43:06]Method: POST [10:43:06]URL: /json_proto [10:43:06]Method is POST - this is cgi request [10:43:06]url: /json_proto [10:43:06]query_string will be loaded in cgi processing [10:43:06]execute_cgi json_proto POST (null) [10:43:06]execute_cgi path=json_proto method=POST [10:43:06]POST find Content-Length [10:43:06]Host: 172.17.63.3:8080 [10:43:06]Content-Length: 676 [10:43:06]Content-Type: application/json [10:43:06] [10:43:06]POST finish read [10:43:06]Found Content-Length = 676 [10:43:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]execute_script... [10:43: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)99665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:06]POST & json_proto [10:43:06]process_json_proto [10:43:06]json parsed OK: [10:43:06]protocol is kg_v1.0 [10:43:06]action value=close_receipt [10:43:06]process_action close_receipt [10:43:06]cmd_close_receipt [10:43:06]MH_GetDate [10:43:06]Write to MH i2c: F0 00 00 F4 14 F7 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 [10:43:06]MH_I2C_Read... [10:43:06]Read from MH i2c: F0 09 00 F4 14 00 BD 6A 1F 67 50 D1 6C 64 9E [10:43:06]GetLastDocTimeStamp 1730112089 [10:43:06]current date 1730112189 [10:43:06]FM_GetShiftState [10:43:06]SAM_PROTO_GetShiftState [10:43:06]wFMCommunicate request_size=4 [10:43:06]MH_SAM_APDU [10:43:06]CAPDU: 80 13 01 00 [10:43:06]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [10:43:06]Write i2c OK [10:43:06]MH_I2C_Read... [10:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:07]Read from MH i2c: E2 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0E 00 [10:43:07]MH_I2C_Read... [10:43:07]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 78 [10:43:07]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:43:07]wFMCommunicate OK [10:43:07]SAM_PROTO_GetShiftState done [10:43:07]FM_GetShiftState done [10:43:07]opened in 1730075526 [10:43:07]opened+sec_in_day 1730161926 [10:43:07]quantity*price = 25020 [10:43:07]sum+1 = 25022 [10:43:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 68 28.10.2024 10:43 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156852 ФПД: 270078624768797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104309&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156852&fm=270078624768797&tin=02508201610067®Number=0000000000091693&sum=25000 [10:43:08]StoreToDocumentArchive [10:43:08]shift 538 fd 156852 [10:43:08]save to /storage/0538/doc_00156852 [10:43:08]save last doc name /storage/0538/doc_00156852 to /storage/kkm_last_doc_name [10:43:08]save OK [10:43:08]Clear old archive folders... [10:43:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:08]tlvbuf is B6E76220 [10:43:08]SAM_PROTO_ClearQueue [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 09 00 00 [10:43:08]Write to MH i2c: E2 08 00 02 15 80 09 00 00 00 00 00 00 89 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 02 15 00 90 00 8B [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]SAM_PROTO_ClearQueue done [10:43:08]KKMCreateOFDPacket [10:43:08]OFDProtocolAddRootSTLVToBuf [10:43:08]FM_MakeSignedData [10:43:08]FM_MakeSignedData [10:43:08]SAM_PROTO_SignData [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 0D 01 02 [10:43:08]Write to MH i2c: E2 08 00 03 15 80 0D 01 02 00 00 00 00 91 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 03 15 00 90 00 8C [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]wFMCommunicate request_size=255 [10:43:08]MH_SAM_APDU [10:43: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BD 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 64 02 00 35 04 06 00 F5 [10:43:08]Write to MH i2c: E2 02 01 04 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BD 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 64 02 00 35 04 06 00 F5 00 00 1A [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 04 15 00 90 00 8D [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]wFMCommunicate request_size=10 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 0D 02 02 05 A2 94 7D A3 1D [10:43:08]Write to MH i2c: E2 0D 00 05 15 80 0D 02 02 05 00 A2 94 7D A3 1D 00 00 11 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 03 00 05 15 00 90 00 8E [10:43:08]RAPDU: 90 00 [10:43:08]wFMCommunicate OK [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 0D 03 02 [10:43:08]Write to MH i2c: E2 08 00 06 15 80 0D 03 02 00 00 00 00 96 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0B 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 0B 00 06 15 00 2D 0A 67 F1 8C AF 18 08 90 00 81 [10:43:08]RAPDU: 2D 0A 67 F1 8C AF 18 08 90 00 [10:43:08]wFMCommunicate OK [10:43:08]SAM_PROTO_SignData done [10:43:08]FM_MakeSignedData done [10:43:08]CreateOFDProtocolMessage [10:43:08]wFMCommunicate request_size=4 [10:43:08]MH_SAM_APDU [10:43:08]CAPDU: 80 11 00 00 [10:43:08]Write to MH i2c: E2 08 00 07 15 80 11 00 00 00 00 00 00 96 [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:08]Read from MH i2c: E2 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 17 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: E2 17 00 07 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [10:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:43:08]wFMCommunicate OK [10:43:08]CreateOFDProtocolMessage done [10:43:08]OFDSenderStorePacket 156852 [10:43:08]StoreOFDPacket docnum=156852 [10:43:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 25 07 01 45 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BD 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 64 02 00 35 04 06 00 F5 A2 94 7D A3 1D 2D 0A 67 F1 8C AF 18 08 [10:43:08]CheckFolder [10:43:08]dirname=/storage/ofd_packets [10:43:08]CheckFolder done [10:43:08]ProducePacketName [10:43:08]name=ofd_packets/00156852 [10:43:08]NVStorageSaveData ofd_packets/00156852 [10:43:08]File name is /storage/ofd_packets/00156852 [10:43:08]Write 301 bytes [10:43:08]NVStorageSaveData done [10:43:08]OFDSenderStorePacket done [10:43:08]KKMCreateOFDPacket done [10:43:08]NVStorageSaveData kkm_last_timestamp [10:43:08]File name is /storage/kkm_last_timestamp [10:43:08]Write 4 bytes [10:43:08]NVStorageSaveData done [10:43:08]ExternCall_PrintAddStr [10:43:08]wPrintStart [10:43:08]Write to MH i2c: 01 00 00 08 15 1D [10:43:08]Write i2c OK [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 [10:43:08]MH_I2C_Read... [10:43:08]Read from MH i2c: 01 07 00 08 15 00 00 00 00 00 FF 0F 32 [10:43:08]RasterBufferAndPrint [10:43:08]line Счет N : (1)99665 [10:43:08]line ИНН: 02508201610067 [10:43:08]line Контрольно-Кассовый Чек [10:43:08]line ПРОДАЖА [10:43:08]line ТРК (МРК, ГНК) : 31 [10:43:08]line Товар: 2710124130 [10:43:08]line Аи-92-К-5 [10:43:08]line 3.740 * 66.90 [10:43:08]line = 250.21 [10:43:08]line НДС 12% НСП 1% [10:43:08]line > о реализуемом товаре [10:43:08]line ОКРУГЛЕНИЕ: -0.21 [10:43:08]line ИТОГО: 250.00 [10:43:08]line Внесено: 250.00 [10:43:08]line СДАЧА: 0.00 [10:43:08]line НСП 1% : 2.21 [10:43:08]line НДС 12% : 26.57 [10:43:08]line Наличными: 250.00 [10:43:08]line Безнал.: 0.00 [10:43:08]line Место: АЗС № 143 "Партнер Нефть" [10:43:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:43:08]line СНО: Общий режим [10:43:08]line Чек 68 28.10.2024 10:43 [10:43:08]line Смена: 538 ФФД: 1.0 [10:43:08]line ЗНМ: 0300000096 [10:43:08]line РНМ: 0000000000091693 [10:43:08]line Версия ККМ: 001 [10:43:08]line ФМ: 0000000000871792 [10:43:08]line ФД: 156852 [10:43:08]line ФПД: 270078624768797 [10:43:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104309&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156852&fm=270078624768797&tin=02508201610067®Number=0000000000091693&sum=25000 [10:43:09]OFD Sender: Processing packet 156852 [packets to send 31, broken 30] [10:43:09]ProducePacketName [10:43:09]name=ofd_packets/00156852 [10:43:09]OFD Sender: To server: pG, [10:43:09]CommunicateWithHost lk.salyk.kg:30040 [10:43:09]ConnectInit lk.salyk.kg [10:43:09]written 0, free lines is 4095 [10:43:09]Connected sock=10 [10:43: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 37 39 32 0F 01 00 00 EE 25 07 01 45 B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 BD 6A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 64 02 00 35 04 06 00 F5 A2 94 7D A3 1D 2D 0A 67 F1 8C AF 18 08 [10:43:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 22 3E 47 00 9F 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 64 02 00 F4 03 04 00 2A 10 1F 67 B6 04 01 00 00 A7 D8 C5 A0 C1 8F 67 9C [10:43:09]CommunicateWithHost err = 0 [10:43:09]CheckOFDResponse [10:43:09]1017 (14) - 77093643461234 [10:43:09]1041 (16) - 0000000000871792 [10:43:09]1040 (4) - 156852 [10:43:09]1012 (4) - 28.10.2024 04:16 [10:43:09]1206 (1) - 0 [10:43:09]OFD Sender: Remove packet 156852 [10:43:09]ProducePacketName [10:43:09]name=ofd_packets/00156852 [10:43:09]NVStorageDeleteData [10:43:09]Write to MH i2c: 01 00 00 33 15 48 [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: 01 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: 01 07 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: 01 07 00 33 15 00 00 00 00 00 D7 0C 32 [10:43:09]RasterBufferAndPrint [10:43:09]line [10:43:09]line [10:43:09]line [10:43:09]line [10:43:09]line [10:43:09]written 0, free lines is 3290 [10:43:09]process_action close_receipt done [10:43:09]requested_data is exist [10:43:09]produce_requested_data [10:43:09]requested_item fm.sn is exist - process it [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 11 00 00 [10:43:09]Write to MH i2c: E2 08 00 3A 15 80 11 00 00 00 00 00 00 C9 [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 17 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 17 00 3A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [10:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:43:09]wFMCommunicate OK [10:43:09]requested_item fd.num is exist - process it [10:43:09]SAM_PROTO_GetFieldsCounters [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 13 00 00 [10:43:09]Write to MH i2c: E2 08 00 3B 15 80 13 00 00 00 00 00 00 CC [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 62 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 62 00 3B 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 64 02 00 0E 04 04 00 1A 02 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 F4 [10:43: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 64 02 00 0E 04 04 00 1A 02 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 [10:43:09]wFMCommunicate OK [10:43:09]SAM_PROTO_GetFieldsCounters done [10:43:09]requested_item shift.num is exist - process it [10:43:09]requested_item shift.opened is exist - process it [10:43:09]req_shift_opened [10:43:09]FM_GetShiftState [10:43:09]SAM_PROTO_GetShiftState [10:43:09]wFMCommunicate request_size=4 [10:43:09]MH_SAM_APDU [10:43:09]CAPDU: 80 13 01 00 [10:43:09]Write to MH i2c: E2 08 00 3C 15 80 13 01 00 00 00 00 00 CE [10:43:09]Write i2c OK [10:43:09]MH_I2C_Read... [10:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:09]Read from MH i2c: E2 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 0E 00 [10:43:09]MH_I2C_Read... [10:43:09]Read from MH i2c: E2 0E 00 3C 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C0 [10:43:09]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:43:09]wFMCommunicate OK [10:43:09]SAM_PROTO_GetShiftState done [10:43:09]FM_GetShiftState done [10:43:09]req_shift_opened done [10:43:09]requested_item shift.open_date is exist - process it [10:43:09]req_shift_open_date [10:43:09]req_shift_open_date done [10:43:09]produce_requested_data done [10:43:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156852,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:43:09]process_action_free close_receipt [10:43:09]json_value_free [10:43:09]json_value_free done [10:43:09]process_json_proto returns [10:43:09]Send response to host [10:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156852,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:43:09]free response buf [10:43:09]execute_script done [10:43:09]execute_script returns [10:43:09]free content buf [10:43:09]Sock 7.Close socket [10:43:09]Sock 7.Thread stoped [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45: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:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:08]accept exits with 9 [10:51:08]New connection [10:51:08]New thread 3066748260 created [10:51:08]Thread 3066604900 joined [10:51:08]Waiting for new connection... [10:51:08] Sock 9.Parse request [10:51:08]Sock 9.Check first char [10:51:08]Sock 9.First char is OK [10:51:08]request: POST /json_proto HTTP/1.0 [10:51:08]Method: POST [10:51:08]URL: /json_proto [10:51:08]Method is POST - this is cgi request [10:51:08]url: /json_proto [10:51:08]query_string will be loaded in cgi processing [10:51:08]execute_cgi json_proto POST (null) [10:51:08]execute_cgi path=json_proto method=POST [10:51:08]POST find Content-Length [10:51:08]Host: 172.17.63.3:8080 [10:51:08]Content-Length: 678 [10:51:08]Content-Type: application/json [10:51:08] [10:51:08]POST finish read [10:51:08]Found Content-Length = 678 [10:51:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:08]execute_script... [10:51:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:08]POST & json_proto [10:51:08]process_json_proto [10:51:08]json parsed OK: [10:51:08]protocol is kg_v1.0 [10:51:08]action value=close_receipt [10:51:08]process_action close_receipt [10:51:08]cmd_close_receipt [10:51:08]MH_GetDate [10:51:08]Write to MH i2c: F0 00 00 3D 15 41 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: F0 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: F0 09 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: F0 09 00 3D 15 00 9E 6C 1F 67 50 D1 6C 64 CB [10:51:08]GetLastDocTimeStamp 1730112189 [10:51:08]current date 1730112670 [10:51:08]FM_GetShiftState [10:51:08]SAM_PROTO_GetShiftState [10:51:08]wFMCommunicate request_size=4 [10:51:08]MH_SAM_APDU [10:51:08]CAPDU: 80 13 01 00 [10:51:08]Write to MH i2c: E2 08 00 3E 15 80 13 01 00 00 00 00 00 D0 [10:51:08]Write i2c OK [10:51:08]MH_I2C_Read... [10:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:08]Read from MH i2c: E2 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 0E 00 [10:51:08]MH_I2C_Read... [10:51:08]Read from MH i2c: E2 0E 00 3E 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C2 [10:51:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:51:08]wFMCommunicate OK [10:51:08]SAM_PROTO_GetShiftState done [10:51:08]FM_GetShiftState done [10:51:08]opened in 1730075526 [10:51:08]opened+sec_in_day 1730161926 [10:51:08]quantity*price = 100050 [10:51:08]sum+1 = 100052 [10:51:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 69 28.10.2024 10:51 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156853 ФПД: 170837558765238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105110&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156853&fm=170837558765238&tin=02508201610067®Number=0000000000091693&sum=100000 [10:51:09]StoreToDocumentArchive [10:51:09]shift 538 fd 156853 [10:51:09]save to /storage/0538/doc_00156853 [10:51:09]save last doc name /storage/0538/doc_00156853 to /storage/kkm_last_doc_name [10:51:09]save OK [10:51:09]Clear old archive folders... [10:51:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:51:09]tlvbuf is B6E8F480 [10:51:09]SAM_PROTO_ClearQueue [10:51:09]wFMCommunicate request_size=4 [10:51:09]MH_SAM_APDU [10:51:09]CAPDU: 80 09 00 00 [10:51:09]Write to MH i2c: E2 08 00 4B 15 80 09 00 00 00 00 00 00 D2 [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:09]Read from MH i2c: E2 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: E2 03 00 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: E2 03 00 4B 15 00 90 00 D4 [10:51:09]RAPDU: 90 00 [10:51:09]wFMCommunicate OK [10:51:09]SAM_PROTO_ClearQueue done [10:51:09]KKMCreateOFDPacket [10:51:09]OFDProtocolAddRootSTLVToBuf [10:51:09]FM_MakeSignedData [10:51:09]FM_MakeSignedData [10:51:09]SAM_PROTO_SignData [10:51:09]wFMCommunicate request_size=4 [10:51:09]MH_SAM_APDU [10:51:09]CAPDU: 80 0D 01 02 [10:51:09]Write to MH i2c: E2 08 00 4C 15 80 0D 01 02 00 00 00 00 DA [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:09]Read from MH i2c: E2 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: E2 03 00 [10:51:09]MH_I2C_Read... [10:51:09]Read from MH i2c: E2 03 00 4C 15 00 90 00 D5 [10:51:09]RAPDU: 90 00 [10:51:09]wFMCommunicate OK [10:51:09]wFMCommunicate request_size=255 [10:51:09]MH_SAM_APDU [10:51:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 45 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 64 02 00 35 04 06 00 9B 60 38 01 [10:51:09]Write to MH i2c: E2 02 01 4D 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 45 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 64 02 00 35 04 06 00 9B 60 38 01 00 00 A4 [10:51:09]Write i2c OK [10:51:09]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 03 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 03 00 4D 15 00 90 00 D6 [10:51:10]RAPDU: 90 00 [10:51:10]wFMCommunicate OK [10:51:10]wFMCommunicate request_size=7 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 0D 02 02 02 26 B6 [10:51:10]Write to MH i2c: E2 0A 00 4E 15 80 0D 02 02 02 00 26 B6 00 00 BD [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 03 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 03 00 4E 15 00 90 00 D7 [10:51:10]RAPDU: 90 00 [10:51:10]wFMCommunicate OK [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 0D 03 02 [10:51:10]Write to MH i2c: E2 08 00 4F 15 80 0D 03 02 00 00 00 00 DF [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0B 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0B 00 4F 15 00 CE 28 42 9A 8A 54 3C 81 90 00 4D [10:51:10]RAPDU: CE 28 42 9A 8A 54 3C 81 90 00 [10:51:10]wFMCommunicate OK [10:51:10]SAM_PROTO_SignData done [10:51:10]FM_MakeSignedData done [10:51:10]CreateOFDProtocolMessage [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 11 00 00 [10:51:10]Write to MH i2c: E2 08 00 50 15 80 11 00 00 00 00 00 00 DF [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 17 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 17 00 50 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 34 [10:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:51:10]wFMCommunicate OK [10:51:10]CreateOFDProtocolMessage done [10:51:10]OFDSenderStorePacket 156853 [10:51:10]StoreOFDPacket docnum=156853 [10:51:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 76 E2 04 01 C0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 45 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 64 02 00 35 04 06 00 9B 60 38 01 26 B6 CE 28 42 9A 8A 54 3C 81 [10:51:10]CheckFolder [10:51:10]dirname=/storage/ofd_packets [10:51:10]CheckFolder done [10:51:10]ProducePacketName [10:51:10]name=ofd_packets/00156853 [10:51:10]NVStorageSaveData ofd_packets/00156853 [10:51:10]File name is /storage/ofd_packets/00156853 [10:51:10]Write 298 bytes [10:51:10]NVStorageSaveData done [10:51:10]OFDSenderStorePacket done [10:51:10]KKMCreateOFDPacket done [10:51:10]NVStorageSaveData kkm_last_timestamp [10:51:10]File name is /storage/kkm_last_timestamp [10:51:10]Write 4 bytes [10:51:10]NVStorageSaveData done [10:51:10]ExternCall_PrintAddStr [10:51:10]wPrintStart [10:51:10]Write to MH i2c: 01 00 00 51 15 66 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [10:51:10]RasterBufferAndPrint [10:51:10]line Счет N : (1)99666 [10:51:10]line ИНН: 02508201610067 [10:51:10]line Контрольно-Кассовый Чек [10:51:10]line ПРОДАЖА [10:51:10]line ТРК (МРК, ГНК) : 32 [10:51:10]line Товар: 2710194210 [10:51:10]line ДТ-К-5 [10:51:10]line 13.130 * 76.20 [10:51:10]line = 1000.51 [10:51:10]line НДС 12% НСП 1% [10:51:10]line > о реализуемом товаре [10:51:10]line ОКРУГЛЕНИЕ: -0.51 [10:51:10]line ИТОГО: 1000.00 [10:51:10]line Внесено: 1000.00 [10:51:10]line СДАЧА: 0.00 [10:51:10]line НСП 1% : 8.85 [10:51:10]line НДС 12% : 106.25 [10:51:10]line Наличными: 1000.00 [10:51:10]line Безнал.: 0.00 [10:51:10]line Место: АЗС № 143 "Партнер Нефть" [10:51:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:51:10]line СНО: Общий режим [10:51:10]line Чек 69 28.10.2024 10:51 [10:51:10]line Смена: 538 ФФД: 1.0 [10:51:10]line ЗНМ: 0300000096 [10:51:10]line РНМ: 0000000000091693 [10:51:10]line Версия ККМ: 001 [10:51:10]line ФМ: 0000000000871792 [10:51:10]line ФД: 156853 [10:51:10]line ФПД: 170837558765238 [10:51:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105110&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156853&fm=170837558765238&tin=02508201610067®Number=0000000000091693&sum=100000 [10:51:10]OFD Sender: Processing packet 156853 [packets to send 31, broken 30] [10:51:10]ProducePacketName [10:51:10]name=ofd_packets/00156853 [10:51:10]OFD Sender: To server: pG, [10:51:10]CommunicateWithHost lk.salyk.kg:30040 [10:51:10]ConnectInit lk.salyk.kg [10:51:10]written 0, free lines is 4095 [10:51:10]Connected sock=10 [10:51:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 76 E2 04 01 C0 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 45 00 00 00 F4 03 04 00 9E 6C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 64 02 00 35 04 06 00 9B 60 38 01 26 B6 CE 28 42 9A 8A 54 3C 81 [10:51:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 63 47 00 8F 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 64 02 00 F4 03 04 00 0B 12 1F 67 B6 04 01 00 00 09 30 33 A1 63 97 9C EB [10:51:10]CommunicateWithHost err = 0 [10:51:10]CheckOFDResponse [10:51:10]1017 (14) - 77093643461234 [10:51:10]1041 (16) - 0000000000871792 [10:51:10]1040 (4) - 156853 [10:51:10]1012 (4) - 28.10.2024 04:24 [10:51:10]1206 (1) - 0 [10:51:10]OFD Sender: Remove packet 156853 [10:51:10]ProducePacketName [10:51:10]name=ofd_packets/00156853 [10:51:10]NVStorageDeleteData [10:51:10]Write to MH i2c: 01 00 00 7C 15 91 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: 01 07 00 7C 15 00 00 00 00 00 E6 0C 8A [10:51:10]RasterBufferAndPrint [10:51:10]line [10:51:10]line [10:51:10]line [10:51:10]line [10:51:10]line [10:51:10]written 0, free lines is 3308 [10:51:10]process_action close_receipt done [10:51:10]requested_data is exist [10:51:10]produce_requested_data [10:51:10]requested_item fm.sn is exist - process it [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 11 00 00 [10:51:10]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 67 [10:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:51:11]wFMCommunicate OK [10:51:11]requested_item fd.num is exist - process it [10:51:11]SAM_PROTO_GetFieldsCounters [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 13 00 00 [10:51:11]Write to MH i2c: E2 08 00 84 15 80 13 00 00 00 00 00 00 15 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 62 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 62 00 84 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 64 02 00 0E 04 04 00 1A 02 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 41 [10:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 64 02 00 0E 04 04 00 1A 02 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 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_GetFieldsCounters done [10:51:11]requested_item shift.num is exist - process it [10:51:11]requested_item shift.opened is exist - process it [10:51:11]req_shift_opened [10:51:11]FM_GetShiftState [10:51:11]SAM_PROTO_GetShiftState [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 13 01 00 [10:51:11]Write to MH i2c: E2 08 00 85 15 80 13 01 00 00 00 00 00 17 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:11]Read from MH i2c: E2 0E 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 0E 00 85 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 09 [10:51:11]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_GetShiftState done [10:51:11]FM_GetShiftState done [10:51:11]req_shift_opened done [10:51:11]requested_item shift.open_date is exist - process it [10:51:11]req_shift_open_date [10:51:11]req_shift_open_date done [10:51:11]produce_requested_data done [10:51:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156853,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:51:11]process_action_free close_receipt [10:51:11]json_value_free [10:51:11]json_value_free done [10:51:11]process_json_proto returns [10:51:11]Send response to host [10:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156853,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:51:11]free response buf [10:51:11]execute_script done [10:51:11]execute_script returns [10:51:11]free content buf [10:51:11]Sock 9.Close socket [10:51:11]Sock 9.Thread stoped [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:53:58]accept exits with 7 [10:53:58]New connection [10:53:58]New thread 3066604900 created [10:53:58]Thread 3066748260 joined [10:53:58]Waiting for new connection... [10:53:58] Sock 7.Parse request [10:53:58]Sock 7.Check first char [10:53:58]Sock 7.First char is OK [10:53:58]request: POST /json_proto HTTP/1.0 [10:53:58]Method: POST [10:53:58]URL: /json_proto [10:53:58]Method is POST - this is cgi request [10:53:58]url: /json_proto [10:53:58]query_string will be loaded in cgi processing [10:53:58]execute_cgi json_proto POST (null) [10:53:58]execute_cgi path=json_proto method=POST [10:53:58]POST find Content-Length [10:53:58]Host: 172.17.63.3:8080 [10:53:58]Content-Length: 676 [10:53:58]Content-Type: application/json [10:53:58] [10:53:58]POST finish read [10:53:58]Found Content-Length = 676 [10:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:58]execute_script... [10:53: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)99667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:58]POST & json_proto [10:53:58]process_json_proto [10:53:58]json parsed OK: [10:53:58]protocol is kg_v1.0 [10:53:58]action value=close_receipt [10:53:58]process_action close_receipt [10:53:58]cmd_close_receipt [10:53:58]MH_GetDate [10:53:58]Write to MH i2c: F0 00 00 86 15 8A [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 09 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: F0 09 00 86 15 00 49 6D 1F 67 50 D1 6C 64 C0 [10:53:58]GetLastDocTimeStamp 1730112670 [10:53:58]current date 1730112841 [10:53:58]FM_GetShiftState [10:53:58]SAM_PROTO_GetShiftState [10:53:58]wFMCommunicate request_size=4 [10:53:58]MH_SAM_APDU [10:53:58]CAPDU: 80 13 01 00 [10:53:58]Write to MH i2c: E2 08 00 87 15 80 13 01 00 00 00 00 00 19 [10:53:58]Write i2c OK [10:53:58]MH_I2C_Read... [10:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:58]Read from MH i2c: E2 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 [10:53:58]MH_I2C_Read... [10:53:58]Read from MH i2c: E2 0E 00 87 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0B [10:53:58]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:53:58]wFMCommunicate OK [10:53:58]SAM_PROTO_GetShiftState done [10:53:58]FM_GetShiftState done [10:53:58]opened in 1730075526 [10:53:58]opened+sec_in_day 1730161926 [10:53:58]quantity*price = 52048 [10:53:58]sum+1 = 52049 [10:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 70 28.10.2024 10:54 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156854 ФПД: 194745799894565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156854&fm=194745799894565&tin=02508201610067®Number=0000000000091693&sum=52000 [10:53:59]StoreToDocumentArchive [10:53:59]shift 538 fd 156854 [10:53:59]save to /storage/0538/doc_00156854 [10:53:59]save last doc name /storage/0538/doc_00156854 to /storage/kkm_last_doc_name [10:53:59]save OK [10:53:59]Clear old archive folders... [10:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:59]tlvbuf is B6E8F3C0 [10:53:59]SAM_PROTO_ClearQueue [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 09 00 00 [10:53:59]Write to MH i2c: E2 08 00 94 15 80 09 00 00 00 00 00 00 1B [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 94 15 00 90 00 1D [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]SAM_PROTO_ClearQueue done [10:53:59]KKMCreateOFDPacket [10:53:59]OFDProtocolAddRootSTLVToBuf [10:53:59]FM_MakeSignedData [10:53:59]FM_MakeSignedData [10:53:59]SAM_PROTO_SignData [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 01 02 [10:53:59]Write to MH i2c: E2 08 00 95 15 80 0D 01 02 00 00 00 00 23 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 03 00 95 15 00 90 00 1E [10:53:59]RAPDU: 90 00 [10:53:59]wFMCommunicate OK [10:53:59]wFMCommunicate request_size=255 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 49 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 64 02 00 35 04 06 00 B1 [10:53:59]Write to MH i2c: E2 02 01 96 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 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 49 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 64 02 00 35 04 06 00 B1 00 00 C6 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 96 15 00 90 00 1F [10:54:00]RAPDU: 90 00 [10:54:00]wFMCommunicate OK [10:54:00]wFMCommunicate request_size=10 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 0D 02 02 05 1E CA 39 66 25 [10:54:00]Write to MH i2c: E2 0D 00 97 15 80 0D 02 02 05 00 1E CA 39 66 25 00 00 DC [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [10:54:00]RAPDU: 90 00 [10:54:00]wFMCommunicate OK [10:54:00]wFMCommunicate request_size=4 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 0D 03 02 [10:54:00]Write to MH i2c: E2 08 00 98 15 80 0D 03 02 00 00 00 00 28 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0B 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 0B 00 98 15 00 7A 98 0B 40 32 BD 1C 90 90 00 21 [10:54:00]RAPDU: 7A 98 0B 40 32 BD 1C 90 90 00 [10:54:00]wFMCommunicate OK [10:54:00]SAM_PROTO_SignData done [10:54:00]FM_MakeSignedData done [10:54:00]CreateOFDProtocolMessage [10:54:00]wFMCommunicate request_size=4 [10:54:00]MH_SAM_APDU [10:54:00]CAPDU: 80 11 00 00 [10:54:00]Write to MH i2c: E2 08 00 99 15 80 11 00 00 00 00 00 00 28 [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:00]Read from MH i2c: E2 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 17 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: E2 17 00 99 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7D [10:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:00]wFMCommunicate OK [10:54:00]CreateOFDProtocolMessage done [10:54:00]OFDSenderStorePacket 156854 [10:54:00]StoreOFDPacket docnum=156854 [10:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 55 46 07 01 E1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 49 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 64 02 00 35 04 06 00 B1 1E CA 39 66 25 7A 98 0B 40 32 BD 1C 90 [10:54:00]CheckFolder [10:54:00]dirname=/storage/ofd_packets [10:54:00]CheckFolder done [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00156854 [10:54:00]NVStorageSaveData ofd_packets/00156854 [10:54:00]File name is /storage/ofd_packets/00156854 [10:54:00]Write 301 bytes [10:54:00]NVStorageSaveData done [10:54:00]OFDSenderStorePacket done [10:54:00]KKMCreateOFDPacket done [10:54:00]NVStorageSaveData kkm_last_timestamp [10:54:00]File name is /storage/kkm_last_timestamp [10:54:00]Write 4 bytes [10:54:00]NVStorageSaveData done [10:54:00]ExternCall_PrintAddStr [10:54:00]wPrintStart [10:54:00]Write to MH i2c: 01 00 00 9A 15 AF [10:54:00]Write i2c OK [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 [10:54:00]MH_I2C_Read... [10:54:00]Read from MH i2c: 01 07 00 9A 15 00 00 00 00 00 FF 0F C4 [10:54:00]RasterBufferAndPrint [10:54:00]line Счет N : (1)99667 [10:54:00]line ИНН: 02508201610067 [10:54:00]line Контрольно-Кассовый Чек [10:54:00]line ПРОДАЖА [10:54:00]line ТРК (МРК, ГНК) : 31 [10:54:00]line Товар: 2710124130 [10:54:00]line Аи-92-К-5 [10:54:00]line 7.780 * 66.90 [10:54:00]line = 520.48 [10:54:00]line НДС 12% НСП 1% [10:54:00]line > о реализуемом товаре [10:54:00]line ОКРУГЛЕНИЕ: -0.48 [10:54:00]line ИТОГО: 520.00 [10:54:00]line Внесено: 520.00 [10:54:00]line СДАЧА: 0.00 [10:54:00]line НСП 1% : 4.61 [10:54:00]line НДС 12% : 55.27 [10:54:00]line Наличными: 520.00 [10:54:00]line Безнал.: 0.00 [10:54:00]line Место: АЗС № 143 "Партнер Нефть" [10:54:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:54:00]line СНО: Общий режим [10:54:00]line Чек 70 28.10.2024 10:54 [10:54:00]line Смена: 538 ФФД: 1.0 [10:54:00]line ЗНМ: 0300000096 [10:54:00]line РНМ: 0000000000091693 [10:54:00]line Версия ККМ: 001 [10:54:00]line ФМ: 0000000000871792 [10:54:00]line ФД: 156854 [10:54:00]line ФПД: 194745799894565 [10:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105401&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156854&fm=194745799894565&tin=02508201610067®Number=0000000000091693&sum=52000 [10:54:00]OFD Sender: Processing packet 156854 [packets to send 31, broken 30] [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00156854 [10:54:00]OFD Sender: To server: pG, [10:54:00]CommunicateWithHost lk.salyk.kg:30040 [10:54:00]ConnectInit lk.salyk.kg [10:54:00]written 0, free lines is 4095 [10:54:00]Connected sock=10 [10:54: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 37 39 32 0F 01 00 00 55 46 07 01 E1 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 49 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 64 02 00 35 04 06 00 B1 1E CA 39 66 25 7A 98 0B 40 32 BD 1C 90 [10:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 53 C2 47 00 37 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 64 02 00 F4 03 04 00 B5 12 1F 67 B6 04 01 00 00 96 E7 0D E4 E9 CB 7E BC [10:54:00]CommunicateWithHost err = 0 [10:54:00]CheckOFDResponse [10:54:00]1017 (14) - 77093643461234 [10:54:00]1041 (16) - 0000000000871792 [10:54:00]1040 (4) - 156854 [10:54:00]1012 (4) - 28.10.2024 04:27 [10:54:00]1206 (1) - 0 [10:54:00]OFD Sender: Remove packet 156854 [10:54:00]ProducePacketName [10:54:00]name=ofd_packets/00156854 [10:54:00]NVStorageDeleteData [10:54:01]Write to MH i2c: 01 00 00 C5 15 DA [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 C5 15 00 00 00 00 00 E1 0C CE [10:54:01]RasterBufferAndPrint [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]line [10:54:01]written 0, free lines is 3306 [10:54:01]process_action close_receipt done [10:54:01]requested_data is exist [10:54:01]produce_requested_data [10:54:01]requested_item fm.sn is exist - process it [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 11 00 00 [10:54:01]Write to MH i2c: E2 08 00 CC 15 80 11 00 00 00 00 00 00 5B [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 CC 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B0 [10:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:01]wFMCommunicate OK [10:54:01]requested_item fd.num is exist - process it [10:54:01]SAM_PROTO_GetFieldsCounters [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 13 00 00 [10:54:01]Write to MH i2c: E2 08 00 CD 15 80 13 00 00 00 00 00 00 5E [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 62 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 62 00 CD 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 64 02 00 0E 04 04 00 1A 02 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 8E [10: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_GetFieldsCounters done [10:54:01]requested_item shift.num is exist - process it [10:54:01]requested_item shift.opened is exist - process it [10:54:01]req_shift_opened [10:54:01]FM_GetShiftState [10:54:01]SAM_PROTO_GetShiftState [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 13 01 00 [10:54:01]Write to MH i2c: E2 08 00 CE 15 80 13 01 00 00 00 00 00 60 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0E 00 CE 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 52 [10:54:01]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_GetShiftState done [10:54:01]FM_GetShiftState done [10:54:01]req_shift_opened done [10:54:01]requested_item shift.open_date is exist - process it [10:54:01]req_shift_open_date [10:54:01]req_shift_open_date done [10:54:01]produce_requested_data done [10:54:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156854,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:54:01]process_action_free close_receipt [10:54:01]json_value_free [10:54:01]json_value_free done [10:54:01]process_json_proto returns [10:54:01]Send response to host [10:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156854,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:54:01]free response buf [10:54:01]execute_script done [10:54:01]execute_script returns [10:54:01]free content buf [10:54:01]Sock 7.Close socket [10:54:01]Sock 7.Thread stoped [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:49]accept exits with 9 [10:54:49]New connection [10:54:49]New thread 3066748260 created [10:54:49]Thread 3066604900 joined [10:54:49]Waiting for new connection... [10:54:49] Sock 9.Parse request [10:54:49]Sock 9.Check first char [10:54:49]Sock 9.First char is OK [10:54:49]request: POST /json_proto HTTP/1.0 [10:54:49]Method: POST [10:54:49]URL: /json_proto [10:54:49]Method is POST - this is cgi request [10:54:49]url: /json_proto [10:54:49]query_string will be loaded in cgi processing [10:54:49]execute_cgi json_proto POST (null) [10:54:49]execute_cgi path=json_proto method=POST [10:54:49]POST find Content-Length [10:54:49]Host: 172.17.63.3:8080 [10:54:49]Content-Length: 676 [10:54:49]Content-Type: application/json [10:54:49] [10:54:49]POST finish read [10:54:49]Found Content-Length = 676 [10:54:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:54:49]execute_script... [10:54: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)99668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [10:54:49]POST & json_proto [10:54:49]process_json_proto [10:54:49]json parsed OK: [10:54:49]protocol is kg_v1.0 [10:54:49]action value=close_receipt [10:54:49]process_action close_receipt [10:54:49]cmd_close_receipt [10:54:49]MH_GetDate [10:54:49]Write to MH i2c: F0 00 00 CF 15 D3 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 [10:54:49]MH_I2C_Read... [10:54:49]Read from MH i2c: F0 09 00 CF 15 00 7C 6D 1F 67 50 D1 6C 64 3C [10:54:49]GetLastDocTimeStamp 1730112841 [10:54:49]current date 1730112892 [10:54:49]FM_GetShiftState [10:54:49]SAM_PROTO_GetShiftState [10:54:49]wFMCommunicate request_size=4 [10:54:49]MH_SAM_APDU [10:54:49]CAPDU: 80 13 01 00 [10:54:49]Write to MH i2c: E2 08 00 D0 15 80 13 01 00 00 00 00 00 62 [10:54:49]Write i2c OK [10:54:49]MH_I2C_Read... [10:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:50]Read from MH i2c: E2 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 [10:54:50]MH_I2C_Read... [10:54:50]Read from MH i2c: E2 0E 00 D0 15 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 54 [10:54:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:54:50]wFMCommunicate OK [10:54:50]SAM_PROTO_GetShiftState done [10:54:50]FM_GetShiftState done [10:54:50]opened in 1730075526 [10:54:50]opened+sec_in_day 1730161926 [10:54:50]quantity*price = 30038 [10:54:50]sum+1 = 30039 [10:54:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 71 28.10.2024 10:54 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156855 ФПД: 244107827511302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156855&fm=244107827511302&tin=02508201610067®Number=0000000000091693&sum=30000 [10:54:51]StoreToDocumentArchive [10:54:51]shift 538 fd 156855 [10:54:51]save to /storage/0538/doc_00156855 [10:54:51]save last doc name /storage/0538/doc_00156855 to /storage/kkm_last_doc_name [10:54:51]save OK [10:54:51]Clear old archive folders... [10:54:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:51]tlvbuf is 01A82880 [10:54:51]SAM_PROTO_ClearQueue [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 09 00 00 [10:54:51]Write to MH i2c: E2 08 00 DD 15 80 09 00 00 00 00 00 00 64 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_ClearQueue done [10:54:51]KKMCreateOFDPacket [10:54:51]OFDProtocolAddRootSTLVToBuf [10:54:51]FM_MakeSignedData [10:54:51]FM_MakeSignedData [10:54:51]SAM_PROTO_SignData [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 01 02 [10:54:51]Write to MH i2c: E2 08 00 DE 15 80 0D 01 02 00 00 00 00 6C [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=255 [10:54:51]MH_SAM_APDU [10:54: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7C 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 64 02 00 35 04 06 00 DE [10:54:51]Write to MH i2c: E2 02 01 DF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7C 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 64 02 00 35 04 06 00 DE 00 00 C1 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]OFD Sender: No OFD packet to send [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 DF 15 00 90 00 68 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=10 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 02 02 05 03 C8 58 80 06 [10:54:51]Write to MH i2c: E2 0D 00 E0 15 80 0D 02 02 05 00 03 C8 58 80 06 00 00 22 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 03 00 E0 15 00 90 00 69 [10:54:51]RAPDU: 90 00 [10:54:51]wFMCommunicate OK [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 0D 03 02 [10:54:51]Write to MH i2c: E2 08 00 E1 15 80 0D 03 02 00 00 00 00 71 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0B 00 E1 15 00 1D F4 C2 85 E1 E4 F7 6C 90 00 F2 [10:54:51]RAPDU: 1D F4 C2 85 E1 E4 F7 6C 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_SignData done [10:54:51]FM_MakeSignedData done [10:54:51]CreateOFDProtocolMessage [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 11 00 00 [10:54:51]Write to MH i2c: E2 08 00 E2 15 80 11 00 00 00 00 00 00 71 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 17 00 E2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [10:54:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:51]wFMCommunicate OK [10:54:51]CreateOFDProtocolMessage done [10:54:51]OFDSenderStorePacket 156855 [10:54:51]StoreOFDPacket docnum=156855 [10:54:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD BB 07 01 88 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7C 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 64 02 00 35 04 06 00 DE 03 C8 58 80 06 1D F4 C2 85 E1 E4 F7 6C [10:54:51]CheckFolder [10:54:51]dirname=/storage/ofd_packets [10:54:51]CheckFolder done [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00156855 [10:54:51]NVStorageSaveData ofd_packets/00156855 [10:54:51]File name is /storage/ofd_packets/00156855 [10:54:51]Write 301 bytes [10:54:51]NVStorageSaveData done [10:54:51]OFDSenderStorePacket done [10:54:51]KKMCreateOFDPacket done [10:54:51]NVStorageSaveData kkm_last_timestamp [10:54:51]File name is /storage/kkm_last_timestamp [10:54:51]Write 4 bytes [10:54:51]NVStorageSaveData done [10:54:51]ExternCall_PrintAddStr [10:54:51]wPrintStart [10:54:51]Write to MH i2c: 01 00 00 E3 15 F8 [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: 01 07 00 E3 15 00 00 00 00 00 FF 0F 0D [10:54:51]RasterBufferAndPrint [10:54:51]line Счет N : (1)99668 [10:54:51]line ИНН: 02508201610067 [10:54:51]line Контрольно-Кассовый Чек [10:54:51]line ПРОДАЖА [10:54:51]line ТРК (МРК, ГНК) : 31 [10:54:51]line Товар: 2710124130 [10:54:51]line Аи-92-К-5 [10:54:51]line 4.490 * 66.90 [10:54:51]line = 300.38 [10:54:51]line НДС 12% НСП 1% [10:54:51]line > о реализуемом товаре [10:54:51]line ОКРУГЛЕНИЕ: -0.38 [10:54:51]line ИТОГО: 300.00 [10:54:51]line Внесено: 300.00 [10:54:51]line СДАЧА: 0.00 [10:54:51]line НСП 1% : 2.66 [10:54:51]line НДС 12% : 31.90 [10:54:51]line Наличными: 300.00 [10:54:51]line Безнал.: 0.00 [10:54:51]line Место: АЗС № 143 "Партнер Нефть" [10:54:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:54:51]line СНО: Общий режим [10:54:51]line Чек 71 28.10.2024 10:54 [10:54:51]line Смена: 538 ФФД: 1.0 [10:54:51]line ЗНМ: 0300000096 [10:54:51]line РНМ: 0000000000091693 [10:54:51]line Версия ККМ: 001 [10:54:51]line ФМ: 0000000000871792 [10:54:51]line ФД: 156855 [10:54:51]line ФПД: 244107827511302 [10:54:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156855&fm=244107827511302&tin=02508201610067®Number=0000000000091693&sum=30000 [10:54:51]written 0, free lines is 4095 [10:54:51]OFD Sender: Processing packet 156855 [packets to send 31, broken 30] [10:54:51]ProducePacketName [10:54:51]name=ofd_packets/00156855 [10:54:51]OFD Sender: To server: pG, [10:54:52]CommunicateWithHost lk.salyk.kg:30040 [10:54:52]ConnectInit lk.salyk.kg [10:54:52]Connected sock=10 [10:54: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 37 39 32 0F 01 00 00 CD BB 07 01 88 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 7C 6D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 64 02 00 35 04 06 00 DE 03 C8 58 80 06 1D F4 C2 85 E1 E4 F7 6C [10:54:52]Write to MH i2c: 01 00 00 0E 16 24 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: 01 07 00 0E 16 00 00 00 00 00 EC 0C 23 [10:54:52]RasterBufferAndPrint [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]line [10:54:52]written 0, free lines is 3314 [10:54:52]process_action close_receipt done [10:54:52]requested_data is exist [10:54:52]produce_requested_data [10:54:52]requested_item fm.sn is exist - process it [10:54:52]wFMCommunicate request_size=4 [10:54:52]MH_SAM_APDU [10:54:52]CAPDU: 80 11 00 00 [10:54:52]Write to MH i2c: E2 08 00 15 16 80 11 00 00 00 00 00 00 A5 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:52]Read from MH i2c: E2 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 17 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 17 00 15 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [10:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:52]wFMCommunicate OK [10:54:52]requested_item fd.num is exist - process it [10:54:52]SAM_PROTO_GetFieldsCounters [10:54:52]wFMCommunicate request_size=4 [10:54:52]MH_SAM_APDU [10:54:52]CAPDU: 80 13 00 00 [10:54:52]Write to MH i2c: E2 08 00 16 16 80 13 00 00 00 00 00 00 A8 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1A 4D 47 00 91 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 37 39 32 10 04 04 00 B7 64 02 00 F4 03 04 00 E9 12 1F 67 B6 04 01 00 00 E0 B4 F5 95 3C 5F F0 6D [10:54:52]CommunicateWithHost err = 0 [10:54:52]CheckOFDResponse [10:54:52]1017 (14) - 77093643461234 [10:54:52]1041 (16) - 0000000000871792 [10:54:52]1040 (4) - 156855 [10:54:52]1012 (4) - 28.10.2024 04:28 [10:54:52]1206 (1) - 0 [10:54:52]OFD Sender: Remove packet 156855 [10:54:52]ProducePacketName [10:54:52]name=ofd_packets/00156855 [10:54:52]NVStorageDeleteData [10:54:52]Read from MH i2c: E2 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 62 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 62 00 16 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 64 02 00 0E 04 04 00 1A 02 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 DC [10:54: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 64 02 00 0E 04 04 00 1A 02 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 [10:54:52]wFMCommunicate OK [10:54:52]SAM_PROTO_GetFieldsCounters done [10:54:52]requested_item shift.num is exist - process it [10:54:52]requested_item shift.opened is exist - process it [10:54:52]req_shift_opened [10:54:52]FM_GetShiftState [10:54:52]SAM_PROTO_GetShiftState [10:54:52]wFMCommunicate request_size=4 [10:54:52]MH_SAM_APDU [10:54:52]CAPDU: 80 13 01 00 [10:54:52]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:52]Read from MH i2c: E2 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 0E 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9C [10:54:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:54:52]wFMCommunicate OK [10:54:52]SAM_PROTO_GetShiftState done [10:54:52]FM_GetShiftState done [10:54:52]req_shift_opened done [10:54:52]requested_item shift.open_date is exist - process it [10:54:52]req_shift_open_date [10:54:52]req_shift_open_date done [10:54:52]produce_requested_data done [10:54:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156855,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:54:52]process_action_free close_receipt [10:54:52]json_value_free [10:54:52]json_value_free done [10:54:52]process_json_proto returns [10:54:52]Send response to host [10:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156855,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:54:52]free response buf [10:54:52]execute_script done [10:54:52]execute_script returns [10:54:52]free content buf [10:54:52]Sock 9.Close socket [10:54:52]Sock 9.Thread stoped [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:27]OFD Sender: No OFD packet to send [10:55:32]OFD Sender: No OFD packet to send [10:55:37]OFD Sender: No OFD packet to send [10:55:42]OFD Sender: No OFD packet to send [10:55:47]OFD Sender: No OFD packet to send [10:55:52]OFD Sender: No OFD packet to send [10:55:57]OFD Sender: No OFD packet to send [10:56:02]OFD Sender: No OFD packet to send [10:56:07]OFD Sender: No OFD packet to send [10:56:12]OFD Sender: No OFD packet to send [10:56:17]OFD Sender: No OFD packet to send [10:56:22]OFD Sender: No OFD packet to send [10:56:27]OFD Sender: No OFD packet to send [10:56:32]OFD Sender: No OFD packet to send [10:56:37]OFD Sender: No OFD packet to send [10:56:42]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:56:58]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:13]OFD Sender: No OFD packet to send [10:57:18]OFD Sender: No OFD packet to send [10:57:23]OFD Sender: No OFD packet to send [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:34]accept exits with 7 [10:58:34]New connection [10:58:34]New thread 3066604900 created [10:58:34]Thread 3066748260 joined [10:58:34]Waiting for new connection... [10:58:34] Sock 7.Parse request [10:58:34]Sock 7.Check first char [10:58:34]Sock 7.First char is OK [10:58:34]request: POST /json_proto HTTP/1.0 [10:58:34]Method: POST [10:58:34]URL: /json_proto [10:58:34]Method is POST - this is cgi request [10:58:34]url: /json_proto [10:58:34]query_string will be loaded in cgi processing [10:58:34]execute_cgi json_proto POST (null) [10:58:34]execute_cgi path=json_proto method=POST [10:58:34]POST find Content-Length [10:58:34]Host: 172.17.63.3:8080 [10:58:34]Content-Length: 681 [10:58:34]Content-Type: application/json [10:58:34] [10:58:34]POST finish read [10:58:34]Found Content-Length = 681 [10:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:34]execute_script... [10:58: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)99669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:34]POST & json_proto [10:58:34]process_json_proto [10:58:34]json parsed OK: [10:58:34]protocol is kg_v1.0 [10:58:34]action value=close_receipt [10:58:34]process_action close_receipt [10:58:34]cmd_close_receipt [10:58:34]MH_GetDate [10:58:34]Write to MH i2c: F0 00 00 18 16 1D [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 09 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: F0 09 00 18 16 00 5D 6E 1F 67 50 D1 6C 64 68 [10:58:34]GetLastDocTimeStamp 1730112892 [10:58:34]current date 1730113117 [10:58:34]FM_GetShiftState [10:58:34]SAM_PROTO_GetShiftState [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 01 00 [10:58:34]Write to MH i2c: E2 08 00 19 16 80 13 01 00 00 00 00 00 AC [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 19 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9E [10:58:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetShiftState done [10:58:34]FM_GetShiftState done [10:58:34]opened in 1730075526 [10:58:34]opened+sec_in_day 1730161926 [10:58:34]quantity*price = 100015 [10:58:34]sum+1 = 100017 [10:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 72 28.10.2024 10:58 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156856 ФПД: 235123449083387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156856&fm=235123449083387&tin=02508201610067®Number=0000000000091693&sum=100000 [10:58:35]StoreToDocumentArchive [10:58:35]shift 538 fd 156856 [10:58:35]save to /storage/0538/doc_00156856 [10:58:35]save last doc name /storage/0538/doc_00156856 to /storage/kkm_last_doc_name [10:58:35]save OK [10:58:35]Clear old archive folders... [10:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:35]tlvbuf is 01A82C30 [10:58:35]SAM_PROTO_ClearQueue [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 09 00 00 [10:58:35]Write to MH i2c: E2 08 00 26 16 80 09 00 00 00 00 00 00 AE [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]SAM_PROTO_ClearQueue done [10:58:35]KKMCreateOFDPacket [10:58:35]OFDProtocolAddRootSTLVToBuf [10:58:35]FM_MakeSignedData [10:58:35]FM_MakeSignedData [10:58:35]SAM_PROTO_SignData [10:58:35]wFMCommunicate request_size=4 [10:58:35]MH_SAM_APDU [10:58:35]CAPDU: 80 0D 01 02 [10:58:35]Write to MH i2c: E2 08 00 27 16 80 0D 01 02 00 00 00 00 B6 [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:35]Read from MH i2c: E2 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 [10:58:35]MH_I2C_Read... [10:58:35]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [10:58:35]RAPDU: 90 00 [10:58:35]wFMCommunicate OK [10:58:35]wFMCommunicate request_size=255 [10:58:35]MH_SAM_APDU [10:58: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 48 00 00 00 F4 03 04 00 5D 6E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 64 02 00 35 04 06 00 D5 [10:58:35]Write to MH i2c: E2 02 01 28 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 48 00 00 00 F4 03 04 00 5D 6E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 64 02 00 35 04 06 00 D5 00 00 EC [10:58:35]Write i2c OK [10:58:35]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 28 16 00 90 00 B2 [10:58:36]RAPDU: 90 00 [10:58:36]wFMCommunicate OK [10:58:36]wFMCommunicate request_size=10 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 0D 02 02 05 D7 F1 A9 35 FB [10:58:36]Write to MH i2c: E2 0D 00 29 16 80 0D 02 02 05 00 D7 F1 A9 35 FB 00 00 64 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 03 00 29 16 00 90 00 B3 [10:58:36]RAPDU: 90 00 [10:58:36]wFMCommunicate OK [10:58:36]wFMCommunicate request_size=4 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 0D 03 02 [10:58:36]Write to MH i2c: E2 08 00 2A 16 80 0D 03 02 00 00 00 00 BB [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0B 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 0B 00 2A 16 00 F8 56 82 97 8B 52 68 BC 90 00 24 [10:58:36]RAPDU: F8 56 82 97 8B 52 68 BC 90 00 [10:58:36]wFMCommunicate OK [10:58:36]SAM_PROTO_SignData done [10:58:36]FM_MakeSignedData done [10:58:36]CreateOFDProtocolMessage [10:58:36]wFMCommunicate request_size=4 [10:58:36]MH_SAM_APDU [10:58:36]CAPDU: 80 11 00 00 [10:58:36]Write to MH i2c: E2 08 00 2B 16 80 11 00 00 00 00 00 00 BB [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:36]Read from MH i2c: E2 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 17 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: E2 17 00 2B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 10 [10:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:36]wFMCommunicate OK [10:58:36]CreateOFDProtocolMessage done [10:58:36]OFDSenderStorePacket 156856 [10:58:36]StoreOFDPacket docnum=156856 [10:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 94 BE 07 01 3F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 48 00 00 00 F4 03 04 00 5D 6E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 64 02 00 35 04 06 00 D5 D7 F1 A9 35 FB F8 56 82 97 8B 52 68 BC [10:58:36]CheckFolder [10:58:36]dirname=/storage/ofd_packets [10:58:36]CheckFolder done [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00156856 [10:58:36]NVStorageSaveData ofd_packets/00156856 [10:58:36]File name is /storage/ofd_packets/00156856 [10:58:36]Write 301 bytes [10:58:36]NVStorageSaveData done [10:58:36]OFDSenderStorePacket done [10:58:36]KKMCreateOFDPacket done [10:58:36]NVStorageSaveData kkm_last_timestamp [10:58:36]File name is /storage/kkm_last_timestamp [10:58:36]Write 4 bytes [10:58:36]NVStorageSaveData done [10:58:36]ExternCall_PrintAddStr [10:58:36]wPrintStart [10:58:36]Write to MH i2c: 01 00 00 2C 16 42 [10:58:36]Write i2c OK [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 [10:58:36]MH_I2C_Read... [10:58:36]Read from MH i2c: 01 07 00 2C 16 00 00 00 00 00 FF 0F 57 [10:58:36]RasterBufferAndPrint [10:58:36]line Счет N : (1)99669 [10:58:36]line ИНН: 02508201610067 [10:58:36]line Контрольно-Кассовый Чек [10:58:36]line ПРОДАЖА [10:58:36]line ТРК (МРК, ГНК) : 31 [10:58:36]line Товар: 2710124130 [10:58:36]line Аи-92-К-5 [10:58:36]line 14.950 * 66.90 [10:58:36]line = 1000.16 [10:58:36]line НДС 12% НСП 1% [10:58:36]line > о реализуемом товаре [10:58:36]line ОКРУГЛЕНИЕ: -0.16 [10:58:36]line ИТОГО: 1000.00 [10:58:36]line Внесено: 1000.00 [10:58:36]line СДАЧА: 0.00 [10:58:36]line НСП 1% : 8.85 [10:58:36]line НДС 12% : 106.21 [10:58:36]line Наличными: 1000.00 [10:58:36]line Безнал.: 0.00 [10:58:36]line Место: АЗС № 143 "Партнер Нефть" [10:58:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:58:36]line СНО: Общий режим [10:58:36]line Чек 72 28.10.2024 10:58 [10:58:36]line Смена: 538 ФФД: 1.0 [10:58:36]line ЗНМ: 0300000096 [10:58:36]line РНМ: 0000000000091693 [10:58:36]line Версия ККМ: 001 [10:58:36]line ФМ: 0000000000871792 [10:58:36]line ФД: 156856 [10:58:36]line ФПД: 235123449083387 [10:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156856&fm=235123449083387&tin=02508201610067®Number=0000000000091693&sum=100000 [10:58:36]OFD Sender: Processing packet 156856 [packets to send 31, broken 30] [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00156856 [10:58:36]OFD Sender: To server: pG, [10:58:36]CommunicateWithHost lk.salyk.kg:30040 [10:58:36]ConnectInit lk.salyk.kg [10:58:36]written 0, free lines is 4095 [10:58:36]Connected sock=10 [10:58: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 37 39 32 0F 01 00 00 94 BE 07 01 3F C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 48 00 00 00 F4 03 04 00 5D 6E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 64 02 00 35 04 06 00 D5 D7 F1 A9 35 FB F8 56 82 97 8B 52 68 BC [10:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 1E 47 00 A5 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 37 39 32 10 04 04 00 B8 64 02 00 F4 03 04 00 C9 13 1F 67 B6 04 01 00 00 63 A8 65 1F 3D 0B 40 B4 [10:58:37]CommunicateWithHost err = 0 [10:58:37]CheckOFDResponse [10:58:37]1017 (14) - 77093643461234 [10:58:37]1041 (16) - 0000000000871792 [10:58:37]1040 (4) - 156856 [10:58:37]1012 (4) - 28.10.2024 04:32 [10:58:37]1206 (1) - 0 [10:58:37]OFD Sender: Remove packet 156856 [10:58:37]ProducePacketName [10:58:37]name=ofd_packets/00156856 [10:58:37]NVStorageDeleteData [10:58:37]Write to MH i2c: 01 00 00 57 16 6D [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: 01 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: 01 07 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: 01 07 00 57 16 00 00 00 00 00 F9 0C 79 [10:58:37]RasterBufferAndPrint [10:58:37]line [10:58:37]line [10:58:37]line [10:58:37]line [10:58:37]line [10:58:37]written 0, free lines is 3330 [10:58:37]process_action close_receipt done [10:58:37]requested_data is exist [10:58:37]produce_requested_data [10:58:37]requested_item fm.sn is exist - process it [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 11 00 00 [10:58:37]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 17 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [10:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:37]wFMCommunicate OK [10:58:37]requested_item fd.num is exist - process it [10:58:37]SAM_PROTO_GetFieldsCounters [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 13 00 00 [10:58:37]Write to MH i2c: E2 08 00 5F 16 80 13 00 00 00 00 00 00 F1 [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 62 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 62 00 5F 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 64 02 00 0E 04 04 00 1A 02 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 29 [10:58: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 64 02 00 0E 04 04 00 1A 02 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 [10:58:37]wFMCommunicate OK [10:58:37]SAM_PROTO_GetFieldsCounters done [10:58:37]requested_item shift.num is exist - process it [10:58:37]requested_item shift.opened is exist - process it [10:58:37]req_shift_opened [10:58:37]FM_GetShiftState [10:58:37]SAM_PROTO_GetShiftState [10:58:37]wFMCommunicate request_size=4 [10:58:37]MH_SAM_APDU [10:58:37]CAPDU: 80 13 01 00 [10:58:37]Write to MH i2c: E2 08 00 60 16 80 13 01 00 00 00 00 00 F3 [10:58:37]Write i2c OK [10:58:37]MH_I2C_Read... [10:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:37]Read from MH i2c: E2 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 0E 00 [10:58:37]MH_I2C_Read... [10:58:37]Read from MH i2c: E2 0E 00 60 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E5 [10:58:37]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [10:58:37]wFMCommunicate OK [10:58:37]SAM_PROTO_GetShiftState done [10:58:37]FM_GetShiftState done [10:58:37]req_shift_opened done [10:58:37]requested_item shift.open_date is exist - process it [10:58:37]req_shift_open_date [10:58:37]req_shift_open_date done [10:58:37]produce_requested_data done [10:58:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156856,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [10:58:37]process_action_free close_receipt [10:58:37]json_value_free [10:58:37]json_value_free done [10:58:37]process_json_proto returns [10:58:37]Send response to host [10:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156856,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [10:58:37]free response buf [10:58:37]execute_script done [10:58:37]execute_script returns [10:58:37]free content buf [10:58:37]Sock 7.Close socket [10:58:37]Sock 7.Thread stoped [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:56]accept exits with 9 [11:01:56]New connection [11:01:56]New thread 3066748260 created [11:01:56]Thread 3066604900 joined [11:01:56]Waiting for new connection... [11:01:56] Sock 9.Parse request [11:01:56]Sock 9.Check first char [11:01:56]Sock 9.First char is OK [11:01:56]request: POST /json_proto HTTP/1.0 [11:01:56]Method: POST [11:01:56]URL: /json_proto [11:01:56]Method is POST - this is cgi request [11:01:56]url: /json_proto [11:01:56]query_string will be loaded in cgi processing [11:01:56]execute_cgi json_proto POST (null) [11:01:56]execute_cgi path=json_proto method=POST [11:01:56]POST find Content-Length [11:01:56]Host: 172.17.63.3:8080 [11:01:56]Content-Length: 796 [11:01:56]Content-Type: application/json [11:01:56] [11:01:56]POST finish read [11:01:56]Found Content-Length = 796 [11:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4292740", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:56]execute_script... [11:01: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)99670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4292740", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:56]POST & json_proto [11:01:56]process_json_proto [11:01:56]json parsed OK: [11:01:56]protocol is kg_v1.0 [11:01:56]action value=close_receipt [11:01:56]process_action close_receipt [11:01:56]cmd_close_receipt [11:01:56]MH_GetDate [11:01:56]Write to MH i2c: F0 00 00 61 16 66 [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: F0 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: F0 09 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: F0 09 00 61 16 00 26 6F 1F 67 50 D1 6C 64 7B [11:01:56]GetLastDocTimeStamp 1730113117 [11:01:56]current date 1730113318 [11:01:56]FM_GetShiftState [11:01:56]SAM_PROTO_GetShiftState [11:01:56]wFMCommunicate request_size=4 [11:01:56]MH_SAM_APDU [11:01:56]CAPDU: 80 13 01 00 [11:01:56]Write to MH i2c: E2 08 00 62 16 80 13 01 00 00 00 00 00 F5 [11:01:56]Write i2c OK [11:01:56]MH_I2C_Read... [11:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:56]Read from MH i2c: E2 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 0E 00 [11:01:56]MH_I2C_Read... [11:01:56]Read from MH i2c: E2 0E 00 62 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E7 [11:01:56]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:01:56]wFMCommunicate OK [11:01:56]SAM_PROTO_GetShiftState done [11:01:56]FM_GetShiftState done [11:01:56]opened in 1730075526 [11:01:56]opened+sec_in_day 1730161926 [11:01:56]quantity*price = 0 [11:01:56]sum+1 = 1 [11:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 73 28.10.2024 11:01 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4292740 ФМ: 0000000000871792 ФД: 156857 ФПД: 268387914416310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110158&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156857&fm=268387914416310&tin=02508201610067®Number=0000000000091693&sum=0 [11:01:57]StoreToDocumentArchive [11:01:57]shift 538 fd 156857 [11:01:57]save to /storage/0538/doc_00156857 [11:01:57]save last doc name /storage/0538/doc_00156857 to /storage/kkm_last_doc_name [11:01:57]save OK [11:01:57]Clear old archive folders... [11:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:01:57]tlvbuf is B6E76680 [11:01:57]SAM_PROTO_ClearQueue [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 09 00 00 [11:01:57]Write to MH i2c: E2 08 00 6F 16 80 09 00 00 00 00 00 00 F7 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_ClearQueue done [11:01:57]KKMCreateOFDPacket [11:01:57]OFDProtocolAddRootSTLVToBuf [11:01:57]FM_MakeSignedData [11:01:57]FM_MakeSignedData [11:01:57]SAM_PROTO_SignData [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 01 02 [11:01:57]Write to MH i2c: E2 08 00 70 16 80 0D 01 02 00 00 00 00 FF [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=255 [11:01:57]MH_SAM_APDU [11:01: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 26 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 64 02 00 35 04 06 00 F4 18 EE 4D [11:01:57]Write to MH i2c: E2 02 01 71 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 26 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 64 02 00 35 04 06 00 F4 18 EE 4D 00 00 7E [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]OFD Sender: No OFD packet to send [11:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=7 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 02 02 02 00 B6 [11:01:57]Write to MH i2c: E2 0A 00 72 16 80 0D 02 02 02 00 00 B6 00 00 BC [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [11:01:57]RAPDU: 90 00 [11:01:57]wFMCommunicate OK [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 0D 03 02 [11:01:57]Write to MH i2c: E2 08 00 73 16 80 0D 03 02 00 00 00 00 04 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0B 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 0B 00 73 16 00 19 D6 F7 6D A8 57 E7 45 90 00 83 [11:01:57]RAPDU: 19 D6 F7 6D A8 57 E7 45 90 00 [11:01:57]wFMCommunicate OK [11:01:57]SAM_PROTO_SignData done [11:01:57]FM_MakeSignedData done [11:01:57]CreateOFDProtocolMessage [11:01:57]wFMCommunicate request_size=4 [11:01:57]MH_SAM_APDU [11:01:57]CAPDU: 80 11 00 00 [11:01:57]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:57]Read from MH i2c: E2 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [11:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:01:57]wFMCommunicate OK [11:01:57]CreateOFDProtocolMessage done [11:01:57]OFDSenderStorePacket 156857 [11:01:57]StoreOFDPacket docnum=156857 [11:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B9 69 04 01 4C 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 26 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 64 02 00 35 04 06 00 F4 18 EE 4D 00 B6 19 D6 F7 6D A8 57 E7 45 [11:01:57]CheckFolder [11:01:57]dirname=/storage/ofd_packets [11:01:57]CheckFolder done [11:01:57]ProducePacketName [11:01:57]name=ofd_packets/00156857 [11:01:57]NVStorageSaveData ofd_packets/00156857 [11:01:57]File name is /storage/ofd_packets/00156857 [11:01:57]Write 298 bytes [11:01:57]NVStorageSaveData done [11:01:57]OFDSenderStorePacket done [11:01:57]KKMCreateOFDPacket done [11:01:57]NVStorageSaveData kkm_last_timestamp [11:01:57]File name is /storage/kkm_last_timestamp [11:01:57]Write 4 bytes [11:01:57]NVStorageSaveData done [11:01:57]ExternCall_PrintAddStr [11:01:57]wPrintStart [11:01:57]Write to MH i2c: 01 00 00 75 16 8B [11:01:57]Write i2c OK [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 [11:01:57]MH_I2C_Read... [11:01:57]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 FF 0F A0 [11:01:57]RasterBufferAndPrint [11:01:57]line Счет N : (1)99670 [11:01:57]line ИНН: 02508201610067 [11:01:57]line Контрольно-Кассовый Чек [11:01:57]line ПРОДАЖА [11:01:57]line ТРК (МРК, ГНК) : 32 [11:01:57]line Товар: 2710194210 [11:01:57]line ДТ-К-5 [11:01:57]line 10.000 * 0.00 [11:01:57]line = 0.00 [11:01:57]line НДС 12% НСП 1% [11:01:57]line > о реализуемом товаре [11:01:57]line ИТОГО: 0.00 [11:01:57]line НСП 1% : 0.00 [11:01:57]line НДС 12% : 0.00 [11:01:57]line Наличными: 0.00 [11:01:57]line Безнал.: 0.00 [11:01:57]line Место: АЗС № 143 "Партнер Нефть" [11:01:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:01:57]line СНО: Общий режим [11:01:57]line Чек 73 28.10.2024 11:01 [11:01:57]line Смена: 538 ФФД: 1.0 [11:01:57]line ЗНМ: 0300000096 [11:01:57]line РНМ: 0000000000091693 [11:01:57]line Версия ККМ: 001 [11:01:57]line Талоны: Топливные Талоны [11:01:57]line 4292740 [11:01:57]line ФМ: 0000000000871792 [11:01:57]line ФД: 156857 [11:01:57]line ФПД: 268387914416310 [11:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110158&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156857&fm=268387914416310&tin=02508201610067®Number=0000000000091693&sum=0 [11:01:58]written 0, free lines is 4095 [11:01:58]OFD Sender: Processing packet 156857 [packets to send 31, broken 30] [11:01:58]ProducePacketName [11:01:58]name=ofd_packets/00156857 [11:01:58]OFD Sender: To server: pG, [11:01:58]CommunicateWithHost lk.salyk.kg:30040 [11:01:58]ConnectInit lk.salyk.kg [11:01:58]Connected sock=10 [11:01: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 37 39 32 0C 01 00 00 B9 69 04 01 4C 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 26 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 64 02 00 35 04 06 00 F4 18 EE 4D 00 B6 19 D6 F7 6D A8 57 E7 45 [11:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0C C8 47 00 12 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 64 02 00 F4 03 04 00 93 14 1F 67 B6 04 01 00 00 E0 73 9F D4 DA CF 97 D3 [11:01:58]CommunicateWithHost err = 0 [11:01:58]CheckOFDResponse [11:01:58]1017 (14) - 77093643461234 [11:01:58]1041 (16) - 0000000000871792 [11:01:58]1040 (4) - 156857 [11:01:58]1012 (4) - 28.10.2024 04:35 [11:01:58]1206 (1) - 0 [11:01:58]OFD Sender: Remove packet 156857 [11:01:58]ProducePacketName [11:01:58]name=ofd_packets/00156857 [11:01:58]NVStorageDeleteData [11:01:58]Write to MH i2c: 01 00 00 9F 16 B5 [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 07 00 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 F3 0C BB [11:01:58]RasterBufferAndPrint [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]line [11:01:58]written 0, free lines is 3323 [11:01:58]process_action close_receipt done [11:01:58]requested_data is exist [11:01:58]produce_requested_data [11:01:58]requested_item fm.sn is exist - process it [11:01:58]wFMCommunicate request_size=4 [11:01:58]MH_SAM_APDU [11:01:58]CAPDU: 80 11 00 00 [11:01:58]Write to MH i2c: E2 08 00 A6 16 80 11 00 00 00 00 00 00 36 [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:58]Read from MH i2c: E2 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: E2 17 00 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: E2 17 00 A6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [11:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:01:58]wFMCommunicate OK [11:01:58]requested_item fd.num is exist - process it [11:01:58]SAM_PROTO_GetFieldsCounters [11:01:58]wFMCommunicate request_size=4 [11:01:58]MH_SAM_APDU [11:01:58]CAPDU: 80 13 00 00 [11:01:58]Write to MH i2c: E2 08 00 A7 16 80 13 00 00 00 00 00 00 39 [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:58]Read from MH i2c: E2 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: E2 62 00 [11:01:58]MH_I2C_Read... [11:01:58]Read from MH i2c: E2 62 00 A7 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:01:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 64 02 00 0E 04 04 00 1A 02 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 [11:01:58]wFMCommunicate OK [11:01:58]SAM_PROTO_GetFieldsCounters done [11:01:58]requested_item shift.num is exist - process it [11:01:58]requested_item shift.opened is exist - process it [11:01:58]req_shift_opened [11:01:58]FM_GetShiftState [11:01:58]SAM_PROTO_GetShiftState [11:01:58]wFMCommunicate request_size=4 [11:01:58]MH_SAM_APDU [11:01:58]CAPDU: 80 13 01 00 [11:01:58]Write to MH i2c: E2 08 00 A8 16 80 13 01 00 00 00 00 00 3B [11:01:58]Write i2c OK [11:01:58]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 [11:01:59]MH_I2C_Read... [11:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:59]Read from MH i2c: E2 0E 00 [11:01:59]MH_I2C_Read... [11:01:59]Read from MH i2c: E2 0E 00 A8 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2D [11:01:59]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:01:59]wFMCommunicate OK [11:01:59]SAM_PROTO_GetShiftState done [11:01:59]FM_GetShiftState done [11:01:59]req_shift_opened done [11:01:59]requested_item shift.open_date is exist - process it [11:01:59]req_shift_open_date [11:01:59]req_shift_open_date done [11:01:59]produce_requested_data done [11:01:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156857,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:01:59]process_action_free close_receipt [11:01:59]json_value_free [11:01:59]json_value_free done [11:01:59]process_json_proto returns [11:01:59]Send response to host [11:01:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156857,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:01:59]free response buf [11:01:59]execute_script done [11:01:59]execute_script returns [11:01:59]free content buf [11:01:59]Sock 9.Close socket [11:01:59]Sock 9.Thread stoped [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:33]accept exits with 7 [11:02:33]New connection [11:02:33]New thread 3066604900 created [11:02:33]Thread 3066748260 joined [11:02:33]Waiting for new connection... [11:02:33] Sock 7.Parse request [11:02:33]Sock 7.Check first char [11:02:33]Sock 7.First char is OK [11:02:33]request: POST /json_proto HTTP/1.0 [11:02:33]Method: POST [11:02:33]URL: /json_proto [11:02:33]Method is POST - this is cgi request [11:02:33]url: /json_proto [11:02:33]query_string will be loaded in cgi processing [11:02:33]execute_cgi json_proto POST (null) [11:02:33]execute_cgi path=json_proto method=POST [11:02:33]POST find Content-Length [11:02:33]Host: 172.17.63.3:8080 [11:02:33]Content-Length: 796 [11:02:33]Content-Type: application/json [11:02:33] [11:02:33]POST finish read [11:02:33]Found Content-Length = 796 [11:02:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295636", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:33]execute_script... [11:02: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)99671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295636", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:33]POST & json_proto [11:02:33]process_json_proto [11:02:33]json parsed OK: [11:02:33]protocol is kg_v1.0 [11:02:33]action value=close_receipt [11:02:33]process_action close_receipt [11:02:33]cmd_close_receipt [11:02:33]MH_GetDate [11:02:33]Write to MH i2c: F0 00 00 A9 16 AE [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: F0 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: F0 09 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: F0 09 00 A9 16 00 4B 6F 1F 67 50 D1 6C 64 E8 [11:02:33]GetLastDocTimeStamp 1730113318 [11:02:33]current date 1730113355 [11:02:33]FM_GetShiftState [11:02:33]SAM_PROTO_GetShiftState [11:02:33]wFMCommunicate request_size=4 [11:02:33]MH_SAM_APDU [11:02:33]CAPDU: 80 13 01 00 [11:02:33]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [11:02:33]Write i2c OK [11:02:33]MH_I2C_Read... [11:02:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:33]Read from MH i2c: E2 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0E 00 [11:02:33]MH_I2C_Read... [11:02:33]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2F [11:02:33]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:02:33]wFMCommunicate OK [11:02:33]SAM_PROTO_GetShiftState done [11:02:33]FM_GetShiftState done [11:02:33]opened in 1730075526 [11:02:33]opened+sec_in_day 1730161926 [11:02:33]quantity*price = 0 [11:02:33]sum+1 = 1 [11:02:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 74 28.10.2024 11:02 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295636 ФМ: 0000000000871792 ФД: 156858 ФПД: 136895747828342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110235&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156858&fm=136895747828342&tin=02508201610067®Number=0000000000091693&sum=0 [11:02:34]StoreToDocumentArchive [11:02:34]shift 538 fd 156858 [11:02:34]save to /storage/0538/doc_00156858 [11:02:34]save last doc name /storage/0538/doc_00156858 to /storage/kkm_last_doc_name [11:02:34]save OK [11:02:34]Clear old archive folders... [11:02:34]OFD Sender: No OFD packet to send [11:02:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:02:34]tlvbuf is 01AB1B00 [11:02:34]SAM_PROTO_ClearQueue [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 09 00 00 [11:02:34]Write to MH i2c: E2 08 00 B7 16 80 09 00 00 00 00 00 00 3F [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 B7 16 00 90 00 41 [11:02:34]RAPDU: 90 00 [11:02:34]wFMCommunicate OK [11:02:34]SAM_PROTO_ClearQueue done [11:02:34]KKMCreateOFDPacket [11:02:34]OFDProtocolAddRootSTLVToBuf [11:02:34]FM_MakeSignedData [11:02:34]FM_MakeSignedData [11:02:34]SAM_PROTO_SignData [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 0D 01 02 [11:02:34]Write to MH i2c: E2 08 00 B8 16 80 0D 01 02 00 00 00 00 47 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 B8 16 00 90 00 42 [11:02:34]RAPDU: 90 00 [11:02:34]wFMCommunicate OK [11:02:34]wFMCommunicate request_size=255 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4B 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 64 02 00 35 04 06 00 7C 81 86 6B [11:02:34]Write to MH i2c: E2 02 01 B9 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4B 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 64 02 00 35 04 06 00 7C 81 86 6B 00 00 94 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [11:02:34]RAPDU: 90 00 [11:02:34]wFMCommunicate OK [11:02:34]wFMCommunicate request_size=7 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 0D 02 02 02 AA 76 [11:02:34]Write to MH i2c: E2 0A 00 BA 16 80 0D 02 02 02 00 AA 76 00 00 6E [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [11:02:34]RAPDU: 90 00 [11:02:34]wFMCommunicate OK [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 0D 03 02 [11:02:34]Write to MH i2c: E2 08 00 BB 16 80 0D 03 02 00 00 00 00 4C [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 0B 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 0B 00 BB 16 00 0A B4 2E 98 1B 22 4A 01 90 00 59 [11:02:34]RAPDU: 0A B4 2E 98 1B 22 4A 01 90 00 [11:02:34]wFMCommunicate OK [11:02:34]SAM_PROTO_SignData done [11:02:34]FM_MakeSignedData done [11:02:34]CreateOFDProtocolMessage [11:02:34]wFMCommunicate request_size=4 [11:02:34]MH_SAM_APDU [11:02:34]CAPDU: 80 11 00 00 [11:02:34]Write to MH i2c: E2 08 00 BC 16 80 11 00 00 00 00 00 00 4C [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:34]Read from MH i2c: E2 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 17 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: E2 17 00 BC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [11:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:34]wFMCommunicate OK [11:02:34]CreateOFDProtocolMessage done [11:02:34]OFDSenderStorePacket 156858 [11:02:34]StoreOFDPacket docnum=156858 [11:02:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 41 3B 04 01 5E 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4B 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 64 02 00 35 04 06 00 7C 81 86 6B AA 76 0A B4 2E 98 1B 22 4A 01 [11:02:34]CheckFolder [11:02:34]dirname=/storage/ofd_packets [11:02:34]CheckFolder done [11:02:34]ProducePacketName [11:02:34]name=ofd_packets/00156858 [11:02:34]NVStorageSaveData ofd_packets/00156858 [11:02:34]File name is /storage/ofd_packets/00156858 [11:02:34]Write 298 bytes [11:02:34]NVStorageSaveData done [11:02:34]OFDSenderStorePacket done [11:02:34]KKMCreateOFDPacket done [11:02:34]NVStorageSaveData kkm_last_timestamp [11:02:34]File name is /storage/kkm_last_timestamp [11:02:34]Write 4 bytes [11:02:34]NVStorageSaveData done [11:02:34]ExternCall_PrintAddStr [11:02:34]wPrintStart [11:02:34]Write to MH i2c: 01 00 00 BD 16 D3 [11:02:34]Write i2c OK [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 [11:02:34]MH_I2C_Read... [11:02:34]Read from MH i2c: 01 07 00 BD 16 00 00 00 00 00 FF 0F E8 [11:02:34]RasterBufferAndPrint [11:02:34]line Счет N : (1)99671 [11:02:34]line ИНН: 02508201610067 [11:02:34]line Контрольно-Кассовый Чек [11:02:34]line ПРОДАЖА [11:02:34]line ТРК (МРК, ГНК) : 32 [11:02:34]line Товар: 2710194210 [11:02:34]line ДТ-К-5 [11:02:34]line 10.000 * 0.00 [11:02:34]line = 0.00 [11:02:34]line НДС 12% НСП 1% [11:02:34]line > о реализуемом товаре [11:02:34]line ИТОГО: 0.00 [11:02:34]line НСП 1% : 0.00 [11:02:34]line НДС 12% : 0.00 [11:02:34]line Наличными: 0.00 [11:02:34]line Безнал.: 0.00 [11:02:34]line Место: АЗС № 143 "Партнер Нефть" [11:02:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:02:34]line СНО: Общий режим [11:02:34]line Чек 74 28.10.2024 11:02 [11:02:34]line Смена: 538 ФФД: 1.0 [11:02:34]line ЗНМ: 0300000096 [11:02:34]line РНМ: 0000000000091693 [11:02:34]line Версия ККМ: 001 [11:02:34]line Талоны: Топливные Талоны [11:02:34]line 4295636 [11:02:34]line ФМ: 0000000000871792 [11:02:34]line ФД: 156858 [11:02:34]line ФПД: 136895747828342 [11:02:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110235&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156858&fm=136895747828342&tin=02508201610067®Number=0000000000091693&sum=0 [11:02:35]OFD Sender: Processing packet 156858 [packets to send 31, broken 30] [11:02:35]ProducePacketName [11:02:35]name=ofd_packets/00156858 [11:02:35]OFD Sender: To server: pG, [11:02:35]CommunicateWithHost lk.salyk.kg:30040 [11:02:35]ConnectInit lk.salyk.kg [11:02:35]written 0, free lines is 4095 [11:02:35]Connected sock=10 [11:02:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 41 3B 04 01 5E 3E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 4B 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 64 02 00 35 04 06 00 7C 81 86 6B AA 76 0A B4 2E 98 1B 22 4A 01 [11:02:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B0 27 47 00 A5 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 64 02 00 F4 03 04 00 B8 14 1F 67 B6 04 01 00 00 EC 58 7F C7 8C 6D CB 74 [11:02:35]CommunicateWithHost err = 0 [11:02:35]CheckOFDResponse [11:02:35]1017 (14) - 77093643461234 [11:02:35]1041 (16) - 0000000000871792 [11:02:35]1040 (4) - 156858 [11:02:35]1012 (4) - 28.10.2024 04:36 [11:02:35]1206 (1) - 0 [11:02:35]OFD Sender: Remove packet 156858 [11:02:35]ProducePacketName [11:02:35]name=ofd_packets/00156858 [11:02:35]NVStorageDeleteData [11:02:35]Write to MH i2c: 01 00 00 E7 16 FD [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: 01 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: 01 07 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 02 0D 13 [11:02:35]RasterBufferAndPrint [11:02:35]line [11:02:35]line [11:02:35]line [11:02:35]line [11:02:35]line [11:02:35]written 0, free lines is 3336 [11:02:35]process_action close_receipt done [11:02:35]requested_data is exist [11:02:35]produce_requested_data [11:02:35]requested_item fm.sn is exist - process it [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 11 00 00 [11:02:35]Write to MH i2c: E2 08 00 EE 16 80 11 00 00 00 00 00 00 7E [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:35]Read from MH i2c: E2 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 17 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 17 00 EE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [11:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:35]wFMCommunicate OK [11:02:35]requested_item fd.num is exist - process it [11:02:35]SAM_PROTO_GetFieldsCounters [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 13 00 00 [11:02:35]Write to MH i2c: E2 08 00 EF 16 80 13 00 00 00 00 00 00 81 [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:35]Read from MH i2c: E2 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 62 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 62 00 EF 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 64 02 00 0E 04 04 00 1A 02 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 C1 [11:02: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 64 02 00 0E 04 04 00 1A 02 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 [11:02:35]wFMCommunicate OK [11:02:35]SAM_PROTO_GetFieldsCounters done [11:02:35]requested_item shift.num is exist - process it [11:02:35]requested_item shift.opened is exist - process it [11:02:35]req_shift_opened [11:02:35]FM_GetShiftState [11:02:35]SAM_PROTO_GetShiftState [11:02:35]wFMCommunicate request_size=4 [11:02:35]MH_SAM_APDU [11:02:35]CAPDU: 80 13 01 00 [11:02:35]Write to MH i2c: E2 08 00 F0 16 80 13 01 00 00 00 00 00 83 [11:02:35]Write i2c OK [11:02:35]MH_I2C_Read... [11:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:35]Read from MH i2c: E2 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 0E 00 [11:02:35]MH_I2C_Read... [11:02:35]Read from MH i2c: E2 0E 00 F0 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 75 [11:02:35]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:02:35]wFMCommunicate OK [11:02:35]SAM_PROTO_GetShiftState done [11:02:35]FM_GetShiftState done [11:02:35]req_shift_opened done [11:02:35]requested_item shift.open_date is exist - process it [11:02:35]req_shift_open_date [11:02:35]req_shift_open_date done [11:02:35]produce_requested_data done [11:02:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156858,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:02:35]process_action_free close_receipt [11:02:35]json_value_free [11:02:35]json_value_free done [11:02:35]process_json_proto returns [11:02:35]Send response to host [11:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156858,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:02:35]free response buf [11:02:35]execute_script done [11:02:35]execute_script returns [11:02:35]free content buf [11:02:35]Sock 7.Close socket [11:02:35]Sock 7.Thread stoped [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:03:56]accept exits with 9 [11:03:56]New connection [11:03:56]New thread 3066748260 created [11:03:56]Thread 3066604900 joined [11:03:56]Waiting for new connection... [11:03:56] Sock 9.Parse request [11:03:56]Sock 9.Check first char [11:03:56]Sock 9.First char is OK [11:03:56]request: POST /json_proto HTTP/1.0 [11:03:56]Method: POST [11:03:56]URL: /json_proto [11:03:56]Method is POST - this is cgi request [11:03:56]url: /json_proto [11:03:56]query_string will be loaded in cgi processing [11:03:56]execute_cgi json_proto POST (null) [11:03:56]execute_cgi path=json_proto method=POST [11:03:56]POST find Content-Length [11:03:56]Host: 172.17.63.3:8080 [11:03:56]Content-Length: 676 [11:03:56]Content-Type: application/json [11:03:56] [11:03:56]POST finish read [11:03:56]Found Content-Length = 676 [11:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:56]execute_script... [11:03:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.640, "sum" : 310.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:56]POST & json_proto [11:03:56]process_json_proto [11:03:56]json parsed OK: [11:03:56]protocol is kg_v1.0 [11:03:56]action value=close_receipt [11:03:56]process_action close_receipt [11:03:56]cmd_close_receipt [11:03:56]MH_GetDate [11:03:56]Write to MH i2c: F0 00 00 F1 16 F6 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: F0 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: F0 09 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: F0 09 00 F1 16 00 9F 6F 1F 67 50 D1 6C 64 84 [11:03:56]GetLastDocTimeStamp 1730113355 [11:03:56]current date 1730113439 [11:03:56]FM_GetShiftState [11:03:56]SAM_PROTO_GetShiftState [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 13 01 00 [11:03:56]Write to MH i2c: E2 08 00 F2 16 80 13 01 00 00 00 00 00 85 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0E 00 F2 16 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 77 [11:03:56]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_GetShiftState done [11:03:56]FM_GetShiftState done [11:03:56]opened in 1730075526 [11:03:56]opened+sec_in_day 1730161926 [11:03:56]quantity*price = 31041 [11:03:56]sum+1 = 31043 [11:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.96 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 75 28.10.2024 11:03 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156859 ФПД: 201537352474083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110359&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156859&fm=201537352474083&tin=02508201610067®Number=0000000000091693&sum=31000 [11:03:57]StoreToDocumentArchive [11:03:57]shift 538 fd 156859 [11:03:57]save to /storage/0538/doc_00156859 [11:03:57]save last doc name /storage/0538/doc_00156859 to /storage/kkm_last_doc_name [11:03:57]save OK [11:03:57]Clear old archive folders... [11:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:57]tlvbuf is B6E76DA0 [11:03:57]SAM_PROTO_ClearQueue [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 09 00 00 [11:03:57]Write to MH i2c: E2 08 00 FF 16 80 09 00 00 00 00 00 00 87 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 FF 16 00 90 00 89 [11:03:57]RAPDU: 90 00 [11:03:57]wFMCommunicate OK [11:03:57]SAM_PROTO_ClearQueue done [11:03:57]KKMCreateOFDPacket [11:03:57]OFDProtocolAddRootSTLVToBuf [11:03:57]FM_MakeSignedData [11:03:57]FM_MakeSignedData [11:03:57]SAM_PROTO_SignData [11:03:57]wFMCommunicate request_size=4 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 0D 01 02 [11:03:57]Write to MH i2c: E2 08 00 00 17 80 0D 01 02 00 00 00 00 90 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:57]Read from MH i2c: E2 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: E2 03 00 00 17 00 90 00 8B [11:03:57]RAPDU: 90 00 [11:03:57]wFMCommunicate OK [11:03:57]wFMCommunicate request_size=255 [11:03:57]MH_SAM_APDU [11:03:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 64 02 00 35 04 06 00 B7 [11:03:57]Write to MH i2c: E2 02 01 01 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 64 02 00 35 04 06 00 B7 00 00 BD [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 03 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 03 00 01 17 00 90 00 8C [11:03:58]RAPDU: 90 00 [11:03:58]wFMCommunicate OK [11:03:58]wFMCommunicate request_size=10 [11:03:58]MH_SAM_APDU [11:03:58]CAPDU: 80 0D 02 02 05 4C 12 4D 9D E3 [11:03:58]Write to MH i2c: E2 0D 00 02 17 80 0D 02 02 05 00 4C 12 4D 9D E3 00 00 C8 [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 03 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 03 00 02 17 00 90 00 8D [11:03:58]RAPDU: 90 00 [11:03:58]wFMCommunicate OK [11:03:58]wFMCommunicate request_size=4 [11:03:58]MH_SAM_APDU [11:03:58]CAPDU: 80 0D 03 02 [11:03:58]Write to MH i2c: E2 08 00 03 17 80 0D 03 02 00 00 00 00 95 [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0B 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 0B 00 03 17 00 8D 64 3D C8 BA 05 75 FB 90 00 BB [11:03:58]RAPDU: 8D 64 3D C8 BA 05 75 FB 90 00 [11:03:58]wFMCommunicate OK [11:03:58]SAM_PROTO_SignData done [11:03:58]FM_MakeSignedData done [11:03:58]CreateOFDProtocolMessage [11:03:58]wFMCommunicate request_size=4 [11:03:58]MH_SAM_APDU [11:03:58]CAPDU: 80 11 00 00 [11:03:58]Write to MH i2c: E2 08 00 04 17 80 11 00 00 00 00 00 00 95 [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:58]Read from MH i2c: E2 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 17 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: E2 17 00 04 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [11:03:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:03:58]wFMCommunicate OK [11:03:58]CreateOFDProtocolMessage done [11:03:58]OFDSenderStorePacket 156859 [11:03:58]StoreOFDPacket docnum=156859 [11:03:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 AD 07 01 A0 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 64 02 00 35 04 06 00 B7 4C 12 4D 9D E3 8D 64 3D C8 BA 05 75 FB [11:03:58]CheckFolder [11:03:58]dirname=/storage/ofd_packets [11:03:58]CheckFolder done [11:03:58]ProducePacketName [11:03:58]name=ofd_packets/00156859 [11:03:58]NVStorageSaveData ofd_packets/00156859 [11:03:58]File name is /storage/ofd_packets/00156859 [11:03:58]Write 301 bytes [11:03:58]NVStorageSaveData done [11:03:58]OFDSenderStorePacket done [11:03:58]KKMCreateOFDPacket done [11:03:58]NVStorageSaveData kkm_last_timestamp [11:03:58]File name is /storage/kkm_last_timestamp [11:03:58]Write 4 bytes [11:03:58]NVStorageSaveData done [11:03:58]ExternCall_PrintAddStr [11:03:58]wPrintStart [11:03:58]Write to MH i2c: 01 00 00 05 17 1C [11:03:58]Write i2c OK [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 07 00 [11:03:58]MH_I2C_Read... [11:03:58]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 FF 0F 31 [11:03:58]RasterBufferAndPrint [11:03:58]line Счет N : (1)99672 [11:03:58]line ИНН: 02508201610067 [11:03:58]line Контрольно-Кассовый Чек [11:03:58]line ПРОДАЖА [11:03:58]line ТРК (МРК, ГНК) : 31 [11:03:58]line Товар: 2710124130 [11:03:58]line Аи-92-К-5 [11:03:58]line 4.640 * 66.90 [11:03:58]line = 310.42 [11:03:58]line НДС 12% НСП 1% [11:03:58]line > о реализуемом товаре [11:03:58]line ОКРУГЛЕНИЕ: -0.42 [11:03:58]line ИТОГО: 310.00 [11:03:58]line Внесено: 310.00 [11:03:58]line СДАЧА: 0.00 [11:03:58]line НСП 1% : 2.75 [11:03:58]line НДС 12% : 32.96 [11:03:58]line Наличными: 310.00 [11:03:58]line Безнал.: 0.00 [11:03:58]line Место: АЗС № 143 "Партнер Нефть" [11:03:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:03:58]line СНО: Общий режим [11:03:58]line Чек 75 28.10.2024 11:03 [11:03:58]line Смена: 538 ФФД: 1.0 [11:03:58]line ЗНМ: 0300000096 [11:03:58]line РНМ: 0000000000091693 [11:03:58]line Версия ККМ: 001 [11:03:58]line ФМ: 0000000000871792 [11:03:58]line ФД: 156859 [11:03:58]line ФПД: 201537352474083 [11:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110359&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156859&fm=201537352474083&tin=02508201610067®Number=0000000000091693&sum=31000 [11:03:58]OFD Sender: Processing packet 156859 [packets to send 31, broken 30] [11:03:58]ProducePacketName [11:03:58]name=ofd_packets/00156859 [11:03:58]OFD Sender: To server: pG, [11:03:58]CommunicateWithHost lk.salyk.kg:30040 [11:03:58]ConnectInit lk.salyk.kg [11:03:58]written 0, free lines is 4095 [11:03:58]Connected sock=10 [11:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 AD 07 01 A0 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 20 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 42 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 6F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 64 02 00 35 04 06 00 B7 4C 12 4D 9D E3 8D 64 3D C8 BA 05 75 FB [11:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 64 1E 47 00 EE 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 37 39 32 10 04 04 00 BB 64 02 00 F4 03 04 00 0B 15 1F 67 B6 04 01 00 00 BE 44 6A 3F D1 6B 1E CA [11:03:58]CommunicateWithHost err = 0 [11:03:58]CheckOFDResponse [11:03:58]1017 (14) - 77093643461234 [11:03:58]1041 (16) - 0000000000871792 [11:03:58]1040 (4) - 156859 [11:03:58]1012 (4) - 28.10.2024 04:37 [11:03:58]1206 (1) - 0 [11:03:58]OFD Sender: Remove packet 156859 [11:03:58]ProducePacketName [11:03:58]name=ofd_packets/00156859 [11:03:58]NVStorageDeleteData [11:03:59]Write to MH i2c: 01 00 00 30 17 47 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 EA 0C 44 [11:03:59]RasterBufferAndPrint [11:03:59]line [11:03:59]line [11:03:59]line [11:03:59]line [11:03:59]line [11:03:59]written 0, free lines is 3313 [11:03:59]process_action close_receipt done [11:03:59]requested_data is exist [11:03:59]produce_requested_data [11:03:59]requested_item fm.sn is exist - process it [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 11 00 00 [11:03:59]Write to MH i2c: E2 08 00 37 17 80 11 00 00 00 00 00 00 C8 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:59]Read from MH i2c: E2 17 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 37 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [11:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:03:59]wFMCommunicate OK [11:03:59]requested_item fd.num is exist - process it [11:03:59]SAM_PROTO_GetFieldsCounters [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 00 00 [11:03:59]Write to MH i2c: E2 08 00 38 17 80 13 00 00 00 00 00 00 CB [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 38 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 64 02 00 0E 04 04 00 1A 02 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 0F [11:03: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 64 02 00 0E 04 04 00 1A 02 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 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetFieldsCounters done [11:03:59]requested_item shift.num is exist - process it [11:03:59]requested_item shift.opened is exist - process it [11:03:59]req_shift_opened [11:03:59]FM_GetShiftState [11:03:59]SAM_PROTO_GetShiftState [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 01 00 [11:03:59]Write to MH i2c: E2 08 00 39 17 80 13 01 00 00 00 00 00 CD [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 39 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BF [11:03:59]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetShiftState done [11:03:59]FM_GetShiftState done [11:03:59]req_shift_opened done [11:03:59]requested_item shift.open_date is exist - process it [11:03:59]req_shift_open_date [11:03:59]req_shift_open_date done [11:03:59]produce_requested_data done [11:03:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156859,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:03:59]process_action_free close_receipt [11:03:59]json_value_free [11:03:59]json_value_free done [11:03:59]process_json_proto returns [11:03:59]Send response to host [11:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156859,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:03:59]free response buf [11:03:59]execute_script done [11:03:59]execute_script returns [11:03:59]free content buf [11:03:59]Sock 9.Close socket [11:03:59]Sock 9.Thread stoped [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:16]accept exits with 7 [11:06:16]New connection [11:06:16]New thread 3066604900 created [11:06:16]Thread 3066748260 joined [11:06:16]Waiting for new connection... [11:06:16] Sock 7.Parse request [11:06:16]Sock 7.Check first char [11:06:16]Sock 7.First char is OK [11:06:16]request: POST /json_proto HTTP/1.0 [11:06:16]Method: POST [11:06:16]URL: /json_proto [11:06:16]Method is POST - this is cgi request [11:06:16]url: /json_proto [11:06:16]query_string will be loaded in cgi processing [11:06:16]execute_cgi json_proto POST (null) [11:06:16]execute_cgi path=json_proto method=POST [11:06:16]POST find Content-Length [11:06:16]Host: 172.17.63.3:8080 [11:06:16]Content-Length: 799 [11:06:16]Content-Type: application/json [11:06:16] [11:06:16]POST finish read [11:06:16]Found Content-Length = 799 [11:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4469421.22", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:16]execute_script... [11:06:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4469421.22", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:16]POST & json_proto [11:06:16]process_json_proto [11:06:16]json parsed OK: [11:06:16]protocol is kg_v1.0 [11:06:16]action value=close_receipt [11:06:16]process_action close_receipt [11:06:16]cmd_close_receipt [11:06:16]MH_GetDate [11:06:16]Write to MH i2c: F0 00 00 3A 17 40 [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: F0 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: F0 09 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: F0 09 00 3A 17 00 2B 70 1F 67 50 D1 6C 64 5B [11:06:16]GetLastDocTimeStamp 1730113439 [11:06:16]current date 1730113579 [11:06:16]FM_GetShiftState [11:06:16]SAM_PROTO_GetShiftState [11:06:16]wFMCommunicate request_size=4 [11:06:16]MH_SAM_APDU [11:06:16]CAPDU: 80 13 01 00 [11:06:16]Write to MH i2c: E2 08 00 3B 17 80 13 01 00 00 00 00 00 CF [11:06:16]Write i2c OK [11:06:16]MH_I2C_Read... [11:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:16]Read from MH i2c: E2 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0E 00 [11:06:16]MH_I2C_Read... [11:06:16]Read from MH i2c: E2 0E 00 3B 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C1 [11:06:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:06:16]wFMCommunicate OK [11:06:16]SAM_PROTO_GetShiftState done [11:06:16]FM_GetShiftState done [11:06:16]opened in 1730075526 [11:06:16]opened+sec_in_day 1730161926 [11:06:16]quantity*price = 0 [11:06:16]sum+1 = 1 [11:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 76 28.10.2024 11:06 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4469421.22 ФМ: 0000000000871792 ФД: 156860 ФПД: 250473355431316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110619&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156860&fm=250473355431316&tin=02508201610067®Number=0000000000091693&sum=0 [11:06:17]StoreToDocumentArchive [11:06:17]shift 538 fd 156860 [11:06:17]save to /storage/0538/doc_00156860 [11:06:17]save last doc name /storage/0538/doc_00156860 to /storage/kkm_last_doc_name [11:06:17]save OK [11:06:17]Clear old archive folders... [11:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:06:17]tlvbuf is 01ACF3F0 [11:06:17]SAM_PROTO_ClearQueue [11:06:17]wFMCommunicate request_size=4 [11:06:17]MH_SAM_APDU [11:06:17]CAPDU: 80 09 00 00 [11:06:17]Write to MH i2c: E2 08 00 48 17 80 09 00 00 00 00 00 00 D1 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:17]Read from MH i2c: E2 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: E2 03 00 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [11:06:17]RAPDU: 90 00 [11:06:17]wFMCommunicate OK [11:06:17]SAM_PROTO_ClearQueue done [11:06:17]KKMCreateOFDPacket [11:06:17]OFDProtocolAddRootSTLVToBuf [11:06:17]FM_MakeSignedData [11:06:17]FM_MakeSignedData [11:06:17]SAM_PROTO_SignData [11:06:17]wFMCommunicate request_size=4 [11:06:17]MH_SAM_APDU [11:06:17]CAPDU: 80 0D 01 02 [11:06:17]Write to MH i2c: E2 08 00 49 17 80 0D 01 02 00 00 00 00 D9 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:17]Read from MH i2c: E2 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: E2 03 00 [11:06:17]MH_I2C_Read... [11:06:17]Read from MH i2c: E2 03 00 49 17 00 90 00 D4 [11:06:17]RAPDU: 90 00 [11:06:17]wFMCommunicate OK [11:06:17]wFMCommunicate request_size=255 [11:06:17]MH_SAM_APDU [11:06:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2B 70 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 64 02 00 35 04 06 00 E3 CD DF 60 [11:06:17]Write to MH i2c: E2 02 01 4A 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2B 70 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 64 02 00 35 04 06 00 E3 CD DF 60 00 00 43 [11:06:17]Write i2c OK [11:06:17]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 03 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 03 00 4A 17 00 90 00 D5 [11:06:18]RAPDU: 90 00 [11:06:18]wFMCommunicate OK [11:06:18]wFMCommunicate request_size=7 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 0D 02 02 02 4D 94 [11:06:18]Write to MH i2c: E2 0A 00 4B 17 80 0D 02 02 02 00 4D 94 00 00 C1 [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 03 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 03 00 4B 17 00 90 00 D6 [11:06:18]RAPDU: 90 00 [11:06:18]wFMCommunicate OK [11:06:18]wFMCommunicate request_size=4 [11:06:18]MH_SAM_APDU [11:06:18]CAPDU: 80 0D 03 02 [11:06:18]Write to MH i2c: E2 08 00 4C 17 80 0D 03 02 00 00 00 00 DE [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:18]Read from MH i2c: E2 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0B 00 [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: E2 0B 00 4C 17 00 04 59 5C 48 53 C1 AD FE 90 00 9F [11:06:18]RAPDU: 04 59 5C 48 53 C1 AD FE 90 00 [11:06:18]wFMCommunicate OK [11:06:18]SAM_PROTO_SignData done [11:06:18]FM_MakeSignedData done [11:06:18]CreateOFDProtocolMessage [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 4D 17 80 11 00 00 00 00 00 00 DE [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 4D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [11:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:18]wFMCommunicate OK [11:06:18]CreateOFDProtocolMessage done [11:06:18]OFDSenderStorePacket 156860 [11:06:18]StoreOFDPacket docnum=156860 [11:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 90 AB 04 01 BD 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2B 70 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 64 02 00 35 04 06 00 E3 CD DF 60 4D 94 04 59 5C 48 53 C1 AD FE [11:06:18]CheckFolder [11:06:18]dirname=/storage/ofd_packets [11:06:18]CheckFolder done [11:06:18]ProducePacketName [11:06:18]name=ofd_packets/00156860 [11:06:18]NVStorageSaveData ofd_packets/00156860 [11:06:18]File name is /storage/ofd_packets/00156860 [11:06:18]Write 298 bytes [11:06:18]NVStorageSaveData done [11:06:18]OFDSenderStorePacket done [11:06:18]KKMCreateOFDPacket done [11:06:18]NVStorageSaveData kkm_last_timestamp [11:06:18]File name is /storage/kkm_last_timestamp [11:06:18]Write 4 bytes [11:06:18]NVStorageSaveData done [11:06:18]ExternCall_PrintAddStr [11:06:18]wPrintStart [11:06:18]Write to MH i2c: 01 00 00 4E 17 65 [11:06:18]Write i2c OK [11:06:18]MH_I2C_Read... [11:06:18]Read from MH i2c: 01 [11:06:18]MH_I2C_Read... [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 4E 17 00 00 00 00 00 FF 0F 7A [11:06:18]RasterBufferAndPrint [11:06:18]line Счет N : (1)99673 [11:06:18]line ИНН: 02508201610067 [11:06:18]line Контрольно-Кассовый Чек [11:06:18]line ПРОДАЖА [11:06:18]line ТРК (МРК, ГНК) : 32 [11:06:18]line Товар: 2710194210 [11:06:18]line ДТ-К-5 [11:06:18]line 20.000 * 0.00 [11:06:18]line = 0.00 [11:06:18]line НДС 12% НСП 1% [11:06:18]line > о реализуемом товаре [11:06:18]line ИТОГО: 0.00 [11:06:18]line НСП 1% : 0.00 [11:06:18]line НДС 12% : 0.00 [11:06:18]line Наличными: 0.00 [11:06:18]line Безнал.: 0.00 [11:06:18]line Место: АЗС № 143 "Партнер Нефть" [11:06:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:06:18]line СНО: Общий режим [11:06:18]line Чек 76 28.10.2024 11:06 [11:06:18]line Смена: 538 ФФД: 1.0 [11:06:18]line ЗНМ: 0300000096 [11:06:18]line РНМ: 0000000000091693 [11:06:18]line Версия ККМ: 001 [11:06:18]line Талоны: Топливные Талоны [11:06:18]line 4469421.22 [11:06:18]line ФМ: 0000000000871792 [11:06:18]line ФД: 156860 [11:06:18]line ФПД: 250473355431316 [11:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110619&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156860&fm=250473355431316&tin=02508201610067®Number=0000000000091693&sum=0 [11:06:18]OFD Sender: Processing packet 156860 [packets to send 31, broken 30] [11:06:18]ProducePacketName [11:06:18]name=ofd_packets/00156860 [11:06:18]OFD Sender: To server: pG, [11:06:18]CommunicateWithHost lk.salyk.kg:30040 [11:06:18]ConnectInit lk.salyk.kg [11:06:18]written 0, free lines is 4095 [11:06:18]Connected sock=10 [11:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 90 AB 04 01 BD 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 2B 70 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 64 02 00 35 04 06 00 E3 CD DF 60 4D 94 04 59 5C 48 53 C1 AD FE [11:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C9 70 47 00 9D 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 37 39 32 10 04 04 00 BC 64 02 00 F4 03 04 00 97 15 1F 67 B6 04 01 00 00 86 E1 DD 87 76 45 79 B3 [11:06:18]CommunicateWithHost err = 0 [11:06:18]CheckOFDResponse [11:06:18]1017 (14) - 77093643461234 [11:06:18]1041 (16) - 0000000000871792 [11:06:18]1040 (4) - 156860 [11:06:18]1012 (4) - 28.10.2024 04:39 [11:06:18]1206 (1) - 0 [11:06:18]OFD Sender: Remove packet 156860 [11:06:18]ProducePacketName [11:06:18]name=ofd_packets/00156860 [11:06:18]NVStorageDeleteData [11:06:19]Write to MH i2c: 01 00 00 78 17 8F [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: 01 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: 01 07 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: 01 07 00 78 17 00 00 00 00 00 F7 0C 99 [11:06:19]RasterBufferAndPrint [11:06:19]line [11:06:19]line [11:06:19]line [11:06:19]line [11:06:19]line [11:06:19]written 0, free lines is 3326 [11:06:19]process_action close_receipt done [11:06:19]requested_data is exist [11:06:19]produce_requested_data [11:06:19]requested_item fm.sn is exist - process it [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 11 00 00 [11:06:19]Write to MH i2c: E2 08 00 7F 17 80 11 00 00 00 00 00 00 10 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 17 00 [11:06:19]MH_I2C_Read... [11:06:19]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 37 39 32 90 00 65 [11:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:19]wFMCommunicate OK [11:06:19]requested_item fd.num is exist - process it [11:06:19]SAM_PROTO_GetFieldsCounters [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 13 00 00 [11:06:19]Write to MH i2c: E2 08 00 80 17 80 13 00 00 00 00 00 00 13 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 62 00 [11:06:19]MH_I2C_Read... [11:06:19]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 64 02 00 0E 04 04 00 1A 02 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 5B [11:06: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 64 02 00 0E 04 04 00 1A 02 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 [11:06:19]wFMCommunicate OK [11:06:19]SAM_PROTO_GetFieldsCounters done [11:06:19]requested_item shift.num is exist - process it [11:06:19]requested_item shift.opened is exist - process it [11:06:19]req_shift_opened [11:06:19]FM_GetShiftState [11:06:19]SAM_PROTO_GetShiftState [11:06:19]wFMCommunicate request_size=4 [11:06:19]MH_SAM_APDU [11:06:19]CAPDU: 80 13 01 00 [11:06:19]Write to MH i2c: E2 08 00 81 17 80 13 01 00 00 00 00 00 15 [11:06:19]Write i2c OK [11:06:19]MH_I2C_Read... [11:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:19]Read from MH i2c: E2 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 0E 00 [11:06:19]MH_I2C_Read... [11:06:19]Read from MH i2c: E2 0E 00 81 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 07 [11:06:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:06:19]wFMCommunicate OK [11:06:19]SAM_PROTO_GetShiftState done [11:06:19]FM_GetShiftState done [11:06:19]req_shift_opened done [11:06:19]requested_item shift.open_date is exist - process it [11:06:19]req_shift_open_date [11:06:19]req_shift_open_date done [11:06:19]produce_requested_data done [11:06:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156860,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:06:19]process_action_free close_receipt [11:06:19]json_value_free [11:06:19]json_value_free done [11:06:19]process_json_proto returns [11:06:19]Send response to host [11:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156860,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:06:19]free response buf [11:06:19]execute_script done [11:06:19]execute_script returns [11:06:19]free content buf [11:06:19]Sock 7.Close socket [11:06:19]Sock 7.Thread stoped [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:34]OFD Sender: No OFD packet to send [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17: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:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:47]accept exits with 9 [11:20:47]New connection [11:20:47]New thread 3066748260 created [11:20:47]Thread 3066604900 joined [11:20:47]Waiting for new connection... [11:20:47] Sock 9.Parse request [11:20:47]Sock 9.Check first char [11:20:47]Sock 9.First char is OK [11:20:47]request: POST /json_proto HTTP/1.0 [11:20:47]Method: POST [11:20:47]URL: /json_proto [11:20:47]Method is POST - this is cgi request [11:20:47]url: /json_proto [11:20:47]query_string will be loaded in cgi processing [11:20:47]execute_cgi json_proto POST (null) [11:20:47]execute_cgi path=json_proto method=POST [11:20:47]POST find Content-Length [11:20:47]Host: 172.17.63.3:8080 [11:20:47]Content-Length: 676 [11:20:47]Content-Type: application/json [11:20:47] [11:20:47]POST finish read [11:20:47]Found Content-Length = 676 [11:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:47]execute_script... [11:20:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:47]POST & json_proto [11:20:47]process_json_proto [11:20:47]json parsed OK: [11:20:47]protocol is kg_v1.0 [11:20:47]action value=close_receipt [11:20:47]process_action close_receipt [11:20:47]cmd_close_receipt [11:20:47]MH_GetDate [11:20:47]Write to MH i2c: F0 00 00 82 17 88 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 09 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: F0 09 00 82 17 00 91 73 1F 67 50 D1 6C 64 0C [11:20:47]GetLastDocTimeStamp 1730113579 [11:20:47]current date 1730114449 [11:20:47]FM_GetShiftState [11:20:47]SAM_PROTO_GetShiftState [11:20:47]wFMCommunicate request_size=4 [11:20:47]MH_SAM_APDU [11:20:47]CAPDU: 80 13 01 00 [11:20:47]Write to MH i2c: E2 08 00 83 17 80 13 01 00 00 00 00 00 17 [11:20:47]Write i2c OK [11:20:47]MH_I2C_Read... [11:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:47]Read from MH i2c: E2 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0E 00 [11:20:47]MH_I2C_Read... [11:20:47]Read from MH i2c: E2 0E 00 83 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 09 [11:20:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:20:47]wFMCommunicate OK [11:20:47]SAM_PROTO_GetShiftState done [11:20:47]FM_GetShiftState done [11:20:47]opened in 1730075526 [11:20:47]opened+sec_in_day 1730161926 [11:20:47]quantity*price = 50041 [11:20:47]sum+1 = 50042 [11:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 77 28.10.2024 11:20 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156861 ФПД: 59252947665271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112049&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156861&fm=59252947665271&tin=02508201610067®Number=0000000000091693&sum=50000 [11:20:48]StoreToDocumentArchive [11:20:48]shift 538 fd 156861 [11:20:48]save to /storage/0538/doc_00156861 [11:20:48]save last doc name /storage/0538/doc_00156861 to /storage/kkm_last_doc_name [11:20:48]save OK [11:20:48]Clear old archive folders... [11:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:48]tlvbuf is 01ACFFD0 [11:20:48]SAM_PROTO_ClearQueue [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 09 00 00 [11:20:48]Write to MH i2c: E2 08 00 90 17 80 09 00 00 00 00 00 00 19 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_ClearQueue done [11:20:48]KKMCreateOFDPacket [11:20:48]OFDProtocolAddRootSTLVToBuf [11:20:48]FM_MakeSignedData [11:20:48]FM_MakeSignedData [11:20:48]SAM_PROTO_SignData [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 01 02 [11:20:48]Write to MH i2c: E2 08 00 91 17 80 0D 01 02 00 00 00 00 21 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=255 [11:20:48]MH_SAM_APDU [11:20: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 4D 00 00 00 F4 03 04 00 91 73 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 64 02 00 35 04 06 00 35 [11:20:48]Write to MH i2c: E2 02 01 92 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 4D 00 00 00 F4 03 04 00 91 73 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 64 02 00 35 04 06 00 35 00 00 00 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=10 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 02 02 05 E3 E6 E5 C1 77 [11:20:48]Write to MH i2c: E2 0D 00 93 17 80 0D 02 02 05 00 E3 E6 E5 C1 77 00 00 14 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [11:20:48]RAPDU: 90 00 [11:20:48]wFMCommunicate OK [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 0D 03 02 [11:20:48]Write to MH i2c: E2 08 00 94 17 80 0D 03 02 00 00 00 00 26 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0B 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 0B 00 94 17 00 75 0C C7 2B D6 D4 DE B9 90 00 DB [11:20:48]RAPDU: 75 0C C7 2B D6 D4 DE B9 90 00 [11:20:48]wFMCommunicate OK [11:20:48]SAM_PROTO_SignData done [11:20:48]FM_MakeSignedData done [11:20:48]CreateOFDProtocolMessage [11:20:48]wFMCommunicate request_size=4 [11:20:48]MH_SAM_APDU [11:20:48]CAPDU: 80 11 00 00 [11:20:48]Write to MH i2c: E2 08 00 95 17 80 11 00 00 00 00 00 00 26 [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:48]Read from MH i2c: E2 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 17 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: E2 17 00 95 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [11:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:20:48]wFMCommunicate OK [11:20:48]CreateOFDProtocolMessage done [11:20:48]OFDSenderStorePacket 156861 [11:20:48]StoreOFDPacket docnum=156861 [11:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F BD 07 01 AF 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 4D 00 00 00 F4 03 04 00 91 73 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 64 02 00 35 04 06 00 35 E3 E6 E5 C1 77 75 0C C7 2B D6 D4 DE B9 [11:20:48]CheckFolder [11:20:48]dirname=/storage/ofd_packets [11:20:48]CheckFolder done [11:20:48]ProducePacketName [11:20:48]name=ofd_packets/00156861 [11:20:48]NVStorageSaveData ofd_packets/00156861 [11:20:48]File name is /storage/ofd_packets/00156861 [11:20:48]Write 301 bytes [11:20:48]NVStorageSaveData done [11:20:48]OFDSenderStorePacket done [11:20:48]KKMCreateOFDPacket done [11:20:48]NVStorageSaveData kkm_last_timestamp [11:20:48]File name is /storage/kkm_last_timestamp [11:20:48]Write 4 bytes [11:20:48]NVStorageSaveData done [11:20:48]ExternCall_PrintAddStr [11:20:48]wPrintStart [11:20:48]Write to MH i2c: 01 00 00 96 17 AD [11:20:48]Write i2c OK [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 [11:20:48]MH_I2C_Read... [11:20:48]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 FF 0F C2 [11:20:48]RasterBufferAndPrint [11:20:48]line Счет N : (1)99674 [11:20:48]line ИНН: 02508201610067 [11:20:48]line Контрольно-Кассовый Чек [11:20:48]line ПРОДАЖА [11:20:48]line ТРК (МРК, ГНК) : 31 [11:20:48]line Товар: 2710124130 [11:20:48]line Аи-92-К-5 [11:20:48]line 7.480 * 66.90 [11:20:48]line = 500.41 [11:20:48]line НДС 12% НСП 1% [11:20:48]line > о реализуемом товаре [11:20:48]line ОКРУГЛЕНИЕ: -0.41 [11:20:48]line ИТОГО: 500.00 [11:20:48]line Внесено: 500.00 [11:20:48]line СДАЧА: 0.00 [11:20:48]line НСП 1% : 4.43 [11:20:48]line НДС 12% : 53.14 [11:20:48]line Наличными: 500.00 [11:20:48]line Безнал.: 0.00 [11:20:48]line Место: АЗС № 143 "Партнер Нефть" [11:20:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:20:48]line СНО: Общий режим [11:20:48]line Чек 77 28.10.2024 11:20 [11:20:48]line Смена: 538 ФФД: 1.0 [11:20:48]line ЗНМ: 0300000096 [11:20:48]line РНМ: 0000000000091693 [11:20:48]line Версия ККМ: 001 [11:20:48]line ФМ: 0000000000871792 [11:20:48]line ФД: 156861 [11:20:48]line ФПД: 59252947665271 [11:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112049&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156861&fm=59252947665271&tin=02508201610067®Number=0000000000091693&sum=50000 [11:20:49]OFD Sender: Processing packet 156861 [packets to send 31, broken 30] [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00156861 [11:20:49]OFD Sender: To server: pG, [11:20:49]CommunicateWithHost lk.salyk.kg:30040 [11:20:49]ConnectInit lk.salyk.kg [11:20:49]written 0, free lines is 4095 [11:20:49]Connected sock=10 [11:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F BD 07 01 AF 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 4D 00 00 00 F4 03 04 00 91 73 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 64 02 00 35 04 06 00 35 E3 E6 E5 C1 77 75 0C C7 2B D6 D4 DE B9 [11:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 45 AA 47 00 04 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 64 02 00 F4 03 04 00 FE 18 1F 67 B6 04 01 00 00 24 DD 9D 4B 96 52 60 82 [11:20:49]CommunicateWithHost err = 0 [11:20:49]CheckOFDResponse [11:20:49]1017 (14) - 77093643461234 [11:20:49]1041 (16) - 0000000000871792 [11:20:49]1040 (4) - 156861 [11:20:49]1012 (4) - 28.10.2024 04:54 [11:20:49]1206 (1) - 0 [11:20:49]OFD Sender: Remove packet 156861 [11:20:49]ProducePacketName [11:20:49]name=ofd_packets/00156861 [11:20:49]NVStorageDeleteData [11:20:49]Write to MH i2c: 01 00 00 C1 17 D8 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: 01 07 00 C1 17 00 00 00 00 00 DC 0C C7 [11:20:49]RasterBufferAndPrint [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]line [11:20:49]written 0, free lines is 3298 [11:20:49]process_action close_receipt done [11:20:49]requested_data is exist [11:20:49]produce_requested_data [11:20:49]requested_item fm.sn is exist - process it [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 11 00 00 [11:20:49]Write to MH i2c: E2 08 00 C8 17 80 11 00 00 00 00 00 00 59 [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 17 00 C8 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [11:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:20:49]wFMCommunicate OK [11:20:49]requested_item fd.num is exist - process it [11:20:49]SAM_PROTO_GetFieldsCounters [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 13 00 00 [11:20:49]Write to MH i2c: E2 08 00 C9 17 80 13 00 00 00 00 00 00 5C [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 62 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 62 00 C9 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 64 02 00 0E 04 04 00 1A 02 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 A8 [11:20: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:49]wFMCommunicate OK [11:20:49]SAM_PROTO_GetFieldsCounters done [11:20:49]requested_item shift.num is exist - process it [11:20:49]requested_item shift.opened is exist - process it [11:20:49]req_shift_opened [11:20:49]FM_GetShiftState [11:20:49]SAM_PROTO_GetShiftState [11:20:49]wFMCommunicate request_size=4 [11:20:49]MH_SAM_APDU [11:20:49]CAPDU: 80 13 01 00 [11:20:49]Write to MH i2c: E2 08 00 CA 17 80 13 01 00 00 00 00 00 5E [11:20:49]Write i2c OK [11:20:49]MH_I2C_Read... [11:20:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:49]Read from MH i2c: E2 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0E 00 [11:20:49]MH_I2C_Read... [11:20:49]Read from MH i2c: E2 0E 00 CA 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 50 [11:20:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:20:49]wFMCommunicate OK [11:20:49]SAM_PROTO_GetShiftState done [11:20:49]FM_GetShiftState done [11:20:49]req_shift_opened done [11:20:49]requested_item shift.open_date is exist - process it [11:20:49]req_shift_open_date [11:20:49]req_shift_open_date done [11:20:49]produce_requested_data done [11:20:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156861,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:20:49]process_action_free close_receipt [11:20:49]json_value_free [11:20:49]json_value_free done [11:20:49]process_json_proto returns [11:20:49]Send response to host [11:20:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156861,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:20:49]free response buf [11:20:49]execute_script done [11:20:49]execute_script returns [11:20:49]free content buf [11:20:49]Sock 9.Close socket [11:20:49]Sock 9.Thread stoped [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:04]recv_with_timeout no data received [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:19]accept exits with 7 [11:23:19]New connection [11:23:19]New thread 3066604900 created [11:23:19]Thread 3066748260 joined [11:23:19]Waiting for new connection... [11:23:19] Sock 7.Parse request [11:23:19]Sock 7.Check first char [11:23:19]Sock 7.First char is OK [11:23:19]request: POST /json_proto HTTP/1.0 [11:23:19]Method: POST [11:23:19]URL: /json_proto [11:23:19]Method is POST - this is cgi request [11:23:19]url: /json_proto [11:23:19]query_string will be loaded in cgi processing [11:23:19]execute_cgi json_proto POST (null) [11:23:19]execute_cgi path=json_proto method=POST [11:23:19]POST find Content-Length [11:23:19]Host: 172.17.63.3:8080 [11:23:19]Content-Length: 676 [11:23:19]Content-Type: application/json [11:23:19] [11:23:19]POST finish read [11:23:19]Found Content-Length = 676 [11:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:19]execute_script... [11:23: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)99675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:19]POST & json_proto [11:23:19]process_json_proto [11:23:19]json parsed OK: [11:23:19]protocol is kg_v1.0 [11:23:19]action value=close_receipt [11:23:19]process_action close_receipt [11:23:19]cmd_close_receipt [11:23:19]MH_GetDate [11:23:19]Write to MH i2c: F0 00 00 CB 17 D1 [11:23:19]Write i2c OK [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: F0 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: F0 09 00 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: F0 09 00 CB 17 00 2A 74 1F 67 50 D1 6C 64 EF [11:23:19]GetLastDocTimeStamp 1730114449 [11:23:19]current date 1730114602 [11:23:19]FM_GetShiftState [11:23:19]SAM_PROTO_GetShiftState [11:23:19]wFMCommunicate request_size=4 [11:23:19]MH_SAM_APDU [11:23:19]CAPDU: 80 13 01 00 [11:23:19]Write to MH i2c: E2 08 00 CC 17 80 13 01 00 00 00 00 00 60 [11:23:19]Write i2c OK [11:23:19]MH_I2C_Read... [11:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:19]Read from MH i2c: E2 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: E2 0E 00 [11:23:19]MH_I2C_Read... [11:23:19]Read from MH i2c: E2 0E 00 CC 17 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 52 [11:23:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:23:19]wFMCommunicate OK [11:23:19]SAM_PROTO_GetShiftState done [11:23:19]FM_GetShiftState done [11:23:19]opened in 1730075526 [11:23:19]opened+sec_in_day 1730161926 [11:23:19]quantity*price = 21006 [11:23:19]sum+1 = 21008 [11:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 78 28.10.2024 11:23 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156862 ФПД: 198920490513864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156862&fm=198920490513864&tin=02508201610067®Number=0000000000091693&sum=21000 [11:23:20]StoreToDocumentArchive [11:23:20]shift 538 fd 156862 [11:23:20]save to /storage/0538/doc_00156862 [11:23:20]save last doc name /storage/0538/doc_00156862 to /storage/kkm_last_doc_name [11:23:20]save OK [11:23:20]Clear old archive folders... [11:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:20]tlvbuf is 01A56280 [11:23:20]SAM_PROTO_ClearQueue [11:23:20]wFMCommunicate request_size=4 [11:23:20]MH_SAM_APDU [11:23:20]CAPDU: 80 09 00 00 [11:23:20]Write to MH i2c: E2 08 00 D9 17 80 09 00 00 00 00 00 00 62 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:20]Read from MH i2c: E2 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 03 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 03 00 D9 17 00 90 00 64 [11:23:20]RAPDU: 90 00 [11:23:20]wFMCommunicate OK [11:23:20]SAM_PROTO_ClearQueue done [11:23:20]KKMCreateOFDPacket [11:23:20]OFDProtocolAddRootSTLVToBuf [11:23:20]FM_MakeSignedData [11:23:20]FM_MakeSignedData [11:23:20]SAM_PROTO_SignData [11:23:20]wFMCommunicate request_size=4 [11:23:20]MH_SAM_APDU [11:23:20]CAPDU: 80 0D 01 02 [11:23:20]Write to MH i2c: E2 08 00 DA 17 80 0D 01 02 00 00 00 00 6A [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:20]Read from MH i2c: E2 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 03 00 [11:23:20]MH_I2C_Read... [11:23:20]Read from MH i2c: E2 03 00 DA 17 00 90 00 65 [11:23:20]RAPDU: 90 00 [11:23:20]wFMCommunicate OK [11:23:20]wFMCommunicate request_size=255 [11:23:20]MH_SAM_APDU [11:23: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 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2A 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 64 02 00 35 04 06 00 B4 [11:23:20]Write to MH i2c: E2 02 01 DB 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2A 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 64 02 00 35 04 06 00 B4 00 00 F9 [11:23:20]Write i2c OK [11:23:20]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 03 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [11:23:21]RAPDU: 90 00 [11:23:21]wFMCommunicate OK [11:23:21]wFMCommunicate request_size=10 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 0D 02 02 05 EA C9 2C F5 C8 [11:23:21]Write to MH i2c: E2 0D 00 DC 17 80 0D 02 02 05 00 EA C9 2C F5 C8 00 00 13 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 03 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [11:23:21]RAPDU: 90 00 [11:23:21]wFMCommunicate OK [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 0D 03 02 [11:23:21]Write to MH i2c: E2 08 00 DD 17 80 0D 03 02 00 00 00 00 6F [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 0B 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 0B 00 DD 17 00 CF 3A 62 64 85 C1 CD 33 90 00 85 [11:23:21]RAPDU: CF 3A 62 64 85 C1 CD 33 90 00 [11:23:21]wFMCommunicate OK [11:23:21]SAM_PROTO_SignData done [11:23:21]FM_MakeSignedData done [11:23:21]CreateOFDProtocolMessage [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 11 00 00 [11:23:21]Write to MH i2c: E2 08 00 DE 17 80 11 00 00 00 00 00 00 6F [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:21]Read from MH i2c: E2 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 17 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: E2 17 00 DE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [11:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:23:21]wFMCommunicate OK [11:23:21]CreateOFDProtocolMessage done [11:23:21]OFDSenderStorePacket 156862 [11:23:21]StoreOFDPacket docnum=156862 [11:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 34 F6 07 01 56 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2A 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 64 02 00 35 04 06 00 B4 EA C9 2C F5 C8 CF 3A 62 64 85 C1 CD 33 [11:23:21]CheckFolder [11:23:21]dirname=/storage/ofd_packets [11:23:21]CheckFolder done [11:23:21]ProducePacketName [11:23:21]name=ofd_packets/00156862 [11:23:21]NVStorageSaveData ofd_packets/00156862 [11:23:21]File name is /storage/ofd_packets/00156862 [11:23:21]Write 301 bytes [11:23:21]NVStorageSaveData done [11:23:21]OFDSenderStorePacket done [11:23:21]KKMCreateOFDPacket done [11:23:21]NVStorageSaveData kkm_last_timestamp [11:23:21]File name is /storage/kkm_last_timestamp [11:23:21]Write 4 bytes [11:23:21]NVStorageSaveData done [11:23:21]ExternCall_PrintAddStr [11:23:21]wPrintStart [11:23:21]Write to MH i2c: 01 00 00 DF 17 F6 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 07 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 07 00 DF 17 00 00 00 00 00 FF 0F 0B [11:23:21]RasterBufferAndPrint [11:23:21]line Счет N : (1)99675 [11:23:21]line ИНН: 02508201610067 [11:23:21]line Контрольно-Кассовый Чек [11:23:21]line ПРОДАЖА [11:23:21]line ТРК (МРК, ГНК) : 31 [11:23:21]line Товар: 2710124130 [11:23:21]line Аи-92-К-5 [11:23:21]line 3.140 * 66.90 [11:23:21]line = 210.07 [11:23:21]line НДС 12% НСП 1% [11:23:21]line > о реализуемом товаре [11:23:21]line ОКРУГЛЕНИЕ: -0.07 [11:23:21]line ИТОГО: 210.00 [11:23:21]line Внесено: 210.00 [11:23:21]line СДАЧА: 0.00 [11:23:21]line НСП 1% : 1.86 [11:23:21]line НДС 12% : 22.31 [11:23:21]line Наличными: 210.00 [11:23:21]line Безнал.: 0.00 [11:23:21]line Место: АЗС № 143 "Партнер Нефть" [11:23:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:23:21]line СНО: Общий режим [11:23:21]line Чек 78 28.10.2024 11:23 [11:23:21]line Смена: 538 ФФД: 1.0 [11:23:21]line ЗНМ: 0300000096 [11:23:21]line РНМ: 0000000000091693 [11:23:21]line Версия ККМ: 001 [11:23:21]line ФМ: 0000000000871792 [11:23:21]line ФД: 156862 [11:23:21]line ФПД: 198920490513864 [11:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156862&fm=198920490513864&tin=02508201610067®Number=0000000000091693&sum=21000 [11:23:21]OFD Sender: Processing packet 156862 [packets to send 31, broken 30] [11:23:21]ProducePacketName [11:23:21]name=ofd_packets/00156862 [11:23:21]OFD Sender: To server: pG, [11:23:21]CommunicateWithHost lk.salyk.kg:30040 [11:23:21]ConnectInit lk.salyk.kg [11:23:21]written 0, free lines is 4095 [11:23:21]Connected sock=10 [11:23: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 37 39 32 0F 01 00 00 34 F6 07 01 56 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 2A 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 64 02 00 35 04 06 00 B4 EA C9 2C F5 C8 CF 3A 62 64 85 C1 CD 33 [11:23:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8B 7C 47 00 30 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 64 02 00 F4 03 04 00 96 19 1F 67 B6 04 01 00 00 2F 6D 79 85 7F E6 76 9C [11:23:21]CommunicateWithHost err = 0 [11:23:21]CheckOFDResponse [11:23:21]1017 (14) - 77093643461234 [11:23:21]1041 (16) - 0000000000871792 [11:23:21]1040 (4) - 156862 [11:23:21]1012 (4) - 28.10.2024 04:56 [11:23:21]1206 (1) - 0 [11:23:21]OFD Sender: Remove packet 156862 [11:23:21]ProducePacketName [11:23:21]name=ofd_packets/00156862 [11:23:21]NVStorageDeleteData [11:23:21]Write to MH i2c: 01 00 00 0A 18 22 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 07 00 [11:23:21]MH_I2C_Read... [11:23:21]Read from MH i2c: 01 07 00 0A 18 00 00 00 00 00 D6 0C 0B [11:23:21]RasterBufferAndPrint [11:23:21]line [11:23:21]line [11:23:21]line [11:23:21]line [11:23:21]line [11:23:21]written 0, free lines is 3293 [11:23:21]process_action close_receipt done [11:23:21]requested_data is exist [11:23:21]produce_requested_data [11:23:21]requested_item fm.sn is exist - process it [11:23:21]wFMCommunicate request_size=4 [11:23:21]MH_SAM_APDU [11:23:21]CAPDU: 80 11 00 00 [11:23:21]Write to MH i2c: E2 08 00 11 18 80 11 00 00 00 00 00 00 A3 [11:23:21]Write i2c OK [11:23:21]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 [11:23:22]MH_I2C_Read... [11:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:22]Read from MH i2c: E2 17 00 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 17 00 11 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [11:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:23:22]wFMCommunicate OK [11:23:22]requested_item fd.num is exist - process it [11:23:22]SAM_PROTO_GetFieldsCounters [11:23:22]wFMCommunicate request_size=4 [11:23:22]MH_SAM_APDU [11:23:22]CAPDU: 80 13 00 00 [11:23:22]Write to MH i2c: E2 08 00 12 18 80 13 00 00 00 00 00 00 A6 [11:23:22]Write i2c OK [11:23:22]MH_I2C_Read... [11:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:22]Read from MH i2c: E2 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 62 00 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 62 00 12 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 64 02 00 0E 04 04 00 1A 02 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 F6 [11:23: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 64 02 00 0E 04 04 00 1A 02 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 [11:23:22]wFMCommunicate OK [11:23:22]SAM_PROTO_GetFieldsCounters done [11:23:22]requested_item shift.num is exist - process it [11:23:22]requested_item shift.opened is exist - process it [11:23:22]req_shift_opened [11:23:22]FM_GetShiftState [11:23:22]SAM_PROTO_GetShiftState [11:23:22]wFMCommunicate request_size=4 [11:23:22]MH_SAM_APDU [11:23:22]CAPDU: 80 13 01 00 [11:23:22]Write to MH i2c: E2 08 00 13 18 80 13 01 00 00 00 00 00 A8 [11:23:22]Write i2c OK [11:23:22]MH_I2C_Read... [11:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:22]Read from MH i2c: E2 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 0E 00 [11:23:22]MH_I2C_Read... [11:23:22]Read from MH i2c: E2 0E 00 13 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9A [11:23:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:23:22]wFMCommunicate OK [11:23:22]SAM_PROTO_GetShiftState done [11:23:22]FM_GetShiftState done [11:23:22]req_shift_opened done [11:23:22]requested_item shift.open_date is exist - process it [11:23:22]req_shift_open_date [11:23:22]req_shift_open_date done [11:23:22]produce_requested_data done [11:23:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156862,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:23:22]process_action_free close_receipt [11:23:22]json_value_free [11:23:22]json_value_free done [11:23:22]process_json_proto returns [11:23:22]Send response to host [11:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156862,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:23:22]free response buf [11:23:22]execute_script done [11:23:22]execute_script returns [11:23:22]free content buf [11:23:22]Sock 7.Close socket [11:23:22]Sock 7.Thread stoped [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:04]accept exits with 9 [11:26:04]New connection [11:26:04]New thread 3066748260 created [11:26:04]Thread 3066604900 joined [11:26:04]Waiting for new connection... [11:26:04] Sock 9.Parse request [11:26:04]Sock 9.Check first char [11:26:04]Sock 9.First char is OK [11:26:04]request: POST /json_proto HTTP/1.0 [11:26:04]Method: POST [11:26:04]URL: /json_proto [11:26:04]Method is POST - this is cgi request [11:26:04]url: /json_proto [11:26:04]query_string will be loaded in cgi processing [11:26:04]execute_cgi json_proto POST (null) [11:26:04]execute_cgi path=json_proto method=POST [11:26:04]POST find Content-Length [11:26:04]Host: 172.17.63.3:8080 [11:26:04]Content-Length: 765 [11:26:04]Content-Type: application/json [11:26:04] [11:26:04]POST finish read [11:26:04]Found Content-Length = 765 [11:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:04]execute_script... [11:26: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)99676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:04]POST & json_proto [11:26:04]process_json_proto [11:26:04]json parsed OK: [11:26:04]protocol is kg_v1.0 [11:26:04]action value=close_receipt [11:26:04]process_action close_receipt [11:26:04]cmd_close_receipt [11:26:04]MH_GetDate [11:26:04]Write to MH i2c: F0 00 00 14 18 1B [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 09 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 09 00 14 18 00 CF 74 1F 67 50 D1 6C 64 DE [11:26:04]GetLastDocTimeStamp 1730114602 [11:26:04]current date 1730114767 [11:26:04]FM_GetShiftState [11:26:04]SAM_PROTO_GetShiftState [11:26:04]wFMCommunicate request_size=4 [11:26:04]MH_SAM_APDU [11:26:04]CAPDU: 80 13 01 00 [11:26:04]Write to MH i2c: E2 08 00 15 18 80 13 01 00 00 00 00 00 AA [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:04]Read from MH i2c: E2 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 15 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 9C [11:26:04]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:26:04]wFMCommunicate OK [11:26:04]SAM_PROTO_GetShiftState done [11:26:04]FM_GetShiftState done [11:26:04]opened in 1730075526 [11:26:04]opened+sec_in_day 1730161926 [11:26:04]quantity*price = 60009 [11:26:04]sum+1 = 60010 [11:26:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 79 28.10.2024 11:26 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156863 ФПД: 189379127006738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112607&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156863&fm=189379127006738&tin=02508201610067®Number=0000000000091693&sum=60009 [11:26:05]StoreToDocumentArchive [11:26:05]shift 538 fd 156863 [11:26:05]save to /storage/0538/doc_00156863 [11:26:05]save last doc name /storage/0538/doc_00156863 to /storage/kkm_last_doc_name [11:26:05]save OK [11:26:05]Clear old archive folders... [11:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:05]tlvbuf is 01A75700 [11:26:05]SAM_PROTO_ClearQueue [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 09 00 00 [11:26:05]Write to MH i2c: E2 08 00 22 18 80 09 00 00 00 00 00 00 AC [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 22 18 00 90 00 AE [11:26:05]RAPDU: 90 00 [11:26:05]wFMCommunicate OK [11:26:05]SAM_PROTO_ClearQueue done [11:26:05]KKMCreateOFDPacket [11:26:05]OFDProtocolAddRootSTLVToBuf [11:26:05]FM_MakeSignedData [11:26:05]FM_MakeSignedData [11:26:05]SAM_PROTO_SignData [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 0D 01 02 [11:26:05]Write to MH i2c: E2 08 00 23 18 80 0D 01 02 00 00 00 00 B4 [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 23 18 00 90 00 AF [11:26:05]RAPDU: 90 00 [11:26:05]wFMCommunicate OK [11:26:05]wFMCommunicate request_size=255 [11:26:05]MH_SAM_APDU [11:26: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 64 02 00 35 04 06 00 AC [11:26:05]Write to MH i2c: E2 02 01 24 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 64 02 00 35 04 06 00 AC 00 00 3C [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 24 18 00 90 00 B0 [11:26:06]RAPDU: 90 00 [11:26:06]wFMCommunicate OK [11:26:06]wFMCommunicate request_size=10 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 0D 02 02 05 3D 43 97 D6 12 [11:26:06]Write to MH i2c: E2 0D 00 25 18 80 0D 02 02 05 00 3D 43 97 D6 12 00 00 C0 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [11:26:06]RAPDU: 90 00 [11:26:06]wFMCommunicate OK [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 0D 03 02 [11:26:06]Write to MH i2c: E2 08 00 26 18 80 0D 03 02 00 00 00 00 B9 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0B 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0B 00 26 18 00 4C D8 73 32 A5 1B 84 D5 90 00 9C [11:26:06]RAPDU: 4C D8 73 32 A5 1B 84 D5 90 00 [11:26:06]wFMCommunicate OK [11:26:06]SAM_PROTO_SignData done [11:26:06]FM_MakeSignedData done [11:26:06]CreateOFDProtocolMessage [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 11 00 00 [11:26:06]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [11:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:26:06]wFMCommunicate OK [11:26:06]CreateOFDProtocolMessage done [11:26:06]OFDSenderStorePacket 156863 [11:26:06]StoreOFDPacket docnum=156863 [11:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 AD 07 01 1F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 64 02 00 35 04 06 00 AC 3D 43 97 D6 12 4C D8 73 32 A5 1B 84 D5 [11:26:06]CheckFolder [11:26:06]dirname=/storage/ofd_packets [11:26:06]CheckFolder done [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00156863 [11:26:06]NVStorageSaveData ofd_packets/00156863 [11:26:06]File name is /storage/ofd_packets/00156863 [11:26:06]Write 301 bytes [11:26:06]NVStorageSaveData done [11:26:06]OFDSenderStorePacket done [11:26:06]KKMCreateOFDPacket done [11:26:06]NVStorageSaveData kkm_last_timestamp [11:26:06]File name is /storage/kkm_last_timestamp [11:26:06]Write 4 bytes [11:26:06]NVStorageSaveData done [11:26:06]ExternCall_PrintAddStr [11:26:06]wPrintStart [11:26:06]Write to MH i2c: 01 00 00 28 18 40 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [11:26:06]RasterBufferAndPrint [11:26:06]line Счет N : (1)99676 [11:26:06]line ИНН: 02508201610067 [11:26:06]line Контрольно-Кассовый Чек [11:26:06]line ПРОДАЖА [11:26:06]line ТРК (МРК, ГНК) : 31 [11:26:06]line Товар: 2710124130 [11:26:06]line Аи-92-К-5 [11:26:06]line 8.970 * 66.90 [11:26:06]line = 600.09 [11:26:06]line НДС 12% НСП 1% [11:26:06]line > о реализуемом товаре [11:26:06]line ИТОГО: 600.09 [11:26:06]line НСП 1% : 5.31 [11:26:06]line НДС 12% : 63.73 [11:26:06]line Наличными: 0.00 [11:26:06]line Безнал.: 600.09 [11:26:06]line Место: АЗС № 143 "Партнер Нефть" [11:26:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:26:06]line СНО: Общий режим [11:26:06]line Чек 79 28.10.2024 11:26 [11:26:06]line Смена: 538 ФФД: 1.0 [11:26:06]line ЗНМ: 0300000096 [11:26:06]line РНМ: 0000000000091693 [11:26:06]line Версия ККМ: 001 [11:26:06]line Платежная система: Mbank [11:26:06]line ФМ: 0000000000871792 [11:26:06]line ФД: 156863 [11:26:06]line ФПД: 189379127006738 [11:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112607&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156863&fm=189379127006738&tin=02508201610067®Number=0000000000091693&sum=60009 [11:26:06]OFD Sender: Processing packet 156863 [packets to send 31, broken 30] [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00156863 [11:26:06]OFD Sender: To server: pG, [11:26:06]CommunicateWithHost lk.salyk.kg:30040 [11:26:06]ConnectInit lk.salyk.kg [11:26:06]written 0, free lines is 4095 [11:26:06]Connected sock=10 [11:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 AD 07 01 1F 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 CF 74 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 64 02 00 35 04 06 00 AC 3D 43 97 D6 12 4C D8 73 32 A5 1B 84 D5 [11:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CC 5D 47 00 52 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 64 02 00 F4 03 04 00 3B 1A 1F 67 B6 04 01 00 00 BC DB 78 74 CC FF 12 5C [11:26:06]CommunicateWithHost err = 0 [11:26:06]CheckOFDResponse [11:26:06]1017 (14) - 77093643461234 [11:26:06]1041 (16) - 0000000000871792 [11:26:06]1040 (4) - 156863 [11:26:06]1012 (4) - 28.10.2024 04:59 [11:26:06]1206 (1) - 0 [11:26:06]OFD Sender: Remove packet 156863 [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00156863 [11:26:06]NVStorageDeleteData [11:26:06]Write to MH i2c: 01 00 00 51 18 69 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 51 18 00 00 00 00 00 02 0D 7F [11:26:06]RasterBufferAndPrint [11:26:06]line [11:26:06]line [11:26:06]line [11:26:06]line [11:26:06]line [11:26:06]written 0, free lines is 3337 [11:26:06]process_action close_receipt done [11:26:06]requested_data is exist [11:26:06]produce_requested_data [11:26:06]requested_item fm.sn is exist - process it [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 11 00 00 [11:26:06]Write to MH i2c: E2 08 00 58 18 80 11 00 00 00 00 00 00 EA [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 [11:26:07]MH_I2C_Read... [11:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:07]Read from MH i2c: E2 17 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 17 00 58 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [11:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:26:07]wFMCommunicate OK [11:26:07]requested_item fd.num is exist - process it [11:26:07]SAM_PROTO_GetFieldsCounters [11:26:07]wFMCommunicate request_size=4 [11:26:07]MH_SAM_APDU [11:26:07]CAPDU: 80 13 00 00 [11:26:07]Write to MH i2c: E2 08 00 59 18 80 13 00 00 00 00 00 00 ED [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:07]Read from MH i2c: E2 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 62 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 62 00 59 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 64 02 00 0E 04 04 00 1A 02 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 41 [11:26: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 64 02 00 0E 04 04 00 1A 02 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 [11:26:07]wFMCommunicate OK [11:26:07]SAM_PROTO_GetFieldsCounters done [11:26:07]requested_item shift.num is exist - process it [11:26:07]requested_item shift.opened is exist - process it [11:26:07]req_shift_opened [11:26:07]FM_GetShiftState [11:26:07]SAM_PROTO_GetShiftState [11:26:07]wFMCommunicate request_size=4 [11:26:07]MH_SAM_APDU [11:26:07]CAPDU: 80 13 01 00 [11:26:07]Write to MH i2c: E2 08 00 5A 18 80 13 01 00 00 00 00 00 EF [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:07]Read from MH i2c: E2 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 0E 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: E2 0E 00 5A 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E1 [11:26:07]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:26:07]wFMCommunicate OK [11:26:07]SAM_PROTO_GetShiftState done [11:26:07]FM_GetShiftState done [11:26:07]req_shift_opened done [11:26:07]requested_item shift.open_date is exist - process it [11:26:07]req_shift_open_date [11:26:07]req_shift_open_date done [11:26:07]produce_requested_data done [11:26:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156863,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:26:07]process_action_free close_receipt [11:26:07]json_value_free [11:26:07]json_value_free done [11:26:07]process_json_proto returns [11:26:07]Send response to host [11:26:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156863,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:26:07]free response buf [11:26:07]execute_script done [11:26:07]execute_script returns [11:26:07]free content buf [11:26:07]Sock 9.Close socket [11:26:07]Sock 9.Thread stoped [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:47]accept exits with 7 [11:29:47]New connection [11:29:47]New thread 3066604900 created [11:29:47]Thread 3066748260 joined [11:29:47]Waiting for new connection... [11:29:47] Sock 7.Parse request [11:29:47]Sock 7.Check first char [11:29:47]Sock 7.First char is OK [11:29:47]request: POST /json_proto HTTP/1.0 [11:29:47]Method: POST [11:29:47]URL: /json_proto [11:29:47]Method is POST - this is cgi request [11:29:47]url: /json_proto [11:29:47]query_string will be loaded in cgi processing [11:29:47]execute_cgi json_proto POST (null) [11:29:47]execute_cgi path=json_proto method=POST [11:29:47]POST find Content-Length [11:29:47]Host: 172.17.63.3:8080 [11:29:47]Content-Length: 677 [11:29:47]Content-Type: application/json [11:29:47] [11:29:47]POST finish read [11:29:47]Found Content-Length = 677 [11:29:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:47]execute_script... [11:29: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)99677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:47]POST & json_proto [11:29:47]process_json_proto [11:29:47]json parsed OK: [11:29:47]protocol is kg_v1.0 [11:29:47]action value=close_receipt [11:29:47]process_action close_receipt [11:29:47]cmd_close_receipt [11:29:47]MH_GetDate [11:29:47]Write to MH i2c: F0 00 00 5B 18 62 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 09 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: F0 09 00 5B 18 00 AE 75 1F 67 50 D1 6C 64 05 [11:29:47]GetLastDocTimeStamp 1730114767 [11:29:47]current date 1730114990 [11:29:47]FM_GetShiftState [11:29:47]SAM_PROTO_GetShiftState [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 13 01 00 [11:29:47]Write to MH i2c: E2 08 00 5C 18 80 13 01 00 00 00 00 00 F1 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0E 00 5C 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E3 [11:29:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_GetShiftState done [11:29:47]FM_GetShiftState done [11:29:47]opened in 1730075526 [11:29:47]opened+sec_in_day 1730161926 [11:29:47]quantity*price = 82019 [11:29:47]sum+1 = 82020 [11:29:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 820.00 Внесено: 820.00 СДАЧА: 0.00 НСП 1% : 7.26 НДС 12% : 87.10 Наличными: 820.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 80 28.10.2024 11:29 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156864 ФПД: 187114677089264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156864&fm=187114677089264&tin=02508201610067®Number=0000000000091693&sum=82000 [11:29:48]StoreToDocumentArchive [11:29:48]shift 538 fd 156864 [11:29:48]save to /storage/0538/doc_00156864 [11:29:48]save last doc name /storage/0538/doc_00156864 to /storage/kkm_last_doc_name [11:29:48]save OK [11:29:48]Clear old archive folders... [11:29:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:48]tlvbuf is B6E8F300 [11:29:48]SAM_PROTO_ClearQueue [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 09 00 00 [11:29:48]Write to MH i2c: E2 08 00 69 18 80 09 00 00 00 00 00 00 F3 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]SAM_PROTO_ClearQueue done [11:29:48]KKMCreateOFDPacket [11:29:48]OFDProtocolAddRootSTLVToBuf [11:29:48]FM_MakeSignedData [11:29:48]FM_MakeSignedData [11:29:48]SAM_PROTO_SignData [11:29:48]wFMCommunicate request_size=4 [11:29:48]MH_SAM_APDU [11:29:48]CAPDU: 80 0D 01 02 [11:29:48]Write to MH i2c: E2 08 00 6A 18 80 0D 01 02 00 00 00 00 FB [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:48]Read from MH i2c: E2 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 [11:29:48]MH_I2C_Read... [11:29:48]Read from MH i2c: E2 03 00 6A 18 00 90 00 F6 [11:29:48]RAPDU: 90 00 [11:29:48]wFMCommunicate OK [11:29:48]wFMCommunicate request_size=255 [11:29:48]MH_SAM_APDU [11:29: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 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 AE 75 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 64 02 00 35 04 06 00 AA [11:29:48]Write to MH i2c: E2 02 01 6B 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 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 AE 75 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 64 02 00 35 04 06 00 AA 00 00 04 [11:29:48]Write i2c OK [11:29:48]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 6B 18 00 90 00 F7 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]wFMCommunicate request_size=10 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 0D 02 02 05 2E 07 DC 33 F0 [11:29:49]Write to MH i2c: E2 0D 00 6C 18 80 0D 02 02 05 00 2E 07 DC 33 F0 00 00 3C [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 03 00 6C 18 00 90 00 F8 [11:29:49]RAPDU: 90 00 [11:29:49]wFMCommunicate OK [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 0D 03 02 [11:29:49]Write to MH i2c: E2 08 00 6D 18 80 0D 03 02 00 00 00 00 00 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0B 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 0B 00 6D 18 00 55 B4 2E E2 9F 61 8A 1D 90 00 C1 [11:29:49]RAPDU: 55 B4 2E E2 9F 61 8A 1D 90 00 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_SignData done [11:29:49]FM_MakeSignedData done [11:29:49]CreateOFDProtocolMessage [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 11 00 00 [11:29:49]Write to MH i2c: E2 08 00 6E 18 80 11 00 00 00 00 00 00 00 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 6E 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 55 [11:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:49]wFMCommunicate OK [11:29:49]CreateOFDProtocolMessage done [11:29:49]OFDSenderStorePacket 156864 [11:29:49]StoreOFDPacket docnum=156864 [11:29:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 8A 07 01 45 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 AE 75 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 64 02 00 35 04 06 00 AA 2E 07 DC 33 F0 55 B4 2E E2 9F 61 8A 1D [11:29:49]CheckFolder [11:29:49]dirname=/storage/ofd_packets [11:29:49]CheckFolder done [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00156864 [11:29:49]NVStorageSaveData ofd_packets/00156864 [11:29:49]File name is /storage/ofd_packets/00156864 [11:29:49]Write 301 bytes [11:29:49]NVStorageSaveData done [11:29:49]OFDSenderStorePacket done [11:29:49]KKMCreateOFDPacket done [11:29:49]NVStorageSaveData kkm_last_timestamp [11:29:49]File name is /storage/kkm_last_timestamp [11:29:49]Write 4 bytes [11:29:49]NVStorageSaveData done [11:29:49]OFD Sender: Processing packet 156864 [packets to send 31, broken 30] [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00156864 [11:29:49]OFD Sender: To server: pG, [11:29:49]CommunicateWithHost lk.salyk.kg:30040 [11:29:49]ConnectInit lk.salyk.kg [11:29:49]ExternCall_PrintAddStr [11:29:49]wPrintStart [11:29:49]Write to MH i2c: 01 00 00 6F 18 87 [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 6F 18 00 00 00 00 00 FF 0F 9C [11:29:49]RasterBufferAndPrint [11:29:49]line Счет N : (1)99677 [11:29:49]line ИНН: 02508201610067 [11:29:49]line Контрольно-Кассовый Чек [11:29:49]line ПРОДАЖА [11:29:49]line ТРК (МРК, ГНК) : 31 [11:29:49]line Товар: 2710124130 [11:29:49]line Аи-92-К-5 [11:29:49]line 12.260 * 66.90 [11:29:49]line = 820.19 [11:29:49]line НДС 12% НСП 1% [11:29:49]line > о реализуемом товаре [11:29:49]line ОКРУГЛЕНИЕ: -0.19 [11:29:49]line ИТОГО: 820.00 [11:29:49]line Внесено: 820.00 [11:29:49]line СДАЧА: 0.00 [11:29:49]line НСП 1% : 7.26 [11:29:49]line НДС 12% : 87.10 [11:29:49]line Наличными: 820.00 [11:29:49]line Безнал.: 0.00 [11:29:49]line Место: АЗС № 143 "Партнер Нефть" [11:29:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:29:49]line СНО: Общий режим [11:29:49]line Чек 80 28.10.2024 11:29 [11:29:49]line Смена: 538 ФФД: 1.0 [11:29:49]line ЗНМ: 0300000096 [11:29:49]line РНМ: 0000000000091693 [11:29:49]line Версия ККМ: 001 [11:29:49]line ФМ: 0000000000871792 [11:29:49]line ФД: 156864 [11:29:49]line ФПД: 187114677089264 [11:29:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156864&fm=187114677089264&tin=02508201610067®Number=0000000000091693&sum=82000 [11:29:49]Connected sock=11 [11:29:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 8A 07 01 45 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 AE 75 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 64 02 00 35 04 06 00 AA 2E 07 DC 33 F0 55 B4 2E E2 9F 61 8A 1D [11:29:49]written 0, free lines is 4095 [11:29:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 95 97 47 00 EA 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 37 39 32 10 04 04 00 C0 64 02 00 F4 03 04 00 1A 1B 1F 67 B6 04 01 00 00 FB B0 19 2F CE 50 E7 0F [11:29:49]CommunicateWithHost err = 0 [11:29:49]CheckOFDResponse [11:29:49]1017 (14) - 77093643461234 [11:29:49]1041 (16) - 0000000000871792 [11:29:49]1040 (4) - 156864 [11:29:49]1012 (4) - 28.10.2024 05:03 [11:29:49]1206 (1) - 0 [11:29:49]OFD Sender: Remove packet 156864 [11:29:49]ProducePacketName [11:29:49]name=ofd_packets/00156864 [11:29:49]NVStorageDeleteData [11:29:50]Write to MH i2c: 01 00 00 9A 18 B2 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: 01 07 00 9A 18 00 00 00 00 00 DC 0C A1 [11:29:50]RasterBufferAndPrint [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]line [11:29:50]written 0, free lines is 3299 [11:29:50]process_action close_receipt done [11:29:50]requested_data is exist [11:29:50]produce_requested_data [11:29:50]requested_item fm.sn is exist - process it [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 11 00 00 [11:29:50]Write to MH i2c: E2 08 00 A1 18 80 11 00 00 00 00 00 00 33 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 17 00 A1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [11:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:50]wFMCommunicate OK [11:29:50]requested_item fd.num is exist - process it [11:29:50]SAM_PROTO_GetFieldsCounters [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 00 00 [11:29:50]Write to MH i2c: E2 08 00 A2 18 80 13 00 00 00 00 00 00 36 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 62 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 62 00 A2 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 64 02 00 0E 04 04 00 1A 02 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 8E [11: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 64 02 00 0E 04 04 00 1A 02 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 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetFieldsCounters done [11:29:50]requested_item shift.num is exist - process it [11:29:50]requested_item shift.opened is exist - process it [11:29:50]req_shift_opened [11:29:50]FM_GetShiftState [11:29:50]SAM_PROTO_GetShiftState [11:29:50]wFMCommunicate request_size=4 [11:29:50]MH_SAM_APDU [11:29:50]CAPDU: 80 13 01 00 [11:29:50]Write to MH i2c: E2 08 00 A3 18 80 13 01 00 00 00 00 00 38 [11:29:50]Write i2c OK [11:29:50]MH_I2C_Read... [11:29:50]OFD Sender: No OFD packet to send [11:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 A3 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2A [11:29:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetShiftState done [11:29:50]FM_GetShiftState done [11:29:50]req_shift_opened done [11:29:50]requested_item shift.open_date is exist - process it [11:29:50]req_shift_open_date [11:29:50]req_shift_open_date done [11:29:50]produce_requested_data done [11:29:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156864,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:29:50]process_action_free close_receipt [11:29:50]json_value_free [11:29:50]json_value_free done [11:29:50]process_json_proto returns [11:29:50]Send response to host [11:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156864,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:29:50]free response buf [11:29:50]execute_script done [11:29:50]execute_script returns [11:29:50]free content buf [11:29:50]Sock 7.Close socket [11:29:50]Sock 7.Thread stoped [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [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:07]accept exits with 9 [11:32:07]New connection [11:32:07]New thread 3066748260 created [11:32:07]Thread 3066604900 joined [11:32:07]Waiting for new connection... [11:32:07] Sock 9.Parse request [11:32:07]Sock 9.Check first char [11:32:07]Sock 9.First char is OK [11:32:07]request: POST /json_proto HTTP/1.0 [11:32:07]Method: POST [11:32:07]URL: /json_proto [11:32:07]Method is POST - this is cgi request [11:32:07]url: /json_proto [11:32:07]query_string will be loaded in cgi processing [11:32:07]execute_cgi json_proto POST (null) [11:32:07]execute_cgi path=json_proto method=POST [11:32:07]POST find Content-Length [11:32:07]Host: 172.17.63.3:8080 [11:32:07]Content-Length: 676 [11:32:07]Content-Type: application/json [11:32:07] [11:32:07]POST finish read [11:32:07]Found Content-Length = 676 [11:32:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [11:32:07]execute_script... [11:32: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)99678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [11:32:07]POST & json_proto [11:32:07]process_json_proto [11:32:07]json parsed OK: [11:32:07]protocol is kg_v1.0 [11:32:07]action value=close_receipt [11:32:07]process_action close_receipt [11:32:07]cmd_close_receipt [11:32:07]MH_GetDate [11:32:07]Write to MH i2c: F0 00 00 A4 18 AB [11:32:07]Write i2c OK [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 09 00 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: F0 09 00 A4 18 00 39 76 1F 67 50 D1 6C 64 DA [11:32:07]GetLastDocTimeStamp 1730114990 [11:32:07]current date 1730115129 [11:32:07]FM_GetShiftState [11:32:07]SAM_PROTO_GetShiftState [11:32:07]wFMCommunicate request_size=4 [11:32:07]MH_SAM_APDU [11:32:07]CAPDU: 80 13 01 00 [11:32:07]Write to MH i2c: E2 08 00 A5 18 80 13 01 00 00 00 00 00 3A [11:32:07]Write i2c OK [11:32:07]MH_I2C_Read... [11:32:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:07]Read from MH i2c: E2 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: E2 0E 00 [11:32:07]MH_I2C_Read... [11:32:07]Read from MH i2c: E2 0E 00 A5 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2C [11:32:07]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:32:07]wFMCommunicate OK [11:32:07]SAM_PROTO_GetShiftState done [11:32:07]FM_GetShiftState done [11:32:07]opened in 1730075526 [11:32:07]opened+sec_in_day 1730161926 [11:32:07]quantity*price = 30038 [11:32:07]sum+1 = 30039 [11:32:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 81 28.10.2024 11:32 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156865 ФПД: 195301369537609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156865&fm=195301369537609&tin=02508201610067®Number=0000000000091693&sum=30000 [11:32:08]StoreToDocumentArchive [11:32:08]shift 538 fd 156865 [11:32:08]save to /storage/0538/doc_00156865 [11:32:08]save last doc name /storage/0538/doc_00156865 to /storage/kkm_last_doc_name [11:32:08]save OK [11:32:08]Clear old archive folders... [11:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:08]tlvbuf is 01A8F870 [11:32:08]SAM_PROTO_ClearQueue [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 09 00 00 [11:32:08]Write to MH i2c: E2 08 00 B2 18 80 09 00 00 00 00 00 00 3C [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]SAM_PROTO_ClearQueue done [11:32:08]KKMCreateOFDPacket [11:32:08]OFDProtocolAddRootSTLVToBuf [11:32:08]FM_MakeSignedData [11:32:08]FM_MakeSignedData [11:32:08]SAM_PROTO_SignData [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 01 02 [11:32:08]Write to MH i2c: E2 08 00 B3 18 80 0D 01 02 00 00 00 00 44 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=255 [11:32:08]MH_SAM_APDU [11:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 3A 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 64 02 00 35 04 06 00 B1 [11:32:08]Write to MH i2c: E2 02 01 B4 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 3A 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 64 02 00 35 04 06 00 B1 00 00 47 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=10 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 02 02 05 A0 24 C1 64 49 [11:32:08]Write to MH i2c: E2 0D 00 B5 18 80 0D 02 02 05 00 A0 24 C1 64 49 00 00 83 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 03 00 B5 18 00 90 00 41 [11:32:08]RAPDU: 90 00 [11:32:08]wFMCommunicate OK [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 0D 03 02 [11:32:08]Write to MH i2c: E2 08 00 B6 18 80 0D 03 02 00 00 00 00 49 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:08]Read from MH i2c: E2 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 0B 00 [11:32:08]MH_I2C_Read... [11:32:08]Read from MH i2c: E2 0B 00 B6 18 00 84 97 09 42 4D FB B3 FF 90 00 AA [11:32:08]RAPDU: 84 97 09 42 4D FB B3 FF 90 00 [11:32:08]wFMCommunicate OK [11:32:08]SAM_PROTO_SignData done [11:32:08]FM_MakeSignedData done [11:32:08]CreateOFDProtocolMessage [11:32:08]wFMCommunicate request_size=4 [11:32:08]MH_SAM_APDU [11:32:08]CAPDU: 80 11 00 00 [11:32:08]Write to MH i2c: E2 08 00 B7 18 80 11 00 00 00 00 00 00 49 [11:32:08]Write i2c OK [11:32:08]MH_I2C_Read... [11:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:09]Read from MH i2c: E2 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 B7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9E [11:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:32:09]wFMCommunicate OK [11:32:09]CreateOFDProtocolMessage done [11:32:09]OFDSenderStorePacket 156865 [11:32:09]StoreOFDPacket docnum=156865 [11:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 75 27 07 01 DA 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 3A 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 64 02 00 35 04 06 00 B1 A0 24 C1 64 49 84 97 09 42 4D FB B3 FF [11:32:09]CheckFolder [11:32:09]dirname=/storage/ofd_packets [11:32:09]CheckFolder done [11:32:09]ProducePacketName [11:32:09]name=ofd_packets/00156865 [11:32:09]NVStorageSaveData ofd_packets/00156865 [11:32:09]File name is /storage/ofd_packets/00156865 [11:32:09]Write 301 bytes [11:32:09]NVStorageSaveData done [11:32:09]OFDSenderStorePacket done [11:32:09]KKMCreateOFDPacket done [11:32:09]NVStorageSaveData kkm_last_timestamp [11:32:09]File name is /storage/kkm_last_timestamp [11:32:09]Write 4 bytes [11:32:09]NVStorageSaveData done [11:32:09]ExternCall_PrintAddStr [11:32:09]wPrintStart [11:32:09]Write to MH i2c: 01 00 00 B8 18 D0 [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 B8 18 00 00 00 00 00 FF 0F E5 [11:32:09]RasterBufferAndPrint [11:32:09]line Счет N : (1)99678 [11:32:09]line ИНН: 02508201610067 [11:32:09]line Контрольно-Кассовый Чек [11:32:09]line ПРОДАЖА [11:32:09]line ТРК (МРК, ГНК) : 31 [11:32:09]line Товар: 2710124130 [11:32:09]line Аи-92-К-5 [11:32:09]line 4.490 * 66.90 [11:32:09]line = 300.38 [11:32:09]line НДС 12% НСП 1% [11:32:09]line > о реализуемом товаре [11:32:09]line ОКРУГЛЕНИЕ: -0.38 [11:32:09]line ИТОГО: 300.00 [11:32:09]line Внесено: 300.00 [11:32:09]line СДАЧА: 0.00 [11:32:09]line НСП 1% : 2.66 [11:32:09]line НДС 12% : 31.90 [11:32:09]line Наличными: 300.00 [11:32:09]line Безнал.: 0.00 [11:32:09]line Место: АЗС № 143 "Партнер Нефть" [11:32:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:32:09]line СНО: Общий режим [11:32:09]line Чек 81 28.10.2024 11:32 [11:32:09]line Смена: 538 ФФД: 1.0 [11:32:09]line ЗНМ: 0300000096 [11:32:09]line РНМ: 0000000000091693 [11:32:09]line Версия ККМ: 001 [11:32:09]line ФМ: 0000000000871792 [11:32:09]line ФД: 156865 [11:32:09]line ФПД: 195301369537609 [11:32:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113210&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156865&fm=195301369537609&tin=02508201610067®Number=0000000000091693&sum=30000 [11:32:09]OFD Sender: Processing packet 156865 [packets to send 31, broken 30] [11:32:09]ProducePacketName [11:32:09]name=ofd_packets/00156865 [11:32:09]OFD Sender: To server: pG, [11:32:09]CommunicateWithHost lk.salyk.kg:30040 [11:32:09]ConnectInit lk.salyk.kg [11:32:09]written 0, free lines is 4095 [11:32:09]Connected sock=10 [11:32: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 37 39 32 0F 01 00 00 75 27 07 01 DA 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 3A 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 64 02 00 35 04 06 00 B1 A0 24 C1 64 49 84 97 09 42 4D FB B3 FF [11:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC B9 47 00 58 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 64 02 00 F4 03 04 00 A6 1B 1F 67 B6 04 01 00 00 0C D4 CF C7 85 5E 0A 4F [11:32:09]CommunicateWithHost err = 0 [11:32:09]CheckOFDResponse [11:32:09]1017 (14) - 77093643461234 [11:32:09]1041 (16) - 0000000000871792 [11:32:09]1040 (4) - 156865 [11:32:09]1012 (4) - 28.10.2024 05:05 [11:32:09]1206 (1) - 0 [11:32:09]OFD Sender: Remove packet 156865 [11:32:09]ProducePacketName [11:32:09]name=ofd_packets/00156865 [11:32:09]NVStorageDeleteData [11:32:09]Write to MH i2c: 01 00 00 E3 18 FB [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: 01 07 00 E3 18 00 00 00 00 00 D8 0C E6 [11:32:09]RasterBufferAndPrint [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]line [11:32:09]written 0, free lines is 3295 [11:32:09]process_action close_receipt done [11:32:09]requested_data is exist [11:32:09]produce_requested_data [11:32:09]requested_item fm.sn is exist - process it [11:32:09]wFMCommunicate request_size=4 [11:32:09]MH_SAM_APDU [11:32:09]CAPDU: 80 11 00 00 [11:32:09]Write to MH i2c: E2 08 00 EA 18 80 11 00 00 00 00 00 00 7C [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:09]Read from MH i2c: E2 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 [11:32:09]MH_I2C_Read... [11:32:09]Read from MH i2c: E2 17 00 EA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [11:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:32:09]wFMCommunicate OK [11:32:09]requested_item fd.num is exist - process it [11:32:09]SAM_PROTO_GetFieldsCounters [11:32:09]wFMCommunicate request_size=4 [11:32:09]MH_SAM_APDU [11:32:09]CAPDU: 80 13 00 00 [11:32:09]Write to MH i2c: E2 08 00 EB 18 80 13 00 00 00 00 00 00 7F [11:32:09]Write i2c OK [11:32:09]MH_I2C_Read... [11:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:10]Read from MH i2c: E2 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 62 00 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 62 00 EB 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 64 02 00 0E 04 04 00 1A 02 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 DB [11:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 64 02 00 0E 04 04 00 1A 02 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 [11:32:10]wFMCommunicate OK [11:32:10]SAM_PROTO_GetFieldsCounters done [11:32:10]requested_item shift.num is exist - process it [11:32:10]requested_item shift.opened is exist - process it [11:32:10]req_shift_opened [11:32:10]FM_GetShiftState [11:32:10]SAM_PROTO_GetShiftState [11:32:10]wFMCommunicate request_size=4 [11:32:10]MH_SAM_APDU [11:32:10]CAPDU: 80 13 01 00 [11:32:10]Write to MH i2c: E2 08 00 EC 18 80 13 01 00 00 00 00 00 81 [11:32:10]Write i2c OK [11:32:10]MH_I2C_Read... [11:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:10]Read from MH i2c: E2 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 0E 00 [11:32:10]MH_I2C_Read... [11:32:10]Read from MH i2c: E2 0E 00 EC 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 73 [11:32:10]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:32:10]wFMCommunicate OK [11:32:10]SAM_PROTO_GetShiftState done [11:32:10]FM_GetShiftState done [11:32:10]req_shift_opened done [11:32:10]requested_item shift.open_date is exist - process it [11:32:10]req_shift_open_date [11:32:10]req_shift_open_date done [11:32:10]produce_requested_data done [11:32:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156865,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:32:10]process_action_free close_receipt [11:32:10]json_value_free [11:32:10]json_value_free done [11:32:10]process_json_proto returns [11:32:10]Send response to host [11:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156865,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:32:10]free response buf [11:32:10]execute_script done [11:32:10]execute_script returns [11:32:10]free content buf [11:32:10]Sock 9.Close socket [11:32:10]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [11:33:19]accept exits with 7 [11:33:19]New connection [11:33:19]New thread 3066604900 created [11:33:19]Thread 3066748260 joined [11:33:19]Waiting for new connection... [11:33:19] Sock 7.Parse request [11:33:19]Sock 7.Check first char [11:33:19]Sock 7.First char is OK [11:33:19]request: POST /json_proto HTTP/1.0 [11:33:19]Method: POST [11:33:19]URL: /json_proto [11:33:19]Method is POST - this is cgi request [11:33:19]url: /json_proto [11:33:19]query_string will be loaded in cgi processing [11:33:19]execute_cgi json_proto POST (null) [11:33:19]execute_cgi path=json_proto method=POST [11:33:19]POST find Content-Length [11:33:19]Host: 172.17.63.3:8080 [11:33:19]Content-Length: 676 [11:33:19]Content-Type: application/json [11:33:19] [11:33:19]POST finish read [11:33:19]Found Content-Length = 676 [11:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [11:33:19]execute_script... [11:33: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)99679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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" ] } } [11:33:19]POST & json_proto [11:33:19]process_json_proto [11:33:19]json parsed OK: [11:33:19]protocol is kg_v1.0 [11:33:19]action value=close_receipt [11:33:19]process_action close_receipt [11:33:19]cmd_close_receipt [11:33:19]MH_GetDate [11:33:19]Write to MH i2c: F0 00 00 ED 18 F4 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 09 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 09 00 ED 18 00 82 76 1F 67 50 D1 6C 64 6C [11:33:19]GetLastDocTimeStamp 1730115130 [11:33:19]current date 1730115202 [11:33:19]FM_GetShiftState [11:33:19]SAM_PROTO_GetShiftState [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 13 01 00 [11:33:19]Write to MH i2c: E2 08 00 EE 18 80 13 01 00 00 00 00 00 83 [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:19]Read from MH i2c: E2 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: E2 0E 00 EE 18 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 75 [11:33:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:33:19]wFMCommunicate OK [11:33:19]SAM_PROTO_GetShiftState done [11:33:19]FM_GetShiftState done [11:33:19]opened in 1730075526 [11:33:19]opened+sec_in_day 1730161926 [11:33:19]quantity*price = 30038 [11:33:19]sum+1 = 30039 [11:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 82 28.10.2024 11:33 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156866 ФПД: 42483416938386 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156866&fm=42483416938386&tin=02508201610067®Number=0000000000091693&sum=30000 [11:33:20]StoreToDocumentArchive [11:33:20]shift 538 fd 156866 [11:33:20]save to /storage/0538/doc_00156866 [11:33:20]save last doc name /storage/0538/doc_00156866 to /storage/kkm_last_doc_name [11:33:20]save OK [11:33:20]Clear old archive folders... [11:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:20]tlvbuf is B6E769E0 [11:33:20]SAM_PROTO_ClearQueue [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 09 00 00 [11:33:20]Write to MH i2c: E2 08 00 FB 18 80 09 00 00 00 00 00 00 85 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_ClearQueue done [11:33:20]KKMCreateOFDPacket [11:33:20]OFDProtocolAddRootSTLVToBuf [11:33:20]FM_MakeSignedData [11:33:20]FM_MakeSignedData [11:33:20]SAM_PROTO_SignData [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 01 02 [11:33:20]Write to MH i2c: E2 08 00 FC 18 80 0D 01 02 00 00 00 00 8D [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=255 [11:33:20]MH_SAM_APDU [11:33: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 64 02 00 35 04 06 00 26 [11:33:20]Write to MH i2c: E2 02 01 FD 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 64 02 00 35 04 06 00 26 00 00 4F [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=10 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 02 02 05 A3 70 F9 B7 92 [11:33:20]Write to MH i2c: E2 0D 00 FE 18 80 0D 02 02 05 00 A3 70 F9 B7 92 00 00 EF [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [11:33:20]RAPDU: 90 00 [11:33:20]wFMCommunicate OK [11:33:20]wFMCommunicate request_size=4 [11:33:20]MH_SAM_APDU [11:33:20]CAPDU: 80 0D 03 02 [11:33:20]Write to MH i2c: E2 08 00 FF 18 80 0D 03 02 00 00 00 00 92 [11:33:20]Write i2c OK [11:33:20]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 0B 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 0B 00 FF 18 00 B3 7D B3 8D D6 71 1B 52 90 00 B7 [11:33:21]RAPDU: B3 7D B3 8D D6 71 1B 52 90 00 [11:33:21]wFMCommunicate OK [11:33:21]SAM_PROTO_SignData done [11:33:21]FM_MakeSignedData done [11:33:21]CreateOFDProtocolMessage [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 11 00 00 [11:33:21]Write to MH i2c: E2 08 00 00 19 80 11 00 00 00 00 00 00 93 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 00 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E8 [11:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:33:21]wFMCommunicate OK [11:33:21]CreateOFDProtocolMessage done [11:33:21]OFDSenderStorePacket 156866 [11:33:21]StoreOFDPacket docnum=156866 [11:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 49 88 07 01 D2 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 64 02 00 35 04 06 00 26 A3 70 F9 B7 92 B3 7D B3 8D D6 71 1B 52 [11:33:21]CheckFolder [11:33:21]dirname=/storage/ofd_packets [11:33:21]CheckFolder done [11:33:21]ProducePacketName [11:33:21]name=ofd_packets/00156866 [11:33:21]NVStorageSaveData ofd_packets/00156866 [11:33:21]File name is /storage/ofd_packets/00156866 [11:33:21]Write 301 bytes [11:33:21]NVStorageSaveData done [11:33:21]OFDSenderStorePacket done [11:33:21]KKMCreateOFDPacket done [11:33:21]NVStorageSaveData kkm_last_timestamp [11:33:21]File name is /storage/kkm_last_timestamp [11:33:21]Write 4 bytes [11:33:21]NVStorageSaveData done [11:33:21]ExternCall_PrintAddStr [11:33:21]wPrintStart [11:33:21]Write to MH i2c: 01 00 00 01 19 1A [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 01 19 00 00 00 00 00 FF 0F 2F [11:33:21]RasterBufferAndPrint [11:33:21]line Счет N : (1)99679 [11:33:21]line ИНН: 02508201610067 [11:33:21]line Контрольно-Кассовый Чек [11:33:21]line ПРОДАЖА [11:33:21]line ТРК (МРК, ГНК) : 31 [11:33:21]line Товар: 2710124130 [11:33:21]line Аи-92-К-5 [11:33:21]line 4.490 * 66.90 [11:33:21]line = 300.38 [11:33:21]line НДС 12% НСП 1% [11:33:21]line > о реализуемом товаре [11:33:21]line ОКРУГЛЕНИЕ: -0.38 [11:33:21]line ИТОГО: 300.00 [11:33:21]line Внесено: 300.00 [11:33:21]line СДАЧА: 0.00 [11:33:21]line НСП 1% : 2.66 [11:33:21]line НДС 12% : 31.90 [11:33:21]line Наличными: 300.00 [11:33:21]line Безнал.: 0.00 [11:33:21]line Место: АЗС № 143 "Партнер Нефть" [11:33:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:33:21]line СНО: Общий режим [11:33:21]line Чек 82 28.10.2024 11:33 [11:33:21]line Смена: 538 ФФД: 1.0 [11:33:21]line ЗНМ: 0300000096 [11:33:21]line РНМ: 0000000000091693 [11:33:21]line Версия ККМ: 001 [11:33:21]line ФМ: 0000000000871792 [11:33:21]line ФД: 156866 [11:33:21]line ФПД: 42483416938386 [11:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113322&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156866&fm=42483416938386&tin=02508201610067®Number=0000000000091693&sum=30000 [11:33:21]OFD Sender: Processing packet 156866 [packets to send 31, broken 30] [11:33:21]ProducePacketName [11:33:21]name=ofd_packets/00156866 [11:33:21]OFD Sender: To server: pG, [11:33:21]CommunicateWithHost lk.salyk.kg:30040 [11:33:21]ConnectInit lk.salyk.kg [11:33:21]written 0, free lines is 4095 [11:33:21]Connected sock=10 [11:33: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 37 39 32 0F 01 00 00 49 88 07 01 D2 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 82 76 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 64 02 00 35 04 06 00 26 A3 70 F9 B7 92 B3 7D B3 8D D6 71 1B 52 [11:33:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 70 A6 47 00 EB 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 37 39 32 10 04 04 00 C2 64 02 00 F4 03 04 00 EE 1B 1F 67 B6 04 01 00 00 63 CD 89 6B 19 29 B6 BD [11:33:21]CommunicateWithHost err = 0 [11:33:21]CheckOFDResponse [11:33:21]1017 (14) - 77093643461234 [11:33:21]1041 (16) - 0000000000871792 [11:33:21]1040 (4) - 156866 [11:33:21]1012 (4) - 28.10.2024 05:06 [11:33:21]1206 (1) - 0 [11:33:21]OFD Sender: Remove packet 156866 [11:33:21]ProducePacketName [11:33:21]name=ofd_packets/00156866 [11:33:21]NVStorageDeleteData [11:33:21]Write to MH i2c: 01 00 00 2C 19 45 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 2C 19 00 00 00 00 00 D9 0C 31 [11:33:21]RasterBufferAndPrint [11:33:21]line [11:33:21]line [11:33:21]line [11:33:21]line [11:33:21]line [11:33:21]written 0, free lines is 3296 [11:33:21]process_action close_receipt done [11:33:21]requested_data is exist [11:33:21]produce_requested_data [11:33:21]requested_item fm.sn is exist - process it [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 11 00 00 [11:33:21]Write to MH i2c: E2 08 00 33 19 80 11 00 00 00 00 00 00 C6 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 33 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [11:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:33:21]wFMCommunicate OK [11:33:21]requested_item fd.num is exist - process it [11:33:21]SAM_PROTO_GetFieldsCounters [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 13 00 00 [11:33:21]Write to MH i2c: E2 08 00 34 19 80 13 00 00 00 00 00 00 C9 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 62 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 62 00 34 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 64 02 00 0E 04 04 00 1A 02 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 29 [11:33: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 64 02 00 0E 04 04 00 1A 02 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 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_GetFieldsCounters done [11:33:22]requested_item shift.num is exist - process it [11:33:22]requested_item shift.opened is exist - process it [11:33:22]req_shift_opened [11:33:22]FM_GetShiftState [11:33:22]SAM_PROTO_GetShiftState [11:33:22]wFMCommunicate request_size=4 [11:33:22]MH_SAM_APDU [11:33:22]CAPDU: 80 13 01 00 [11:33:22]Write to MH i2c: E2 08 00 35 19 80 13 01 00 00 00 00 00 CB [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:22]Read from MH i2c: E2 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0E 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: E2 0E 00 35 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BD [11:33:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:33:22]wFMCommunicate OK [11:33:22]SAM_PROTO_GetShiftState done [11:33:22]FM_GetShiftState done [11:33:22]req_shift_opened done [11:33:22]requested_item shift.open_date is exist - process it [11:33:22]req_shift_open_date [11:33:22]req_shift_open_date done [11:33:22]produce_requested_data done [11:33:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156866,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:33:22]process_action_free close_receipt [11:33:22]json_value_free [11:33:22]json_value_free done [11:33:22]process_json_proto returns [11:33:22]Send response to host [11:33:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156866,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:33:22]free response buf [11:33:22]execute_script done [11:33:22]execute_script returns [11:33:22]free content buf [11:33:22]Sock 7.Close socket [11:33:22]Sock 7.Thread stoped [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]accept exits with 9 [11:39:07]New connection [11:39:07]New thread 3066748260 created [11:39:07]Thread 3066604900 joined [11:39:07]Waiting for new connection... [11:39:07] Sock 9.Parse request [11:39:07]Sock 9.Check first char [11:39:07]Sock 9.First char is OK [11:39:07]request: POST /json_proto HTTP/1.0 [11:39:07]Method: POST [11:39:07]URL: /json_proto [11:39:07]Method is POST - this is cgi request [11:39:07]url: /json_proto [11:39:07]query_string will be loaded in cgi processing [11:39:07]execute_cgi json_proto POST (null) [11:39:07]execute_cgi path=json_proto method=POST [11:39:07]POST find Content-Length [11:39:07]Host: 172.17.63.3:8080 [11:39:07]Content-Length: 799 [11:39:07]Content-Type: application/json [11:39:07] [11:39:07]POST finish read [11:39:07]Found Content-Length = 799 [11:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:07]execute_script... [11:39: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)99680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:07]POST & json_proto [11:39:07]process_json_proto [11:39:07]json parsed OK: [11:39:07]protocol is kg_v1.0 [11:39:07]action value=close_receipt [11:39:07]process_action close_receipt [11:39:07]cmd_close_receipt [11:39:07]MH_GetDate [11:39:07]Write to MH i2c: F0 00 00 36 19 3E [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: F0 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: F0 09 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: F0 09 00 36 19 00 DE 77 1F 67 50 D1 6C 64 13 [11:39:07]GetLastDocTimeStamp 1730115202 [11:39:07]current date 1730115550 [11:39:07]FM_GetShiftState [11:39:07]SAM_PROTO_GetShiftState [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 13 01 00 [11:39:07]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:07]OFD Sender: No OFD packet to send [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0E 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0E 00 37 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BF [11:39:07]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:39:07]wFMCommunicate OK [11:39:07]SAM_PROTO_GetShiftState done [11:39:07]FM_GetShiftState done [11:39:07]opened in 1730075526 [11:39:07]opened+sec_in_day 1730161926 [11:39:07]quantity*price = 50041 [11:39:07]sum+1 = 50042 [11:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 83 28.10.2024 11:39 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871792 ФД: 156867 ФПД: 31923198730273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113910&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156867&fm=31923198730273&tin=02508201610067®Number=0000000000091693&sum=50041 [11:39:08]StoreToDocumentArchive [11:39:08]shift 538 fd 156867 [11:39:08]save to /storage/0538/doc_00156867 [11:39:08]save last doc name /storage/0538/doc_00156867 to /storage/kkm_last_doc_name [11:39:08]save OK [11:39:08]Clear old archive folders... [11:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:08]tlvbuf is 01AD2360 [11:39:08]SAM_PROTO_ClearQueue [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 09 00 00 [11:39:08]Write to MH i2c: E2 08 00 44 19 80 09 00 00 00 00 00 00 CF [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:08]Read from MH i2c: E2 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 03 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [11:39:08]RAPDU: 90 00 [11:39:08]wFMCommunicate OK [11:39:08]SAM_PROTO_ClearQueue done [11:39:08]KKMCreateOFDPacket [11:39:08]OFDProtocolAddRootSTLVToBuf [11:39:08]FM_MakeSignedData [11:39:08]FM_MakeSignedData [11:39:08]SAM_PROTO_SignData [11:39:08]wFMCommunicate request_size=4 [11:39:08]MH_SAM_APDU [11:39:08]CAPDU: 80 0D 01 02 [11:39:08]Write to MH i2c: E2 08 00 45 19 80 0D 01 02 00 00 00 00 D7 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:08]Read from MH i2c: E2 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 03 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [11:39:08]RAPDU: 90 00 [11:39:08]wFMCommunicate OK [11:39:08]wFMCommunicate request_size=255 [11:39:08]MH_SAM_APDU [11:39: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 DE 77 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 64 02 00 35 04 06 00 1D [11:39:08]Write to MH i2c: E2 02 01 46 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 DE 77 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 64 02 00 35 04 06 00 1D 00 00 4D [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]wFMCommunicate request_size=10 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 02 02 05 08 B2 EB A0 21 [11:39:09]Write to MH i2c: E2 0D 00 47 19 80 0D 02 02 05 00 08 B2 EB A0 21 00 00 4A [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [11:39:09]RAPDU: 90 00 [11:39:09]wFMCommunicate OK [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 0D 03 02 [11:39:09]Write to MH i2c: E2 08 00 48 19 80 0D 03 02 00 00 00 00 DC [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0B 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 0B 00 48 19 00 3F 95 CF FA D1 41 B9 51 90 00 96 [11:39:09]RAPDU: 3F 95 CF FA D1 41 B9 51 90 00 [11:39:09]wFMCommunicate OK [11:39:09]SAM_PROTO_SignData done [11:39:09]FM_MakeSignedData done [11:39:09]CreateOFDProtocolMessage [11:39:09]wFMCommunicate request_size=4 [11:39:09]MH_SAM_APDU [11:39:09]CAPDU: 80 11 00 00 [11:39:09]Write to MH i2c: E2 08 00 49 19 80 11 00 00 00 00 00 00 DC [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:09]Read from MH i2c: E2 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 17 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: E2 17 00 49 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 31 [11:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:39:09]wFMCommunicate OK [11:39:09]CreateOFDProtocolMessage done [11:39:09]OFDSenderStorePacket 156867 [11:39:09]StoreOFDPacket docnum=156867 [11:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 29 07 01 51 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 DE 77 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 64 02 00 35 04 06 00 1D 08 B2 EB A0 21 3F 95 CF FA D1 41 B9 51 [11:39:09]CheckFolder [11:39:09]dirname=/storage/ofd_packets [11:39:09]CheckFolder done [11:39:09]ProducePacketName [11:39:09]name=ofd_packets/00156867 [11:39:09]NVStorageSaveData ofd_packets/00156867 [11:39:09]File name is /storage/ofd_packets/00156867 [11:39:09]Write 301 bytes [11:39:09]NVStorageSaveData done [11:39:09]OFDSenderStorePacket done [11:39:09]KKMCreateOFDPacket done [11:39:09]NVStorageSaveData kkm_last_timestamp [11:39:09]File name is /storage/kkm_last_timestamp [11:39:09]Write 4 bytes [11:39:09]NVStorageSaveData done [11:39:09]ExternCall_PrintAddStr [11:39:09]wPrintStart [11:39:09]Write to MH i2c: 01 00 00 4A 19 63 [11:39:09]Write i2c OK [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: 01 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: 01 07 00 [11:39:09]MH_I2C_Read... [11:39:09]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 FF 0F 78 [11:39:09]RasterBufferAndPrint [11:39:09]line Счет N : (1)99680 [11:39:09]line ИНН: 02508201610067 [11:39:09]line Контрольно-Кассовый Чек [11:39:09]line ПРОДАЖА [11:39:09]line ТРК (МРК, ГНК) : 31 [11:39:09]line Товар: 2710124130 [11:39:09]line Аи-92-К-5 [11:39:09]line 7.480 * 66.90 [11:39:09]line = 500.41 [11:39:09]line НДС 12% НСП 1% [11:39:09]line > о реализуемом товаре [11:39:09]line ИТОГО: 500.41 [11:39:09]line НСП 1% : 4.43 [11:39:09]line НДС 12% : 53.14 [11:39:09]line Наличными: 0.00 [11:39:09]line Безнал.: 500.41 [11:39:09]line Место: АЗС № 143 "Партнер Нефть" [11:39:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:39:09]line СНО: Общий режим [11:39:09]line Чек 83 28.10.2024 11:39 [11:39:09]line Смена: 538 ФФД: 1.0 [11:39:09]line ЗНМ: 0300000096 [11:39:09]line РНМ: 0000000000091693 [11:39:09]line Версия ККМ: 001 [11:39:09]line Платежная система: O! деньги [11:39:09]line ФМ: 0000000000871792 [11:39:09]line ФД: 156867 [11:39:09]line ФПД: 31923198730273 [11:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113910&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156867&fm=31923198730273&tin=02508201610067®Number=0000000000091693&sum=50041 [11:39:09]written 0, free lines is 4095 [11:39:09]OFD Sender: Processing packet 156867 [packets to send 31, broken 30] [11:39:09]ProducePacketName [11:39:09]name=ofd_packets/00156867 [11:39:09]OFD Sender: To server: pG, [11:39:09]CommunicateWithHost lk.salyk.kg:30040 [11:39:09]ConnectInit lk.salyk.kg [11:39:09]Connected sock=7 [11:39: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 37 39 32 0F 01 00 00 77 29 07 01 51 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 DE 77 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 64 02 00 35 04 06 00 1D 08 B2 EB A0 21 3F 95 CF FA D1 41 B9 51 [11:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1C 18 47 00 52 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 64 02 00 F4 03 04 00 4A 1D 1F 67 B6 04 01 00 00 52 95 AC 5E 01 95 3C A4 [11:39:09]CommunicateWithHost err = 0 [11:39:09]CheckOFDResponse [11:39:09]1017 (14) - 77093643461234 [11:39:09]1041 (16) - 0000000000871792 [11:39:09]1040 (4) - 156867 [11:39:09]1012 (4) - 28.10.2024 05:12 [11:39:09]1206 (1) - 0 [11:39:09]OFD Sender: Remove packet 156867 [11:39:09]ProducePacketName [11:39:09]name=ofd_packets/00156867 [11:39:09]NVStorageDeleteData [11:39:10]Write to MH i2c: 01 00 00 74 19 8D [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: 01 07 00 74 19 00 00 00 00 00 E3 0C 83 [11:39:10]RasterBufferAndPrint [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]line [11:39:10]written 0, free lines is 3306 [11:39:10]process_action close_receipt done [11:39:10]requested_data is exist [11:39:10]produce_requested_data [11:39:10]requested_item fm.sn is exist - process it [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 11 00 00 [11:39:10]Write to MH i2c: E2 08 00 7B 19 80 11 00 00 00 00 00 00 0E [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 17 00 7B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [11:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:39:10]wFMCommunicate OK [11:39:10]requested_item fd.num is exist - process it [11:39:10]SAM_PROTO_GetFieldsCounters [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 13 00 00 [11:39:10]Write to MH i2c: E2 08 00 7C 19 80 13 00 00 00 00 00 00 11 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 62 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 62 00 7C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 64 02 00 0E 04 04 00 1A 02 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 75 [11:39: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 64 02 00 0E 04 04 00 1A 02 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 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_GetFieldsCounters done [11:39:10]requested_item shift.num is exist - process it [11:39:10]requested_item shift.opened is exist - process it [11:39:10]req_shift_opened [11:39:10]FM_GetShiftState [11:39:10]SAM_PROTO_GetShiftState [11:39:10]wFMCommunicate request_size=4 [11:39:10]MH_SAM_APDU [11:39:10]CAPDU: 80 13 01 00 [11:39:10]Write to MH i2c: E2 08 00 7D 19 80 13 01 00 00 00 00 00 13 [11:39:10]Write i2c OK [11:39:10]MH_I2C_Read... [11:39:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:10]Read from MH i2c: E2 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0E 00 [11:39:10]MH_I2C_Read... [11:39:10]Read from MH i2c: E2 0E 00 7D 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 05 [11:39:10]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:39:10]wFMCommunicate OK [11:39:10]SAM_PROTO_GetShiftState done [11:39:10]FM_GetShiftState done [11:39:10]req_shift_opened done [11:39:10]requested_item shift.open_date is exist - process it [11:39:10]req_shift_open_date [11:39:10]req_shift_open_date done [11:39:10]produce_requested_data done [11:39:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156867,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:39:10]process_action_free close_receipt [11:39:10]json_value_free [11:39:10]json_value_free done [11:39:10]process_json_proto returns [11:39:10]Send response to host [11:39:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156867,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:39:10]free response buf [11:39:10]execute_script done [11:39:10]execute_script returns [11:39:10]free content buf [11:39:10]Sock 9.Close socket [11:39:10]Sock 9.Thread stoped [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:33]accept exits with 10 [11:40:33]New connection [11:40:33]New thread 3066604900 created [11:40:33]Thread 3066748260 joined [11:40:33]Waiting for new connection... [11:40:33] Sock 10.Parse request [11:40:33]Sock 10.Check first char [11:40:33]Sock 10.First char is OK [11:40:33]request: POST /json_proto HTTP/1.0 [11:40:33]Method: POST [11:40:33]URL: /json_proto [11:40:33]Method is POST - this is cgi request [11:40:33]url: /json_proto [11:40:33]query_string will be loaded in cgi processing [11:40:33]execute_cgi json_proto POST (null) [11:40:33]execute_cgi path=json_proto method=POST [11:40:33]POST find Content-Length [11:40:33]Host: 172.17.63.3:8080 [11:40:33]Content-Length: 796 [11:40:33]Content-Type: application/json [11:40:33] [11:40:33]POST finish read [11:40:33]Found Content-Length = 796 [11:40:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295692", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:33]execute_script... [11:40: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)99681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295692", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:33]POST & json_proto [11:40:33]process_json_proto [11:40:33]json parsed OK: [11:40:33]protocol is kg_v1.0 [11:40:33]action value=close_receipt [11:40:33]process_action close_receipt [11:40:33]cmd_close_receipt [11:40:33]MH_GetDate [11:40:33]Write to MH i2c: F0 00 00 7E 19 86 [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: F0 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: F0 09 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: F0 09 00 7E 19 00 33 78 1F 67 50 D1 6C 64 B1 [11:40:33]GetLastDocTimeStamp 1730115550 [11:40:33]current date 1730115635 [11:40:33]FM_GetShiftState [11:40:33]SAM_PROTO_GetShiftState [11:40:33]wFMCommunicate request_size=4 [11:40:33]MH_SAM_APDU [11:40:33]CAPDU: 80 13 01 00 [11:40:33]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [11:40:33]Write i2c OK [11:40:33]MH_I2C_Read... [11:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:33]Read from MH i2c: E2 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: E2 0E 00 [11:40:33]MH_I2C_Read... [11:40:33]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 07 [11:40:33]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:40:33]wFMCommunicate OK [11:40:33]SAM_PROTO_GetShiftState done [11:40:33]FM_GetShiftState done [11:40:33]opened in 1730075526 [11:40:33]opened+sec_in_day 1730161926 [11:40:33]quantity*price = 0 [11:40:33]sum+1 = 1 [11:40:33]Check (price>sum+1) || (price+1 о реализуемом товаре [11:40:34]line ИТОГО: 0.00 [11:40:34]line НСП 1% : 0.00 [11:40:34]line НДС 12% : 0.00 [11:40:34]line Наличными: 0.00 [11:40:34]line Безнал.: 0.00 [11:40:34]line Место: АЗС № 143 "Партнер Нефть" [11:40:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:40:34]line СНО: Общий режим [11:40:34]line Чек 84 28.10.2024 11:40 [11:40:34]line Смена: 538 ФФД: 1.0 [11:40:34]line ЗНМ: 0300000096 [11:40:34]line РНМ: 0000000000091693 [11:40:34]line Версия ККМ: 001 [11:40:34]line Талоны: Топливные Талоны [11:40:34]line 4295692 [11:40:34]line ФМ: 0000000000871792 [11:40:34]line ФД: 156868 [11:40:34]line ФПД: 275037185975360 [11:40:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156868&fm=275037185975360&tin=02508201610067®Number=0000000000091693&sum=0 [11:40:35]OFD Sender: Processing packet 156868 [packets to send 31, broken 30] [11:40:35]ProducePacketName [11:40:35]name=ofd_packets/00156868 [11:40:35]OFD Sender: To server: pG, [11:40:35]CommunicateWithHost lk.salyk.kg:30040 [11:40:35]ConnectInit lk.salyk.kg [11:40:35]written 0, free lines is 4095 [11:40:35]Connected sock=7 [11:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E1 CE 04 01 1E F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 33 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 64 02 00 35 04 06 00 FA 25 15 C5 24 40 A6 EA 67 0F 6A C8 69 1D [11:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 37 FF 47 00 02 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 37 39 32 10 04 04 00 C4 64 02 00 F4 03 04 00 A0 1D 1F 67 B6 04 01 00 00 8C 20 79 AD 2E EB 0A EB [11:40:35]CommunicateWithHost err = 0 [11:40:35]CheckOFDResponse [11:40:35]1017 (14) - 77093643461234 [11:40:35]1041 (16) - 0000000000871792 [11:40:35]1040 (4) - 156868 [11:40:35]1012 (4) - 28.10.2024 05:14 [11:40:35]1206 (1) - 0 [11:40:35]OFD Sender: Remove packet 156868 [11:40:35]ProducePacketName [11:40:35]name=ofd_packets/00156868 [11:40:35]NVStorageDeleteData [11:40:35]Write to MH i2c: 01 00 00 BC 19 D5 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: 01 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: 01 07 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 ED 0C D5 [11:40:35]RasterBufferAndPrint [11:40:35]line [11:40:35]line [11:40:35]line [11:40:35]line [11:40:35]line [11:40:35]written 0, free lines is 3315 [11:40:35]process_action close_receipt done [11:40:35]requested_data is exist [11:40:35]produce_requested_data [11:40:35]requested_item fm.sn is exist - process it [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 11 00 00 [11:40:35]Write to MH i2c: E2 08 00 C3 19 80 11 00 00 00 00 00 00 56 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 17 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 17 00 C3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [11:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:40:35]wFMCommunicate OK [11:40:35]requested_item fd.num is exist - process it [11:40:35]SAM_PROTO_GetFieldsCounters [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 13 00 00 [11:40:35]Write to MH i2c: E2 08 00 C4 19 80 13 00 00 00 00 00 00 59 [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 62 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 62 00 C4 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 64 02 00 0E 04 04 00 1A 02 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 C1 [11:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 64 02 00 0E 04 04 00 1A 02 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 [11:40:35]wFMCommunicate OK [11:40:35]SAM_PROTO_GetFieldsCounters done [11:40:35]requested_item shift.num is exist - process it [11:40:35]requested_item shift.opened is exist - process it [11:40:35]req_shift_opened [11:40:35]FM_GetShiftState [11:40:35]SAM_PROTO_GetShiftState [11:40:35]wFMCommunicate request_size=4 [11:40:35]MH_SAM_APDU [11:40:35]CAPDU: 80 13 01 00 [11:40:35]Write to MH i2c: E2 08 00 C5 19 80 13 01 00 00 00 00 00 5B [11:40:35]Write i2c OK [11:40:35]MH_I2C_Read... [11:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:35]Read from MH i2c: E2 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 [11:40:35]MH_I2C_Read... [11:40:35]Read from MH i2c: E2 0E 00 C5 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4D [11:40:35]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:40:35]wFMCommunicate OK [11:40:35]SAM_PROTO_GetShiftState done [11:40:35]FM_GetShiftState done [11:40:35]req_shift_opened done [11:40:35]requested_item shift.open_date is exist - process it [11:40:35]req_shift_open_date [11:40:35]req_shift_open_date done [11:40:35]produce_requested_data done [11:40:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156868,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:40:35]process_action_free close_receipt [11:40:35]json_value_free [11:40:35]json_value_free done [11:40:35]process_json_proto returns [11:40:35]Send response to host [11:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156868,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:40:35]free response buf [11:40:35]execute_script done [11:40:35]execute_script returns [11:40:35]free content buf [11:40:35]Sock 10.Close socket [11:40:35]Sock 10.Thread stoped [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:34]accept exits with 9 [11:41:34]New connection [11:41:34]New thread 3066748260 created [11:41:34]Thread 3066604900 joined [11:41:34]Waiting for new connection... [11:41:34] Sock 9.Parse request [11:41:34]Sock 9.Check first char [11:41:34]Sock 9.First char is OK [11:41:34]request: POST /json_proto HTTP/1.0 [11:41:34]Method: POST [11:41:34]URL: /json_proto [11:41:34]Method is POST - this is cgi request [11:41:34]url: /json_proto [11:41:34]query_string will be loaded in cgi processing [11:41:34]execute_cgi json_proto POST (null) [11:41:34]execute_cgi path=json_proto method=POST [11:41:34]POST find Content-Length [11:41:34]Host: 172.17.63.3:8080 [11:41:34]Content-Length: 796 [11:41:34]Content-Type: application/json [11:41:34] [11:41:34]POST finish read [11:41:34]Found Content-Length = 796 [11:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4292897", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:34]execute_script... [11:41: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)99683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4292897", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:34]POST & json_proto [11:41:34]process_json_proto [11:41:34]json parsed OK: [11:41:34]protocol is kg_v1.0 [11:41:34]action value=close_receipt [11:41:34]process_action close_receipt [11:41:34]cmd_close_receipt [11:41:34]MH_GetDate [11:41:34]Write to MH i2c: F0 00 00 C6 19 CE [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 09 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: F0 09 00 C6 19 00 71 78 1F 67 50 D1 6C 64 37 [11:41:34]GetLastDocTimeStamp 1730115635 [11:41:34]current date 1730115697 [11:41:34]FM_GetShiftState [11:41:34]SAM_PROTO_GetShiftState [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 13 01 00 [11:41:34]Write to MH i2c: E2 08 00 C7 19 80 13 01 00 00 00 00 00 5D [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 C7 19 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4F [11:41:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_GetShiftState done [11:41:34]FM_GetShiftState done [11:41:34]opened in 1730075526 [11:41:34]opened+sec_in_day 1730161926 [11:41:34]quantity*price = 0 [11:41:34]sum+1 = 1 [11:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 85 28.10.2024 11:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4292897 ФМ: 0000000000871792 ФД: 156869 ФПД: 165316211868223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114137&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156869&fm=165316211868223&tin=02508201610067®Number=0000000000091693&sum=0 [11:41:35]StoreToDocumentArchive [11:41:35]shift 538 fd 156869 [11:41:35]save to /storage/0538/doc_00156869 [11:41:35]save last doc name /storage/0538/doc_00156869 to /storage/kkm_last_doc_name [11:41:35]save OK [11:41:35]Clear old archive folders... [11:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:41:35]tlvbuf is 01ACFB00 [11:41:35]SAM_PROTO_ClearQueue [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 09 00 00 [11:41:35]Write to MH i2c: E2 08 00 D4 19 80 09 00 00 00 00 00 00 5F [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 D4 19 00 90 00 61 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]SAM_PROTO_ClearQueue done [11:41:35]KKMCreateOFDPacket [11:41:35]OFDProtocolAddRootSTLVToBuf [11:41:35]FM_MakeSignedData [11:41:35]FM_MakeSignedData [11:41:35]SAM_PROTO_SignData [11:41:35]wFMCommunicate request_size=4 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 0D 01 02 [11:41:35]Write to MH i2c: E2 08 00 D5 19 80 0D 01 02 00 00 00 00 67 [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:35]Read from MH i2c: E2 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 [11:41:35]MH_I2C_Read... [11:41:35]Read from MH i2c: E2 03 00 D5 19 00 90 00 62 [11:41:35]RAPDU: 90 00 [11:41:35]wFMCommunicate OK [11:41:35]wFMCommunicate request_size=255 [11:41:35]MH_SAM_APDU [11:41:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 71 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 64 02 00 35 04 06 00 96 5A AE 15 [11:41:35]Write to MH i2c: E2 02 01 D6 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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 71 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 64 02 00 35 04 06 00 96 5A AE 15 00 00 BE [11:41:35]Write i2c OK [11:41:35]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [11:41:36]RAPDU: 90 00 [11:41:36]wFMCommunicate OK [11:41:36]wFMCommunicate request_size=7 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 0D 02 02 02 82 3F [11:41:36]Write to MH i2c: E2 0A 00 D7 19 80 0D 02 02 02 00 82 3F 00 00 2F [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:36]Read from MH i2c: E2 03 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [11:41:36]RAPDU: 90 00 [11:41:36]wFMCommunicate OK [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 0D 03 02 [11:41:36]Write to MH i2c: E2 08 00 D8 19 80 0D 03 02 00 00 00 00 6C [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0B 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0B 00 D8 19 00 CF 51 67 09 01 FA 4A 4A 90 00 8C [11:41:36]RAPDU: CF 51 67 09 01 FA 4A 4A 90 00 [11:41:36]wFMCommunicate OK [11:41:36]SAM_PROTO_SignData done [11:41:36]FM_MakeSignedData done [11:41:36]CreateOFDProtocolMessage [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 11 00 00 [11:41:36]Write to MH i2c: E2 08 00 D9 19 80 11 00 00 00 00 00 00 6C [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]OFD Sender: No OFD packet to send [11:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 D9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [11:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:41:36]wFMCommunicate OK [11:41:36]CreateOFDProtocolMessage done [11:41:36]OFDSenderStorePacket 156869 [11:41:36]StoreOFDPacket docnum=156869 [11:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5E 4E 04 01 D2 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 71 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 64 02 00 35 04 06 00 96 5A AE 15 82 3F CF 51 67 09 01 FA 4A 4A [11:41:36]CheckFolder [11:41:36]dirname=/storage/ofd_packets [11:41:36]CheckFolder done [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00156869 [11:41:36]NVStorageSaveData ofd_packets/00156869 [11:41:36]File name is /storage/ofd_packets/00156869 [11:41:36]Write 298 bytes [11:41:36]NVStorageSaveData done [11:41:36]OFDSenderStorePacket done [11:41:36]KKMCreateOFDPacket done [11:41:36]NVStorageSaveData kkm_last_timestamp [11:41:36]File name is /storage/kkm_last_timestamp [11:41:36]Write 4 bytes [11:41:36]NVStorageSaveData done [11:41:36]ExternCall_PrintAddStr [11:41:36]wPrintStart [11:41:36]Write to MH i2c: 01 00 00 DA 19 F3 [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 DA 19 00 00 00 00 00 FF 0F 08 [11:41:36]RasterBufferAndPrint [11:41:36]line Счет N : (1)99683 [11:41:36]line ИНН: 02508201610067 [11:41:36]line Контрольно-Кассовый Чек [11:41:36]line ПРОДАЖА [11:41:36]line ТРК (МРК, ГНК) : 32 [11:41:36]line Товар: 2710194210 [11:41:36]line ДТ-К-5 [11:41:36]line 10.000 * 0.00 [11:41:36]line = 0.00 [11:41:36]line НДС 12% НСП 1% [11:41:36]line > о реализуемом товаре [11:41:36]line ИТОГО: 0.00 [11:41:36]line НСП 1% : 0.00 [11:41:36]line НДС 12% : 0.00 [11:41:36]line Наличными: 0.00 [11:41:36]line Безнал.: 0.00 [11:41:36]line Место: АЗС № 143 "Партнер Нефть" [11:41:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:41:36]line СНО: Общий режим [11:41:36]line Чек 85 28.10.2024 11:41 [11:41:36]line Смена: 538 ФФД: 1.0 [11:41:36]line ЗНМ: 0300000096 [11:41:36]line РНМ: 0000000000091693 [11:41:36]line Версия ККМ: 001 [11:41:36]line Талоны: Топливные Талоны [11:41:36]line 4292897 [11:41:36]line ФМ: 0000000000871792 [11:41:36]line ФД: 156869 [11:41:36]line ФПД: 165316211868223 [11:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114137&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156869&fm=165316211868223&tin=02508201610067®Number=0000000000091693&sum=0 [11:41:36]written 0, free lines is 4095 [11:41:36]OFD Sender: Processing packet 156869 [packets to send 31, broken 30] [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00156869 [11:41:36]OFD Sender: To server: pG, [11:41:36]CommunicateWithHost lk.salyk.kg:30040 [11:41:36]ConnectInit lk.salyk.kg [11:41:36]Connected sock=11 [11:41: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 37 39 32 0C 01 00 00 5E 4E 04 01 D2 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 71 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 64 02 00 35 04 06 00 96 5A AE 15 82 3F CF 51 67 09 01 FA 4A 4A [11:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 B2 47 00 0C 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 37 39 32 10 04 04 00 C5 64 02 00 F4 03 04 00 DD 1D 1F 67 B6 04 01 00 00 25 EC BE 28 D6 C3 EF C8 [11:41:36]CommunicateWithHost err = 0 [11:41:36]CheckOFDResponse [11:41:36]1017 (14) - 77093643461234 [11:41:36]1041 (16) - 0000000000871792 [11:41:36]1040 (4) - 156869 [11:41:36]1012 (4) - 28.10.2024 05:15 [11:41:36]1206 (1) - 0 [11:41:36]OFD Sender: Remove packet 156869 [11:41:36]ProducePacketName [11:41:36]name=ofd_packets/00156869 [11:41:36]NVStorageDeleteData [11:41:36]Write to MH i2c: 01 00 00 04 1A 1E [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: 01 07 00 04 1A 00 00 00 00 00 ED 0C 1E [11:41:36]RasterBufferAndPrint [11:41:36]line [11:41:36]line [11:41:36]line [11:41:36]line [11:41:36]line [11:41:36]written 0, free lines is 3318 [11:41:36]process_action close_receipt done [11:41:36]requested_data is exist [11:41:36]produce_requested_data [11:41:36]requested_item fm.sn is exist - process it [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 11 00 00 [11:41:36]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [11:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:41:36]wFMCommunicate OK [11:41:36]requested_item fd.num is exist - process it [11:41:36]SAM_PROTO_GetFieldsCounters [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 13 00 00 [11:41:36]Write to MH i2c: E2 08 00 0C 1A 80 13 00 00 00 00 00 00 A2 [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 62 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 62 00 0C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 64 02 00 0E 04 04 00 1A 02 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 0E [11:41: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 64 02 00 0E 04 04 00 1A 02 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 [11:41:36]wFMCommunicate OK [11:41:36]SAM_PROTO_GetFieldsCounters done [11:41:36]requested_item shift.num is exist - process it [11:41:36]requested_item shift.opened is exist - process it [11:41:36]req_shift_opened [11:41:36]FM_GetShiftState [11:41:36]SAM_PROTO_GetShiftState [11:41:36]wFMCommunicate request_size=4 [11:41:36]MH_SAM_APDU [11:41:36]CAPDU: 80 13 01 00 [11:41:36]Write to MH i2c: E2 08 00 0D 1A 80 13 01 00 00 00 00 00 A4 [11:41:36]Write i2c OK [11:41:36]MH_I2C_Read... [11:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:36]Read from MH i2c: E2 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0E 00 [11:41:36]MH_I2C_Read... [11:41:36]Read from MH i2c: E2 0E 00 0D 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 96 [11:41:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:41:36]wFMCommunicate OK [11:41:36]SAM_PROTO_GetShiftState done [11:41:36]FM_GetShiftState done [11:41:36]req_shift_opened done [11:41:36]requested_item shift.open_date is exist - process it [11:41:36]req_shift_open_date [11:41:36]req_shift_open_date done [11:41:36]produce_requested_data done [11:41:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156869,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:41:36]process_action_free close_receipt [11:41:36]json_value_free [11:41:36]json_value_free done [11:41:36]process_json_proto returns [11:41:36]Send response to host [11:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156869,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:41:36]free response buf [11:41:36]execute_script done [11:41:36]execute_script returns [11:41:36]free content buf [11:41:36]Sock 9.Close socket [11:41:36]Sock 9.Thread stoped [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:16]accept exits with 10 [11:42:16]New connection [11:42:16]New thread 3066604900 created [11:42:16]Thread 3066748260 joined [11:42:16]Waiting for new connection... [11:42:16] Sock 10.Parse request [11:42:16]Sock 10.Check first char [11:42:16]Sock 10.First char is OK [11:42:16]request: POST /json_proto HTTP/1.0 [11:42:16]Method: POST [11:42:16]URL: /json_proto [11:42:16]Method is POST - this is cgi request [11:42:16]url: /json_proto [11:42:16]query_string will be loaded in cgi processing [11:42:16]execute_cgi json_proto POST (null) [11:42:16]execute_cgi path=json_proto method=POST [11:42:16]POST find Content-Length [11:42:16]Host: 172.17.63.3:8080 [11:42:16]Content-Length: 765 [11:42:16]Content-Type: application/json [11:42:16] [11:42:16]POST finish read [11:42:16]Found Content-Length = 765 [11:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:16]execute_script... [11:42: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)99684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:16]POST & json_proto [11:42:16]process_json_proto [11:42:16]json parsed OK: [11:42:16]protocol is kg_v1.0 [11:42:16]action value=close_receipt [11:42:16]process_action close_receipt [11:42:16]cmd_close_receipt [11:42:16]MH_GetDate [11:42:16]Write to MH i2c: F0 00 00 0E 1A 17 [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: F0 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: F0 09 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: F0 09 00 0E 1A 00 9B 78 1F 67 50 D1 6C 64 AA [11:42:16]GetLastDocTimeStamp 1730115697 [11:42:16]current date 1730115739 [11:42:16]FM_GetShiftState [11:42:16]SAM_PROTO_GetShiftState [11:42:16]wFMCommunicate request_size=4 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 13 01 00 [11:42:16]Write to MH i2c: E2 08 00 0F 1A 80 13 01 00 00 00 00 00 A6 [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 [11:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 0E 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 0E 00 0F 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 98 [11:42:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:42:16]wFMCommunicate OK [11:42:16]SAM_PROTO_GetShiftState done [11:42:16]FM_GetShiftState done [11:42:16]opened in 1730075526 [11:42:16]opened+sec_in_day 1730161926 [11:42:16]quantity*price = 40006 [11:42:16]sum+1 = 40007 [11:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 86 28.10.2024 11:42 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156870 ФПД: 164062490944713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114219&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156870&fm=164062490944713&tin=02508201610067®Number=0000000000091693&sum=40006 [11:42:17]StoreToDocumentArchive [11:42:17]shift 538 fd 156870 [11:42:17]save to /storage/0538/doc_00156870 [11:42:17]save last doc name /storage/0538/doc_00156870 to /storage/kkm_last_doc_name [11:42:17]save OK [11:42:17]Clear old archive folders... [11:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:17]tlvbuf is 01A75FE0 [11:42:17]SAM_PROTO_ClearQueue [11:42:17]wFMCommunicate request_size=4 [11:42:17]MH_SAM_APDU [11:42:17]CAPDU: 80 09 00 00 [11:42:17]Write to MH i2c: E2 08 00 1C 1A 80 09 00 00 00 00 00 00 A8 [11:42:17]Write i2c OK [11:42:17]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 1C 1A 00 90 00 AA [11:42:18]RAPDU: 90 00 [11:42:18]wFMCommunicate OK [11:42:18]SAM_PROTO_ClearQueue done [11:42:18]KKMCreateOFDPacket [11:42:18]OFDProtocolAddRootSTLVToBuf [11:42:18]FM_MakeSignedData [11:42:18]FM_MakeSignedData [11:42:18]SAM_PROTO_SignData [11:42:18]wFMCommunicate request_size=4 [11:42:18]MH_SAM_APDU [11:42:18]CAPDU: 80 0D 01 02 [11:42:18]Write to MH i2c: E2 08 00 1D 1A 80 0D 01 02 00 00 00 00 B0 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 1D 1A 00 90 00 AB [11:42:18]RAPDU: 90 00 [11:42:18]wFMCommunicate OK [11:42:18]wFMCommunicate request_size=255 [11:42:18]MH_SAM_APDU [11:42: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9B 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 64 02 00 35 04 06 00 95 [11:42:18]Write to MH i2c: E2 02 01 1E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9B 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 64 02 00 35 04 06 00 95 00 00 EB [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 1E 1A 00 90 00 AC [11:42:18]RAPDU: 90 00 [11:42:18]wFMCommunicate OK [11:42:18]wFMCommunicate request_size=10 [11:42:18]MH_SAM_APDU [11:42:18]CAPDU: 80 0D 02 02 05 36 C6 7E 64 C9 [11:42:18]Write to MH i2c: E2 0D 00 1F 1A 80 0D 02 02 05 00 36 C6 7E 64 C9 00 00 64 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 03 00 1F 1A 00 90 00 AD [11:42:18]RAPDU: 90 00 [11:42:18]wFMCommunicate OK [11:42:18]wFMCommunicate request_size=4 [11:42:18]MH_SAM_APDU [11:42:18]CAPDU: 80 0D 03 02 [11:42:18]Write to MH i2c: E2 08 00 20 1A 80 0D 03 02 00 00 00 00 B5 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 0B 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 0B 00 20 1A 00 2E 70 2E 91 FE 3B 5D D0 90 00 79 [11:42:18]RAPDU: 2E 70 2E 91 FE 3B 5D D0 90 00 [11:42:18]wFMCommunicate OK [11:42:18]SAM_PROTO_SignData done [11:42:18]FM_MakeSignedData done [11:42:18]CreateOFDProtocolMessage [11:42:18]wFMCommunicate request_size=4 [11:42:18]MH_SAM_APDU [11:42:18]CAPDU: 80 11 00 00 [11:42:18]Write to MH i2c: E2 08 00 21 1A 80 11 00 00 00 00 00 00 B5 [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:18]Read from MH i2c: E2 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: E2 17 00 [11:42:18]MH_I2C_Read... [11:42:18]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 37 39 32 90 00 0A [11:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:42:18]wFMCommunicate OK [11:42:18]CreateOFDProtocolMessage done [11:42:18]OFDSenderStorePacket 156870 [11:42:18]StoreOFDPacket docnum=156870 [11:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9B 39 07 01 D0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9B 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 64 02 00 35 04 06 00 95 36 C6 7E 64 C9 2E 70 2E 91 FE 3B 5D D0 [11:42:18]CheckFolder [11:42:18]dirname=/storage/ofd_packets [11:42:18]CheckFolder done [11:42:18]ProducePacketName [11:42:18]name=ofd_packets/00156870 [11:42:18]NVStorageSaveData ofd_packets/00156870 [11:42:18]File name is /storage/ofd_packets/00156870 [11:42:18]Write 301 bytes [11:42:18]NVStorageSaveData done [11:42:18]OFDSenderStorePacket done [11:42:18]KKMCreateOFDPacket done [11:42:18]NVStorageSaveData kkm_last_timestamp [11:42:18]File name is /storage/kkm_last_timestamp [11:42:18]Write 4 bytes [11:42:18]NVStorageSaveData done [11:42:18]ExternCall_PrintAddStr [11:42:18]wPrintStart [11:42:18]Write to MH i2c: 01 00 00 22 1A 3C [11:42:18]Write i2c OK [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 07 00 [11:42:18]MH_I2C_Read... [11:42:18]Read from MH i2c: 01 07 00 22 1A 00 00 00 00 00 FF 0F 51 [11:42:18]RasterBufferAndPrint [11:42:18]line Счет N : (1)99684 [11:42:18]line ИНН: 02508201610067 [11:42:18]line Контрольно-Кассовый Чек [11:42:18]line ПРОДАЖА [11:42:18]line ТРК (МРК, ГНК) : 31 [11:42:18]line Товар: 2710124130 [11:42:18]line Аи-92-К-5 [11:42:18]line 5.980 * 66.90 [11:42:18]line = 400.06 [11:42:18]line НДС 12% НСП 1% [11:42:18]line > о реализуемом товаре [11:42:18]line ИТОГО: 400.06 [11:42:18]line НСП 1% : 3.54 [11:42:18]line НДС 12% : 42.48 [11:42:18]line Наличными: 0.00 [11:42:18]line Безнал.: 400.06 [11:42:18]line Место: АЗС № 143 "Партнер Нефть" [11:42:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:42:18]line СНО: Общий режим [11:42:18]line Чек 86 28.10.2024 11:42 [11:42:18]line Смена: 538 ФФД: 1.0 [11:42:18]line ЗНМ: 0300000096 [11:42:18]line РНМ: 0000000000091693 [11:42:18]line Версия ККМ: 001 [11:42:18]line Платежная система: Mbank [11:42:18]line ФМ: 0000000000871792 [11:42:18]line ФД: 156870 [11:42:18]line ФПД: 164062490944713 [11:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114219&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156870&fm=164062490944713&tin=02508201610067®Number=0000000000091693&sum=40006 [11:42:18]OFD Sender: Processing packet 156870 [packets to send 31, broken 30] [11:42:18]ProducePacketName [11:42:18]name=ofd_packets/00156870 [11:42:18]OFD Sender: To server: pG, [11:42:18]CommunicateWithHost lk.salyk.kg:30040 [11:42:18]ConnectInit lk.salyk.kg [11:42:18]written 0, free lines is 4095 [11:42:18]Connected sock=11 [11:42: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 37 39 32 0F 01 00 00 9B 39 07 01 D0 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 9B 78 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 64 02 00 35 04 06 00 95 36 C6 7E 64 C9 2E 70 2E 91 FE 3B 5D D0 [11:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 88 A2 47 00 9F C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 64 02 00 F4 03 04 00 07 1E 1F 67 B6 04 01 00 00 9A D7 EF FB EE 11 78 8C [11:42:19]CommunicateWithHost err = 0 [11:42:19]CheckOFDResponse [11:42:19]1017 (14) - 77093643461234 [11:42:19]1041 (16) - 0000000000871792 [11:42:19]1040 (4) - 156870 [11:42:19]1012 (4) - 28.10.2024 05:15 [11:42:19]1206 (1) - 0 [11:42:19]OFD Sender: Remove packet 156870 [11:42:19]ProducePacketName [11:42:19]name=ofd_packets/00156870 [11:42:19]NVStorageDeleteData [11:42:19]Write to MH i2c: 01 00 00 4B 1A 65 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: 01 07 00 4B 1A 00 00 00 00 00 20 0D 99 [11:42:19]RasterBufferAndPrint [11:42:19]line [11:42:19]line [11:42:19]line [11:42:19]line [11:42:19]line [11:42:19]written 0, free lines is 3379 [11:42:19]process_action close_receipt done [11:42:19]requested_data is exist [11:42:19]produce_requested_data [11:42:19]requested_item fm.sn is exist - process it [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 11 00 00 [11:42:19]Write to MH i2c: E2 08 00 52 1A 80 11 00 00 00 00 00 00 E6 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 17 00 52 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [11:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:42:19]wFMCommunicate OK [11:42:19]requested_item fd.num is exist - process it [11:42:19]SAM_PROTO_GetFieldsCounters [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 00 00 [11:42:19]Write to MH i2c: E2 08 00 53 1A 80 13 00 00 00 00 00 00 E9 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 62 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 62 00 53 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 64 02 00 0E 04 04 00 1A 02 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 59 [11:42: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 64 02 00 0E 04 04 00 1A 02 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 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_GetFieldsCounters done [11:42:19]requested_item shift.num is exist - process it [11:42:19]requested_item shift.opened is exist - process it [11:42:19]req_shift_opened [11:42:19]FM_GetShiftState [11:42:19]SAM_PROTO_GetShiftState [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 01 00 [11:42:19]Write to MH i2c: E2 08 00 54 1A 80 13 01 00 00 00 00 00 EB [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:19]Read from MH i2c: E2 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: E2 0E 00 54 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DD [11:42:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:42:19]wFMCommunicate OK [11:42:19]SAM_PROTO_GetShiftState done [11:42:19]FM_GetShiftState done [11:42:19]req_shift_opened done [11:42:19]requested_item shift.open_date is exist - process it [11:42:19]req_shift_open_date [11:42:19]req_shift_open_date done [11:42:19]produce_requested_data done [11:42:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156870,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:42:19]process_action_free close_receipt [11:42:19]json_value_free [11:42:19]json_value_free done [11:42:19]process_json_proto returns [11:42:19]Send response to host [11:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156870,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:42:19]free response buf [11:42:19]execute_script done [11:42:19]execute_script returns [11:42:19]free content buf [11:42:19]Sock 10.Close socket [11:42:19]Sock 10.Thread stoped [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:56]ConnectInit Can't connect to host [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:18]accept exits with 9 [11:44:18]New connection [11:44:18]New thread 3066748260 created [11:44:18]Thread 3066604900 joined [11:44:18]Waiting for new connection... [11:44:18] Sock 9.Parse request [11:44:18]Sock 9.Check first char [11:44:18]Sock 9.First char is OK [11:44:18]request: POST /json_proto HTTP/1.0 [11:44:18]Method: POST [11:44:18]URL: /json_proto [11:44:18]Method is POST - this is cgi request [11:44:18]url: /json_proto [11:44:18]query_string will be loaded in cgi processing [11:44:18]execute_cgi json_proto POST (null) [11:44:18]execute_cgi path=json_proto method=POST [11:44:18]POST find Content-Length [11:44:18]Host: 172.17.63.3:8080 [11:44:18]Content-Length: 765 [11:44:18]Content-Type: application/json [11:44:18] [11:44:18]POST finish read [11:44:18]Found Content-Length = 765 [11:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:18]execute_script... [11:44: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)99685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.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: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:18]POST & json_proto [11:44:18]process_json_proto [11:44:18]json parsed OK: [11:44:18]protocol is kg_v1.0 [11:44:18]action value=close_receipt [11:44:18]process_action close_receipt [11:44:18]cmd_close_receipt [11:44:18]MH_GetDate [11:44:18]Write to MH i2c: F0 00 00 55 1A 5E [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: F0 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: F0 09 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: F0 09 00 55 1A 00 15 79 1F 67 50 D1 6C 64 6C [11:44:18]GetLastDocTimeStamp 1730115739 [11:44:18]current date 1730115861 [11:44:18]FM_GetShiftState [11:44:18]SAM_PROTO_GetShiftState [11:44:18]wFMCommunicate request_size=4 [11:44:18]MH_SAM_APDU [11:44:18]CAPDU: 80 13 01 00 [11:44:18]Write to MH i2c: E2 08 00 56 1A 80 13 01 00 00 00 00 00 ED [11:44:18]Write i2c OK [11:44:18]MH_I2C_Read... [11:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:18]Read from MH i2c: E2 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: E2 0E 00 [11:44:18]MH_I2C_Read... [11:44:18]Read from MH i2c: E2 0E 00 56 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DF [11:44:18]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:44:18]wFMCommunicate OK [11:44:18]SAM_PROTO_GetShiftState done [11:44:18]FM_GetShiftState done [11:44:18]opened in 1730075526 [11:44:18]opened+sec_in_day 1730161926 [11:44:18]quantity*price = 50041 [11:44:18]sum+1 = 50042 [11:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 87 28.10.2024 11:44 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156871 ФПД: 156710073957533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156871&fm=156710073957533&tin=02508201610067®Number=0000000000091693&sum=50041 [11:44:20]StoreToDocumentArchive [11:44:20]shift 538 fd 156871 [11:44:20]save to /storage/0538/doc_00156871 [11:44:20]save last doc name /storage/0538/doc_00156871 to /storage/kkm_last_doc_name [11:44:20]save OK [11:44:20]Clear old archive folders... [11:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:20]tlvbuf is 01A98F70 [11:44:20]SAM_PROTO_ClearQueue [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 09 00 00 [11:44:20]Write to MH i2c: E2 08 00 63 1A 80 09 00 00 00 00 00 00 EF [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 63 1A 00 90 00 F1 [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]SAM_PROTO_ClearQueue done [11:44:20]KKMCreateOFDPacket [11:44:20]OFDProtocolAddRootSTLVToBuf [11:44:20]FM_MakeSignedData [11:44:20]FM_MakeSignedData [11:44:20]SAM_PROTO_SignData [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 01 02 [11:44:20]Write to MH i2c: E2 08 00 64 1A 80 0D 01 02 00 00 00 00 F7 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 64 1A 00 90 00 F2 [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=255 [11:44:20]MH_SAM_APDU [11:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 64 02 00 35 04 06 00 8E [11:44:20]Write to MH i2c: E2 02 01 65 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 64 02 00 35 04 06 00 8E 00 00 1F [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 65 1A 00 90 00 F3 [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=10 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 02 02 05 86 E8 4A 7C 9D [11:44:20]Write to MH i2c: E2 0D 00 66 1A 80 0D 02 02 05 00 86 E8 4A 7C 9D 00 00 D5 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 03 00 66 1A 00 90 00 F4 [11:44:20]RAPDU: 90 00 [11:44:20]wFMCommunicate OK [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 0D 03 02 [11:44:20]Write to MH i2c: E2 08 00 67 1A 80 0D 03 02 00 00 00 00 FC [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 0B 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 0B 00 67 1A 00 96 AD 93 4C D0 68 51 24 90 00 CC [11:44:20]RAPDU: 96 AD 93 4C D0 68 51 24 90 00 [11:44:20]wFMCommunicate OK [11:44:20]SAM_PROTO_SignData done [11:44:20]FM_MakeSignedData done [11:44:20]CreateOFDProtocolMessage [11:44:20]wFMCommunicate request_size=4 [11:44:20]MH_SAM_APDU [11:44:20]CAPDU: 80 11 00 00 [11:44:20]Write to MH i2c: E2 08 00 68 1A 80 11 00 00 00 00 00 00 FC [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:20]Read from MH i2c: E2 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 17 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: E2 17 00 68 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 51 [11:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:44:20]wFMCommunicate OK [11:44:20]CreateOFDProtocolMessage done [11:44:20]OFDSenderStorePacket 156871 [11:44:20]StoreOFDPacket docnum=156871 [11:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E F4 07 01 FC E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 64 02 00 35 04 06 00 8E 86 E8 4A 7C 9D 96 AD 93 4C D0 68 51 24 [11:44:20]CheckFolder [11:44:20]dirname=/storage/ofd_packets [11:44:20]CheckFolder done [11:44:20]ProducePacketName [11:44:20]name=ofd_packets/00156871 [11:44:20]NVStorageSaveData ofd_packets/00156871 [11:44:20]File name is /storage/ofd_packets/00156871 [11:44:20]Write 301 bytes [11:44:20]NVStorageSaveData done [11:44:20]OFDSenderStorePacket done [11:44:20]KKMCreateOFDPacket done [11:44:20]NVStorageSaveData kkm_last_timestamp [11:44:20]File name is /storage/kkm_last_timestamp [11:44:20]Write 4 bytes [11:44:20]NVStorageSaveData done [11:44:20]ExternCall_PrintAddStr [11:44:20]wPrintStart [11:44:20]Write to MH i2c: 01 00 00 69 1A 83 [11:44:20]Write i2c OK [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 07 00 [11:44:20]MH_I2C_Read... [11:44:20]Read from MH i2c: 01 07 00 69 1A 00 00 00 00 00 FF 0F 98 [11:44:20]RasterBufferAndPrint [11:44:20]line Счет N : (1)99685 [11:44:20]line ИНН: 02508201610067 [11:44:20]line Контрольно-Кассовый Чек [11:44:20]line ПРОДАЖА [11:44:20]line ТРК (МРК, ГНК) : 31 [11:44:20]line Товар: 2710124130 [11:44:20]line Аи-92-К-5 [11:44:20]line 7.480 * 66.90 [11:44:20]line = 500.41 [11:44:20]line НДС 12% НСП 1% [11:44:20]line > о реализуемом товаре [11:44:20]line ИТОГО: 500.41 [11:44:20]line НСП 1% : 4.43 [11:44:20]line НДС 12% : 53.14 [11:44:20]line Наличными: 0.00 [11:44:20]line Безнал.: 500.41 [11:44:20]line Место: АЗС № 143 "Партнер Нефть" [11:44:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:44:20]line СНО: Общий режим [11:44:20]line Чек 87 28.10.2024 11:44 [11:44:20]line Смена: 538 ФФД: 1.0 [11:44:20]line ЗНМ: 0300000096 [11:44:20]line РНМ: 0000000000091693 [11:44:20]line Версия ККМ: 001 [11:44:20]line Платежная система: Mbank [11:44:20]line ФМ: 0000000000871792 [11:44:20]line ФД: 156871 [11:44:20]line ФПД: 156710073957533 [11:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114421&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156871&fm=156710073957533&tin=02508201610067®Number=0000000000091693&sum=50041 [11:44:20]written 0, free lines is 4095 [11:44:20]OFD Sender: Processing packet 156871 [packets to send 31, broken 30] [11:44:20]ProducePacketName [11:44:20]name=ofd_packets/00156871 [11:44:20]OFD Sender: To server: pG, [11:44:20]CommunicateWithHost lk.salyk.kg:30040 [11:44:20]ConnectInit lk.salyk.kg [11:44:21]Write to MH i2c: 01 00 00 92 1A AC [11:44:21]Connected sock=11 [11:44: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 37 39 32 0F 01 00 00 2E F4 07 01 FC E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 15 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 64 02 00 35 04 06 00 8E 86 E8 4A 7C 9D 96 AD 93 4C D0 68 51 24 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: 01 07 00 92 1A 00 00 00 00 00 FB 0C BA [11:44:21]RasterBufferAndPrint [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]line [11:44:21]written 0, free lines is 3339 [11:44:21]process_action close_receipt done [11:44:21]requested_data is exist [11:44:21]produce_requested_data [11:44:21]requested_item fm.sn is exist - process it [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 11 00 00 [11:44:21]Write to MH i2c: E2 08 00 99 1A 80 11 00 00 00 00 00 00 2D [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:21]Read from MH i2c: E2 17 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 17 00 99 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [11:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:44:21]wFMCommunicate OK [11:44:21]requested_item fd.num is exist - process it [11:44:21]SAM_PROTO_GetFieldsCounters [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 13 00 00 [11:44:21]Write to MH i2c: E2 08 00 9A 1A 80 13 00 00 00 00 00 00 30 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F0 16 47 00 AD 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 37 39 32 10 04 04 00 C7 64 02 00 F4 03 04 00 82 1E 1F 67 B6 04 01 00 00 24 9A 90 A2 94 12 A6 94 [11:44:21]CommunicateWithHost err = 0 [11:44:21]CheckOFDResponse [11:44:21]1017 (14) - 77093643461234 [11:44:21]1041 (16) - 0000000000871792 [11:44:21]1040 (4) - 156871 [11:44:21]1012 (4) - 28.10.2024 05:17 [11:44:21]1206 (1) - 0 [11:44:21]OFD Sender: Remove packet 156871 [11:44:21]ProducePacketName [11:44:21]name=ofd_packets/00156871 [11:44:21]NVStorageDeleteData [11:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 62 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 62 00 9A 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 64 02 00 0E 04 04 00 1A 02 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 A4 [11:44: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 64 02 00 0E 04 04 00 1A 02 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 [11:44:21]wFMCommunicate OK [11:44:21]SAM_PROTO_GetFieldsCounters done [11:44:21]requested_item shift.num is exist - process it [11:44:21]requested_item shift.opened is exist - process it [11:44:21]req_shift_opened [11:44:21]FM_GetShiftState [11:44:21]SAM_PROTO_GetShiftState [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 13 01 00 [11:44:21]Write to MH i2c: E2 08 00 9B 1A 80 13 01 00 00 00 00 00 32 [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 9B 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 24 [11:44:21]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:44:21]wFMCommunicate OK [11:44:21]SAM_PROTO_GetShiftState done [11:44:21]FM_GetShiftState done [11:44:21]req_shift_opened done [11:44:21]requested_item shift.open_date is exist - process it [11:44:21]req_shift_open_date [11:44:21]req_shift_open_date done [11:44:21]produce_requested_data done [11:44:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156871,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:44:21]process_action_free close_receipt [11:44:21]json_value_free [11:44:21]json_value_free done [11:44:21]process_json_proto returns [11:44:21]Send response to host [11:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156871,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:44:21]free response buf [11:44:21]execute_script done [11:44:21]execute_script returns [11:44:21]free content buf [11:44:21]Sock 9.Close socket [11:44:21]Sock 9.Thread stoped [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:35]int [11:45:35]Write to MH i2c: 01 00 00 9C 1A B6 [11:45:35]*** FLAG_PRN_KEY set [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 9C 1A 00 08 00 00 00 FF 0F D3 [11:45:35]state=0 [11:45:35]Key pressed [11:45:35]Feed [11:45:35]Write to MH i2c: D8 00 00 9D 1A 8E [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: D8 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: D8 01 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: D8 01 00 9D 1A 00 8F [11:45:35]int [11:45:35]Write to MH i2c: 01 00 00 9E 1A B8 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 9E 1A 00 48 00 00 00 3D 00 44 [11:45:35]state=2 [11:45:35]Key pressed [11:45:36]int [11:45:36]Write to MH i2c: 01 00 00 9F 1A B9 [11:45:36]*** FLAG_PRN_KEY reset [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 9F 1A 00 00 00 00 00 F6 0F C5 [11:45:36]state=2 [11:45:36]Stop feed [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]accept exits with 7 [11:47:41]New connection [11:47:41]New thread 3066604900 created [11:47:41]Thread 3066748260 joined [11:47:41]Waiting for new connection... [11:47:41] Sock 7.Parse request [11:47:41]Sock 7.Check first char [11:47:41]Sock 7.First char is OK [11:47:41]request: POST /json_proto HTTP/1.0 [11:47:41]Method: POST [11:47:41]URL: /json_proto [11:47:41]Method is POST - this is cgi request [11:47:41]url: /json_proto [11:47:41]query_string will be loaded in cgi processing [11:47:41]execute_cgi json_proto POST (null) [11:47:41]execute_cgi path=json_proto method=POST [11:47:41]POST find Content-Length [11:47:41]Host: 172.17.63.3:8080 [11:47:41]Content-Length: 768 [11:47:41]Content-Type: application/json [11:47:41] [11:47:41]POST finish read [11:47:41]Found Content-Length = 768 [11:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:41]execute_script... [11:47: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)99686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:41]POST & json_proto [11:47:41]process_json_proto [11:47:41]json parsed OK: [11:47:41]protocol is kg_v1.0 [11:47:41]action value=close_receipt [11:47:41]process_action close_receipt [11:47:41]cmd_close_receipt [11:47:41]MH_GetDate [11:47:41]Write to MH i2c: F0 00 00 A0 1A A9 [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 09 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: F0 09 00 A0 1A 00 DF 79 1F 67 50 D1 6C 64 81 [11:47:41]GetLastDocTimeStamp 1730115861 [11:47:41]current date 1730116063 [11:47:41]FM_GetShiftState [11:47:41]SAM_PROTO_GetShiftState [11:47:41]wFMCommunicate request_size=4 [11:47:41]MH_SAM_APDU [11:47:41]CAPDU: 80 13 01 00 [11:47:41]Write to MH i2c: E2 08 00 A1 1A 80 13 01 00 00 00 00 00 38 [11:47:41]Write i2c OK [11:47:41]MH_I2C_Read... [11:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:41]Read from MH i2c: E2 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: E2 0E 00 [11:47:41]MH_I2C_Read... [11:47:41]Read from MH i2c: E2 0E 00 A1 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 2A [11:47:41]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:47:41]wFMCommunicate OK [11:47:41]SAM_PROTO_GetShiftState done [11:47:41]FM_GetShiftState done [11:47:41]opened in 1730075526 [11:47:41]opened+sec_in_day 1730161926 [11:47:41]quantity*price = 100015 [11:47:41]sum+1 = 100017 [11:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 88 28.10.2024 11:47 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156872 ФПД: 40526742194990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156872&fm=40526742194990&tin=02508201610067®Number=0000000000091693&sum=100016 [11:47:42]StoreToDocumentArchive [11:47:42]shift 538 fd 156872 [11:47:42]save to /storage/0538/doc_00156872 [11:47:42]save last doc name /storage/0538/doc_00156872 to /storage/kkm_last_doc_name [11:47:42]save OK [11:47:42]Clear old archive folders... [11:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:42]tlvbuf is B6E8F920 [11:47:42]SAM_PROTO_ClearQueue [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 09 00 00 [11:47:42]Write to MH i2c: E2 08 00 AE 1A 80 09 00 00 00 00 00 00 3A [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 AE 1A 00 90 00 3C [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]SAM_PROTO_ClearQueue done [11:47:42]KKMCreateOFDPacket [11:47:42]OFDProtocolAddRootSTLVToBuf [11:47:42]FM_MakeSignedData [11:47:42]FM_MakeSignedData [11:47:42]SAM_PROTO_SignData [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 0D 01 02 [11:47:42]Write to MH i2c: E2 08 00 AF 1A 80 0D 01 02 00 00 00 00 42 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 AF 1A 00 90 00 3D [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]wFMCommunicate request_size=255 [11:47:42]MH_SAM_APDU [11:47: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DF 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 64 02 00 35 04 06 00 24 [11:47:42]Write to MH i2c: E2 02 01 B0 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DF 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 64 02 00 35 04 06 00 24 00 00 94 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 B0 1A 00 90 00 3E [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]wFMCommunicate request_size=10 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 0D 02 02 05 DB DE 12 8B 2E [11:47:42]Write to MH i2c: E2 0D 00 B1 1A 80 0D 02 02 05 00 DB DE 12 8B 2E 00 00 D3 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 03 00 B1 1A 00 90 00 3F [11:47:42]RAPDU: 90 00 [11:47:42]wFMCommunicate OK [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 0D 03 02 [11:47:42]Write to MH i2c: E2 08 00 B2 1A 80 0D 03 02 00 00 00 00 47 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 0B 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 0B 00 B2 1A 00 A1 4D F3 C6 98 D6 79 CB 90 00 A1 [11:47:42]RAPDU: A1 4D F3 C6 98 D6 79 CB 90 00 [11:47:42]wFMCommunicate OK [11:47:42]SAM_PROTO_SignData done [11:47:42]FM_MakeSignedData done [11:47:42]CreateOFDProtocolMessage [11:47:42]wFMCommunicate request_size=4 [11:47:42]MH_SAM_APDU [11:47:42]CAPDU: 80 11 00 00 [11:47:42]Write to MH i2c: E2 08 00 B3 1A 80 11 00 00 00 00 00 00 47 [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:42]Read from MH i2c: E2 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 17 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: E2 17 00 B3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [11:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:47:42]wFMCommunicate OK [11:47:42]CreateOFDProtocolMessage done [11:47:42]OFDSenderStorePacket 156872 [11:47:42]StoreOFDPacket docnum=156872 [11:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 87 07 01 30 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DF 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 64 02 00 35 04 06 00 24 DB DE 12 8B 2E A1 4D F3 C6 98 D6 79 CB [11:47:42]CheckFolder [11:47:42]dirname=/storage/ofd_packets [11:47:42]CheckFolder done [11:47:42]ProducePacketName [11:47:42]name=ofd_packets/00156872 [11:47:42]NVStorageSaveData ofd_packets/00156872 [11:47:42]File name is /storage/ofd_packets/00156872 [11:47:42]Write 301 bytes [11:47:42]NVStorageSaveData done [11:47:42]OFDSenderStorePacket done [11:47:42]KKMCreateOFDPacket done [11:47:42]NVStorageSaveData kkm_last_timestamp [11:47:42]File name is /storage/kkm_last_timestamp [11:47:42]Write 4 bytes [11:47:42]NVStorageSaveData done [11:47:42]ExternCall_PrintAddStr [11:47:42]wPrintStart [11:47:42]Write to MH i2c: 01 00 00 B4 1A CE [11:47:42]Write i2c OK [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: 01 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: 01 07 00 [11:47:42]MH_I2C_Read... [11:47:42]Read from MH i2c: 01 07 00 B4 1A 00 00 00 00 00 FF 0F E3 [11:47:42]RasterBufferAndPrint [11:47:42]line Счет N : (1)99686 [11:47:42]line ИНН: 02508201610067 [11:47:42]line Контрольно-Кассовый Чек [11:47:42]line ПРОДАЖА [11:47:42]line ТРК (МРК, ГНК) : 31 [11:47:42]line Товар: 2710124130 [11:47:42]line Аи-92-К-5 [11:47:42]line 14.950 * 66.90 [11:47:42]line = 1000.16 [11:47:42]line НДС 12% НСП 1% [11:47:42]line > о реализуемом товаре [11:47:42]line ИТОГО: 1000.16 [11:47:42]line НСП 1% : 8.85 [11:47:42]line НДС 12% : 106.21 [11:47:42]line Наличными: 0.00 [11:47:42]line Безнал.: 1000.16 [11:47:42]line Место: АЗС № 143 "Партнер Нефть" [11:47:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:47:42]line СНО: Общий режим [11:47:42]line Чек 88 28.10.2024 11:47 [11:47:42]line Смена: 538 ФФД: 1.0 [11:47:42]line ЗНМ: 0300000096 [11:47:42]line РНМ: 0000000000091693 [11:47:42]line Версия ККМ: 001 [11:47:42]line Платежная система: Mbank [11:47:42]line ФМ: 0000000000871792 [11:47:43]line ФД: 156872 [11:47:43]line ФПД: 40526742194990 [11:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156872&fm=40526742194990&tin=02508201610067®Number=0000000000091693&sum=100016 [11:47:43]OFD Sender: Processing packet 156872 [packets to send 31, broken 30] [11:47:43]ProducePacketName [11:47:43]name=ofd_packets/00156872 [11:47:43]OFD Sender: To server: pG, [11:47:43]CommunicateWithHost lk.salyk.kg:30040 [11:47:43]ConnectInit lk.salyk.kg [11:47:43]written 0, free lines is 4095 [11:47:43]Connected sock=10 [11:47: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 37 39 32 0F 01 00 00 23 87 07 01 30 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DF 79 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 64 02 00 35 04 06 00 24 DB DE 12 8B 2E A1 4D F3 C6 98 D6 79 CB [11:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 64 D4 47 00 8E 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 37 39 32 10 04 04 00 C8 64 02 00 F4 03 04 00 4C 1F 1F 67 B6 04 01 00 00 73 F9 B2 F7 1E F1 17 EC [11:47:43]CommunicateWithHost err = 0 [11:47:43]CheckOFDResponse [11:47:43]1017 (14) - 77093643461234 [11:47:43]1041 (16) - 0000000000871792 [11:47:43]1040 (4) - 156872 [11:47:43]1012 (4) - 28.10.2024 05:21 [11:47:43]1206 (1) - 0 [11:47:43]OFD Sender: Remove packet 156872 [11:47:43]ProducePacketName [11:47:43]name=ofd_packets/00156872 [11:47:43]NVStorageDeleteData [11:47:43]Write to MH i2c: 01 00 00 DD 1A F7 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: 01 07 00 DD 1A 00 00 00 00 00 09 0D 14 [11:47:43]RasterBufferAndPrint [11:47:43]line [11:47:43]line [11:47:43]line [11:47:43]line [11:47:43]line [11:47:43]written 0, free lines is 3344 [11:47:43]process_action close_receipt done [11:47:43]requested_data is exist [11:47:43]produce_requested_data [11:47:43]requested_item fm.sn is exist - process it [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 11 00 00 [11:47:43]Write to MH i2c: E2 08 00 E4 1A 80 11 00 00 00 00 00 00 78 [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 17 00 E4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [11:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:47:43]wFMCommunicate OK [11:47:43]requested_item fd.num is exist - process it [11:47:43]SAM_PROTO_GetFieldsCounters [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 13 00 00 [11:47:43]Write to MH i2c: E2 08 00 E5 1A 80 13 00 00 00 00 00 00 7B [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 62 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 62 00 E5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 64 02 00 0E 04 04 00 1A 02 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 F3 [11:47: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 64 02 00 0E 04 04 00 1A 02 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 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_GetFieldsCounters done [11:47:43]requested_item shift.num is exist - process it [11:47:43]requested_item shift.opened is exist - process it [11:47:43]req_shift_opened [11:47:43]FM_GetShiftState [11:47:43]SAM_PROTO_GetShiftState [11:47:43]wFMCommunicate request_size=4 [11:47:43]MH_SAM_APDU [11:47:43]CAPDU: 80 13 01 00 [11:47:43]Write to MH i2c: E2 08 00 E6 1A 80 13 01 00 00 00 00 00 7D [11:47:43]Write i2c OK [11:47:43]MH_I2C_Read... [11:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:43]Read from MH i2c: E2 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0E 00 [11:47:43]MH_I2C_Read... [11:47:43]Read from MH i2c: E2 0E 00 E6 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6F [11:47:43]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:47:43]wFMCommunicate OK [11:47:43]SAM_PROTO_GetShiftState done [11:47:43]FM_GetShiftState done [11:47:43]req_shift_opened done [11:47:43]requested_item shift.open_date is exist - process it [11:47:43]req_shift_open_date [11:47:43]req_shift_open_date done [11:47:43]produce_requested_data done [11:47:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156872,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:47:43]process_action_free close_receipt [11:47:43]json_value_free [11:47:43]json_value_free done [11:47:43]process_json_proto returns [11:47:43]Send response to host [11:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156872,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:47:43]free response buf [11:47:43]execute_script done [11:47:43]execute_script returns [11:47:43]free content buf [11:47:43]Sock 7.Close socket [11:47:43]Sock 7.Thread stoped [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:30]accept exits with 9 [11:48:30]New connection [11:48:30]New thread 3066748260 created [11:48:30]Thread 3066604900 joined [11:48:30]Waiting for new connection... [11:48:30] Sock 9.Parse request [11:48:30]Sock 9.Check first char [11:48:30]Sock 9.First char is OK [11:48:30]request: POST /json_proto HTTP/1.0 [11:48:30]Method: POST [11:48:30]URL: /json_proto [11:48:30]Method is POST - this is cgi request [11:48:30]url: /json_proto [11:48:30]query_string will be loaded in cgi processing [11:48:30]execute_cgi json_proto POST (null) [11:48:30]execute_cgi path=json_proto method=POST [11:48:30]POST find Content-Length [11:48:30]Host: 172.17.63.3:8080 [11:48:30]Content-Length: 676 [11:48:30]Content-Type: application/json [11:48:30] [11:48:30]POST finish read [11:48:30]Found Content-Length = 676 [11:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:30]execute_script... [11:48: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)99687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:30]POST & json_proto [11:48:30]process_json_proto [11:48:30]json parsed OK: [11:48:30]protocol is kg_v1.0 [11:48:30]action value=close_receipt [11:48:30]process_action close_receipt [11:48:30]cmd_close_receipt [11:48:30]MH_GetDate [11:48:30]Write to MH i2c: F0 00 00 E7 1A F0 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 09 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 09 00 E7 1A 00 10 7A 1F 67 50 D1 6C 64 FA [11:48:30]GetLastDocTimeStamp 1730116063 [11:48:30]current date 1730116112 [11:48:30]FM_GetShiftState [11:48:30]SAM_PROTO_GetShiftState [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 01 00 [11:48:30]Write to MH i2c: E2 08 00 E8 1A 80 13 01 00 00 00 00 00 7F [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 E8 1A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 71 [11:48:30]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_GetShiftState done [11:48:30]FM_GetShiftState done [11:48:30]opened in 1730075526 [11:48:30]opened+sec_in_day 1730161926 [11:48:30]quantity*price = 50041 [11:48:30]sum+1 = 50042 [11:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 89 28.10.2024 11:48 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156873 ФПД: 125482391513162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156873&fm=125482391513162&tin=02508201610067®Number=0000000000091693&sum=50000 [11:48:31]StoreToDocumentArchive [11:48:31]shift 538 fd 156873 [11:48:31]save to /storage/0538/doc_00156873 [11:48:31]save last doc name /storage/0538/doc_00156873 to /storage/kkm_last_doc_name [11:48:31]save OK [11:48:31]Clear old archive folders... [11:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:31]tlvbuf is B6E763D0 [11:48:31]SAM_PROTO_ClearQueue [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 09 00 00 [11:48:31]Write to MH i2c: E2 08 00 F5 1A 80 09 00 00 00 00 00 00 81 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]SAM_PROTO_ClearQueue done [11:48:31]KKMCreateOFDPacket [11:48:31]OFDProtocolAddRootSTLVToBuf [11:48:31]FM_MakeSignedData [11:48:31]FM_MakeSignedData [11:48:31]SAM_PROTO_SignData [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 01 02 [11:48:31]Write to MH i2c: E2 08 00 F6 1A 80 0D 01 02 00 00 00 00 89 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=255 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 59 00 00 00 F4 03 04 00 11 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 64 02 00 35 04 06 00 72 [11:48:31]Write to MH i2c: E2 02 01 F7 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 59 00 00 00 F4 03 04 00 11 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 64 02 00 35 04 06 00 72 00 00 44 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=10 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 02 02 05 20 25 5F 28 4A [11:48:31]Write to MH i2c: E2 0D 00 F8 1A 80 0D 02 02 05 00 20 25 5F 28 4A 00 00 AC [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 03 02 [11:48:31]Write to MH i2c: E2 08 00 F9 1A 80 0D 03 02 00 00 00 00 8E [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0B 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0B 00 F9 1A 00 A4 B7 6A 92 9B D7 F1 1E 90 00 67 [11:48:31]RAPDU: A4 B7 6A 92 9B D7 F1 1E 90 00 [11:48:31]wFMCommunicate OK [11:48:31]SAM_PROTO_SignData done [11:48:31]FM_MakeSignedData done [11:48:31]CreateOFDProtocolMessage [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 11 00 00 [11:48:31]Write to MH i2c: E2 08 00 FA 1A 80 11 00 00 00 00 00 00 8E [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 17 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 17 00 FA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E3 [11:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:31]wFMCommunicate OK [11:48:31]CreateOFDProtocolMessage done [11:48:31]OFDSenderStorePacket 156873 [11:48:31]StoreOFDPacket docnum=156873 [11:48:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 37 AC 07 01 7F 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 59 00 00 00 F4 03 04 00 11 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 64 02 00 35 04 06 00 72 20 25 5F 28 4A A4 B7 6A 92 9B D7 F1 1E [11:48:31]CheckFolder [11:48:31]dirname=/storage/ofd_packets [11:48:31]CheckFolder done [11:48:31]ProducePacketName [11:48:31]name=ofd_packets/00156873 [11:48:31]NVStorageSaveData ofd_packets/00156873 [11:48:31]File name is /storage/ofd_packets/00156873 [11:48:31]Write 301 bytes [11:48:31]NVStorageSaveData done [11:48:31]OFDSenderStorePacket done [11:48:31]KKMCreateOFDPacket done [11:48:31]NVStorageSaveData kkm_last_timestamp [11:48:31]File name is /storage/kkm_last_timestamp [11:48:31]Write 4 bytes [11:48:31]NVStorageSaveData done [11:48:31]ExternCall_PrintAddStr [11:48:31]wPrintStart [11:48:31]Write to MH i2c: 01 00 00 FB 1A 15 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 07 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: 01 07 00 FB 1A 00 00 00 00 00 FF 0F 2A [11:48:31]RasterBufferAndPrint [11:48:31]line Счет N : (1)99687 [11:48:31]line ИНН: 02508201610067 [11:48:31]line Контрольно-Кассовый Чек [11:48:31]line ПРОДАЖА [11:48:31]line ТРК (МРК, ГНК) : 31 [11:48:31]line Товар: 2710124130 [11:48:31]line Аи-92-К-5 [11:48:31]line 7.480 * 66.90 [11:48:31]line = 500.41 [11:48:31]line НДС 12% НСП 1% [11:48:31]line > о реализуемом товаре [11:48:31]line ОКРУГЛЕНИЕ: -0.41 [11:48:31]line ИТОГО: 500.00 [11:48:31]line Внесено: 500.00 [11:48:31]line СДАЧА: 0.00 [11:48:31]line НСП 1% : 4.43 [11:48:31]line НДС 12% : 53.14 [11:48:31]line Наличными: 500.00 [11:48:31]line Безнал.: 0.00 [11:48:31]line Место: АЗС № 143 "Партнер Нефть" [11:48:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:48:31]line СНО: Общий режим [11:48:31]line Чек 89 28.10.2024 11:48 [11:48:31]line Смена: 538 ФФД: 1.0 [11:48:31]line ЗНМ: 0300000096 [11:48:31]line РНМ: 0000000000091693 [11:48:31]line Версия ККМ: 001 [11:48:31]line ФМ: 0000000000871792 [11:48:31]line ФД: 156873 [11:48:31]line ФПД: 125482391513162 [11:48:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156873&fm=125482391513162&tin=02508201610067®Number=0000000000091693&sum=50000 [11:48:32]OFD Sender: Processing packet 156873 [packets to send 31, broken 30] [11:48:32]ProducePacketName [11:48:32]name=ofd_packets/00156873 [11:48:32]OFD Sender: To server: pG, [11:48:32]CommunicateWithHost lk.salyk.kg:30040 [11:48:32]ConnectInit lk.salyk.kg [11:48:32]written 0, free lines is 4095 [11:48:32]Connected sock=10 [11:48: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 37 39 32 0F 01 00 00 37 AC 07 01 7F 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 59 00 00 00 F4 03 04 00 11 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 64 02 00 35 04 06 00 72 20 25 5F 28 4A A4 B7 6A 92 9B D7 F1 1E [11:48:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B9 78 47 00 A0 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 37 39 32 10 04 04 00 C9 64 02 00 F4 03 04 00 7D 1F 1F 67 B6 04 01 00 00 37 73 A7 FC B5 D3 8F AE [11:48:32]CommunicateWithHost err = 0 [11:48:32]CheckOFDResponse [11:48:32]1017 (14) - 77093643461234 [11:48:32]1041 (16) - 0000000000871792 [11:48:32]1040 (4) - 156873 [11:48:32]1012 (4) - 28.10.2024 05:22 [11:48:32]1206 (1) - 0 [11:48:32]OFD Sender: Remove packet 156873 [11:48:32]ProducePacketName [11:48:32]name=ofd_packets/00156873 [11:48:32]NVStorageDeleteData [11:48:32]Write to MH i2c: 01 00 00 26 1B 41 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 D3 0C 27 [11:48:32]RasterBufferAndPrint [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]line [11:48:32]written 0, free lines is 3290 [11:48:32]process_action close_receipt done [11:48:32]requested_data is exist [11:48:32]produce_requested_data [11:48:32]requested_item fm.sn is exist - process it [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 11 00 00 [11:48:32]Write to MH i2c: E2 08 00 2D 1B 80 11 00 00 00 00 00 00 C2 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 2D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [11:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:32]wFMCommunicate OK [11:48:32]requested_item fd.num is exist - process it [11:48:32]SAM_PROTO_GetFieldsCounters [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 00 00 [11:48:32]Write to MH i2c: E2 08 00 2E 1B 80 13 00 00 00 00 00 00 C5 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 62 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 62 00 2E 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 64 02 00 0E 04 04 00 1A 02 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 41 [11:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 64 02 00 0E 04 04 00 1A 02 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 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_GetFieldsCounters done [11:48:32]requested_item shift.num is exist - process it [11:48:32]requested_item shift.opened is exist - process it [11:48:32]req_shift_opened [11:48:32]FM_GetShiftState [11:48:32]SAM_PROTO_GetShiftState [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 13 01 00 [11:48:32]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B9 [11:48:33]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetShiftState done [11:48:33]FM_GetShiftState done [11:48:33]req_shift_opened done [11:48:33]requested_item shift.open_date is exist - process it [11:48:33]req_shift_open_date [11:48:33]req_shift_open_date done [11:48:33]produce_requested_data done [11:48:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156873,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:48:33]process_action_free close_receipt [11:48:33]json_value_free [11:48:33]json_value_free done [11:48:33]process_json_proto returns [11:48:33]Send response to host [11:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156873,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:48:33]free response buf [11:48:33]execute_script done [11:48:33]execute_script returns [11:48:33]free content buf [11:48:33]Sock 9.Close socket [11:48:33]Sock 9.Thread stoped [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:17]accept exits with 7 [11:51:17]New connection [11:51:17]New thread 3066604900 created [11:51:17]Thread 3066748260 joined [11:51:17]Waiting for new connection... [11:51:17] Sock 7.Parse request [11:51:17]Sock 7.Check first char [11:51:17]Sock 7.First char is OK [11:51:17]request: POST /json_proto HTTP/1.0 [11:51:17]Method: POST [11:51:17]URL: /json_proto [11:51:17]Method is POST - this is cgi request [11:51:17]url: /json_proto [11:51:17]query_string will be loaded in cgi processing [11:51:17]execute_cgi json_proto POST (null) [11:51:17]execute_cgi path=json_proto method=POST [11:51:17]POST find Content-Length [11:51:17]Host: 172.17.63.3:8080 [11:51:17]Content-Length: 678 [11:51:17]Content-Type: application/json [11:51:17] [11:51:17]POST finish read [11:51:17]Found Content-Length = 678 [11:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:51:17]execute_script... [11:51: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)99688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:51:17]POST & json_proto [11:51:17]process_json_proto [11:51:17]json parsed OK: [11:51:17]protocol is kg_v1.0 [11:51:17]action value=close_receipt [11:51:17]process_action close_receipt [11:51:17]cmd_close_receipt [11:51:17]MH_GetDate [11:51:17]Write to MH i2c: F0 00 00 30 1B 3A [11:51:17]Write i2c OK [11:51:17]MH_I2C_Read... [11:51:17]Read from MH i2c: F0 [11:51:17]MH_I2C_Read... [11:51:17]Read from MH i2c: F0 09 00 [11:51:17]MH_I2C_Read... [11:51:17]Read from MH i2c: F0 09 00 30 1B 00 B7 7A 1F 67 50 D1 6C 64 EB [11:51:17]GetLastDocTimeStamp 1730116113 [11:51:17]current date 1730116279 [11:51:17]FM_GetShiftState [11:51:17]SAM_PROTO_GetShiftState [11:51:17]wFMCommunicate request_size=4 [11:51:17]MH_SAM_APDU [11:51:17]CAPDU: 80 13 01 00 [11:51:17]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [11:51:17]Write i2c OK [11:51:17]MH_I2C_Read... [11:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:17]Read from MH i2c: E2 [11:51:17]MH_I2C_Read... [11:51:17]Read from MH i2c: E2 0E 00 [11:51:17]MH_I2C_Read... [11:51:17]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 BB [11:51:17]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:51:17]wFMCommunicate OK [11:51:17]SAM_PROTO_GetShiftState done [11:51:17]FM_GetShiftState done [11:51:17]opened in 1730075526 [11:51:17]opened+sec_in_day 1730161926 [11:51:17]quantity*price = 100050 [11:51:17]sum+1 = 100052 [11:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 90 28.10.2024 11:51 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156874 ФПД: 169013292219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156874&fm=169013292219&tin=02508201610067®Number=0000000000091693&sum=100000 [11:51:18]StoreToDocumentArchive [11:51:18]shift 538 fd 156874 [11:51:18]save to /storage/0538/doc_00156874 [11:51:18]save last doc name /storage/0538/doc_00156874 to /storage/kkm_last_doc_name [11:51:18]save OK [11:51:18]Clear old archive folders... [11:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:51:18]tlvbuf is B6F26A80 [11:51:18]SAM_PROTO_ClearQueue [11:51:18]wFMCommunicate request_size=4 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 09 00 00 [11:51:18]Write to MH i2c: E2 08 00 3E 1B 80 09 00 00 00 00 00 00 CB [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [11:51:18]RAPDU: 90 00 [11:51:18]wFMCommunicate OK [11:51:18]SAM_PROTO_ClearQueue done [11:51:18]KKMCreateOFDPacket [11:51:18]OFDProtocolAddRootSTLVToBuf [11:51:18]FM_MakeSignedData [11:51:18]FM_MakeSignedData [11:51:18]SAM_PROTO_SignData [11:51:18]wFMCommunicate request_size=4 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 0D 01 02 [11:51:18]Write to MH i2c: E2 08 00 3F 1B 80 0D 01 02 00 00 00 00 D3 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [11:51:18]RAPDU: 90 00 [11:51:18]wFMCommunicate OK [11:51:18]wFMCommunicate request_size=255 [11:51:18]MH_SAM_APDU [11:51: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5A 00 00 00 F4 03 04 00 B7 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 64 02 00 35 04 06 00 00 27 59 FA [11:51:18]Write to MH i2c: E2 02 01 40 1B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5A 00 00 00 F4 03 04 00 B7 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 64 02 00 35 04 06 00 00 27 59 FA 00 00 34 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [11:51:18]RAPDU: 90 00 [11:51:18]wFMCommunicate OK [11:51:18]wFMCommunicate request_size=7 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 0D 02 02 02 2C BB [11:51:18]Write to MH i2c: E2 0A 00 41 1B 80 0D 02 02 02 00 2C BB 00 00 C1 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [11:51:18]RAPDU: 90 00 [11:51:18]wFMCommunicate OK [11:51:18]wFMCommunicate request_size=4 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 0D 03 02 [11:51:18]Write to MH i2c: E2 08 00 42 1B 80 0D 03 02 00 00 00 00 D8 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 0B 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 0B 00 42 1B 00 87 98 A2 F7 2A A6 88 27 90 00 10 [11:51:18]RAPDU: 87 98 A2 F7 2A A6 88 27 90 00 [11:51:18]wFMCommunicate OK [11:51:18]SAM_PROTO_SignData done [11:51:18]FM_MakeSignedData done [11:51:18]CreateOFDProtocolMessage [11:51:18]wFMCommunicate request_size=4 [11:51:18]MH_SAM_APDU [11:51:18]CAPDU: 80 11 00 00 [11:51:18]Write to MH i2c: E2 08 00 43 1B 80 11 00 00 00 00 00 00 D8 [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:18]Read from MH i2c: E2 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 17 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: E2 17 00 43 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [11:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:18]wFMCommunicate OK [11:51:18]CreateOFDProtocolMessage done [11:51:18]OFDSenderStorePacket 156874 [11:51:18]StoreOFDPacket docnum=156874 [11:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C0 91 04 01 4A 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5A 00 00 00 F4 03 04 00 B7 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 64 02 00 35 04 06 00 00 27 59 FA 2C BB 87 98 A2 F7 2A A6 88 27 [11:51:18]CheckFolder [11:51:18]dirname=/storage/ofd_packets [11:51:18]CheckFolder done [11:51:18]ProducePacketName [11:51:18]name=ofd_packets/00156874 [11:51:18]NVStorageSaveData ofd_packets/00156874 [11:51:18]File name is /storage/ofd_packets/00156874 [11:51:18]Write 298 bytes [11:51:18]NVStorageSaveData done [11:51:18]OFDSenderStorePacket done [11:51:18]KKMCreateOFDPacket done [11:51:18]NVStorageSaveData kkm_last_timestamp [11:51:18]File name is /storage/kkm_last_timestamp [11:51:18]Write 4 bytes [11:51:18]NVStorageSaveData done [11:51:18]ExternCall_PrintAddStr [11:51:18]wPrintStart [11:51:18]Write to MH i2c: 01 00 00 44 1B 5F [11:51:18]Write i2c OK [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: 01 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: 01 07 00 [11:51:18]MH_I2C_Read... [11:51:18]Read from MH i2c: 01 07 00 44 1B 00 00 00 00 00 FF 0F 74 [11:51:18]RasterBufferAndPrint [11:51:18]line Счет N : (1)99688 [11:51:18]line ИНН: 02508201610067 [11:51:18]line Контрольно-Кассовый Чек [11:51:18]line ПРОДАЖА [11:51:18]line ТРК (МРК, ГНК) : 32 [11:51:18]line Товар: 2710194210 [11:51:18]line ДТ-К-5 [11:51:18]line 13.130 * 76.20 [11:51:18]line = 1000.51 [11:51:18]line НДС 12% НСП 1% [11:51:18]line > о реализуемом товаре [11:51:18]line ОКРУГЛЕНИЕ: -0.51 [11:51:18]line ИТОГО: 1000.00 [11:51:18]line Внесено: 1000.00 [11:51:18]line СДАЧА: 0.00 [11:51:18]line НСП 1% : 8.85 [11:51:18]line НДС 12% : 106.25 [11:51:18]line Наличными: 1000.00 [11:51:18]line Безнал.: 0.00 [11:51:18]line Место: АЗС № 143 "Партнер Нефть" [11:51:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:51:18]line СНО: Общий режим [11:51:18]line Чек 90 28.10.2024 11:51 [11:51:18]line Смена: 538 ФФД: 1.0 [11:51:18]line ЗНМ: 0300000096 [11:51:18]line РНМ: 0000000000091693 [11:51:18]line Версия ККМ: 001 [11:51:18]line ФМ: 0000000000871792 [11:51:18]line ФД: 156874 [11:51:18]line ФПД: 169013292219 [11:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156874&fm=169013292219&tin=02508201610067®Number=0000000000091693&sum=100000 [11:51:19]OFD Sender: Processing packet 156874 [packets to send 31, broken 30] [11:51:19]ProducePacketName [11:51:19]name=ofd_packets/00156874 [11:51:19]OFD Sender: To server: pG, [11:51:19]CommunicateWithHost lk.salyk.kg:30040 [11:51:19]ConnectInit lk.salyk.kg [11:51:19]written 0, free lines is 4095 [11:51:19]Connected sock=10 [11:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C0 91 04 01 4A 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 5A 00 00 00 F4 03 04 00 B7 7A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 64 02 00 35 04 06 00 00 27 59 FA 2C BB 87 98 A2 F7 2A A6 88 27 [11:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CB 11 47 00 B4 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 37 39 32 10 04 04 00 CA 64 02 00 F4 03 04 00 24 20 1F 67 B6 04 01 00 00 A6 BE 56 3D D8 A9 0C EB [11:51:19]CommunicateWithHost err = 0 [11:51:19]CheckOFDResponse [11:51:19]1017 (14) - 77093643461234 [11:51:19]1041 (16) - 0000000000871792 [11:51:19]1040 (4) - 156874 [11:51:19]1012 (4) - 28.10.2024 05:24 [11:51:19]1206 (1) - 0 [11:51:19]OFD Sender: Remove packet 156874 [11:51:19]ProducePacketName [11:51:19]name=ofd_packets/00156874 [11:51:19]NVStorageDeleteData [11:51:19]Write to MH i2c: 01 00 00 6F 1B 8A [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: 01 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: 01 07 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: 01 07 00 6F 1B 00 00 00 00 00 D5 0C 72 [11:51:19]RasterBufferAndPrint [11:51:19]line [11:51:19]line [11:51:19]line [11:51:19]line [11:51:19]line [11:51:19]written 0, free lines is 3289 [11:51:19]process_action close_receipt done [11:51:19]requested_data is exist [11:51:19]produce_requested_data [11:51:19]requested_item fm.sn is exist - process it [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 11 00 00 [11:51:19]Write to MH i2c: E2 08 00 76 1B 80 11 00 00 00 00 00 00 0B [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 17 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 17 00 76 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [11:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:19]wFMCommunicate OK [11:51:19]requested_item fd.num is exist - process it [11:51:19]SAM_PROTO_GetFieldsCounters [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 13 00 00 [11:51:19]Write to MH i2c: E2 08 00 77 1B 80 13 00 00 00 00 00 00 0E [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 62 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 62 00 77 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 64 02 00 0E 04 04 00 1A 02 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 8E [11:51: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 64 02 00 0E 04 04 00 1A 02 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 [11:51:19]wFMCommunicate OK [11:51:19]SAM_PROTO_GetFieldsCounters done [11:51:19]requested_item shift.num is exist - process it [11:51:19]requested_item shift.opened is exist - process it [11:51:19]req_shift_opened [11:51:19]FM_GetShiftState [11:51:19]SAM_PROTO_GetShiftState [11:51:19]wFMCommunicate request_size=4 [11:51:19]MH_SAM_APDU [11:51:19]CAPDU: 80 13 01 00 [11:51:19]Write to MH i2c: E2 08 00 78 1B 80 13 01 00 00 00 00 00 10 [11:51:19]Write i2c OK [11:51:19]MH_I2C_Read... [11:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:19]Read from MH i2c: E2 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 [11:51:19]MH_I2C_Read... [11:51:19]Read from MH i2c: E2 0E 00 78 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 02 [11:51:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:51:19]wFMCommunicate OK [11:51:19]SAM_PROTO_GetShiftState done [11:51:19]FM_GetShiftState done [11:51:19]req_shift_opened done [11:51:19]requested_item shift.open_date is exist - process it [11:51:19]req_shift_open_date [11:51:19]req_shift_open_date done [11:51:19]produce_requested_data done [11:51:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156874,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:51:19]process_action_free close_receipt [11:51:19]json_value_free [11:51:19]json_value_free done [11:51:19]process_json_proto returns [11:51:19]Send response to host [11:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156874,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:51:19]free response buf [11:51:19]execute_script done [11:51:19]execute_script returns [11:51:19]free content buf [11:51:19]Sock 7.Close socket [11:51:19]Sock 7.Thread stoped [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]accept exits with 9 [11:57:15]New connection [11:57:15]New thread 3066748260 created [11:57:15]Thread 3066604900 joined [11:57:15]Waiting for new connection... [11:57:15] Sock 9.Parse request [11:57:15]Sock 9.Check first char [11:57:15]Sock 9.First char is OK [11:57:15]request: POST /json_proto HTTP/1.0 [11:57:15]Method: POST [11:57:15]URL: /json_proto [11:57:15]Method is POST - this is cgi request [11:57:15]url: /json_proto [11:57:15]query_string will be loaded in cgi processing [11:57:15]execute_cgi json_proto POST (null) [11:57:15]execute_cgi path=json_proto method=POST [11:57:15]POST find Content-Length [11:57:15]Host: 172.17.63.3:8080 [11:57:15]Content-Length: 677 [11:57:15]Content-Type: application/json [11:57:15] [11:57:15]POST finish read [11:57:15]Found Content-Length = 677 [11:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [11:57:15]execute_script... [11:57: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)99689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [11:57:15]POST & json_proto [11:57:15]process_json_proto [11:57:15]json parsed OK: [11:57:15]protocol is kg_v1.0 [11:57:15]action value=close_receipt [11:57:15]process_action close_receipt [11:57:15]cmd_close_receipt [11:57:15]MH_GetDate [11:57:15]Write to MH i2c: F0 00 00 79 1B 83 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 09 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: F0 09 00 79 1B 00 1D 7C 1F 67 50 D1 6C 64 9C [11:57:15]GetLastDocTimeStamp 1730116279 [11:57:15]current date 1730116637 [11:57:15]FM_GetShiftState [11:57:15]SAM_PROTO_GetShiftState [11:57:15]wFMCommunicate request_size=4 [11:57:15]MH_SAM_APDU [11:57:15]CAPDU: 80 13 01 00 [11:57:15]Write to MH i2c: E2 08 00 7A 1B 80 13 01 00 00 00 00 00 12 [11:57:15]Write i2c OK [11:57:15]MH_I2C_Read... [11:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:15]Read from MH i2c: E2 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0E 00 [11:57:15]MH_I2C_Read... [11:57:15]Read from MH i2c: E2 0E 00 7A 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 04 [11:57:15]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:57:15]wFMCommunicate OK [11:57:15]SAM_PROTO_GetShiftState done [11:57:15]FM_GetShiftState done [11:57:15]opened in 1730075526 [11:57:15]opened+sec_in_day 1730161926 [11:57:15]quantity*price = 70044 [11:57:15]sum+1 = 70045 [11:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 91 28.10.2024 11:57 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156875 ФПД: 124127739471615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156875&fm=124127739471615&tin=02508201610067®Number=0000000000091693&sum=70000 [11:57:16]StoreToDocumentArchive [11:57:16]shift 538 fd 156875 [11:57:16]save to /storage/0538/doc_00156875 [11:57:16]save last doc name /storage/0538/doc_00156875 to /storage/kkm_last_doc_name [11:57:16]save OK [11:57:16]Clear old archive folders... [11:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:16]tlvbuf is B6F26400 [11:57:16]SAM_PROTO_ClearQueue [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 09 00 00 [11:57:16]Write to MH i2c: E2 08 00 87 1B 80 09 00 00 00 00 00 00 14 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_ClearQueue done [11:57:16]KKMCreateOFDPacket [11:57:16]OFDProtocolAddRootSTLVToBuf [11:57:16]FM_MakeSignedData [11:57:16]FM_MakeSignedData [11:57:16]SAM_PROTO_SignData [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 01 02 [11:57:16]Write to MH i2c: E2 08 00 88 1B 80 0D 01 02 00 00 00 00 1C [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=255 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 5B 00 00 00 F4 03 04 00 1E 7C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 64 02 00 35 04 06 00 70 [11:57:16]Write to MH i2c: E2 02 01 89 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 5B 00 00 00 F4 03 04 00 1E 7C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 64 02 00 35 04 06 00 70 00 00 F8 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=10 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 02 02 05 E4 BD D1 66 FF [11:57:16]Write to MH i2c: E2 0D 00 8A 1B 80 0D 02 02 05 00 E4 BD D1 66 FF 00 00 00 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [11:57:16]RAPDU: 90 00 [11:57:16]wFMCommunicate OK [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 0D 03 02 [11:57:16]Write to MH i2c: E2 08 00 8B 1B 80 0D 03 02 00 00 00 00 21 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0B 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0B 00 8B 1B 00 7E 91 7C F6 D1 9D ED B5 90 00 B3 [11:57:16]RAPDU: 7E 91 7C F6 D1 9D ED B5 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_SignData done [11:57:16]FM_MakeSignedData done [11:57:16]CreateOFDProtocolMessage [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 11 00 00 [11:57:16]Write to MH i2c: E2 08 00 8C 1B 80 11 00 00 00 00 00 00 21 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 17 00 8C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [11:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:57:16]wFMCommunicate OK [11:57:16]CreateOFDProtocolMessage done [11:57:16]OFDSenderStorePacket 156875 [11:57:16]StoreOFDPacket docnum=156875 [11:57:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 E5 07 01 66 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 5B 00 00 00 F4 03 04 00 1E 7C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 64 02 00 35 04 06 00 70 E4 BD D1 66 FF 7E 91 7C F6 D1 9D ED B5 [11:57:16]CheckFolder [11:57:16]dirname=/storage/ofd_packets [11:57:16]CheckFolder done [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00156875 [11:57:16]NVStorageSaveData ofd_packets/00156875 [11:57:16]File name is /storage/ofd_packets/00156875 [11:57:16]Write 301 bytes [11:57:16]NVStorageSaveData done [11:57:16]OFDSenderStorePacket done [11:57:16]KKMCreateOFDPacket done [11:57:16]NVStorageSaveData kkm_last_timestamp [11:57:16]File name is /storage/kkm_last_timestamp [11:57:16]Write 4 bytes [11:57:16]NVStorageSaveData done [11:57:16]ExternCall_PrintAddStr [11:57:16]wPrintStart [11:57:16]Write to MH i2c: 01 00 00 8D 1B A8 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: 01 07 00 8D 1B 00 00 00 00 00 FF 0F BD [11:57:16]RasterBufferAndPrint [11:57:16]line Счет N : (1)99689 [11:57:16]line ИНН: 02508201610067 [11:57:16]line Контрольно-Кассовый Чек [11:57:16]line ПРОДАЖА [11:57:16]line ТРК (МРК, ГНК) : 31 [11:57:16]line Товар: 2710124130 [11:57:16]line Аи-92-К-5 [11:57:16]line 10.470 * 66.90 [11:57:16]line = 700.44 [11:57:16]line НДС 12% НСП 1% [11:57:16]line > о реализуемом товаре [11:57:16]line ОКРУГЛЕНИЕ: -0.44 [11:57:16]line ИТОГО: 700.00 [11:57:16]line Внесено: 700.00 [11:57:16]line СДАЧА: 0.00 [11:57:16]line НСП 1% : 6.20 [11:57:16]line НДС 12% : 74.38 [11:57:16]line Наличными: 700.00 [11:57:16]line Безнал.: 0.00 [11:57:16]line Место: АЗС № 143 "Партнер Нефть" [11:57:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:57:16]line СНО: Общий режим [11:57:16]line Чек 91 28.10.2024 11:57 [11:57:16]line Смена: 538 ФФД: 1.0 [11:57:16]line ЗНМ: 0300000096 [11:57:16]line РНМ: 0000000000091693 [11:57:16]line Версия ККМ: 001 [11:57:16]line ФМ: 0000000000871792 [11:57:16]line ФД: 156875 [11:57:16]line ФПД: 124127739471615 [11:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115718&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156875&fm=124127739471615&tin=02508201610067®Number=0000000000091693&sum=70000 [11:57:17]OFD Sender: Processing packet 156875 [packets to send 31, broken 30] [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00156875 [11:57:17]OFD Sender: To server: pG, [11:57:17]CommunicateWithHost lk.salyk.kg:30040 [11:57:17]ConnectInit lk.salyk.kg [11:57:17]written 0, free lines is 4095 [11:57:17]Connected sock=10 [11:57: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 37 39 32 0F 01 00 00 11 E5 07 01 66 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 5B 00 00 00 F4 03 04 00 1E 7C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 64 02 00 35 04 06 00 70 E4 BD D1 66 FF 7E 91 7C F6 D1 9D ED B5 [11:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BD 38 47 00 F9 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 37 39 32 10 04 04 00 CB 64 02 00 F4 03 04 00 8A 21 1F 67 B6 04 01 00 00 4B ED CA F8 E5 2C 09 D3 [11:57:17]CommunicateWithHost err = 0 [11:57:17]CheckOFDResponse [11:57:17]1017 (14) - 77093643461234 [11:57:17]1041 (16) - 0000000000871792 [11:57:17]1040 (4) - 156875 [11:57:17]1012 (4) - 28.10.2024 05:30 [11:57:17]1206 (1) - 0 [11:57:17]OFD Sender: Remove packet 156875 [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00156875 [11:57:17]NVStorageDeleteData [11:57:17]Write to MH i2c: 01 00 00 B8 1B D3 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 07 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: 01 07 00 B8 1B 00 00 00 00 00 D7 0C BD [11:57:17]RasterBufferAndPrint [11:57:17]line [11:57:17]line [11:57:17]line [11:57:17]line [11:57:17]line [11:57:17]written 0, free lines is 3294 [11:57:17]process_action close_receipt done [11:57:17]requested_data is exist [11:57:17]produce_requested_data [11:57:17]requested_item fm.sn is exist - process it [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 11 00 00 [11:57:17]Write to MH i2c: E2 08 00 BF 1B 80 11 00 00 00 00 00 00 54 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 17 00 BF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [11:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:57:17]wFMCommunicate OK [11:57:17]requested_item fd.num is exist - process it [11:57:17]SAM_PROTO_GetFieldsCounters [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 13 00 00 [11:57:17]Write to MH i2c: E2 08 00 C0 1B 80 13 00 00 00 00 00 00 57 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 62 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 62 00 C0 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 64 02 00 0E 04 04 00 1A 02 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 DB [11:57: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 64 02 00 0E 04 04 00 1A 02 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 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_GetFieldsCounters done [11:57:17]requested_item shift.num is exist - process it [11:57:17]requested_item shift.opened is exist - process it [11:57:17]req_shift_opened [11:57:17]FM_GetShiftState [11:57:17]SAM_PROTO_GetShiftState [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 13 01 00 [11:57:17]Write to MH i2c: E2 08 00 C1 1B 80 13 01 00 00 00 00 00 59 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 C1 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4B [11:57:17]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_GetShiftState done [11:57:17]FM_GetShiftState done [11:57:17]req_shift_opened done [11:57:17]requested_item shift.open_date is exist - process it [11:57:17]req_shift_open_date [11:57:17]req_shift_open_date done [11:57:17]produce_requested_data done [11:57:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156875,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [11:57:17]process_action_free close_receipt [11:57:17]json_value_free [11:57:17]json_value_free done [11:57:17]process_json_proto returns [11:57:17]Send response to host [11:57:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156875,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [11:57:17]free response buf [11:57:17]execute_script done [11:57:17]execute_script returns [11:57:17]free content buf [11:57:17]Sock 9.Close socket [11:57:17]Sock 9.Thread stoped [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:37]accept exits with 7 [12:03:37]New connection [12:03:37]New thread 3066604900 created [12:03:37]Thread 3066748260 joined [12:03:37]Waiting for new connection... [12:03:37] Sock 7.Parse request [12:03:37]Sock 7.Check first char [12:03:37]Sock 7.First char is OK [12:03:37]request: POST /json_proto HTTP/1.0 [12:03:37]Method: POST [12:03:37]URL: /json_proto [12:03:37]Method is POST - this is cgi request [12:03:37]url: /json_proto [12:03:37]query_string will be loaded in cgi processing [12:03:37]execute_cgi json_proto POST (null) [12:03:37]execute_cgi path=json_proto method=POST [12:03:37]POST find Content-Length [12:03:37]Host: 172.17.63.3:8080 [12:03:37]Content-Length: 676 [12:03:37]Content-Type: application/json [12:03:37] [12:03:37]POST finish read [12:03:37]Found Content-Length = 676 [12:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:03:37]execute_script... [12:03: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)99690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:03:37]POST & json_proto [12:03:37]process_json_proto [12:03:37]json parsed OK: [12:03:37]protocol is kg_v1.0 [12:03:37]action value=close_receipt [12:03:37]process_action close_receipt [12:03:37]cmd_close_receipt [12:03:37]MH_GetDate [12:03:37]Write to MH i2c: F0 00 00 C2 1B CC [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 09 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: F0 09 00 C2 1B 00 9C 7D 1F 67 50 D1 6C 64 65 [12:03:37]GetLastDocTimeStamp 1730116638 [12:03:37]current date 1730117020 [12:03:37]FM_GetShiftState [12:03:37]SAM_PROTO_GetShiftState [12:03:37]wFMCommunicate request_size=4 [12:03:37]MH_SAM_APDU [12:03:37]CAPDU: 80 13 01 00 [12:03:37]Write to MH i2c: E2 08 00 C3 1B 80 13 01 00 00 00 00 00 5B [12:03:37]Write i2c OK [12:03:37]MH_I2C_Read... [12:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:37]Read from MH i2c: E2 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0E 00 [12:03:37]MH_I2C_Read... [12:03:37]Read from MH i2c: E2 0E 00 C3 1B 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4D [12:03:37]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:03:37]wFMCommunicate OK [12:03:37]SAM_PROTO_GetShiftState done [12:03:37]FM_GetShiftState done [12:03:37]opened in 1730075526 [12:03:37]opened+sec_in_day 1730161926 [12:03:37]quantity*price = 20003 [12:03:37]sum+1 = 20004 [12:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 92 28.10.2024 12:03 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156876 ФПД: 167538862435297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120340&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156876&fm=167538862435297&tin=02508201610067®Number=0000000000091693&sum=20000 [12:03:38]StoreToDocumentArchive [12:03:38]shift 538 fd 156876 [12:03:38]save to /storage/0538/doc_00156876 [12:03:38]save last doc name /storage/0538/doc_00156876 to /storage/kkm_last_doc_name [12:03:38]save OK [12:03:38]Clear old archive folders... [12:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:38]tlvbuf is 01A55AA0 [12:03:38]SAM_PROTO_ClearQueue [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 09 00 00 [12:03:38]Write to MH i2c: E2 08 00 D0 1B 80 09 00 00 00 00 00 00 5D [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 D0 1B 00 90 00 5F [12:03:38]RAPDU: 90 00 [12:03:38]wFMCommunicate OK [12:03:38]SAM_PROTO_ClearQueue done [12:03:38]KKMCreateOFDPacket [12:03:38]OFDProtocolAddRootSTLVToBuf [12:03:38]FM_MakeSignedData [12:03:38]FM_MakeSignedData [12:03:38]SAM_PROTO_SignData [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 0D 01 02 [12:03:38]Write to MH i2c: E2 08 00 D1 1B 80 0D 01 02 00 00 00 00 65 [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 D1 1B 00 90 00 60 [12:03:38]RAPDU: 90 00 [12:03:38]wFMCommunicate OK [12:03:38]wFMCommunicate request_size=255 [12:03:38]MH_SAM_APDU [12:03: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5C 00 00 00 F4 03 04 00 9C 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 64 02 00 35 04 06 00 98 [12:03:38]Write to MH i2c: E2 02 01 D2 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5C 00 00 00 F4 03 04 00 9C 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 64 02 00 35 04 06 00 98 00 00 9C [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 D2 1B 00 90 00 61 [12:03:38]RAPDU: 90 00 [12:03:38]wFMCommunicate OK [12:03:38]wFMCommunicate request_size=10 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 0D 02 02 05 60 2E 61 AB E1 [12:03:38]Write to MH i2c: E2 0D 00 D3 1B 80 0D 02 02 05 00 60 2E 61 AB E1 00 00 ED [12:03:38]Write i2c OK [12:03:38]MH_I2C_Read... [12:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:38]Read from MH i2c: E2 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 [12:03:38]MH_I2C_Read... [12:03:38]Read from MH i2c: E2 03 00 D3 1B 00 90 00 62 [12:03:38]RAPDU: 90 00 [12:03:38]wFMCommunicate OK [12:03:38]wFMCommunicate request_size=4 [12:03:38]MH_SAM_APDU [12:03:38]CAPDU: 80 0D 03 02 [12:03:38]Write to MH i2c: E2 08 00 D4 1B 80 0D 03 02 00 00 00 00 6A [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0B 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 0B 00 D4 1B 00 74 BB FF 42 DA 8C 95 A2 90 00 78 [12:03:39]RAPDU: 74 BB FF 42 DA 8C 95 A2 90 00 [12:03:39]wFMCommunicate OK [12:03:39]SAM_PROTO_SignData done [12:03:39]FM_MakeSignedData done [12:03:39]CreateOFDProtocolMessage [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 11 00 00 [12:03:39]Write to MH i2c: E2 08 00 D5 1B 80 11 00 00 00 00 00 00 6A [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 D5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [12:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:03:39]wFMCommunicate OK [12:03:39]CreateOFDProtocolMessage done [12:03:39]OFDSenderStorePacket 156876 [12:03:39]StoreOFDPacket docnum=156876 [12:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1D C1 07 01 91 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5C 00 00 00 F4 03 04 00 9C 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 64 02 00 35 04 06 00 98 60 2E 61 AB E1 74 BB FF 42 DA 8C 95 A2 [12:03:39]CheckFolder [12:03:39]dirname=/storage/ofd_packets [12:03:39]CheckFolder done [12:03:39]ProducePacketName [12:03:39]name=ofd_packets/00156876 [12:03:39]NVStorageSaveData ofd_packets/00156876 [12:03:39]File name is /storage/ofd_packets/00156876 [12:03:39]Write 301 bytes [12:03:39]NVStorageSaveData done [12:03:39]OFDSenderStorePacket done [12:03:39]KKMCreateOFDPacket done [12:03:39]NVStorageSaveData kkm_last_timestamp [12:03:39]File name is /storage/kkm_last_timestamp [12:03:39]Write 4 bytes [12:03:39]NVStorageSaveData done [12:03:39]ExternCall_PrintAddStr [12:03:39]wPrintStart [12:03:39]Write to MH i2c: 01 00 00 D6 1B F1 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 D6 1B 00 00 00 00 00 FF 0F 06 [12:03:39]RasterBufferAndPrint [12:03:39]line Счет N : (1)99690 [12:03:39]line ИНН: 02508201610067 [12:03:39]line Контрольно-Кассовый Чек [12:03:39]line ПРОДАЖА [12:03:39]line ТРК (МРК, ГНК) : 31 [12:03:39]line Товар: 2710124130 [12:03:39]line Аи-92-К-5 [12:03:39]line 2.990 * 66.90 [12:03:39]line = 200.03 [12:03:39]line НДС 12% НСП 1% [12:03:39]line > о реализуемом товаре [12:03:39]line ОКРУГЛЕНИЕ: -0.03 [12:03:39]line ИТОГО: 200.00 [12:03:39]line Внесено: 200.00 [12:03:39]line СДАЧА: 0.00 [12:03:39]line НСП 1% : 1.77 [12:03:39]line НДС 12% : 21.24 [12:03:39]line Наличными: 200.00 [12:03:39]line Безнал.: 0.00 [12:03:39]line Место: АЗС № 143 "Партнер Нефть" [12:03:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:03:39]line СНО: Общий режим [12:03:39]line Чек 92 28.10.2024 12:03 [12:03:39]line Смена: 538 ФФД: 1.0 [12:03:39]line ЗНМ: 0300000096 [12:03:39]line РНМ: 0000000000091693 [12:03:39]line Версия ККМ: 001 [12:03:39]line ФМ: 0000000000871792 [12:03:39]line ФД: 156876 [12:03:39]line ФПД: 167538862435297 [12:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120340&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156876&fm=167538862435297&tin=02508201610067®Number=0000000000091693&sum=20000 [12:03:39]OFD Sender: Processing packet 156876 [packets to send 31, broken 30] [12:03:39]ProducePacketName [12:03:39]name=ofd_packets/00156876 [12:03:39]OFD Sender: To server: pG, [12:03:39]CommunicateWithHost lk.salyk.kg:30040 [12:03:39]ConnectInit lk.salyk.kg [12:03:39]written 0, free lines is 4095 [12:03:39]Connected sock=10 [12:03: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 37 39 32 0F 01 00 00 1D C1 07 01 91 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5C 00 00 00 F4 03 04 00 9C 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 64 02 00 35 04 06 00 98 60 2E 61 AB E1 74 BB FF 42 DA 8C 95 A2 [12:03:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A3 01 47 00 75 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 37 39 32 10 04 04 00 CC 64 02 00 F4 03 04 00 08 23 1F 67 B6 04 01 00 00 F3 85 C2 76 52 5C DF C9 [12:03:39]CommunicateWithHost err = 0 [12:03:39]CheckOFDResponse [12:03:39]1017 (14) - 77093643461234 [12:03:39]1041 (16) - 0000000000871792 [12:03:39]1040 (4) - 156876 [12:03:39]1012 (4) - 28.10.2024 05:37 [12:03:39]1206 (1) - 0 [12:03:39]OFD Sender: Remove packet 156876 [12:03:39]ProducePacketName [12:03:39]name=ofd_packets/00156876 [12:03:39]NVStorageDeleteData [12:03:39]Write to MH i2c: 01 00 00 01 1C 1D [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: 01 07 00 01 1C 00 00 00 00 00 D4 0C 04 [12:03:39]RasterBufferAndPrint [12:03:39]line [12:03:39]line [12:03:39]line [12:03:39]line [12:03:39]line [12:03:39]written 0, free lines is 3292 [12:03:39]process_action close_receipt done [12:03:39]requested_data is exist [12:03:39]produce_requested_data [12:03:39]requested_item fm.sn is exist - process it [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 11 00 00 [12:03:39]Write to MH i2c: E2 08 00 08 1C 80 11 00 00 00 00 00 00 9E [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:39]Read from MH i2c: E2 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 [12:03:39]MH_I2C_Read... [12:03:39]Read from MH i2c: E2 17 00 08 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [12:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:03:39]wFMCommunicate OK [12:03:39]requested_item fd.num is exist - process it [12:03:39]SAM_PROTO_GetFieldsCounters [12:03:39]wFMCommunicate request_size=4 [12:03:39]MH_SAM_APDU [12:03:39]CAPDU: 80 13 00 00 [12:03:39]Write to MH i2c: E2 08 00 09 1C 80 13 00 00 00 00 00 00 A1 [12:03:39]Write i2c OK [12:03:39]MH_I2C_Read... [12:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:40]Read from MH i2c: E2 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 62 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 62 00 09 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 64 02 00 0E 04 04 00 1A 02 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 29 [12:03: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 64 02 00 0E 04 04 00 1A 02 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 [12:03:40]wFMCommunicate OK [12:03:40]SAM_PROTO_GetFieldsCounters done [12:03:40]requested_item shift.num is exist - process it [12:03:40]requested_item shift.opened is exist - process it [12:03:40]req_shift_opened [12:03:40]FM_GetShiftState [12:03:40]SAM_PROTO_GetShiftState [12:03:40]wFMCommunicate request_size=4 [12:03:40]MH_SAM_APDU [12:03:40]CAPDU: 80 13 01 00 [12:03:40]Write to MH i2c: E2 08 00 0A 1C 80 13 01 00 00 00 00 00 A3 [12:03:40]Write i2c OK [12:03:40]MH_I2C_Read... [12:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:40]Read from MH i2c: E2 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 [12:03:40]MH_I2C_Read... [12:03:40]Read from MH i2c: E2 0E 00 0A 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 95 [12:03:40]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:03:40]wFMCommunicate OK [12:03:40]SAM_PROTO_GetShiftState done [12:03:40]FM_GetShiftState done [12:03:40]req_shift_opened done [12:03:40]requested_item shift.open_date is exist - process it [12:03:40]req_shift_open_date [12:03:40]req_shift_open_date done [12:03:40]produce_requested_data done [12:03:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156876,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:03:40]process_action_free close_receipt [12:03:40]json_value_free [12:03:40]json_value_free done [12:03:40]process_json_proto returns [12:03:40]Send response to host [12:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156876,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:03:40]free response buf [12:03:40]execute_script done [12:03:40]execute_script returns [12:03:40]free content buf [12:03:40]Sock 7.Close socket [12:03:40]Sock 7.Thread stoped [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:47]accept exits with 9 [12:04:47]New connection [12:04:47]New thread 3066748260 created [12:04:47]Thread 3066604900 joined [12:04:47]Waiting for new connection... [12:04:47] Sock 9.Parse request [12:04:47]Sock 9.Check first char [12:04:47]Sock 9.First char is OK [12:04:47]request: POST /json_proto HTTP/1.0 [12:04:47]Method: POST [12:04:47]URL: /json_proto [12:04:47]Method is POST - this is cgi request [12:04:47]url: /json_proto [12:04:47]query_string will be loaded in cgi processing [12:04:47]execute_cgi json_proto POST (null) [12:04:47]execute_cgi path=json_proto method=POST [12:04:47]POST find Content-Length [12:04:47]Host: 172.17.63.3:8080 [12:04:47]Content-Length: 676 [12:04:47]Content-Type: application/json [12:04:47] [12:04:47]POST finish read [12:04:47]Found Content-Length = 676 [12:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:47]execute_script... [12:04: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)99691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:47]POST & json_proto [12:04:47]process_json_proto [12:04:47]json parsed OK: [12:04:47]protocol is kg_v1.0 [12:04:47]action value=close_receipt [12:04:47]process_action close_receipt [12:04:47]cmd_close_receipt [12:04:47]MH_GetDate [12:04:47]Write to MH i2c: F0 00 00 0B 1C 16 [12:04:47]Write i2c OK [12:04:47]MH_I2C_Read... [12:04:47]Read from MH i2c: F0 [12:04:47]MH_I2C_Read... [12:04:47]Read from MH i2c: F0 09 00 [12:04:47]MH_I2C_Read... [12:04:47]Read from MH i2c: F0 09 00 0B 1C 00 E1 7D 1F 67 50 D1 6C 64 F4 [12:04:47]GetLastDocTimeStamp 1730117020 [12:04:47]current date 1730117089 [12:04:47]FM_GetShiftState [12:04:47]SAM_PROTO_GetShiftState [12:04:47]wFMCommunicate request_size=4 [12:04:47]MH_SAM_APDU [12:04:47]CAPDU: 80 13 01 00 [12:04:47]Write to MH i2c: E2 08 00 0C 1C 80 13 01 00 00 00 00 00 A5 [12:04:47]Write i2c OK [12:04:47]MH_I2C_Read... [12:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:47]Read from MH i2c: E2 [12:04:47]MH_I2C_Read... [12:04:47]Read from MH i2c: E2 0E 00 [12:04:47]MH_I2C_Read... [12:04:47]Read from MH i2c: E2 0E 00 0C 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 97 [12:04:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:04:47]wFMCommunicate OK [12:04:47]SAM_PROTO_GetShiftState done [12:04:47]FM_GetShiftState done [12:04:47]opened in 1730075526 [12:04:47]opened+sec_in_day 1730161926 [12:04:47]quantity*price = 40006 [12:04:47]sum+1 = 40007 [12:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 93 28.10.2024 12:04 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156877 ФПД: 162939958410005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156877&fm=162939958410005&tin=02508201610067®Number=0000000000091693&sum=40000 [12:04:48]StoreToDocumentArchive [12:04:48]shift 538 fd 156877 [12:04:48]save to /storage/0538/doc_00156877 [12:04:48]save last doc name /storage/0538/doc_00156877 to /storage/kkm_last_doc_name [12:04:48]save OK [12:04:48]Clear old archive folders... [12:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:04:48]tlvbuf is 01A70AA0 [12:04:48]SAM_PROTO_ClearQueue [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 09 00 00 [12:04:48]Write to MH i2c: E2 08 00 19 1C 80 09 00 00 00 00 00 00 A7 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 19 1C 00 90 00 A9 [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]SAM_PROTO_ClearQueue done [12:04:48]KKMCreateOFDPacket [12:04:48]OFDProtocolAddRootSTLVToBuf [12:04:48]FM_MakeSignedData [12:04:48]FM_MakeSignedData [12:04:48]SAM_PROTO_SignData [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 01 02 [12:04:48]Write to MH i2c: E2 08 00 1A 1C 80 0D 01 02 00 00 00 00 AF [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 1A 1C 00 90 00 AA [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=255 [12:04:48]MH_SAM_APDU [12:04: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E1 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 64 02 00 35 04 06 00 94 [12:04:48]Write to MH i2c: E2 02 01 1B 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E1 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 64 02 00 35 04 06 00 94 00 00 36 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 1B 1C 00 90 00 AB [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=10 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 02 02 05 31 6A 57 3B 15 [12:04:48]Write to MH i2c: E2 0D 00 1C 1C 80 0D 02 02 05 00 31 6A 57 3B 15 00 00 FE [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 03 00 1C 1C 00 90 00 AC [12:04:48]RAPDU: 90 00 [12:04:48]wFMCommunicate OK [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 0D 03 02 [12:04:48]Write to MH i2c: E2 08 00 1D 1C 80 0D 03 02 00 00 00 00 B4 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 0B 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 0B 00 1D 1C 00 E6 A1 6B 3B 0C 5F 22 06 90 00 75 [12:04:48]RAPDU: E6 A1 6B 3B 0C 5F 22 06 90 00 [12:04:48]wFMCommunicate OK [12:04:48]SAM_PROTO_SignData done [12:04:48]FM_MakeSignedData done [12:04:48]CreateOFDProtocolMessage [12:04:48]wFMCommunicate request_size=4 [12:04:48]MH_SAM_APDU [12:04:48]CAPDU: 80 11 00 00 [12:04:48]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:48]Read from MH i2c: E2 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 17 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [12:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:04:48]wFMCommunicate OK [12:04:48]CreateOFDProtocolMessage done [12:04:48]OFDSenderStorePacket 156877 [12:04:48]StoreOFDPacket docnum=156877 [12:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE C7 07 01 04 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E1 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 64 02 00 35 04 06 00 94 31 6A 57 3B 15 E6 A1 6B 3B 0C 5F 22 06 [12:04:48]CheckFolder [12:04:48]dirname=/storage/ofd_packets [12:04:48]CheckFolder done [12:04:48]ProducePacketName [12:04:48]name=ofd_packets/00156877 [12:04:48]NVStorageSaveData ofd_packets/00156877 [12:04:48]File name is /storage/ofd_packets/00156877 [12:04:48]Write 301 bytes [12:04:48]NVStorageSaveData done [12:04:48]OFDSenderStorePacket done [12:04:48]KKMCreateOFDPacket done [12:04:48]NVStorageSaveData kkm_last_timestamp [12:04:48]File name is /storage/kkm_last_timestamp [12:04:48]Write 4 bytes [12:04:48]NVStorageSaveData done [12:04:48]ExternCall_PrintAddStr [12:04:48]wPrintStart [12:04:48]Write to MH i2c: 01 00 00 1F 1C 3B [12:04:48]Write i2c OK [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 07 00 [12:04:48]MH_I2C_Read... [12:04:48]Read from MH i2c: 01 07 00 1F 1C 00 00 00 00 00 FF 0F 50 [12:04:48]RasterBufferAndPrint [12:04:48]line Счет N : (1)99691 [12:04:48]line ИНН: 02508201610067 [12:04:48]line Контрольно-Кассовый Чек [12:04:48]line ПРОДАЖА [12:04:48]line ТРК (МРК, ГНК) : 31 [12:04:48]line Товар: 2710124130 [12:04:48]line Аи-92-К-5 [12:04:48]line 5.980 * 66.90 [12:04:48]line = 400.06 [12:04:48]line НДС 12% НСП 1% [12:04:48]line > о реализуемом товаре [12:04:48]line ОКРУГЛЕНИЕ: -0.06 [12:04:48]line ИТОГО: 400.00 [12:04:48]line Внесено: 400.00 [12:04:48]line СДАЧА: 0.00 [12:04:48]line НСП 1% : 3.54 [12:04:48]line НДС 12% : 42.48 [12:04:48]line Наличными: 400.00 [12:04:48]line Безнал.: 0.00 [12:04:48]line Место: АЗС № 143 "Партнер Нефть" [12:04:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:04:48]line СНО: Общий режим [12:04:48]line Чек 93 28.10.2024 12:04 [12:04:48]line Смена: 538 ФФД: 1.0 [12:04:48]line ЗНМ: 0300000096 [12:04:48]line РНМ: 0000000000091693 [12:04:48]line Версия ККМ: 001 [12:04:48]line ФМ: 0000000000871792 [12:04:48]line ФД: 156877 [12:04:48]line ФПД: 162939958410005 [12:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156877&fm=162939958410005&tin=02508201610067®Number=0000000000091693&sum=40000 [12:04:49]OFD Sender: Processing packet 156877 [packets to send 31, broken 30] [12:04:49]ProducePacketName [12:04:49]name=ofd_packets/00156877 [12:04:49]OFD Sender: To server: pG, [12:04:49]CommunicateWithHost lk.salyk.kg:30040 [12:04:49]ConnectInit lk.salyk.kg [12:04:49]written 0, free lines is 4095 [12:04:49]Connected sock=10 [12:04: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 37 39 32 0F 01 00 00 DE C7 07 01 04 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 E1 7D 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 64 02 00 35 04 06 00 94 31 6A 57 3B 15 E6 A1 6B 3B 0C 5F 22 06 [12:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A8 03 47 00 4B 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 64 02 00 F4 03 04 00 4E 23 1F 67 B6 04 01 00 00 0F C3 79 AD 92 8B 14 6F [12:04:49]CommunicateWithHost err = 0 [12:04:49]CheckOFDResponse [12:04:49]1017 (14) - 77093643461234 [12:04:49]1041 (16) - 0000000000871792 [12:04:49]1040 (4) - 156877 [12:04:49]1012 (4) - 28.10.2024 05:38 [12:04:49]1206 (1) - 0 [12:04:49]OFD Sender: Remove packet 156877 [12:04:49]ProducePacketName [12:04:49]name=ofd_packets/00156877 [12:04:49]NVStorageDeleteData [12:04:49]Write to MH i2c: 01 00 00 4A 1C 66 [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 07 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: 01 07 00 4A 1C 00 00 00 00 00 E1 0C 5A [12:04:49]RasterBufferAndPrint [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]line [12:04:49]written 0, free lines is 3303 [12:04:49]process_action close_receipt done [12:04:49]requested_data is exist [12:04:49]produce_requested_data [12:04:49]requested_item fm.sn is exist - process it [12:04:49]wFMCommunicate request_size=4 [12:04:49]MH_SAM_APDU [12:04:49]CAPDU: 80 11 00 00 [12:04:49]Write to MH i2c: E2 08 00 51 1C 80 11 00 00 00 00 00 00 E7 [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:49]Read from MH i2c: E2 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 17 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 17 00 51 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [12:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:04:49]wFMCommunicate OK [12:04:49]requested_item fd.num is exist - process it [12:04:49]SAM_PROTO_GetFieldsCounters [12:04:49]wFMCommunicate request_size=4 [12:04:49]MH_SAM_APDU [12:04:49]CAPDU: 80 13 00 00 [12:04:49]Write to MH i2c: E2 08 00 52 1C 80 13 00 00 00 00 00 00 EA [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:49]Read from MH i2c: E2 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 62 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 62 00 52 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 64 02 00 0E 04 04 00 1A 02 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 76 [12:04: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 64 02 00 0E 04 04 00 1A 02 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 [12:04:49]wFMCommunicate OK [12:04:49]SAM_PROTO_GetFieldsCounters done [12:04:49]requested_item shift.num is exist - process it [12:04:49]requested_item shift.opened is exist - process it [12:04:49]req_shift_opened [12:04:49]FM_GetShiftState [12:04:49]SAM_PROTO_GetShiftState [12:04:49]wFMCommunicate request_size=4 [12:04:49]MH_SAM_APDU [12:04:49]CAPDU: 80 13 01 00 [12:04:49]Write to MH i2c: E2 08 00 53 1C 80 13 01 00 00 00 00 00 EC [12:04:49]Write i2c OK [12:04:49]MH_I2C_Read... [12:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:49]Read from MH i2c: E2 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 0E 00 [12:04:49]MH_I2C_Read... [12:04:49]Read from MH i2c: E2 0E 00 53 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DE [12:04:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:04:49]wFMCommunicate OK [12:04:49]SAM_PROTO_GetShiftState done [12:04:49]FM_GetShiftState done [12:04:49]req_shift_opened done [12:04:49]requested_item shift.open_date is exist - process it [12:04:49]req_shift_open_date [12:04:49]req_shift_open_date done [12:04:49]produce_requested_data done [12:04:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156877,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:04:49]process_action_free close_receipt [12:04:49]json_value_free [12:04:49]json_value_free done [12:04:49]process_json_proto returns [12:04:49]Send response to host [12:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156877,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:04:49]free response buf [12:04:49]execute_script done [12:04:49]execute_script returns [12:04:49]free content buf [12:04:49]Sock 9.Close socket [12:04:49]Sock 9.Thread stoped [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:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:05:57]accept exits with 7 [12:05:57]New connection [12:05:57]New thread 3066604900 created [12:05:57]Thread 3066748260 joined [12:05:57]Waiting for new connection... [12:05:57] Sock 7.Parse request [12:05:57]Sock 7.Check first char [12:05:57]Sock 7.First char is OK [12:05:57]request: POST /json_proto HTTP/1.0 [12:05:57]Method: POST [12:05:57]URL: /json_proto [12:05:57]Method is POST - this is cgi request [12:05:57]url: /json_proto [12:05:57]query_string will be loaded in cgi processing [12:05:57]execute_cgi json_proto POST (null) [12:05:57]execute_cgi path=json_proto method=POST [12:05:57]POST find Content-Length [12:05:57]Host: 172.17.63.3:8080 [12:05:57]Content-Length: 765 [12:05:57]Content-Type: application/json [12:05:57] [12:05:57]POST finish read [12:05:57]Found Content-Length = 765 [12:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:57]execute_script... [12:05: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)99692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:57]POST & json_proto [12:05:57]process_json_proto [12:05:57]json parsed OK: [12:05:57]protocol is kg_v1.0 [12:05:57]action value=close_receipt [12:05:57]process_action close_receipt [12:05:57]cmd_close_receipt [12:05:57]MH_GetDate [12:05:57]Write to MH i2c: F0 00 00 54 1C 5F [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 09 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 09 00 54 1C 00 28 7E 1F 67 50 D1 6C 64 85 [12:05:57]GetLastDocTimeStamp 1730117089 [12:05:57]current date 1730117160 [12:05:57]FM_GetShiftState [12:05:57]SAM_PROTO_GetShiftState [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 01 00 [12:05:57]Write to MH i2c: E2 08 00 55 1C 80 13 01 00 00 00 00 00 EE [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 55 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E0 [12:05:57]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_GetShiftState done [12:05:57]FM_GetShiftState done [12:05:57]opened in 1730075526 [12:05:57]opened+sec_in_day 1730161926 [12:05:57]quantity*price = 40006 [12:05:57]sum+1 = 40007 [12:05:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 94 28.10.2024 12:06 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156878 ФПД: 5085740687986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156878&fm=5085740687986&tin=02508201610067®Number=0000000000091693&sum=40006 [12:05:58]StoreToDocumentArchive [12:05:58]shift 538 fd 156878 [12:05:58]save to /storage/0538/doc_00156878 [12:05:58]save last doc name /storage/0538/doc_00156878 to /storage/kkm_last_doc_name [12:05:58]save OK [12:05:58]Clear old archive folders... [12:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:58]tlvbuf is 01A7E6D0 [12:05:58]SAM_PROTO_ClearQueue [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 09 00 00 [12:05:58]Write to MH i2c: E2 08 00 62 1C 80 09 00 00 00 00 00 00 F0 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 62 1C 00 90 00 F2 [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_ClearQueue done [12:05:58]KKMCreateOFDPacket [12:05:58]OFDProtocolAddRootSTLVToBuf [12:05:58]FM_MakeSignedData [12:05:58]FM_MakeSignedData [12:05:58]SAM_PROTO_SignData [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 01 02 [12:05:58]Write to MH i2c: E2 08 00 63 1C 80 0D 01 02 00 00 00 00 F8 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 63 1C 00 90 00 F3 [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]wFMCommunicate request_size=255 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 7E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 64 02 00 35 04 06 00 04 [12:05:58]Write to MH i2c: E2 02 01 64 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 7E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 64 02 00 35 04 06 00 04 00 00 45 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 64 1C 00 90 00 F4 [12:05:59]RAPDU: 90 00 [12:05:59]wFMCommunicate OK [12:05:59]wFMCommunicate request_size=10 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 0D 02 02 05 A0 1D C4 62 72 [12:05:59]Write to MH i2c: E2 0D 00 65 1C 80 0D 02 02 05 00 A0 1D C4 62 72 00 00 5A [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 03 00 65 1C 00 90 00 F5 [12:05:59]RAPDU: 90 00 [12:05:59]wFMCommunicate OK [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 0D 03 02 [12:05:59]Write to MH i2c: E2 08 00 66 1C 80 0D 03 02 00 00 00 00 FD [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 0B 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 0B 00 66 1C 00 4A 13 00 68 48 8D 44 F9 90 00 D5 [12:05:59]RAPDU: 4A 13 00 68 48 8D 44 F9 90 00 [12:05:59]wFMCommunicate OK [12:05:59]SAM_PROTO_SignData done [12:05:59]FM_MakeSignedData done [12:05:59]CreateOFDProtocolMessage [12:05:59]wFMCommunicate request_size=4 [12:05:59]MH_SAM_APDU [12:05:59]CAPDU: 80 11 00 00 [12:05:59]Write to MH i2c: E2 08 00 67 1C 80 11 00 00 00 00 00 00 FD [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:59]Read from MH i2c: E2 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 17 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: E2 17 00 67 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [12:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:05:59]wFMCommunicate OK [12:05:59]CreateOFDProtocolMessage done [12:05:59]OFDSenderStorePacket 156878 [12:05:59]StoreOFDPacket docnum=156878 [12:05:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 71 07 01 E7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 7E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 64 02 00 35 04 06 00 04 A0 1D C4 62 72 4A 13 00 68 48 8D 44 F9 [12:05:59]CheckFolder [12:05:59]dirname=/storage/ofd_packets [12:05:59]CheckFolder done [12:05:59]ProducePacketName [12:05:59]name=ofd_packets/00156878 [12:05:59]NVStorageSaveData ofd_packets/00156878 [12:05:59]File name is /storage/ofd_packets/00156878 [12:05:59]Write 301 bytes [12:05:59]NVStorageSaveData done [12:05:59]OFDSenderStorePacket done [12:05:59]KKMCreateOFDPacket done [12:05:59]NVStorageSaveData kkm_last_timestamp [12:05:59]File name is /storage/kkm_last_timestamp [12:05:59]Write 4 bytes [12:05:59]NVStorageSaveData done [12:05:59]ExternCall_PrintAddStr [12:05:59]wPrintStart [12:05:59]Write to MH i2c: 01 00 00 68 1C 84 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 07 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [12:05:59]RasterBufferAndPrint [12:05:59]line Счет N : (1)99692 [12:05:59]line ИНН: 02508201610067 [12:05:59]line Контрольно-Кассовый Чек [12:05:59]line ПРОДАЖА [12:05:59]line ТРК (МРК, ГНК) : 31 [12:05:59]line Товар: 2710124130 [12:05:59]line Аи-92-К-5 [12:05:59]line 5.980 * 66.90 [12:05:59]line = 400.06 [12:05:59]line НДС 12% НСП 1% [12:05:59]line > о реализуемом товаре [12:05:59]line ИТОГО: 400.06 [12:05:59]line НСП 1% : 3.54 [12:05:59]line НДС 12% : 42.48 [12:05:59]line Наличными: 0.00 [12:05:59]line Безнал.: 400.06 [12:05:59]line Место: АЗС № 143 "Партнер Нефть" [12:05:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:05:59]line СНО: Общий режим [12:05:59]line Чек 94 28.10.2024 12:06 [12:05:59]line Смена: 538 ФФД: 1.0 [12:05:59]line ЗНМ: 0300000096 [12:05:59]line РНМ: 0000000000091693 [12:05:59]line Версия ККМ: 001 [12:05:59]line Платежная система: Mbank [12:05:59]line ФМ: 0000000000871792 [12:05:59]line ФД: 156878 [12:05:59]line ФПД: 5085740687986 [12:05:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156878&fm=5085740687986&tin=02508201610067®Number=0000000000091693&sum=40006 [12:05:59]OFD Sender: Processing packet 156878 [packets to send 31, broken 30] [12:05:59]ProducePacketName [12:05:59]name=ofd_packets/00156878 [12:05:59]OFD Sender: To server: pG, [12:05:59]CommunicateWithHost lk.salyk.kg:30040 [12:05:59]ConnectInit lk.salyk.kg [12:05:59]written 0, free lines is 4095 [12:05:59]Connected sock=10 [12:05: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 37 39 32 0F 01 00 00 EF 71 07 01 E7 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 28 7E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 64 02 00 35 04 06 00 04 A0 1D C4 62 72 4A 13 00 68 48 8D 44 F9 [12:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D7 29 47 00 EA 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 37 39 32 10 04 04 00 CE 64 02 00 F4 03 04 00 94 23 1F 67 B6 04 01 00 00 F8 21 59 91 80 9A 36 0D [12:06:00]CommunicateWithHost err = 0 [12:06:00]CheckOFDResponse [12:06:00]1017 (14) - 77093643461234 [12:06:00]1041 (16) - 0000000000871792 [12:06:00]1040 (4) - 156878 [12:06:00]1012 (4) - 28.10.2024 05:39 [12:06:00]1206 (1) - 0 [12:06:00]OFD Sender: Remove packet 156878 [12:06:00]ProducePacketName [12:06:00]name=ofd_packets/00156878 [12:06:00]NVStorageDeleteData [12:06:00]Write to MH i2c: 01 00 00 91 1C AD [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 91 1C 00 00 00 00 00 FB 0C BB [12:06:00]RasterBufferAndPrint [12:06:00]line [12:06:00]line [12:06:00]line [12:06:00]line [12:06:00]line [12:06:00]written 0, free lines is 3329 [12:06:00]process_action close_receipt done [12:06:00]requested_data is exist [12:06:00]produce_requested_data [12:06:00]requested_item fm.sn is exist - process it [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 11 00 00 [12:06:00]Write to MH i2c: E2 08 00 98 1C 80 11 00 00 00 00 00 00 2E [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 98 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [12:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:06:00]wFMCommunicate OK [12:06:00]requested_item fd.num is exist - process it [12:06:00]SAM_PROTO_GetFieldsCounters [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 13 00 00 [12:06:00]Write to MH i2c: E2 08 00 99 1C 80 13 00 00 00 00 00 00 31 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 62 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 62 00 99 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 64 02 00 0E 04 04 00 1A 02 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 C1 [12:06:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 64 02 00 0E 04 04 00 1A 02 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 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_GetFieldsCounters done [12:06:00]requested_item shift.num is exist - process it [12:06:00]requested_item shift.opened is exist - process it [12:06:00]req_shift_opened [12:06:00]FM_GetShiftState [12:06:00]SAM_PROTO_GetShiftState [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 13 01 00 [12:06:00]Write to MH i2c: E2 08 00 9A 1C 80 13 01 00 00 00 00 00 33 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0E 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0E 00 9A 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 25 [12:06:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_GetShiftState done [12:06:00]FM_GetShiftState done [12:06:00]req_shift_opened done [12:06:00]requested_item shift.open_date is exist - process it [12:06:00]req_shift_open_date [12:06:00]req_shift_open_date done [12:06:00]produce_requested_data done [12:06:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156878,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:06:00]process_action_free close_receipt [12:06:00]json_value_free [12:06:00]json_value_free done [12:06:00]process_json_proto returns [12:06:00]Send response to host [12:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156878,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:06:00]free response buf [12:06:00]execute_script done [12:06:00]execute_script returns [12:06:00]free content buf [12:06:00]Sock 7.Close socket [12:06:00]Sock 7.Thread stoped [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:52]accept exits with 9 [12:16:52]New connection [12:16:52]New thread 3066748260 created [12:16:52]Thread 3066604900 joined [12:16:52]Waiting for new connection... [12:16:52] Sock 9.Parse request [12:16:52]Sock 9.Check first char [12:16:52]Sock 9.First char is OK [12:16:52]request: POST /json_proto HTTP/1.0 [12:16:52]Method: POST [12:16:52]URL: /json_proto [12:16:52]Method is POST - this is cgi request [12:16:52]url: /json_proto [12:16:52]query_string will be loaded in cgi processing [12:16:52]execute_cgi json_proto POST (null) [12:16:52]execute_cgi path=json_proto method=POST [12:16:52]POST find Content-Length [12:16:52]Host: 172.17.63.3:8080 [12:16:52]Content-Length: 681 [12:16:52]Content-Type: application/json [12:16:52] [12:16:52]POST finish read [12:16:52]Found Content-Length = 681 [12:16:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:16:52]execute_script... [12:16: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)99693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:16:52]POST & json_proto [12:16:52]process_json_proto [12:16:52]json parsed OK: [12:16:52]protocol is kg_v1.0 [12:16:52]action value=close_receipt [12:16:52]process_action close_receipt [12:16:52]cmd_close_receipt [12:16:52]MH_GetDate [12:16:52]Write to MH i2c: F0 00 00 9B 1C A6 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 09 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: F0 09 00 9B 1C 00 B6 80 1F 67 50 D1 6C 64 5C [12:16:52]GetLastDocTimeStamp 1730117160 [12:16:52]current date 1730117814 [12:16:52]FM_GetShiftState [12:16:52]SAM_PROTO_GetShiftState [12:16:52]wFMCommunicate request_size=4 [12:16:52]MH_SAM_APDU [12:16:52]CAPDU: 80 13 01 00 [12:16:52]Write to MH i2c: E2 08 00 9C 1C 80 13 01 00 00 00 00 00 35 [12:16:52]Write i2c OK [12:16:52]MH_I2C_Read... [12:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:52]Read from MH i2c: E2 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 0E 00 [12:16:52]MH_I2C_Read... [12:16:52]Read from MH i2c: E2 0E 00 9C 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 27 [12:16:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:16:52]wFMCommunicate OK [12:16:52]SAM_PROTO_GetShiftState done [12:16:52]FM_GetShiftState done [12:16:52]opened in 1730075526 [12:16:52]opened+sec_in_day 1730161926 [12:16:52]quantity*price = 100015 [12:16:52]sum+1 = 100017 [12:16:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 95 28.10.2024 12:16 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156879 ФПД: 212773322941494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156879&fm=212773322941494&tin=02508201610067®Number=0000000000091693&sum=100000 [12:16:53]StoreToDocumentArchive [12:16:53]shift 538 fd 156879 [12:16:53]save to /storage/0538/doc_00156879 [12:16:53]save last doc name /storage/0538/doc_00156879 to /storage/kkm_last_doc_name [12:16:53]save OK [12:16:53]Clear old archive folders... [12:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:53]tlvbuf is 01A5CE70 [12:16:53]SAM_PROTO_ClearQueue [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 09 00 00 [12:16:53]Write to MH i2c: E2 08 00 A9 1C 80 09 00 00 00 00 00 00 37 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_ClearQueue done [12:16:53]KKMCreateOFDPacket [12:16:53]OFDProtocolAddRootSTLVToBuf [12:16:53]FM_MakeSignedData [12:16:53]FM_MakeSignedData [12:16:53]SAM_PROTO_SignData [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 01 02 [12:16:53]Write to MH i2c: E2 08 00 AA 1C 80 0D 01 02 00 00 00 00 3F [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 AA 1C 00 90 00 3A [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=255 [12:16:53]MH_SAM_APDU [12:16: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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 5F 00 00 00 F4 03 04 00 B7 80 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 64 02 00 35 04 06 00 C1 [12:16:53]Write to MH i2c: E2 02 01 AB 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 5F 00 00 00 F4 03 04 00 B7 80 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 64 02 00 35 04 06 00 C1 00 00 FB [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=10 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 02 02 05 84 26 54 E4 36 [12:16:53]Write to MH i2c: E2 0D 00 AC 1C 80 0D 02 02 05 00 84 26 54 E4 36 00 00 64 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 AC 1C 00 90 00 3C [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 03 02 [12:16:53]Write to MH i2c: E2 08 00 AD 1C 80 0D 03 02 00 00 00 00 44 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0B 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0B 00 AD 1C 00 F6 BA 88 BF 53 72 18 3A 90 00 53 [12:16:53]RAPDU: F6 BA 88 BF 53 72 18 3A 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_SignData done [12:16:53]FM_MakeSignedData done [12:16:53]CreateOFDProtocolMessage [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 11 00 00 [12:16:53]Write to MH i2c: E2 08 00 AE 1C 80 11 00 00 00 00 00 00 44 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 17 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 17 00 AE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [12:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:53]wFMCommunicate OK [12:16:53]CreateOFDProtocolMessage done [12:16:53]OFDSenderStorePacket 156879 [12:16:53]StoreOFDPacket docnum=156879 [12:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8B F4 07 01 03 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 5F 00 00 00 F4 03 04 00 B7 80 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 64 02 00 35 04 06 00 C1 84 26 54 E4 36 F6 BA 88 BF 53 72 18 3A [12:16:53]CheckFolder [12:16:53]dirname=/storage/ofd_packets [12:16:53]CheckFolder done [12:16:53]ProducePacketName [12:16:53]name=ofd_packets/00156879 [12:16:53]NVStorageSaveData ofd_packets/00156879 [12:16:53]File name is /storage/ofd_packets/00156879 [12:16:53]Write 301 bytes [12:16:53]NVStorageSaveData done [12:16:53]OFDSenderStorePacket done [12:16:53]KKMCreateOFDPacket done [12:16:53]NVStorageSaveData kkm_last_timestamp [12:16:53]File name is /storage/kkm_last_timestamp [12:16:53]Write 4 bytes [12:16:53]NVStorageSaveData done [12:16:53]ExternCall_PrintAddStr [12:16:53]wPrintStart [12:16:53]Write to MH i2c: 01 00 00 AF 1C CB [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 07 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 07 00 AF 1C 00 00 00 00 00 FF 0F E0 [12:16:53]RasterBufferAndPrint [12:16:53]line Счет N : (1)99693 [12:16:53]line ИНН: 02508201610067 [12:16:53]line Контрольно-Кассовый Чек [12:16:53]line ПРОДАЖА [12:16:53]line ТРК (МРК, ГНК) : 31 [12:16:53]line Товар: 2710124130 [12:16:53]line Аи-92-К-5 [12:16:53]line 14.950 * 66.90 [12:16:53]line = 1000.16 [12:16:53]line НДС 12% НСП 1% [12:16:53]line > о реализуемом товаре [12:16:53]line ОКРУГЛЕНИЕ: -0.16 [12:16:53]line ИТОГО: 1000.00 [12:16:53]line Внесено: 1000.00 [12:16:53]line СДАЧА: 0.00 [12:16:53]line НСП 1% : 8.85 [12:16:53]line НДС 12% : 106.21 [12:16:53]line Наличными: 1000.00 [12:16:53]line Безнал.: 0.00 [12:16:53]line Место: АЗС № 143 "Партнер Нефть" [12:16:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:16:53]line СНО: Общий режим [12:16:53]line Чек 95 28.10.2024 12:16 [12:16:53]line Смена: 538 ФФД: 1.0 [12:16:53]line ЗНМ: 0300000096 [12:16:53]line РНМ: 0000000000091693 [12:16:53]line Версия ККМ: 001 [12:16:53]line ФМ: 0000000000871792 [12:16:53]line ФД: 156879 [12:16:53]line ФПД: 212773322941494 [12:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156879&fm=212773322941494&tin=02508201610067®Number=0000000000091693&sum=100000 [12:16:54]OFD Sender: Processing packet 156879 [packets to send 31, broken 30] [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00156879 [12:16:54]OFD Sender: To server: pG, [12:16:54]CommunicateWithHost lk.salyk.kg:30040 [12:16:54]ConnectInit lk.salyk.kg [12:16:54]written 0, free lines is 4095 [12:16:54]Connected sock=10 [12:16: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 37 39 32 0F 01 00 00 8B F4 07 01 03 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 5F 00 00 00 F4 03 04 00 B7 80 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 64 02 00 35 04 06 00 C1 84 26 54 E4 36 F6 BA 88 BF 53 72 18 3A [12:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C0 40 47 00 AF 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 37 39 32 10 04 04 00 CF 64 02 00 F4 03 04 00 23 26 1F 67 B6 04 01 00 00 92 BB 67 00 38 01 ED 73 [12:16:54]CommunicateWithHost err = 0 [12:16:54]CheckOFDResponse [12:16:54]1017 (14) - 77093643461234 [12:16:54]1041 (16) - 0000000000871792 [12:16:54]1040 (4) - 156879 [12:16:54]1012 (4) - 28.10.2024 05:50 [12:16:54]1206 (1) - 0 [12:16:54]OFD Sender: Remove packet 156879 [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00156879 [12:16:54]NVStorageDeleteData [12:16:54]Write to MH i2c: 01 00 00 DA 1C F6 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 DA 1C 00 00 00 00 00 D5 0C DE [12:16:54]RasterBufferAndPrint [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]written 0, free lines is 3292 [12:16:54]process_action close_receipt done [12:16:54]requested_data is exist [12:16:54]produce_requested_data [12:16:54]requested_item fm.sn is exist - process it [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 11 00 00 [12:16:54]Write to MH i2c: E2 08 00 E1 1C 80 11 00 00 00 00 00 00 77 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 17 00 E1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [12:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:54]wFMCommunicate OK [12:16:54]requested_item fd.num is exist - process it [12:16:54]SAM_PROTO_GetFieldsCounters [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 00 00 [12:16:54]Write to MH i2c: E2 08 00 E2 1C 80 13 00 00 00 00 00 00 7A [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 62 00 E2 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 64 02 00 0E 04 04 00 1A 02 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 0E [12:16: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 64 02 00 0E 04 04 00 1A 02 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 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetFieldsCounters done [12:16:54]requested_item shift.num is exist - process it [12:16:54]requested_item shift.opened is exist - process it [12:16:54]req_shift_opened [12:16:54]FM_GetShiftState [12:16:54]SAM_PROTO_GetShiftState [12:16:54]wFMCommunicate request_size=4 [12:16:54]MH_SAM_APDU [12:16:54]CAPDU: 80 13 01 00 [12:16:54]Write to MH i2c: E2 08 00 E3 1C 80 13 01 00 00 00 00 00 7C [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:54]Read from MH i2c: E2 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: E2 0E 00 E3 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6E [12:16:54]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:16:54]wFMCommunicate OK [12:16:54]SAM_PROTO_GetShiftState done [12:16:54]FM_GetShiftState done [12:16:54]req_shift_opened done [12:16:54]requested_item shift.open_date is exist - process it [12:16:54]req_shift_open_date [12:16:54]req_shift_open_date done [12:16:54]produce_requested_data done [12:16:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156879,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:16:54]process_action_free close_receipt [12:16:54]json_value_free [12:16:54]json_value_free done [12:16:54]process_json_proto returns [12:16:54]Send response to host [12:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156879,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:16:54]free response buf [12:16:54]execute_script done [12:16:54]execute_script returns [12:16:54]free content buf [12:16:54]Sock 9.Close socket [12:16:54]Sock 9.Thread stoped [12:16:55]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:15]OFD Sender: No OFD packet to send [12:18:15]accept exits with 7 [12:18:15]New connection [12:18:15]New thread 3066604900 created [12:18:15]Thread 3066748260 joined [12:18:15]Waiting for new connection... [12:18:15] Sock 7.Parse request [12:18:15]Sock 7.Check first char [12:18:15]Sock 7.First char is OK [12:18:15]request: POST /json_proto HTTP/1.0 [12:18:15]Method: POST [12:18:15]URL: /json_proto [12:18:15]Method is POST - this is cgi request [12:18:15]url: /json_proto [12:18:15]query_string will be loaded in cgi processing [12:18:15]execute_cgi json_proto POST (null) [12:18:15]execute_cgi path=json_proto method=POST [12:18:15]POST find Content-Length [12:18:15]Host: 172.17.63.3:8080 [12:18:15]Content-Length: 768 [12:18:15]Content-Type: application/json [12:18:15] [12:18:15]POST finish read [12:18:15]Found Content-Length = 768 [12:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:15]execute_script... [12:18: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)99694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:15]POST & json_proto [12:18:15]process_json_proto [12:18:15]json parsed OK: [12:18:15]protocol is kg_v1.0 [12:18:15]action value=close_receipt [12:18:15]process_action close_receipt [12:18:15]cmd_close_receipt [12:18:15]MH_GetDate [12:18:15]Write to MH i2c: F0 00 00 E4 1C EF [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 09 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: F0 09 00 E4 1C 00 0A 81 1F 67 50 D1 6C 64 FA [12:18:15]GetLastDocTimeStamp 1730117815 [12:18:15]current date 1730117898 [12:18:15]FM_GetShiftState [12:18:15]SAM_PROTO_GetShiftState [12:18:15]wFMCommunicate request_size=4 [12:18:15]MH_SAM_APDU [12:18:15]CAPDU: 80 13 01 00 [12:18:15]Write to MH i2c: E2 08 00 E5 1C 80 13 01 00 00 00 00 00 7E [12:18:15]Write i2c OK [12:18:15]MH_I2C_Read... [12:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:15]Read from MH i2c: E2 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 0E 00 [12:18:15]MH_I2C_Read... [12:18:15]Read from MH i2c: E2 0E 00 E5 1C 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 70 [12:18:15]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:18:15]wFMCommunicate OK [12:18:15]SAM_PROTO_GetShiftState done [12:18:15]FM_GetShiftState done [12:18:15]opened in 1730075526 [12:18:15]opened+sec_in_day 1730161926 [12:18:15]quantity*price = 100015 [12:18:15]sum+1 = 100017 [12:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 96 28.10.2024 12:18 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156880 ФПД: 168250657955966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156880&fm=168250657955966&tin=02508201610067®Number=0000000000091693&sum=100016 [12:18:16]StoreToDocumentArchive [12:18:16]shift 538 fd 156880 [12:18:16]save to /storage/0538/doc_00156880 [12:18:16]save last doc name /storage/0538/doc_00156880 to /storage/kkm_last_doc_name [12:18:16]save OK [12:18:16]Clear old archive folders... [12:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:16]tlvbuf is 01ACF9C0 [12:18:16]SAM_PROTO_ClearQueue [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 09 00 00 [12:18:16]Write to MH i2c: E2 08 00 F2 1C 80 09 00 00 00 00 00 00 80 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 F2 1C 00 90 00 82 [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]SAM_PROTO_ClearQueue done [12:18:16]KKMCreateOFDPacket [12:18:16]OFDProtocolAddRootSTLVToBuf [12:18:16]FM_MakeSignedData [12:18:16]FM_MakeSignedData [12:18:16]SAM_PROTO_SignData [12:18:16]wFMCommunicate request_size=4 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 01 02 [12:18:16]Write to MH i2c: E2 08 00 F3 1C 80 0D 01 02 00 00 00 00 88 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:16]Read from MH i2c: E2 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 [12:18:16]MH_I2C_Read... [12:18:16]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [12:18:16]RAPDU: 90 00 [12:18:16]wFMCommunicate OK [12:18:16]wFMCommunicate request_size=255 [12:18:16]MH_SAM_APDU [12:18:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0A 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 64 02 00 35 04 06 00 99 [12:18:16]Write to MH i2c: E2 02 01 F4 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0A 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 64 02 00 35 04 06 00 99 00 00 92 [12:18:16]Write i2c OK [12:18:16]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:17]Read from MH i2c: E2 03 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [12:18:17]RAPDU: 90 00 [12:18:17]wFMCommunicate OK [12:18:17]wFMCommunicate request_size=10 [12:18:17]MH_SAM_APDU [12:18:17]CAPDU: 80 0D 02 02 05 05 E8 B3 60 7E [12:18:17]Write to MH i2c: E2 0D 00 F5 1C 80 0D 02 02 05 00 05 E8 B3 60 7E 00 00 13 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 03 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 03 00 F5 1C 00 90 00 85 [12:18:17]RAPDU: 90 00 [12:18:17]wFMCommunicate OK [12:18:17]wFMCommunicate request_size=4 [12:18:17]MH_SAM_APDU [12:18:17]CAPDU: 80 0D 03 02 [12:18:17]Write to MH i2c: E2 08 00 F6 1C 80 0D 03 02 00 00 00 00 8D [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 0B 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 0B 00 F6 1C 00 17 BB 6F FE 88 7C 85 37 90 00 8D [12:18:17]RAPDU: 17 BB 6F FE 88 7C 85 37 90 00 [12:18:17]wFMCommunicate OK [12:18:17]SAM_PROTO_SignData done [12:18:17]FM_MakeSignedData done [12:18:17]CreateOFDProtocolMessage [12:18:17]wFMCommunicate request_size=4 [12:18:17]MH_SAM_APDU [12:18:17]CAPDU: 80 11 00 00 [12:18:17]Write to MH i2c: E2 08 00 F7 1C 80 11 00 00 00 00 00 00 8D [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:17]Read from MH i2c: E2 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 17 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: E2 17 00 F7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [12:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:18:17]wFMCommunicate OK [12:18:17]CreateOFDProtocolMessage done [12:18:17]OFDSenderStorePacket 156880 [12:18:17]StoreOFDPacket docnum=156880 [12:18:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 7D 07 01 73 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0A 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 64 02 00 35 04 06 00 99 05 E8 B3 60 7E 17 BB 6F FE 88 7C 85 37 [12:18:17]CheckFolder [12:18:17]dirname=/storage/ofd_packets [12:18:17]CheckFolder done [12:18:17]ProducePacketName [12:18:17]name=ofd_packets/00156880 [12:18:17]NVStorageSaveData ofd_packets/00156880 [12:18:17]File name is /storage/ofd_packets/00156880 [12:18:17]Write 301 bytes [12:18:17]NVStorageSaveData done [12:18:17]OFDSenderStorePacket done [12:18:17]KKMCreateOFDPacket done [12:18:17]NVStorageSaveData kkm_last_timestamp [12:18:17]File name is /storage/kkm_last_timestamp [12:18:17]Write 4 bytes [12:18:17]NVStorageSaveData done [12:18:17]ExternCall_PrintAddStr [12:18:17]wPrintStart [12:18:17]Write to MH i2c: 01 00 00 F8 1C 14 [12:18:17]Write i2c OK [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 [12:18:17]MH_I2C_Read... [12:18:17]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 FF 0F 29 [12:18:17]RasterBufferAndPrint [12:18:17]line Счет N : (1)99694 [12:18:17]line ИНН: 02508201610067 [12:18:17]line Контрольно-Кассовый Чек [12:18:17]line ПРОДАЖА [12:18:17]line ТРК (МРК, ГНК) : 31 [12:18:17]line Товар: 2710124130 [12:18:17]line Аи-92-К-5 [12:18:17]line 14.950 * 66.90 [12:18:17]line = 1000.16 [12:18:17]line НДС 12% НСП 1% [12:18:17]line > о реализуемом товаре [12:18:17]line ИТОГО: 1000.16 [12:18:17]line НСП 1% : 8.85 [12:18:17]line НДС 12% : 106.21 [12:18:17]line Наличными: 0.00 [12:18:17]line Безнал.: 1000.16 [12:18:17]line Место: АЗС № 143 "Партнер Нефть" [12:18:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:18:17]line СНО: Общий режим [12:18:17]line Чек 96 28.10.2024 12:18 [12:18:17]line Смена: 538 ФФД: 1.0 [12:18:17]line ЗНМ: 0300000096 [12:18:17]line РНМ: 0000000000091693 [12:18:17]line Версия ККМ: 001 [12:18:17]line Платежная система: Mbank [12:18:17]line ФМ: 0000000000871792 [12:18:17]line ФД: 156880 [12:18:17]line ФПД: 168250657955966 [12:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121818&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156880&fm=168250657955966&tin=02508201610067®Number=0000000000091693&sum=100016 [12:18:17]OFD Sender: Processing packet 156880 [packets to send 31, broken 30] [12:18:17]ProducePacketName [12:18:17]name=ofd_packets/00156880 [12:18:17]OFD Sender: To server: pG, [12:18:17]CommunicateWithHost lk.salyk.kg:30040 [12:18:17]ConnectInit lk.salyk.kg [12:18:17]written 0, free lines is 4095 [12:18:17]Connected sock=10 [12:18: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 37 39 32 0F 01 00 00 D5 7D 07 01 73 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 0A 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 64 02 00 35 04 06 00 99 05 E8 B3 60 7E 17 BB 6F FE 88 7C 85 37 [12:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4A 21 47 00 B1 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 64 02 00 F4 03 04 00 76 26 1F 67 B6 04 01 00 00 43 8D 03 4B E0 52 B5 BD [12:18:17]CommunicateWithHost err = 0 [12:18:17]CheckOFDResponse [12:18:17]1017 (14) - 77093643461234 [12:18:17]1041 (16) - 0000000000871792 [12:18:17]1040 (4) - 156880 [12:18:17]1012 (4) - 28.10.2024 05:51 [12:18:17]1206 (1) - 0 [12:18:17]OFD Sender: Remove packet 156880 [12:18:17]ProducePacketName [12:18:17]name=ofd_packets/00156880 [12:18:17]NVStorageDeleteData [12:18:18]Write to MH i2c: 01 00 00 21 1D 3E [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: 01 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: 01 07 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: 01 07 00 21 1D 00 00 00 00 00 04 0D 56 [12:18:18]RasterBufferAndPrint [12:18:18]line [12:18:18]line [12:18:18]line [12:18:18]line [12:18:18]line [12:18:18]written 0, free lines is 3339 [12:18:18]process_action close_receipt done [12:18:18]requested_data is exist [12:18:18]produce_requested_data [12:18:18]requested_item fm.sn is exist - process it [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 11 00 00 [12:18:18]Write to MH i2c: E2 08 00 28 1D 80 11 00 00 00 00 00 00 BF [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:18]Read from MH i2c: E2 17 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 17 00 28 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [12:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:18:18]wFMCommunicate OK [12:18:18]requested_item fd.num is exist - process it [12:18:18]SAM_PROTO_GetFieldsCounters [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 00 00 [12:18:18]Write to MH i2c: E2 08 00 29 1D 80 13 00 00 00 00 00 00 C2 [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 62 00 29 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 64 02 00 0E 04 04 00 1A 02 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 5A [12:18: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 64 02 00 0E 04 04 00 1A 02 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 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetFieldsCounters done [12:18:18]requested_item shift.num is exist - process it [12:18:18]requested_item shift.opened is exist - process it [12:18:18]req_shift_opened [12:18:18]FM_GetShiftState [12:18:18]SAM_PROTO_GetShiftState [12:18:18]wFMCommunicate request_size=4 [12:18:18]MH_SAM_APDU [12:18:18]CAPDU: 80 13 01 00 [12:18:18]Write to MH i2c: E2 08 00 2A 1D 80 13 01 00 00 00 00 00 C4 [12:18:18]Write i2c OK [12:18:18]MH_I2C_Read... [12:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:18]Read from MH i2c: E2 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 [12:18:18]MH_I2C_Read... [12:18:18]Read from MH i2c: E2 0E 00 2A 1D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B6 [12:18:18]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:18:18]wFMCommunicate OK [12:18:18]SAM_PROTO_GetShiftState done [12:18:18]FM_GetShiftState done [12:18:18]req_shift_opened done [12:18:18]requested_item shift.open_date is exist - process it [12:18:18]req_shift_open_date [12:18:18]req_shift_open_date done [12:18:18]produce_requested_data done [12:18:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156880,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:18:18]process_action_free close_receipt [12:18:18]json_value_free [12:18:18]json_value_free done [12:18:18]process_json_proto returns [12:18:18]Send response to host [12:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156880,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:18:18]free response buf [12:18:18]execute_script done [12:18:18]execute_script returns [12:18:18]free content buf [12:18:18]Sock 7.Close socket [12:18:18]Sock 7.Thread stoped [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:34]accept exits with 9 [12:19:34]New connection [12:19:34]New thread 3066748260 created [12:19:34]Thread 3066604900 joined [12:19:34]Waiting for new connection... [12:19:34] Sock 9.Parse request [12:19:34]Sock 9.Check first char [12:19:34]Sock 9.First char is OK [12:19:34]request: POST /json_proto HTTP/1.0 [12:19:34]Method: POST [12:19:34]URL: /json_proto [12:19:34]Method is POST - this is cgi request [12:19:34]url: /json_proto [12:19:34]query_string will be loaded in cgi processing [12:19:34]execute_cgi json_proto POST (null) [12:19:34]execute_cgi path=json_proto method=POST [12:19:34]POST find Content-Length [12:19:34]Host: 172.17.63.3:8080 [12:19:34]Content-Length: 676 [12:19:34]Content-Type: application/json [12:19:34] [12:19:34]POST finish read [12:19:34]Found Content-Length = 676 [12:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:19:34]execute_script... [12:19: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)99695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:19:34]POST & json_proto [12:19:34]process_json_proto [12:19:34]json parsed OK: [12:19:34]protocol is kg_v1.0 [12:19:34]action value=close_receipt [12:19:34]process_action close_receipt [12:19:34]cmd_close_receipt [12:19:34]MH_GetDate [12:19:34]Write to MH i2c: F0 00 00 2B 1D 37 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: F0 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: F0 09 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: F0 09 00 2B 1D 00 58 81 1F 67 50 D1 6C 64 90 [12:19:34]GetLastDocTimeStamp 1730117898 [12:19:34]current date 1730117976 [12:19:34]FM_GetShiftState [12:19:34]SAM_PROTO_GetShiftState [12:19:34]wFMCommunicate request_size=4 [12:19:34]MH_SAM_APDU [12:19:34]CAPDU: 80 13 01 00 [12:19:34]Write to MH i2c: E2 08 00 2C 1D 80 13 01 00 00 00 00 00 C6 [12:19:34]Write i2c OK [12:19:34]MH_I2C_Read... [12:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:34]Read from MH i2c: E2 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 0E 00 [12:19:34]MH_I2C_Read... [12:19:34]Read from MH i2c: E2 0E 00 2C 1D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B8 [12:19:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:19:34]wFMCommunicate OK [12:19:34]SAM_PROTO_GetShiftState done [12:19:34]FM_GetShiftState done [12:19:34]opened in 1730075526 [12:19:34]opened+sec_in_day 1730161926 [12:19:34]quantity*price = 50041 [12:19:34]sum+1 = 50042 [12:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 97 28.10.2024 12:19 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156881 ФПД: 209492676134400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121936&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156881&fm=209492676134400&tin=02508201610067®Number=0000000000091693&sum=50000 [12:19:35]StoreToDocumentArchive [12:19:35]shift 538 fd 156881 [12:19:35]save to /storage/0538/doc_00156881 [12:19:35]save last doc name /storage/0538/doc_00156881 to /storage/kkm_last_doc_name [12:19:35]save OK [12:19:35]Clear old archive folders... [12:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:35]tlvbuf is B6E76440 [12:19:35]SAM_PROTO_ClearQueue [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 09 00 00 [12:19:35]Write to MH i2c: E2 08 00 39 1D 80 09 00 00 00 00 00 00 C8 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_ClearQueue done [12:19:35]KKMCreateOFDPacket [12:19:35]OFDProtocolAddRootSTLVToBuf [12:19:35]FM_MakeSignedData [12:19:35]FM_MakeSignedData [12:19:35]SAM_PROTO_SignData [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 01 02 [12:19:35]Write to MH i2c: E2 08 00 3A 1D 80 0D 01 02 00 00 00 00 D0 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=255 [12:19:35]MH_SAM_APDU [12:19: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 00 00 00 F4 03 04 00 58 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 64 02 00 35 04 06 00 BE [12:19:35]Write to MH i2c: E2 02 01 3B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 00 00 00 F4 03 04 00 58 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 64 02 00 35 04 06 00 BE 00 00 35 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=10 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 02 02 05 88 50 8B 46 00 [12:19:35]Write to MH i2c: E2 0D 00 3C 1D 80 0D 02 02 05 00 88 50 8B 46 00 00 00 86 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 03 00 3C 1D 00 90 00 CD [12:19:35]RAPDU: 90 00 [12:19:35]wFMCommunicate OK [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 0D 03 02 [12:19:35]Write to MH i2c: E2 08 00 3D 1D 80 0D 03 02 00 00 00 00 D5 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0B 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 0B 00 3D 1D 00 C0 0C 1E A0 37 B1 4E CC 90 00 62 [12:19:35]RAPDU: C0 0C 1E A0 37 B1 4E CC 90 00 [12:19:35]wFMCommunicate OK [12:19:35]SAM_PROTO_SignData done [12:19:35]FM_MakeSignedData done [12:19:35]CreateOFDProtocolMessage [12:19:35]wFMCommunicate request_size=4 [12:19:35]MH_SAM_APDU [12:19:35]CAPDU: 80 11 00 00 [12:19:35]Write to MH i2c: E2 08 00 3E 1D 80 11 00 00 00 00 00 00 D5 [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:35]Read from MH i2c: E2 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: E2 17 00 3E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [12:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:35]wFMCommunicate OK [12:19:35]CreateOFDProtocolMessage done [12:19:35]OFDSenderStorePacket 156881 [12:19:35]StoreOFDPacket docnum=156881 [12:19:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 39 C2 07 01 C2 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 00 00 00 F4 03 04 00 58 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 64 02 00 35 04 06 00 BE 88 50 8B 46 00 C0 0C 1E A0 37 B1 4E CC [12:19:35]CheckFolder [12:19:35]dirname=/storage/ofd_packets [12:19:35]CheckFolder done [12:19:35]ProducePacketName [12:19:35]name=ofd_packets/00156881 [12:19:35]NVStorageSaveData ofd_packets/00156881 [12:19:35]File name is /storage/ofd_packets/00156881 [12:19:35]Write 301 bytes [12:19:35]NVStorageSaveData done [12:19:35]OFDSenderStorePacket done [12:19:35]KKMCreateOFDPacket done [12:19:35]NVStorageSaveData kkm_last_timestamp [12:19:35]File name is /storage/kkm_last_timestamp [12:19:35]Write 4 bytes [12:19:35]NVStorageSaveData done [12:19:35]ExternCall_PrintAddStr [12:19:35]wPrintStart [12:19:35]Write to MH i2c: 01 00 00 3F 1D 5C [12:19:35]Write i2c OK [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 [12:19:35]MH_I2C_Read... [12:19:35]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 FF 0F 71 [12:19:35]RasterBufferAndPrint [12:19:35]line Счет N : (1)99695 [12:19:35]line ИНН: 02508201610067 [12:19:35]line Контрольно-Кассовый Чек [12:19:35]line ПРОДАЖА [12:19:35]line ТРК (МРК, ГНК) : 31 [12:19:35]line Товар: 2710124130 [12:19:35]line Аи-92-К-5 [12:19:35]line 7.480 * 66.90 [12:19:35]line = 500.41 [12:19:35]line НДС 12% НСП 1% [12:19:35]line > о реализуемом товаре [12:19:35]line ОКРУГЛЕНИЕ: -0.41 [12:19:35]line ИТОГО: 500.00 [12:19:35]line Внесено: 500.00 [12:19:35]line СДАЧА: 0.00 [12:19:35]line НСП 1% : 4.43 [12:19:35]line НДС 12% : 53.14 [12:19:35]line Наличными: 500.00 [12:19:35]line Безнал.: 0.00 [12:19:35]line Место: АЗС № 143 "Партнер Нефть" [12:19:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:19:35]line СНО: Общий режим [12:19:35]line Чек 97 28.10.2024 12:19 [12:19:35]line Смена: 538 ФФД: 1.0 [12:19:35]line ЗНМ: 0300000096 [12:19:35]line РНМ: 0000000000091693 [12:19:35]line Версия ККМ: 001 [12:19:35]line ФМ: 0000000000871792 [12:19:35]line ФД: 156881 [12:19:35]line ФПД: 209492676134400 [12:19:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121936&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156881&fm=209492676134400&tin=02508201610067®Number=0000000000091693&sum=50000 [12:19:36]OFD Sender: Processing packet 156881 [packets to send 31, broken 30] [12:19:36]ProducePacketName [12:19:36]name=ofd_packets/00156881 [12:19:36]OFD Sender: To server: pG, [12:19:36]CommunicateWithHost lk.salyk.kg:30040 [12:19:36]ConnectInit lk.salyk.kg [12:19:36]written 0, free lines is 4095 [12:19:36]Connected sock=10 [12:19: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 37 39 32 0F 01 00 00 39 C2 07 01 C2 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 61 00 00 00 F4 03 04 00 58 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 64 02 00 35 04 06 00 BE 88 50 8B 46 00 C0 0C 1E A0 37 B1 4E CC [12:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 58 1D 47 00 B0 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 64 02 00 F4 03 04 00 C5 26 1F 67 B6 04 01 00 00 0F 31 09 4A DE 7F F2 F5 [12:19:36]CommunicateWithHost err = 0 [12:19:36]CheckOFDResponse [12:19:36]1017 (14) - 77093643461234 [12:19:36]1041 (16) - 0000000000871792 [12:19:36]1040 (4) - 156881 [12:19:36]1012 (4) - 28.10.2024 05:53 [12:19:36]1206 (1) - 0 [12:19:36]OFD Sender: Remove packet 156881 [12:19:36]ProducePacketName [12:19:36]name=ofd_packets/00156881 [12:19:36]NVStorageDeleteData [12:19:36]Write to MH i2c: 01 00 00 6A 1D 87 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: 01 07 00 6A 1D 00 00 00 00 00 D4 0C 6E [12:19:36]RasterBufferAndPrint [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]line [12:19:36]written 0, free lines is 3292 [12:19:36]process_action close_receipt done [12:19:36]requested_data is exist [12:19:36]produce_requested_data [12:19:36]requested_item fm.sn is exist - process it [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 11 00 00 [12:19:36]Write to MH i2c: E2 08 00 71 1D 80 11 00 00 00 00 00 00 08 [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 17 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 17 00 71 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [12:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:36]wFMCommunicate OK [12:19:36]requested_item fd.num is exist - process it [12:19:36]SAM_PROTO_GetFieldsCounters [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 13 00 00 [12:19:36]Write to MH i2c: E2 08 00 72 1D 80 13 00 00 00 00 00 00 0B [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 62 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 62 00 72 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 64 02 00 0E 04 04 00 1A 02 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 A7 [12:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 64 02 00 0E 04 04 00 1A 02 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 [12:19:36]wFMCommunicate OK [12:19:36]SAM_PROTO_GetFieldsCounters done [12:19:36]requested_item shift.num is exist - process it [12:19:36]requested_item shift.opened is exist - process it [12:19:36]req_shift_opened [12:19:36]FM_GetShiftState [12:19:36]SAM_PROTO_GetShiftState [12:19:36]wFMCommunicate request_size=4 [12:19:36]MH_SAM_APDU [12:19:36]CAPDU: 80 13 01 00 [12:19:36]Write to MH i2c: E2 08 00 73 1D 80 13 01 00 00 00 00 00 0D [12:19:36]Write i2c OK [12:19:36]MH_I2C_Read... [12:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:36]Read from MH i2c: E2 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 0E 00 [12:19:36]MH_I2C_Read... [12:19:36]Read from MH i2c: E2 0E 00 73 1D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FF [12:19:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:19:36]wFMCommunicate OK [12:19:36]SAM_PROTO_GetShiftState done [12:19:36]FM_GetShiftState done [12:19:36]req_shift_opened done [12:19:36]requested_item shift.open_date is exist - process it [12:19:36]req_shift_open_date [12:19:36]req_shift_open_date done [12:19:36]produce_requested_data done [12:19:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156881,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:19:36]process_action_free close_receipt [12:19:36]json_value_free [12:19:36]json_value_free done [12:19:36]process_json_proto returns [12:19:36]Send response to host [12:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156881,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:19:36]free response buf [12:19:36]execute_script done [12:19:36]execute_script returns [12:19:36]free content buf [12:19:36]Sock 9.Close socket [12:19:36]Sock 9.Thread stoped [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=11 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [12:21:50]Write to MH i2c: E2 0E 00 7D 1D 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 4C [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=13 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 15 02 00 08 F4 03 04 00 E0 81 1F 67 [12:21:50]Write to MH i2c: E2 10 00 7E 1D 80 15 02 00 08 00 F4 03 04 00 E0 81 1F 67 00 00 0D [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 7E 1D 00 90 00 0F [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=25 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [12:21:50]Write to MH i2c: E2 1C 00 7F 1D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 81 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 15 03 00 [12:21:50]Write to MH i2c: E2 08 00 80 1D 80 15 03 00 00 00 00 00 1E [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 40 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 40 00 80 1D 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 62 00 00 00 35 04 06 00 98 E4 43 6B E1 29 90 00 00 [12:21:50]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 62 00 00 00 35 04 06 00 98 E4 43 6B E1 29 90 00 [12:21:50]wFMCommunicate OK [12:21:50]SAM_PROTO_ProcessDocument answer len = 59 [12:21:50]SAM_PROTO_ProcessDocument done [12:21:50]SetTLVBufToDocument [12:21:50]Processing tag 1209 (04B9) [12:21:50]Malloc new data [12:21:50]Processing tag 1041 (0411) [12:21:50]Processing tag 1040 (0410) [12:21:50]Malloc new data [12:21:50]Processing tag 1038 (040E) [12:21:50]Malloc new data [12:21:50]Processing tag 1042 (0412) [12:21:50]Malloc new data [12:21:50]Processing tag 1077 (0435) [12:21:50]Malloc new data [12:21:50]SetTLVBufToDocument err=0 [12:21:50]KKMLoadAndSignReceiptData store KKM data [12:21:50]KKMLoadAndSignReceiptData err=0 [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 11 00 00 [12:21:50]Write to MH i2c: E2 08 00 81 1D 80 11 00 00 00 00 00 00 18 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 17 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 17 00 81 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [12:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:21:50]wFMCommunicate OK [12:21:50]Счет N : (1)99696 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710124130 Аи-92-К-5 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 98 28.10.2024 12:21 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156882 ФПД: 168106151108905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156882&fm=168106151108905&tin=02508201610067®Number=0000000000091693&sum=50000 [12:21:50]StoreToDocumentArchive [12:21:50]shift 538 fd 156882 [12:21:50]save to /storage/0538/doc_00156882 [12:21:50]save last doc name /storage/0538/doc_00156882 to /storage/kkm_last_doc_name [12:21:50]save OK [12:21:50]Clear old archive folders... [12:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:50]tlvbuf is B6F235C0 [12:21:50]SAM_PROTO_ClearQueue [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 09 00 00 [12:21:50]Write to MH i2c: E2 08 00 82 1D 80 09 00 00 00 00 00 00 11 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]SAM_PROTO_ClearQueue done [12:21:50]KKMCreateOFDPacket [12:21:50]OFDProtocolAddRootSTLVToBuf [12:21:50]FM_MakeSignedData [12:21:50]FM_MakeSignedData [12:21:50]SAM_PROTO_SignData [12:21:50]wFMCommunicate request_size=4 [12:21:50]MH_SAM_APDU [12:21:50]CAPDU: 80 0D 01 02 [12:21:50]Write to MH i2c: E2 08 00 83 1D 80 0D 01 02 00 00 00 00 19 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:50]Read from MH i2c: E2 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 [12:21:50]MH_I2C_Read... [12:21:50]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [12:21:50]RAPDU: 90 00 [12:21:50]wFMCommunicate OK [12:21:50]wFMCommunicate request_size=255 [12:21:50]MH_SAM_APDU [12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 62 00 00 00 F4 03 04 00 E0 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 35 04 06 00 98 [12:21:50]Write to MH i2c: E2 02 01 84 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 62 00 00 00 F4 03 04 00 E0 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 35 04 06 00 98 00 00 E2 [12:21:50]Write i2c OK [12:21:50]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [12:21:51]RAPDU: 90 00 [12:21:51]wFMCommunicate OK [12:21:51]wFMCommunicate request_size=10 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 0D 02 02 05 E4 43 6B E1 29 [12:21:51]Write to MH i2c: E2 0D 00 85 1D 80 0D 02 02 05 00 E4 43 6B E1 29 00 00 C2 [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [12:21:51]RAPDU: 90 00 [12:21:51]wFMCommunicate OK [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 0D 03 02 [12:21:51]Write to MH i2c: E2 08 00 86 1D 80 0D 03 02 00 00 00 00 1E [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 0B 00 86 1D 00 0D 05 AA D8 38 45 44 1D 90 00 91 [12:21:51]RAPDU: 0D 05 AA D8 38 45 44 1D 90 00 [12:21:51]wFMCommunicate OK [12:21:51]SAM_PROTO_SignData done [12:21:51]FM_MakeSignedData done [12:21:51]CreateOFDProtocolMessage [12:21:51]wFMCommunicate request_size=4 [12:21:51]MH_SAM_APDU [12:21:51]CAPDU: 80 11 00 00 [12:21:51]Write to MH i2c: E2 08 00 87 1D 80 11 00 00 00 00 00 00 1E [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:51]Read from MH i2c: E2 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: E2 17 00 87 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [12:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:21:51]wFMCommunicate OK [12:21:51]CreateOFDProtocolMessage done [12:21:51]OFDSenderStorePacket 156882 [12:21:51]StoreOFDPacket docnum=156882 [12:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 55 A1 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 62 00 00 00 F4 03 04 00 E0 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 35 04 06 00 98 E4 43 6B E1 29 0D 05 AA D8 38 45 44 1D [12:21:51]CheckFolder [12:21:51]dirname=/storage/ofd_packets [12:21:51]CheckFolder done [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00156882 [12:21:51]NVStorageSaveData ofd_packets/00156882 [12:21:51]File name is /storage/ofd_packets/00156882 [12:21:51]Write 301 bytes [12:21:51]NVStorageSaveData done [12:21:51]OFDSenderStorePacket done [12:21:51]KKMCreateOFDPacket done [12:21:51]NVStorageSaveData kkm_last_timestamp [12:21:51]File name is /storage/kkm_last_timestamp [12:21:51]Write 4 bytes [12:21:51]NVStorageSaveData done [12:21:51]ExternCall_PrintAddStr [12:21:51]wPrintStart [12:21:51]Write to MH i2c: 01 00 00 88 1D A5 [12:21:51]OFD Sender: Processing packet 156882 [packets to send 31, broken 30] [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00156882 [12:21:51]OFD Sender: To server: pG, [12:21:51]CommunicateWithHost lk.salyk.kg:30040 [12:21:51]ConnectInit lk.salyk.kg [12:21:51]Write i2c OK [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 [12:21:51]MH_I2C_Read... [12:21:51]Read from MH i2c: 01 07 00 88 1D 00 00 00 00 00 FF 0F BA [12:21:51]RasterBufferAndPrint [12:21:51]line Счет N : (1)99696 [12:21:51]line ИНН: 02508201610067 [12:21:51]line Контрольно-Кассовый Чек [12:21:51]line ПРОДАЖА [12:21:51]line ТРК (МРК, ГНК) : 31 [12:21:51]line Товар: 2710124130 [12:21:51]line Аи-92-К-5 [12:21:51]line 7.480 * 66.90 [12:21:51]line = 500.41 [12:21:51]line НДС 12% НСП 1% [12:21:51]line > о реализуемом товаре [12:21:51]line ОКРУГЛЕНИЕ: -0.41 [12:21:51]line ИТОГО: 500.00 [12:21:51]line Внесено: 500.00 [12:21:51]line СДАЧА: 0.00 [12:21:51]line НСП 1% : 4.43 [12:21:51]line НДС 12% : 53.14 [12:21:51]line Наличными: 500.00 [12:21:51]line Безнал.: 0.00 [12:21:51]line Место: АЗС № 143 "Партнер Нефть" [12:21:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:21:51]line СНО: Общий режим [12:21:51]line Чек 98 28.10.2024 12:21 [12:21:51]line Смена: 538 ФФД: 1.0 [12:21:51]line ЗНМ: 0300000096 [12:21:51]line РНМ: 0000000000091693 [12:21:51]line Версия ККМ: 001 [12:21:51]line ФМ: 0000000000871792 [12:21:51]line ФД: 156882 [12:21:51]line ФПД: 168106151108905 [12:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122152&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156882&fm=168106151108905&tin=02508201610067®Number=0000000000091693&sum=50000 [12:21:51]Connected sock=11 [12: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 37 39 32 0F 01 00 00 55 A1 07 01 C3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 62 00 00 00 F4 03 04 00 E0 81 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 64 02 00 35 04 06 00 98 E4 43 6B E1 29 0D 05 AA D8 38 45 44 1D [12:21:51]written 0, free lines is 4095 [12: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 37 39 32 4F 00 00 00 88 CE 47 00 1A 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 37 39 32 10 04 04 00 D2 64 02 00 F4 03 04 00 4C 27 1F 67 B6 04 01 00 00 EE 27 6B 62 92 F6 55 83 [12:21:51]CommunicateWithHost err = 0 [12:21:51]CheckOFDResponse [12:21:51]1017 (14) - 77093643461234 [12:21:51]1041 (16) - 0000000000871792 [12:21:51]1040 (4) - 156882 [12:21:51]1012 (4) - 28.10.2024 05:55 [12:21:51]1206 (1) - 0 [12:21:51]OFD Sender: Remove packet 156882 [12:21:51]ProducePacketName [12:21:51]name=ofd_packets/00156882 [12:21:51]NVStorageDeleteData [12:21:52]Write to MH i2c: 01 00 00 B3 1D D0 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 07 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 D4 0C B7 [12:21:52]RasterBufferAndPrint [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]line [12:21:52]written 0, free lines is 3292 [12:21:52]process_action close_receipt done [12:21:52]requested_data is exist [12:21:52]produce_requested_data [12:21:52]requested_item fm.sn is exist - process it [12:21:52]wFMCommunicate request_size=4 [12:21:52]MH_SAM_APDU [12:21:52]CAPDU: 80 11 00 00 [12:21:52]Write to MH i2c: E2 08 00 BA 1D 80 11 00 00 00 00 00 00 51 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:52]Read from MH i2c: E2 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 17 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 17 00 BA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [12:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:21:52]wFMCommunicate OK [12:21:52]requested_item fd.num is exist - process it [12:21:52]SAM_PROTO_GetFieldsCounters [12:21:52]wFMCommunicate request_size=4 [12:21:52]MH_SAM_APDU [12:21:52]CAPDU: 80 13 00 00 [12:21:52]Write to MH i2c: E2 08 00 BB 1D 80 13 00 00 00 00 00 00 54 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:52]Read from MH i2c: E2 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 62 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 62 00 BB 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 64 02 00 0E 04 04 00 1A 02 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 F4 [12: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 64 02 00 0E 04 04 00 1A 02 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 [12:21:52]wFMCommunicate OK [12:21:52]SAM_PROTO_GetFieldsCounters done [12:21:52]requested_item shift.num is exist - process it [12:21:52]requested_item shift.opened is exist - process it [12:21:52]req_shift_opened [12:21:52]FM_GetShiftState [12:21:52]SAM_PROTO_GetShiftState [12:21:52]wFMCommunicate request_size=4 [12:21:52]MH_SAM_APDU [12:21:52]CAPDU: 80 13 01 00 [12:21:52]Write to MH i2c: E2 08 00 BC 1D 80 13 01 00 00 00 00 00 56 [12:21:52]Write i2c OK [12:21:52]MH_I2C_Read... [12:21:52]OFD Sender: No OFD packet to send [12:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:52]Read from MH i2c: E2 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 0E 00 [12:21:52]MH_I2C_Read... [12:21:52]Read from MH i2c: E2 0E 00 BC 1D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 48 [12:21:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:21:52]wFMCommunicate OK [12:21:52]SAM_PROTO_GetShiftState done [12:21:52]FM_GetShiftState done [12:21:52]req_shift_opened done [12:21:52]requested_item shift.open_date is exist - process it [12:21:52]req_shift_open_date [12:21:52]req_shift_open_date done [12:21:52]produce_requested_data done [12:21:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156882,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:21:52]process_action_free close_receipt [12:21:52]json_value_free [12:21:52]json_value_free done [12:21:52]process_json_proto returns [12:21:52]Send response to host [12:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156882,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:21:52]free response buf [12:21:52]execute_script done [12:21:52]execute_script returns [12:21:52]free content buf [12:21:52]Sock 7.Close socket [12:21:52]Sock 7.Thread stoped [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: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]ConnectInit Can't connect to host [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: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:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:00]ConnectInit Can't connect to host [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:22]accept exits with 10 [12:26:22]New connection [12:26:22]New thread 3066748260 created [12:26:22]Thread 3066604900 joined [12:26:22]Waiting for new connection... [12:26:22] Sock 10.Parse request [12:26:22]Sock 10.Check first char [12:26:22]Sock 10.First char is OK [12:26:22]request: POST /json_proto HTTP/1.0 [12:26:22]Method: POST [12:26:22]URL: /json_proto [12:26:22]Method is POST - this is cgi request [12:26:22]url: /json_proto [12:26:22]query_string will be loaded in cgi processing [12:26:22]execute_cgi json_proto POST (null) [12:26:22]execute_cgi path=json_proto method=POST [12:26:22]POST find Content-Length [12:26:22]Host: 172.17.63.3:8080 [12:26:22]Content-Length: 673 [12:26:22]Content-Type: application/json [12:26:22] [12:26:22]POST finish read [12:26:22]Found Content-Length = 673 [12:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:22]execute_script... [12:26: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)99697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.220, "sum" : 550.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:22]POST & json_proto [12:26:22]process_json_proto [12:26:22]json parsed OK: [12:26:22]protocol is kg_v1.0 [12:26:22]action value=close_receipt [12:26:22]process_action close_receipt [12:26:22]cmd_close_receipt [12:26:22]MH_GetDate [12:26:22]Write to MH i2c: F0 00 00 BD 1D C9 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: F0 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: F0 09 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: F0 09 00 BD 1D 00 F1 82 1F 67 50 D1 6C 64 BC [12:26:22]GetLastDocTimeStamp 1730118112 [12:26:22]current date 1730118385 [12:26:22]FM_GetShiftState [12:26:22]SAM_PROTO_GetShiftState [12:26:22]wFMCommunicate request_size=4 [12:26:22]MH_SAM_APDU [12:26:22]CAPDU: 80 13 01 00 [12:26:22]Write to MH i2c: E2 08 00 BE 1D 80 13 01 00 00 00 00 00 58 [12:26:22]Write i2c OK [12:26:22]MH_I2C_Read... [12:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:22]Read from MH i2c: E2 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0E 00 [12:26:22]MH_I2C_Read... [12:26:22]Read from MH i2c: E2 0E 00 BE 1D 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4A [12:26:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:26:22]wFMCommunicate OK [12:26:22]SAM_PROTO_GetShiftState done [12:26:22]FM_GetShiftState done [12:26:22]opened in 1730075526 [12:26:22]opened+sec_in_day 1730161926 [12:26:22]quantity*price = 55016 [12:26:22]sum+1 = 55017 [12:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.42 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 99 28.10.2024 12:26 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156883 ФПД: 194138926141638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122625&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156883&fm=194138926141638&tin=02508201610067®Number=0000000000091693&sum=55000 [12:26:24]StoreToDocumentArchive [12:26:24]shift 538 fd 156883 [12:26:24]save to /storage/0538/doc_00156883 [12:26:24]save last doc name /storage/0538/doc_00156883 to /storage/kkm_last_doc_name [12:26:24]save OK [12:26:24]Clear old archive folders... [12:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:26:24]tlvbuf is 01AAF3A0 [12:26:24]SAM_PROTO_ClearQueue [12:26:24]wFMCommunicate request_size=4 [12:26:24]MH_SAM_APDU [12:26:24]CAPDU: 80 09 00 00 [12:26:24]Write to MH i2c: E2 08 00 CB 1D 80 09 00 00 00 00 00 00 5A [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [12:26:24]RAPDU: 90 00 [12:26:24]wFMCommunicate OK [12:26:24]SAM_PROTO_ClearQueue done [12:26:24]KKMCreateOFDPacket [12:26:24]OFDProtocolAddRootSTLVToBuf [12:26:24]FM_MakeSignedData [12:26:24]FM_MakeSignedData [12:26:24]SAM_PROTO_SignData [12:26:24]wFMCommunicate request_size=4 [12:26:24]MH_SAM_APDU [12:26:24]CAPDU: 80 0D 01 02 [12:26:24]Write to MH i2c: E2 08 00 CC 1D 80 0D 01 02 00 00 00 00 62 [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [12:26:24]RAPDU: 90 00 [12:26:24]wFMCommunicate OK [12:26:24]wFMCommunicate request_size=255 [12:26:24]MH_SAM_APDU [12:26: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 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F1 82 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 64 02 00 35 04 06 00 B0 91 7D BA [12:26:24]Write to MH i2c: E2 02 01 CD 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F1 82 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 64 02 00 35 04 06 00 B0 91 7D BA 00 00 08 [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [12:26:24]RAPDU: 90 00 [12:26:24]wFMCommunicate OK [12:26:24]wFMCommunicate request_size=7 [12:26:24]MH_SAM_APDU [12:26:24]CAPDU: 80 0D 02 02 02 D0 C6 [12:26:24]Write to MH i2c: E2 0A 00 CE 1D 80 0D 02 02 02 00 D0 C6 00 00 FF [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [12:26:24]RAPDU: 90 00 [12:26:24]wFMCommunicate OK [12:26:24]wFMCommunicate request_size=4 [12:26:24]MH_SAM_APDU [12:26:24]CAPDU: 80 0D 03 02 [12:26:24]Write to MH i2c: E2 08 00 CF 1D 80 0D 03 02 00 00 00 00 67 [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 0B 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 0B 00 CF 1D 00 84 19 F2 27 A4 DC DE 40 90 00 BC [12:26:24]RAPDU: 84 19 F2 27 A4 DC DE 40 90 00 [12:26:24]wFMCommunicate OK [12:26:24]SAM_PROTO_SignData done [12:26:24]FM_MakeSignedData done [12:26:24]CreateOFDProtocolMessage [12:26:24]wFMCommunicate request_size=4 [12:26:24]MH_SAM_APDU [12:26:24]CAPDU: 80 11 00 00 [12:26:24]Write to MH i2c: E2 08 00 D0 1D 80 11 00 00 00 00 00 00 67 [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:24]Read from MH i2c: E2 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 17 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: E2 17 00 D0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [12:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:26:24]wFMCommunicate OK [12:26:24]CreateOFDProtocolMessage done [12:26:24]OFDSenderStorePacket 156883 [12:26:24]StoreOFDPacket docnum=156883 [12:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 6C 61 04 01 F4 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F1 82 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 64 02 00 35 04 06 00 B0 91 7D BA D0 C6 84 19 F2 27 A4 DC DE 40 [12:26:24]CheckFolder [12:26:24]dirname=/storage/ofd_packets [12:26:24]CheckFolder done [12:26:24]ProducePacketName [12:26:24]name=ofd_packets/00156883 [12:26:24]NVStorageSaveData ofd_packets/00156883 [12:26:24]File name is /storage/ofd_packets/00156883 [12:26:24]Write 298 bytes [12:26:24]NVStorageSaveData done [12:26:24]OFDSenderStorePacket done [12:26:24]KKMCreateOFDPacket done [12:26:24]NVStorageSaveData kkm_last_timestamp [12:26:24]File name is /storage/kkm_last_timestamp [12:26:24]Write 4 bytes [12:26:24]NVStorageSaveData done [12:26:24]ExternCall_PrintAddStr [12:26:24]wPrintStart [12:26:24]Write to MH i2c: 01 00 00 D1 1D EE [12:26:24]Write i2c OK [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: 01 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: 01 07 00 [12:26:24]MH_I2C_Read... [12:26:24]Read from MH i2c: 01 07 00 D1 1D 00 00 00 00 00 FF 0F 03 [12:26:24]RasterBufferAndPrint [12:26:24]line Счет N : (1)99697 [12:26:24]line ИНН: 02508201610067 [12:26:24]line Контрольно-Кассовый Чек [12:26:24]line ПРОДАЖА [12:26:24]line ТРК (МРК, ГНК) : 32 [12:26:24]line Товар: 2710194210 [12:26:24]line ДТ-К-5 [12:26:24]line 7.220 * 76.20 [12:26:24]line = 550.16 [12:26:24]line НДС 12% НСП 1% [12:26:24]line > о реализуемом товаре [12:26:24]line ОКРУГЛЕНИЕ: -0.16 [12:26:24]line ИТОГО: 550.00 [12:26:24]line Внесено: 550.00 [12:26:24]line СДАЧА: 0.00 [12:26:24]line НСП 1% : 4.87 [12:26:24]line НДС 12% : 58.42 [12:26:24]line Наличными: 550.00 [12:26:24]line Безнал.: 0.00 [12:26:24]line Место: АЗС № 143 "Партнер Нефть" [12:26:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:26:24]line СНО: Общий режим [12:26:24]line Чек 99 28.10.2024 12:26 [12:26:24]line Смена: 538 ФФД: 1.0 [12:26:24]line ЗНМ: 0300000096 [12:26:24]line РНМ: 0000000000091693 [12:26:24]line Версия ККМ: 001 [12:26:24]line ФМ: 0000000000871792 [12:26:24]line ФД: 156883 [12:26:24]line ФПД: 194138926141638 [12:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122625&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156883&fm=194138926141638&tin=02508201610067®Number=0000000000091693&sum=55000 [12:26:24]OFD Sender: Processing packet 156883 [packets to send 31, broken 30] [12:26:24]ProducePacketName [12:26:24]name=ofd_packets/00156883 [12:26:24]OFD Sender: To server: pG, [12:26:24]CommunicateWithHost lk.salyk.kg:30040 [12:26:24]ConnectInit lk.salyk.kg [12:26:24]written 0, free lines is 4095 [12:26:25]Connected sock=9 [12:26: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 37 39 32 0C 01 00 00 6C 61 04 01 F4 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 1C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E8 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 F1 82 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 64 02 00 35 04 06 00 B0 91 7D BA D0 C6 84 19 F2 27 A4 DC DE 40 [12:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 92 1D 47 00 77 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 37 39 32 10 04 04 00 D3 64 02 00 F4 03 04 00 5E 28 1F 67 B6 04 01 00 00 25 4D E0 3C CC D0 92 F4 [12:26:25]CommunicateWithHost err = 0 [12:26:25]CheckOFDResponse [12:26:25]1017 (14) - 77093643461234 [12:26:25]1041 (16) - 0000000000871792 [12:26:25]1040 (4) - 156883 [12:26:25]1012 (4) - 28.10.2024 05:59 [12:26:25]1206 (1) - 0 [12:26:25]OFD Sender: Remove packet 156883 [12:26:25]ProducePacketName [12:26:25]name=ofd_packets/00156883 [12:26:25]NVStorageDeleteData [12:26:25]Write to MH i2c: 01 00 00 FC 1D 19 [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: 01 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: 01 07 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: 01 07 00 FC 1D 00 00 00 00 00 DF 0C 0B [12:26:25]RasterBufferAndPrint [12:26:25]line [12:26:25]line [12:26:25]line [12:26:25]line [12:26:25]line [12:26:25]written 0, free lines is 3304 [12:26:25]process_action close_receipt done [12:26:25]requested_data is exist [12:26:25]produce_requested_data [12:26:25]requested_item fm.sn is exist - process it [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 11 00 00 [12:26:25]Write to MH i2c: E2 08 00 03 1E 80 11 00 00 00 00 00 00 9B [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 17 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 17 00 03 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [12:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:26:25]wFMCommunicate OK [12:26:25]requested_item fd.num is exist - process it [12:26:25]SAM_PROTO_GetFieldsCounters [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 13 00 00 [12:26:25]Write to MH i2c: E2 08 00 04 1E 80 13 00 00 00 00 00 00 9E [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 62 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 62 00 04 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 64 02 00 0E 04 04 00 1A 02 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 42 [12:26: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 64 02 00 0E 04 04 00 1A 02 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 [12:26:25]wFMCommunicate OK [12:26:25]SAM_PROTO_GetFieldsCounters done [12:26:25]requested_item shift.num is exist - process it [12:26:25]requested_item shift.opened is exist - process it [12:26:25]req_shift_opened [12:26:25]FM_GetShiftState [12:26:25]SAM_PROTO_GetShiftState [12:26:25]wFMCommunicate request_size=4 [12:26:25]MH_SAM_APDU [12:26:25]CAPDU: 80 13 01 00 [12:26:25]Write to MH i2c: E2 08 00 05 1E 80 13 01 00 00 00 00 00 A0 [12:26:25]Write i2c OK [12:26:25]MH_I2C_Read... [12:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:25]Read from MH i2c: E2 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 [12:26:25]MH_I2C_Read... [12:26:25]Read from MH i2c: E2 0E 00 05 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 92 [12:26:25]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:26:25]wFMCommunicate OK [12:26:25]SAM_PROTO_GetShiftState done [12:26:25]FM_GetShiftState done [12:26:25]req_shift_opened done [12:26:25]requested_item shift.open_date is exist - process it [12:26:25]req_shift_open_date [12:26:25]req_shift_open_date done [12:26:25]produce_requested_data done [12:26:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156883,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:26:25]process_action_free close_receipt [12:26:25]json_value_free [12:26:25]json_value_free done [12:26:25]process_json_proto returns [12:26:25]Send response to host [12:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156883,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:26:25]free response buf [12:26:25]execute_script done [12:26:25]execute_script returns [12:26:25]free content buf [12:26:25]Sock 10.Close socket [12:26:25]Sock 10.Thread stoped [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:48]accept exits with 7 [12:28:48]New connection [12:28:48]New thread 3066604900 created [12:28:48]Thread 3066748260 joined [12:28:48]Waiting for new connection... [12:28:48] Sock 7.Parse request [12:28:48]Sock 7.Check first char [12:28:48]Sock 7.First char is OK [12:28:48]request: POST /json_proto HTTP/1.0 [12:28:48]Method: POST [12:28:48]URL: /json_proto [12:28:48]Method is POST - this is cgi request [12:28:48]url: /json_proto [12:28:48]query_string will be loaded in cgi processing [12:28:48]execute_cgi json_proto POST (null) [12:28:48]execute_cgi path=json_proto method=POST [12:28:48]POST find Content-Length [12:28:48]Host: 172.17.63.3:8080 [12:28:48]Content-Length: 681 [12:28:48]Content-Type: application/json [12:28:48] [12:28:48]POST finish read [12:28:48]Found Content-Length = 681 [12:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:28:48]execute_script... [12:28:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:28:48]POST & json_proto [12:28:48]process_json_proto [12:28:48]json parsed OK: [12:28:48]protocol is kg_v1.0 [12:28:48]action value=close_receipt [12:28:48]process_action close_receipt [12:28:48]cmd_close_receipt [12:28:48]MH_GetDate [12:28:48]Write to MH i2c: F0 00 00 06 1E 13 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 09 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: F0 09 00 06 1E 00 82 83 1F 67 50 D1 6C 64 98 [12:28:48]GetLastDocTimeStamp 1730118385 [12:28:48]current date 1730118530 [12:28:48]FM_GetShiftState [12:28:48]SAM_PROTO_GetShiftState [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 13 01 00 [12:28:48]Write to MH i2c: E2 08 00 07 1E 80 13 01 00 00 00 00 00 A2 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 07 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 94 [12:28:48]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_GetShiftState done [12:28:48]FM_GetShiftState done [12:28:48]opened in 1730075526 [12:28:48]opened+sec_in_day 1730161926 [12:28:48]quantity*price = 100015 [12:28:48]sum+1 = 100017 [12:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 100 28.10.2024 12:28 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156884 ФПД: 56326062096663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156884&fm=56326062096663&tin=02508201610067®Number=0000000000091693&sum=100000 [12:28:49]StoreToDocumentArchive [12:28:49]shift 538 fd 156884 [12:28:49]save to /storage/0538/doc_00156884 [12:28:49]save last doc name /storage/0538/doc_00156884 to /storage/kkm_last_doc_name [12:28:49]save OK [12:28:49]Clear old archive folders... [12:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:28:49]tlvbuf is B6D76670 [12:28:49]SAM_PROTO_ClearQueue [12:28:49]wFMCommunicate request_size=4 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 09 00 00 [12:28:49]Write to MH i2c: E2 08 00 14 1E 80 09 00 00 00 00 00 00 A4 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [12:28:49]RAPDU: 90 00 [12:28:49]wFMCommunicate OK [12:28:49]SAM_PROTO_ClearQueue done [12:28:49]KKMCreateOFDPacket [12:28:49]OFDProtocolAddRootSTLVToBuf [12:28:49]FM_MakeSignedData [12:28:49]FM_MakeSignedData [12:28:49]SAM_PROTO_SignData [12:28:49]wFMCommunicate request_size=4 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 0D 01 02 [12:28:49]Write to MH i2c: E2 08 00 15 1E 80 0D 01 02 00 00 00 00 AC [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [12:28:49]RAPDU: 90 00 [12:28:49]wFMCommunicate OK [12:28:49]wFMCommunicate request_size=255 [12:28:49]MH_SAM_APDU [12:28: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 82 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 64 02 00 35 04 06 00 33 [12:28:49]Write to MH i2c: E2 02 01 16 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 82 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 64 02 00 35 04 06 00 33 00 00 B2 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [12:28:49]RAPDU: 90 00 [12:28:49]wFMCommunicate OK [12:28:49]wFMCommunicate request_size=10 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 0D 02 02 05 3A 6E EC 41 17 [12:28:49]Write to MH i2c: E2 0D 00 17 1E 80 0D 02 02 05 00 3A 6E EC 41 17 00 00 A5 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [12:28:49]RAPDU: 90 00 [12:28:49]wFMCommunicate OK [12:28:49]wFMCommunicate request_size=4 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 0D 03 02 [12:28:49]Write to MH i2c: E2 08 00 18 1E 80 0D 03 02 00 00 00 00 B1 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 0B 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 0B 00 18 1E 00 9B 93 83 14 FA AB 1F E8 90 00 23 [12:28:49]RAPDU: 9B 93 83 14 FA AB 1F E8 90 00 [12:28:49]wFMCommunicate OK [12:28:49]SAM_PROTO_SignData done [12:28:49]FM_MakeSignedData done [12:28:49]CreateOFDProtocolMessage [12:28:49]wFMCommunicate request_size=4 [12:28:49]MH_SAM_APDU [12:28:49]CAPDU: 80 11 00 00 [12:28:49]Write to MH i2c: E2 08 00 19 1E 80 11 00 00 00 00 00 00 B1 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:49]Read from MH i2c: E2 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: E2 17 00 [12:28:49]MH_I2C_Read... [12:28:49]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 37 39 32 90 00 06 [12:28:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:28:49]wFMCommunicate OK [12:28:49]CreateOFDProtocolMessage done [12:28:49]OFDSenderStorePacket 156884 [12:28:49]StoreOFDPacket docnum=156884 [12:28:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F5 15 07 01 B9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 82 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 64 02 00 35 04 06 00 33 3A 6E EC 41 17 9B 93 83 14 FA AB 1F E8 [12:28:49]CheckFolder [12:28:49]dirname=/storage/ofd_packets [12:28:49]CheckFolder done [12:28:49]ProducePacketName [12:28:49]name=ofd_packets/00156884 [12:28:49]NVStorageSaveData ofd_packets/00156884 [12:28:49]File name is /storage/ofd_packets/00156884 [12:28:49]Write 301 bytes [12:28:49]NVStorageSaveData done [12:28:49]OFDSenderStorePacket done [12:28:49]KKMCreateOFDPacket done [12:28:49]NVStorageSaveData kkm_last_timestamp [12:28:49]File name is /storage/kkm_last_timestamp [12:28:49]Write 4 bytes [12:28:49]NVStorageSaveData done [12:28:49]ExternCall_PrintAddStr [12:28:49]wPrintStart [12:28:49]Write to MH i2c: 01 00 00 1A 1E 38 [12:28:49]Write i2c OK [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 07 00 [12:28:49]MH_I2C_Read... [12:28:49]Read from MH i2c: 01 07 00 1A 1E 00 00 00 00 00 FF 0F 4D [12:28:49]RasterBufferAndPrint [12:28:49]line Счет N : (1)99698 [12:28:49]line ИНН: 02508201610067 [12:28:49]line Контрольно-Кассовый Чек [12:28:49]line ПРОДАЖА [12:28:49]line ТРК (МРК, ГНК) : 31 [12:28:49]line Товар: 2710124130 [12:28:49]line Аи-92-К-5 [12:28:49]line 14.950 * 66.90 [12:28:49]line = 1000.16 [12:28:49]line НДС 12% НСП 1% [12:28:49]line > о реализуемом товаре [12:28:49]line ОКРУГЛЕНИЕ: -0.16 [12:28:49]line ИТОГО: 1000.00 [12:28:49]line Внесено: 1000.00 [12:28:49]line СДАЧА: 0.00 [12:28:49]line НСП 1% : 8.85 [12:28:49]line НДС 12% : 106.21 [12:28:49]line Наличными: 1000.00 [12:28:49]line Безнал.: 0.00 [12:28:49]line Место: АЗС № 143 "Партнер Нефть" [12:28:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:28:49]line СНО: Общий режим [12:28:49]line Чек 100 28.10.2024 12:28 [12:28:49]line Смена: 538 ФФД: 1.0 [12:28:49]line ЗНМ: 0300000096 [12:28:49]line РНМ: 0000000000091693 [12:28:49]line Версия ККМ: 001 [12:28:49]line ФМ: 0000000000871792 [12:28:49]line ФД: 156884 [12:28:49]line ФПД: 56326062096663 [12:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156884&fm=56326062096663&tin=02508201610067®Number=0000000000091693&sum=100000 [12:28:50]OFD Sender: Processing packet 156884 [packets to send 31, broken 30] [12:28:50]ProducePacketName [12:28:50]name=ofd_packets/00156884 [12:28:50]OFD Sender: To server: pG, [12:28:50]CommunicateWithHost lk.salyk.kg:30040 [12:28:50]ConnectInit lk.salyk.kg [12:28:50]written 0, free lines is 4095 [12:28:50]Connected sock=10 [12:28: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 37 39 32 0F 01 00 00 F5 15 07 01 B9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 82 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 64 02 00 35 04 06 00 33 3A 6E EC 41 17 9B 93 83 14 FA AB 1F E8 [12:28:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8C E2 47 00 C6 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 64 02 00 F4 03 04 00 EF 28 1F 67 B6 04 01 00 00 AD AD BF 19 26 C1 6C 3D [12:28:50]CommunicateWithHost err = 0 [12:28:50]CheckOFDResponse [12:28:50]1017 (14) - 77093643461234 [12:28:50]1041 (16) - 0000000000871792 [12:28:50]1040 (4) - 156884 [12:28:50]1012 (4) - 28.10.2024 06:02 [12:28:50]1206 (1) - 0 [12:28:50]OFD Sender: Remove packet 156884 [12:28:50]ProducePacketName [12:28:50]name=ofd_packets/00156884 [12:28:50]NVStorageDeleteData [12:28:50]Write to MH i2c: 01 00 00 45 1E 63 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 D8 0C 4E [12:28:50]RasterBufferAndPrint [12:28:50]line [12:28:50]line [12:28:50]line [12:28:50]line [12:28:50]line [12:28:50]written 0, free lines is 3296 [12:28:50]process_action close_receipt done [12:28:50]requested_data is exist [12:28:50]produce_requested_data [12:28:50]requested_item fm.sn is exist - process it [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 11 00 00 [12:28:50]Write to MH i2c: E2 08 00 4C 1E 80 11 00 00 00 00 00 00 E4 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 17 00 4C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [12:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:28:50]wFMCommunicate OK [12:28:50]requested_item fd.num is exist - process it [12:28:50]SAM_PROTO_GetFieldsCounters [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 13 00 00 [12:28:50]Write to MH i2c: E2 08 00 4D 1E 80 13 00 00 00 00 00 00 E7 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 62 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 62 00 4D 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 64 02 00 0E 04 04 00 1A 02 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 8F [12:28: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 64 02 00 0E 04 04 00 1A 02 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 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_GetFieldsCounters done [12:28:50]requested_item shift.num is exist - process it [12:28:50]requested_item shift.opened is exist - process it [12:28:50]req_shift_opened [12:28:50]FM_GetShiftState [12:28:50]SAM_PROTO_GetShiftState [12:28:50]wFMCommunicate request_size=4 [12:28:50]MH_SAM_APDU [12:28:50]CAPDU: 80 13 01 00 [12:28:50]Write to MH i2c: E2 08 00 4E 1E 80 13 01 00 00 00 00 00 E9 [12:28:50]Write i2c OK [12:28:50]MH_I2C_Read... [12:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:50]Read from MH i2c: E2 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0E 00 [12:28:50]MH_I2C_Read... [12:28:50]Read from MH i2c: E2 0E 00 4E 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DB [12:28:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:28:50]wFMCommunicate OK [12:28:50]SAM_PROTO_GetShiftState done [12:28:50]FM_GetShiftState done [12:28:50]req_shift_opened done [12:28:50]requested_item shift.open_date is exist - process it [12:28:50]req_shift_open_date [12:28:50]req_shift_open_date done [12:28:50]produce_requested_data done [12:28:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156884,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:28:50]process_action_free close_receipt [12:28:50]json_value_free [12:28:50]json_value_free done [12:28:50]process_json_proto returns [12:28:50]Send response to host [12:28:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156884,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:28:50]free response buf [12:28:50]execute_script done [12:28:50]execute_script returns [12:28:50]free content buf [12:28:50]Sock 7.Close socket [12:28:50]Sock 7.Thread stoped [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:02]accept exits with 9 [12:30:02]New connection [12:30:02]New thread 3066748260 created [12:30:02]Thread 3066604900 joined [12:30:02]Waiting for new connection... [12:30:02] Sock 9.Parse request [12:30:02]Sock 9.Check first char [12:30:02]Sock 9.First char is OK [12:30:02]request: POST /json_proto HTTP/1.0 [12:30:02]Method: POST [12:30:02]URL: /json_proto [12:30:02]Method is POST - this is cgi request [12:30:02]url: /json_proto [12:30:02]query_string will be loaded in cgi processing [12:30:02]execute_cgi json_proto POST (null) [12:30:02]execute_cgi path=json_proto method=POST [12:30:02]POST find Content-Length [12:30:02]Host: 172.17.63.3:8080 [12:30:02]Content-Length: 681 [12:30:02]Content-Type: application/json [12:30:02] [12:30:02]POST finish read [12:30:02]Found Content-Length = 681 [12:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:30:02]execute_script... [12:30: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)99699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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:30:02]POST & json_proto [12:30:02]process_json_proto [12:30:02]json parsed OK: [12:30:02]protocol is kg_v1.0 [12:30:02]action value=close_receipt [12:30:02]process_action close_receipt [12:30:02]cmd_close_receipt [12:30:02]MH_GetDate [12:30:02]Write to MH i2c: F0 00 00 4F 1E 5C [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 09 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: F0 09 00 4F 1E 00 CD 83 1F 67 50 D1 6C 64 2C [12:30:02]GetLastDocTimeStamp 1730118530 [12:30:02]current date 1730118605 [12:30:02]FM_GetShiftState [12:30:02]SAM_PROTO_GetShiftState [12:30:02]wFMCommunicate request_size=4 [12:30:02]MH_SAM_APDU [12:30:02]CAPDU: 80 13 01 00 [12:30:02]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [12:30:02]Write i2c OK [12:30:02]MH_I2C_Read... [12:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:02]Read from MH i2c: E2 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 [12:30:02]MH_I2C_Read... [12:30:02]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DD [12:30:02]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:30:02]wFMCommunicate OK [12:30:02]SAM_PROTO_GetShiftState done [12:30:02]FM_GetShiftState done [12:30:02]opened in 1730075526 [12:30:02]opened+sec_in_day 1730161926 [12:30:02]quantity*price = 100015 [12:30:02]sum+1 = 100017 [12:30:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 101 28.10.2024 12:30 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156885 ФПД: 11714160929826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123005&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156885&fm=11714160929826&tin=02508201610067®Number=0000000000091693&sum=100000 [12:30:03]StoreToDocumentArchive [12:30:03]shift 538 fd 156885 [12:30:03]save to /storage/0538/doc_00156885 [12:30:03]save last doc name /storage/0538/doc_00156885 to /storage/kkm_last_doc_name [12:30:03]save OK [12:30:03]Clear old archive folders... [12:30:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:03]tlvbuf is 01AAF560 [12:30:03]SAM_PROTO_ClearQueue [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 09 00 00 [12:30:03]Write to MH i2c: E2 08 00 5D 1E 80 09 00 00 00 00 00 00 ED [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]SAM_PROTO_ClearQueue done [12:30:03]KKMCreateOFDPacket [12:30:03]OFDProtocolAddRootSTLVToBuf [12:30:03]FM_MakeSignedData [12:30:03]FM_MakeSignedData [12:30:03]SAM_PROTO_SignData [12:30:03]wFMCommunicate request_size=4 [12:30:03]MH_SAM_APDU [12:30:03]CAPDU: 80 0D 01 02 [12:30:03]Write to MH i2c: E2 08 00 5E 1E 80 0D 01 02 00 00 00 00 F5 [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:03]Read from MH i2c: E2 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 [12:30:03]MH_I2C_Read... [12:30:03]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [12:30:03]RAPDU: 90 00 [12:30:03]wFMCommunicate OK [12:30:03]wFMCommunicate request_size=255 [12:30:03]MH_SAM_APDU [12:30: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 65 00 00 00 F4 03 04 00 CD 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 64 02 00 35 04 06 00 0A [12:30:03]Write to MH i2c: E2 02 01 5F 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 65 00 00 00 F4 03 04 00 CD 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 64 02 00 35 04 06 00 0A 00 00 1F [12:30:03]Write i2c OK [12:30:03]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]wFMCommunicate request_size=10 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 02 02 05 A7 6A 66 AC 22 [12:30:04]Write to MH i2c: E2 0D 00 60 1E 80 0D 02 02 05 00 A7 6A 66 AC 22 00 00 47 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [12:30:04]RAPDU: 90 00 [12:30:04]wFMCommunicate OK [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 0D 03 02 [12:30:04]Write to MH i2c: E2 08 00 61 1E 80 0D 03 02 00 00 00 00 FA [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0B 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 0B 00 61 1E 00 31 E1 E4 0A 7E 94 DD 12 90 00 FC [12:30:04]RAPDU: 31 E1 E4 0A 7E 94 DD 12 90 00 [12:30:04]wFMCommunicate OK [12:30:04]SAM_PROTO_SignData done [12:30:04]FM_MakeSignedData done [12:30:04]CreateOFDProtocolMessage [12:30:04]wFMCommunicate request_size=4 [12:30:04]MH_SAM_APDU [12:30:04]CAPDU: 80 11 00 00 [12:30:04]Write to MH i2c: E2 08 00 62 1E 80 11 00 00 00 00 00 00 FA [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:04]Read from MH i2c: E2 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: E2 17 00 62 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [12:30:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:04]wFMCommunicate OK [12:30:04]CreateOFDProtocolMessage done [12:30:04]OFDSenderStorePacket 156885 [12:30:04]StoreOFDPacket docnum=156885 [12:30:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC 0B 07 01 B8 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 65 00 00 00 F4 03 04 00 CD 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 64 02 00 35 04 06 00 0A A7 6A 66 AC 22 31 E1 E4 0A 7E 94 DD 12 [12:30:04]CheckFolder [12:30:04]dirname=/storage/ofd_packets [12:30:04]CheckFolder done [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00156885 [12:30:04]NVStorageSaveData ofd_packets/00156885 [12:30:04]File name is /storage/ofd_packets/00156885 [12:30:04]Write 301 bytes [12:30:04]NVStorageSaveData done [12:30:04]OFDSenderStorePacket done [12:30:04]KKMCreateOFDPacket done [12:30:04]NVStorageSaveData kkm_last_timestamp [12:30:04]File name is /storage/kkm_last_timestamp [12:30:04]Write 4 bytes [12:30:04]NVStorageSaveData done [12:30:04]OFD Sender: Processing packet 156885 [packets to send 31, broken 30] [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00156885 [12:30:04]OFD Sender: To server: pG, [12:30:04]CommunicateWithHost lk.salyk.kg:30040 [12:30:04]ConnectInit lk.salyk.kg [12:30:04]ExternCall_PrintAddStr [12:30:04]wPrintStart [12:30:04]Write to MH i2c: 01 00 00 63 1E 81 [12:30:04]Write i2c OK [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 [12:30:04]MH_I2C_Read... [12:30:04]Read from MH i2c: 01 07 00 63 1E 00 00 00 00 00 FF 0F 96 [12:30:04]RasterBufferAndPrint [12:30:04]line Счет N : (1)99699 [12:30:04]line ИНН: 02508201610067 [12:30:04]line Контрольно-Кассовый Чек [12:30:04]line ПРОДАЖА [12:30:04]line ТРК (МРК, ГНК) : 31 [12:30:04]line Товар: 2710124130 [12:30:04]line Аи-92-К-5 [12:30:04]line 14.950 * 66.90 [12:30:04]line = 1000.16 [12:30:04]line НДС 12% НСП 1% [12:30:04]line > о реализуемом товаре [12:30:04]line ОКРУГЛЕНИЕ: -0.16 [12:30:04]line ИТОГО: 1000.00 [12:30:04]line Внесено: 1000.00 [12:30:04]line СДАЧА: 0.00 [12:30:04]line НСП 1% : 8.85 [12:30:04]line НДС 12% : 106.21 [12:30:04]line Наличными: 1000.00 [12:30:04]line Безнал.: 0.00 [12:30:04]line Место: АЗС № 143 "Партнер Нефть" [12:30:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:30:04]line СНО: Общий режим [12:30:04]line Чек 101 28.10.2024 12:30 [12:30:04]line Смена: 538 ФФД: 1.0 [12:30:04]line ЗНМ: 0300000096 [12:30:04]line РНМ: 0000000000091693 [12:30:04]line Версия ККМ: 001 [12:30:04]line ФМ: 0000000000871792 [12:30:04]line ФД: 156885 [12:30:04]line ФПД: 11714160929826 [12:30:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123005&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156885&fm=11714160929826&tin=02508201610067®Number=0000000000091693&sum=100000 [12:30:04]Connected sock=11 [12:30: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 37 39 32 0F 01 00 00 AC 0B 07 01 B8 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 65 00 00 00 F4 03 04 00 CD 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 64 02 00 35 04 06 00 0A A7 6A 66 AC 22 31 E1 E4 0A 7E 94 DD 12 [12:30:04]written 0, free lines is 4095 [12: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 37 39 32 4F 00 00 00 28 26 47 00 70 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 37 39 32 10 04 04 00 D5 64 02 00 F4 03 04 00 39 29 1F 67 B6 04 01 00 00 BB B0 CD 04 AC 00 44 77 [12:30:04]CommunicateWithHost err = 0 [12:30:04]CheckOFDResponse [12:30:04]1017 (14) - 77093643461234 [12:30:04]1041 (16) - 0000000000871792 [12:30:04]1040 (4) - 156885 [12:30:04]1012 (4) - 28.10.2024 06:03 [12:30:04]1206 (1) - 0 [12:30:04]OFD Sender: Remove packet 156885 [12:30:04]ProducePacketName [12:30:04]name=ofd_packets/00156885 [12:30:04]NVStorageDeleteData [12:30:05]Write to MH i2c: 01 00 00 8E 1E AC [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: 01 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: 01 07 00 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: 01 07 00 8E 1E 00 00 00 00 00 D8 0C 97 [12:30:05]RasterBufferAndPrint [12:30:05]line [12:30:05]line [12:30:05]line [12:30:05]line [12:30:05]line [12:30:05]written 0, free lines is 3296 [12:30:05]process_action close_receipt done [12:30:05]requested_data is exist [12:30:05]produce_requested_data [12:30:05]requested_item fm.sn is exist - process it [12:30:05]wFMCommunicate request_size=4 [12:30:05]MH_SAM_APDU [12:30:05]CAPDU: 80 11 00 00 [12:30:05]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:05]Read from MH i2c: E2 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 17 00 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [12:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:05]wFMCommunicate OK [12:30:05]requested_item fd.num is exist - process it [12:30:05]SAM_PROTO_GetFieldsCounters [12:30:05]wFMCommunicate request_size=4 [12:30:05]MH_SAM_APDU [12:30:05]CAPDU: 80 13 00 00 [12:30:05]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:05]Read from MH i2c: E2 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 62 00 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 62 00 96 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 64 02 00 0E 04 04 00 1A 02 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 DC [12:30: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 64 02 00 0E 04 04 00 1A 02 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 [12:30:05]wFMCommunicate OK [12:30:05]SAM_PROTO_GetFieldsCounters done [12:30:05]requested_item shift.num is exist - process it [12:30:05]requested_item shift.opened is exist - process it [12:30:05]req_shift_opened [12:30:05]FM_GetShiftState [12:30:05]SAM_PROTO_GetShiftState [12:30:05]wFMCommunicate request_size=4 [12:30:05]MH_SAM_APDU [12:30:05]CAPDU: 80 13 01 00 [12:30:05]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [12:30:05]Write i2c OK [12:30:05]MH_I2C_Read... [12:30:05]OFD Sender: No OFD packet to send [12:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:05]Read from MH i2c: E2 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 0E 00 [12:30:05]MH_I2C_Read... [12:30:05]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 24 [12:30:05]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:30:05]wFMCommunicate OK [12:30:05]SAM_PROTO_GetShiftState done [12:30:05]FM_GetShiftState done [12:30:05]req_shift_opened done [12:30:05]requested_item shift.open_date is exist - process it [12:30:05]req_shift_open_date [12:30:05]req_shift_open_date done [12:30:05]produce_requested_data done [12:30:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156885,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:30:05]process_action_free close_receipt [12:30:05]json_value_free [12:30:05]json_value_free done [12:30:05]process_json_proto returns [12:30:05]Send response to host [12:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156885,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:30:05]free response buf [12:30:05]execute_script done [12:30:05]execute_script returns [12:30:05]free content buf [12:30:05]Sock 9.Close socket [12:30:05]Sock 9.Thread stoped [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:51]accept exits with 7 [12:30:51]New connection [12:30:51]New thread 3066604900 created [12:30:51]Thread 3066748260 joined [12:30:51]Waiting for new connection... [12:30:51] Sock 7.Parse request [12:30:51]Sock 7.Check first char [12:30:51]Sock 7.First char is OK [12:30:51]request: POST /json_proto HTTP/1.0 [12:30:51]Method: POST [12:30:51]URL: /json_proto [12:30:51]Method is POST - this is cgi request [12:30:51]url: /json_proto [12:30:51]query_string will be loaded in cgi processing [12:30:51]execute_cgi json_proto POST (null) [12:30:51]execute_cgi path=json_proto method=POST [12:30:51]POST find Content-Length [12:30:51]Host: 172.17.63.3:8080 [12:30:51]Content-Length: 676 [12:30:51]Content-Type: application/json [12:30:51] [12:30:51]POST finish read [12:30:51]Found Content-Length = 676 [12:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:30:51]execute_script... [12:30: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)99700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:30:51]POST & json_proto [12:30:51]process_json_proto [12:30:51]json parsed OK: [12:30:51]protocol is kg_v1.0 [12:30:51]action value=close_receipt [12:30:51]process_action close_receipt [12:30:51]cmd_close_receipt [12:30:51]MH_GetDate [12:30:51]Write to MH i2c: F0 00 00 98 1E A5 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: F0 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: F0 09 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: F0 09 00 98 1E 00 FE 83 1F 67 50 D1 6C 64 A6 [12:30:51]GetLastDocTimeStamp 1730118605 [12:30:51]current date 1730118654 [12:30:51]FM_GetShiftState [12:30:51]SAM_PROTO_GetShiftState [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 13 01 00 [12:30:51]Write to MH i2c: E2 08 00 99 1E 80 13 01 00 00 00 00 00 34 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 0E 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 0E 00 99 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 26 [12:30:51]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:30:51]wFMCommunicate OK [12:30:51]SAM_PROTO_GetShiftState done [12:30:51]FM_GetShiftState done [12:30:51]opened in 1730075526 [12:30:51]opened+sec_in_day 1730161926 [12:30:51]quantity*price = 50041 [12:30:51]sum+1 = 50042 [12:30:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 102 28.10.2024 12:30 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156886 ФПД: 13678920346978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156886&fm=13678920346978&tin=02508201610067®Number=0000000000091693&sum=50000 [12:30:52]StoreToDocumentArchive [12:30:52]shift 538 fd 156886 [12:30:52]save to /storage/0538/doc_00156886 [12:30:52]save last doc name /storage/0538/doc_00156886 to /storage/kkm_last_doc_name [12:30:52]save OK [12:30:52]Clear old archive folders... [12:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:52]tlvbuf is 01B036D0 [12:30:52]SAM_PROTO_ClearQueue [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 09 00 00 [12:30:52]Write to MH i2c: E2 08 00 A6 1E 80 09 00 00 00 00 00 00 36 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_ClearQueue done [12:30:52]KKMCreateOFDPacket [12:30:52]OFDProtocolAddRootSTLVToBuf [12:30:52]FM_MakeSignedData [12:30:52]FM_MakeSignedData [12:30:52]SAM_PROTO_SignData [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 01 02 [12:30:52]Write to MH i2c: E2 08 00 A7 1E 80 0D 01 02 00 00 00 00 3E [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]wFMCommunicate request_size=255 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 66 00 00 00 F4 03 04 00 FE 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 64 02 00 35 04 06 00 0C [12:30:52]Write to MH i2c: E2 02 01 A8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 66 00 00 00 F4 03 04 00 FE 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 64 02 00 35 04 06 00 0C 00 00 A3 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]wFMCommunicate request_size=10 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 02 02 05 70 DF 30 2D 62 [12:30:52]Write to MH i2c: E2 0D 00 A9 1E 80 0D 02 02 05 00 70 DF 30 2D 62 00 00 59 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [12:30:52]RAPDU: 90 00 [12:30:52]wFMCommunicate OK [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 0D 03 02 [12:30:52]Write to MH i2c: E2 08 00 AA 1E 80 0D 03 02 00 00 00 00 43 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0B 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 0B 00 AA 1E 00 18 AF 39 1E 75 76 07 7A 90 00 CE [12:30:52]RAPDU: 18 AF 39 1E 75 76 07 7A 90 00 [12:30:52]wFMCommunicate OK [12:30:52]SAM_PROTO_SignData done [12:30:52]FM_MakeSignedData done [12:30:52]CreateOFDProtocolMessage [12:30:52]wFMCommunicate request_size=4 [12:30:52]MH_SAM_APDU [12:30:52]CAPDU: 80 11 00 00 [12:30:52]Write to MH i2c: E2 08 00 AB 1E 80 11 00 00 00 00 00 00 43 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:52]Read from MH i2c: E2 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: E2 17 00 AB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [12:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:52]wFMCommunicate OK [12:30:52]CreateOFDProtocolMessage done [12:30:52]OFDSenderStorePacket 156886 [12:30:52]StoreOFDPacket docnum=156886 [12:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B 31 07 01 E8 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 66 00 00 00 F4 03 04 00 FE 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 64 02 00 35 04 06 00 0C 70 DF 30 2D 62 18 AF 39 1E 75 76 07 7A [12:30:52]CheckFolder [12:30:52]dirname=/storage/ofd_packets [12:30:52]CheckFolder done [12:30:52]ProducePacketName [12:30:52]name=ofd_packets/00156886 [12:30:52]NVStorageSaveData ofd_packets/00156886 [12:30:52]File name is /storage/ofd_packets/00156886 [12:30:52]Write 301 bytes [12:30:52]NVStorageSaveData done [12:30:52]OFDSenderStorePacket done [12:30:52]KKMCreateOFDPacket done [12:30:52]NVStorageSaveData kkm_last_timestamp [12:30:52]File name is /storage/kkm_last_timestamp [12:30:52]Write 4 bytes [12:30:52]NVStorageSaveData done [12:30:52]ExternCall_PrintAddStr [12:30:52]wPrintStart [12:30:52]Write to MH i2c: 01 00 00 AC 1E CA [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 FF 0F DF [12:30:52]RasterBufferAndPrint [12:30:52]line Счет N : (1)99700 [12:30:52]line ИНН: 02508201610067 [12:30:52]line Контрольно-Кассовый Чек [12:30:52]line ПРОДАЖА [12:30:52]line ТРК (МРК, ГНК) : 31 [12:30:52]line Товар: 2710124130 [12:30:52]line Аи-92-К-5 [12:30:52]line 7.480 * 66.90 [12:30:52]line = 500.41 [12:30:52]line НДС 12% НСП 1% [12:30:52]line > о реализуемом товаре [12:30:52]line ОКРУГЛЕНИЕ: -0.41 [12:30:52]line ИТОГО: 500.00 [12:30:52]line Внесено: 500.00 [12:30:52]line СДАЧА: 0.00 [12:30:52]line НСП 1% : 4.43 [12:30:52]line НДС 12% : 53.14 [12:30:52]line Наличными: 500.00 [12:30:52]line Безнал.: 0.00 [12:30:52]line Место: АЗС № 143 "Партнер Нефть" [12:30:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:30:52]line СНО: Общий режим [12:30:52]line Чек 102 28.10.2024 12:30 [12:30:52]line Смена: 538 ФФД: 1.0 [12:30:52]line ЗНМ: 0300000096 [12:30:52]line РНМ: 0000000000091693 [12:30:52]line Версия ККМ: 001 [12:30:52]line ФМ: 0000000000871792 [12:30:52]line ФД: 156886 [12:30:52]line ФПД: 13678920346978 [12:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156886&fm=13678920346978&tin=02508201610067®Number=0000000000091693&sum=50000 [12:30:53]OFD Sender: Processing packet 156886 [packets to send 31, broken 30] [12:30:53]ProducePacketName [12:30:53]name=ofd_packets/00156886 [12:30:53]OFD Sender: To server: pG, [12:30:53]CommunicateWithHost lk.salyk.kg:30040 [12:30:53]ConnectInit lk.salyk.kg [12:30:53]written 0, free lines is 4095 [12:30:53]Connected sock=11 [12:30: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 37 39 32 0F 01 00 00 2B 31 07 01 E8 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 66 00 00 00 F4 03 04 00 FE 83 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 64 02 00 35 04 06 00 0C 70 DF 30 2D 62 18 AF 39 1E 75 76 07 7A [12:30:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E BC 47 00 F4 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 37 39 32 10 04 04 00 D6 64 02 00 F4 03 04 00 6A 29 1F 67 B6 04 01 00 00 4E F4 7F CE C2 78 98 ED [12:30:53]CommunicateWithHost err = 0 [12:30:53]CheckOFDResponse [12:30:53]1017 (14) - 77093643461234 [12:30:53]1041 (16) - 0000000000871792 [12:30:53]1040 (4) - 156886 [12:30:53]1012 (4) - 28.10.2024 06:04 [12:30:53]1206 (1) - 0 [12:30:53]OFD Sender: Remove packet 156886 [12:30:53]ProducePacketName [12:30:53]name=ofd_packets/00156886 [12:30:53]NVStorageDeleteData [12:30:53]Write to MH i2c: 01 00 00 D7 1E F5 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 07 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 D7 0C DF [12:30:53]RasterBufferAndPrint [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]line [12:30:53]written 0, free lines is 3290 [12:30:53]process_action close_receipt done [12:30:53]requested_data is exist [12:30:53]produce_requested_data [12:30:53]requested_item fm.sn is exist - process it [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 11 00 00 [12:30:53]Write to MH i2c: E2 08 00 DE 1E 80 11 00 00 00 00 00 00 76 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:53]Read from MH i2c: E2 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 17 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 17 00 DE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [12:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:53]wFMCommunicate OK [12:30:53]requested_item fd.num is exist - process it [12:30:53]SAM_PROTO_GetFieldsCounters [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 13 00 00 [12:30:53]Write to MH i2c: E2 08 00 DF 1E 80 13 00 00 00 00 00 00 79 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:53]Read from MH i2c: E2 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 62 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 62 00 DF 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 64 02 00 0E 04 04 00 1A 02 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 29 [12:30: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 64 02 00 0E 04 04 00 1A 02 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 [12:30:53]wFMCommunicate OK [12:30:53]SAM_PROTO_GetFieldsCounters done [12:30:53]requested_item shift.num is exist - process it [12:30:53]requested_item shift.opened is exist - process it [12:30:53]req_shift_opened [12:30:53]FM_GetShiftState [12:30:53]SAM_PROTO_GetShiftState [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 13 01 00 [12:30:53]Write to MH i2c: E2 08 00 E0 1E 80 13 01 00 00 00 00 00 7B [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:54]Read from MH i2c: E2 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 0E 00 [12:30:54]MH_I2C_Read... [12:30:54]Read from MH i2c: E2 0E 00 E0 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6D [12:30:54]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:30:54]wFMCommunicate OK [12:30:54]SAM_PROTO_GetShiftState done [12:30:54]FM_GetShiftState done [12:30:54]req_shift_opened done [12:30:54]requested_item shift.open_date is exist - process it [12:30:54]req_shift_open_date [12:30:54]req_shift_open_date done [12:30:54]produce_requested_data done [12:30:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156886,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:30:54]process_action_free close_receipt [12:30:54]json_value_free [12:30:54]json_value_free done [12:30:54]process_json_proto returns [12:30:54]Send response to host [12:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156886,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:30:54]free response buf [12:30:54]execute_script done [12:30:54]execute_script returns [12:30:54]free content buf [12:30:54]Sock 7.Close socket [12:30:54]Sock 7.Thread stoped [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:12]accept exits with 9 [12:32:12]New connection [12:32:12]New thread 3066748260 created [12:32:12]Thread 3066604900 joined [12:32:12]Waiting for new connection... [12:32:12] Sock 9.Parse request [12:32:12]Sock 9.Check first char [12:32:12]Sock 9.First char is OK [12:32:12]request: POST /json_proto HTTP/1.0 [12:32:12]Method: POST [12:32:12]URL: /json_proto [12:32:12]Method is POST - this is cgi request [12:32:12]url: /json_proto [12:32:12]query_string will be loaded in cgi processing [12:32:12]execute_cgi json_proto POST (null) [12:32:12]execute_cgi path=json_proto method=POST [12:32:12]POST find Content-Length [12:32:12]Host: 172.17.63.3:8080 [12:32:12]Content-Length: 677 [12:32:12]Content-Type: application/json [12:32:12] [12:32:12]POST finish read [12:32:12]Found Content-Length = 677 [12:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [12:32:12]execute_script... [12:32:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "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" ] } } [12:32:12]POST & json_proto [12:32:12]process_json_proto [12:32:12]json parsed OK: [12:32:12]protocol is kg_v1.0 [12:32:12]action value=close_receipt [12:32:12]process_action close_receipt [12:32:12]cmd_close_receipt [12:32:12]MH_GetDate [12:32:12]Write to MH i2c: F0 00 00 E1 1E EE [12:32:12]Write i2c OK [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 09 00 [12:32:12]MH_I2C_Read... [12:32:12]Read from MH i2c: F0 09 00 E1 1E 00 4F 84 1F 67 50 D1 6C 64 41 [12:32:12]GetLastDocTimeStamp 1730118654 [12:32:12]current date 1730118735 [12:32:12]FM_GetShiftState [12:32:12]SAM_PROTO_GetShiftState [12:32:12]wFMCommunicate request_size=4 [12:32:12]MH_SAM_APDU [12:32:12]CAPDU: 80 13 01 00 [12:32:12]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [12:32:12]Write i2c OK [12:32:12]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 E2 1E 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6F [12:32:13]RAPDU: 09 00 01 86 DB 1E 67 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]opened in 1730075526 [12:32:13]opened+sec_in_day 1730161926 [12:32:13]quantity*price = 80012 [12:32:13]sum+1 = 80013 [12:32:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 103 28.10.2024 12:32 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156887 ФПД: 227207004894744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156887&fm=227207004894744&tin=02508201610067®Number=0000000000091693&sum=80000 [12:32:14]StoreToDocumentArchive [12:32:14]shift 538 fd 156887 [12:32:14]save to /storage/0538/doc_00156887 [12:32:14]save last doc name /storage/0538/doc_00156887 to /storage/kkm_last_doc_name [12:32:14]save OK [12:32:14]Clear old archive folders... [12:32:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:14]tlvbuf is 01AD29C0 [12:32:14]SAM_PROTO_ClearQueue [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 09 00 00 [12:32:14]Write to MH i2c: E2 08 00 EF 1E 80 09 00 00 00 00 00 00 7F [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 EF 1E 00 90 00 81 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_ClearQueue done [12:32:14]KKMCreateOFDPacket [12:32:14]OFDProtocolAddRootSTLVToBuf [12:32:14]FM_MakeSignedData [12:32:14]FM_MakeSignedData [12:32:14]SAM_PROTO_SignData [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 0D 01 02 [12:32:14]Write to MH i2c: E2 08 00 F0 1E 80 0D 01 02 00 00 00 00 87 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]wFMCommunicate request_size=255 [12:32:14]MH_SAM_APDU [12:32: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 67 00 00 00 F4 03 04 00 4F 84 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 64 02 00 35 04 06 00 CE [12:32:14]Write to MH i2c: E2 02 01 F1 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 67 00 00 00 F4 03 04 00 4F 84 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 64 02 00 35 04 06 00 CE 00 00 EE [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]OFD Sender: No OFD packet to send [12:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]wFMCommunicate request_size=10 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 0D 02 02 05 A4 C0 D1 36 18 [12:32:14]Write to MH i2c: E2 0D 00 F2 1E 80 0D 02 02 05 00 A4 C0 D1 36 18 00 00 17 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [12:32:14]RAPDU: 90 00 [12:32:14]wFMCommunicate OK [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 0D 03 02 [12:32:14]Write to MH i2c: E2 08 00 F3 1E 80 0D 03 02 00 00 00 00 8C [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0B 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 0B 00 F3 1E 00 15 A1 C1 98 FC 3C 67 45 90 00 80 [12:32:14]RAPDU: 15 A1 C1 98 FC 3C 67 45 90 00 [12:32:14]wFMCommunicate OK [12:32:14]SAM_PROTO_SignData done [12:32:14]FM_MakeSignedData done [12:32:14]CreateOFDProtocolMessage [12:32:14]wFMCommunicate request_size=4 [12:32:14]MH_SAM_APDU [12:32:14]CAPDU: 80 11 00 00 [12:32:14]Write to MH i2c: E2 08 00 F4 1E 80 11 00 00 00 00 00 00 8C [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:14]Read from MH i2c: E2 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: E2 17 00 F4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [12:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:32:14]wFMCommunicate OK [12:32:14]CreateOFDProtocolMessage done [12:32:14]OFDSenderStorePacket 156887 [12:32:14]StoreOFDPacket docnum=156887 [12:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 A8 07 01 63 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 67 00 00 00 F4 03 04 00 4F 84 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 64 02 00 35 04 06 00 CE A4 C0 D1 36 18 15 A1 C1 98 FC 3C 67 45 [12:32:14]CheckFolder [12:32:14]dirname=/storage/ofd_packets [12:32:14]CheckFolder done [12:32:14]ProducePacketName [12:32:14]name=ofd_packets/00156887 [12:32:14]NVStorageSaveData ofd_packets/00156887 [12:32:14]File name is /storage/ofd_packets/00156887 [12:32:14]Write 301 bytes [12:32:14]NVStorageSaveData done [12:32:14]OFDSenderStorePacket done [12:32:14]KKMCreateOFDPacket done [12:32:14]NVStorageSaveData kkm_last_timestamp [12:32:14]File name is /storage/kkm_last_timestamp [12:32:14]Write 4 bytes [12:32:14]NVStorageSaveData done [12:32:14]ExternCall_PrintAddStr [12:32:14]wPrintStart [12:32:14]Write to MH i2c: 01 00 00 F5 1E 13 [12:32:14]Write i2c OK [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 07 00 [12:32:14]MH_I2C_Read... [12:32:14]Read from MH i2c: 01 07 00 F5 1E 00 00 00 00 00 FF 0F 28 [12:32:14]RasterBufferAndPrint [12:32:14]line Счет N : (1)99701 [12:32:14]line ИНН: 02508201610067 [12:32:14]line Контрольно-Кассовый Чек [12:32:14]line ПРОДАЖА [12:32:14]line ТРК (МРК, ГНК) : 31 [12:32:14]line Товар: 2710124130 [12:32:14]line Аи-92-К-5 [12:32:14]line 11.960 * 66.90 [12:32:14]line = 800.12 [12:32:14]line НДС 12% НСП 1% [12:32:14]line > о реализуемом товаре [12:32:14]line ОКРУГЛЕНИЕ: -0.12 [12:32:14]line ИТОГО: 800.00 [12:32:14]line Внесено: 800.00 [12:32:14]line СДАЧА: 0.00 [12:32:14]line НСП 1% : 7.08 [12:32:14]line НДС 12% : 84.97 [12:32:14]line Наличными: 800.00 [12:32:14]line Безнал.: 0.00 [12:32:14]line Место: АЗС № 143 "Партнер Нефть" [12:32:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:32:14]line СНО: Общий режим [12:32:14]line Чек 103 28.10.2024 12:32 [12:32:14]line Смена: 538 ФФД: 1.0 [12:32:14]line ЗНМ: 0300000096 [12:32:14]line РНМ: 0000000000091693 [12:32:14]line Версия ККМ: 001 [12:32:14]line ФМ: 0000000000871792 [12:32:14]line ФД: 156887 [12:32:14]line ФПД: 227207004894744 [12:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156887&fm=227207004894744&tin=02508201610067®Number=0000000000091693&sum=80000 [12:32:14]OFD Sender: Processing packet 156887 [packets to send 31, broken 30] [12:32:14]ProducePacketName [12:32:14]name=ofd_packets/00156887 [12:32:14]OFD Sender: To server: pG, [12:32:14]CommunicateWithHost lk.salyk.kg:30040 [12:32:14]ConnectInit lk.salyk.kg [12:32:14]written 0, free lines is 4095 [12:32:15]Connected sock=10 [12:32: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 37 39 32 0F 01 00 00 90 A8 07 01 63 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 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 31 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 67 00 00 00 F4 03 04 00 4F 84 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 64 02 00 35 04 06 00 CE A4 C0 D1 36 18 15 A1 C1 98 FC 3C 67 45 [12:32:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 09 92 47 00 DC 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 37 39 32 10 04 04 00 D7 64 02 00 F4 03 04 00 BC 29 1F 67 B6 04 01 00 00 6B 2B BD 64 EC 45 71 96 [12:32:15]CommunicateWithHost err = 0 [12:32:15]CheckOFDResponse [12:32:15]1017 (14) - 77093643461234 [12:32:15]1041 (16) - 0000000000871792 [12:32:15]1040 (4) - 156887 [12:32:15]1012 (4) - 28.10.2024 06:05 [12:32:15]1206 (1) - 0 [12:32:15]OFD Sender: Remove packet 156887 [12:32:15]ProducePacketName [12:32:15]name=ofd_packets/00156887 [12:32:15]NVStorageDeleteData [12:32:15]Write to MH i2c: 01 00 00 20 1F 3F [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: 01 07 00 20 1F 00 00 00 00 00 E0 0C 32 [12:32:15]RasterBufferAndPrint [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]line [12:32:15]written 0, free lines is 3304 [12:32:15]process_action close_receipt done [12:32:15]requested_data is exist [12:32:15]produce_requested_data [12:32:15]requested_item fm.sn is exist - process it [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 11 00 00 [12:32:15]Write to MH i2c: E2 08 00 27 1F 80 11 00 00 00 00 00 00 C0 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 17 00 27 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [12:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:32:15]wFMCommunicate OK [12:32:15]requested_item fd.num is exist - process it [12:32:15]SAM_PROTO_GetFieldsCounters [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 00 00 [12:32:15]Write to MH i2c: E2 08 00 28 1F 80 13 00 00 00 00 00 00 C3 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 62 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 62 00 28 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 64 02 00 0E 04 04 00 1A 02 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 77 [12:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 64 02 00 0E 04 04 00 1A 02 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 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetFieldsCounters done [12:32:15]requested_item shift.num is exist - process it [12:32:15]requested_item shift.opened is exist - process it [12:32:15]req_shift_opened [12:32:15]FM_GetShiftState [12:32:15]SAM_PROTO_GetShiftState [12:32:15]wFMCommunicate request_size=4 [12:32:15]MH_SAM_APDU [12:32:15]CAPDU: 80 13 01 00 [12:32:15]Write to MH i2c: E2 08 00 29 1F 80 13 01 00 00 00 00 00 C5 [12:32:15]Write i2c OK [12:32:15]MH_I2C_Read... [12:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:15]Read from MH i2c: E2 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 [12:32:15]MH_I2C_Read... [12:32:15]Read from MH i2c: E2 0E 00 29 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B7 [12:32:15]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:32:15]wFMCommunicate OK [12:32:15]SAM_PROTO_GetShiftState done [12:32:15]FM_GetShiftState done [12:32:15]req_shift_opened done [12:32:15]requested_item shift.open_date is exist - process it [12:32:15]req_shift_open_date [12:32:15]req_shift_open_date done [12:32:15]produce_requested_data done [12:32:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156887,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:32:15]process_action_free close_receipt [12:32:15]json_value_free [12:32:15]json_value_free done [12:32:15]process_json_proto returns [12:32:15]Send response to host [12:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156887,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:32:15]free response buf [12:32:15]execute_script done [12:32:15]execute_script returns [12:32:15]free content buf [12:32:15]Sock 9.Close socket [12:32:15]Sock 9.Thread stoped [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:17]accept exits with 7 [12:35:17]New connection [12:35:17]New thread 3066604900 created [12:35:17]Thread 3066748260 joined [12:35:17]Waiting for new connection... [12:35:17] Sock 7.Parse request [12:35:17]Sock 7.Check first char [12:35:17]Sock 7.First char is OK [12:35:17]request: POST /json_proto HTTP/1.0 [12:35:17]Method: POST [12:35:17]URL: /json_proto [12:35:17]Method is POST - this is cgi request [12:35:17]url: /json_proto [12:35:17]query_string will be loaded in cgi processing [12:35:17]execute_cgi json_proto POST (null) [12:35:17]execute_cgi path=json_proto method=POST [12:35:17]POST find Content-Length [12:35:17]Host: 172.17.63.3:8080 [12:35:17]Content-Length: 676 [12:35:17]Content-Type: application/json [12:35:17] [12:35:17]POST finish read [12:35:17]Found Content-Length = 676 [12:35:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:17]execute_script... [12:35: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)99702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:17]POST & json_proto [12:35:17]process_json_proto [12:35:17]json parsed OK: [12:35:17]protocol is kg_v1.0 [12:35:17]action value=close_receipt [12:35:17]process_action close_receipt [12:35:17]cmd_close_receipt [12:35:17]MH_GetDate [12:35:17]Write to MH i2c: F0 00 00 2A 1F 38 [12:35:17]Write i2c OK [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 09 00 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: F0 09 00 2A 1F 00 08 85 1F 67 50 D1 6C 64 45 [12:35:17]GetLastDocTimeStamp 1730118735 [12:35:17]current date 1730118920 [12:35:17]FM_GetShiftState [12:35:17]SAM_PROTO_GetShiftState [12:35:17]wFMCommunicate request_size=4 [12:35:17]MH_SAM_APDU [12:35:17]CAPDU: 80 13 01 00 [12:35:17]Write to MH i2c: E2 08 00 2B 1F 80 13 01 00 00 00 00 00 C7 [12:35:17]Write i2c OK [12:35:17]MH_I2C_Read... [12:35:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:17]Read from MH i2c: E2 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: E2 0E 00 [12:35:17]MH_I2C_Read... [12:35:17]Read from MH i2c: E2 0E 00 2B 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B9 [12:35:17]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:35:17]wFMCommunicate OK [12:35:17]SAM_PROTO_GetShiftState done [12:35:17]FM_GetShiftState done [12:35:17]opened in 1730075526 [12:35:17]opened+sec_in_day 1730161926 [12:35:17]quantity*price = 40006 [12:35:17]sum+1 = 40007 [12:35:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 104 28.10.2024 12:35 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156888 ФПД: 119960730963018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156888&fm=119960730963018&tin=02508201610067®Number=0000000000091693&sum=40000 [12:35:18]StoreToDocumentArchive [12:35:18]shift 538 fd 156888 [12:35:18]save to /storage/0538/doc_00156888 [12:35:18]save last doc name /storage/0538/doc_00156888 to /storage/kkm_last_doc_name [12:35:18]save OK [12:35:18]Clear old archive folders... [12:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:18]tlvbuf is B6F236A0 [12:35:18]SAM_PROTO_ClearQueue [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 09 00 00 [12:35:18]Write to MH i2c: E2 08 00 38 1F 80 09 00 00 00 00 00 00 C9 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:18]Read from MH i2c: E2 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 [12:35:18]MH_I2C_Read... [12:35:18]Read from MH i2c: E2 03 00 38 1F 00 90 00 CB [12:35:18]RAPDU: 90 00 [12:35:18]wFMCommunicate OK [12:35:18]SAM_PROTO_ClearQueue done [12:35:18]KKMCreateOFDPacket [12:35:18]OFDProtocolAddRootSTLVToBuf [12:35:18]FM_MakeSignedData [12:35:18]FM_MakeSignedData [12:35:18]SAM_PROTO_SignData [12:35:18]wFMCommunicate request_size=4 [12:35:18]MH_SAM_APDU [12:35:18]CAPDU: 80 0D 01 02 [12:35:18]Write to MH i2c: E2 08 00 39 1F 80 0D 01 02 00 00 00 00 D1 [12:35:18]Write i2c OK [12:35:18]MH_I2C_Read... [12:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 39 1F 00 90 00 CC [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=255 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 08 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 64 02 00 35 04 06 00 6D [12:35:19]Write to MH i2c: E2 02 01 3A 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 08 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 64 02 00 35 04 06 00 6D 00 00 76 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=10 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 02 02 05 1A 88 C1 8C 4A [12:35:19]Write to MH i2c: E2 0D 00 3B 1F 80 0D 02 02 05 00 1A 88 C1 8C 4A 00 00 17 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 03 00 3B 1F 00 90 00 CE [12:35:19]RAPDU: 90 00 [12:35:19]wFMCommunicate OK [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 0D 03 02 [12:35:19]Write to MH i2c: E2 08 00 3C 1F 80 0D 03 02 00 00 00 00 D6 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 0B 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 0B 00 3C 1F 00 8D 67 30 68 37 A1 B0 0F 90 00 FA [12:35:19]RAPDU: 8D 67 30 68 37 A1 B0 0F 90 00 [12:35:19]wFMCommunicate OK [12:35:19]SAM_PROTO_SignData done [12:35:19]FM_MakeSignedData done [12:35:19]CreateOFDProtocolMessage [12:35:19]wFMCommunicate request_size=4 [12:35:19]MH_SAM_APDU [12:35:19]CAPDU: 80 11 00 00 [12:35:19]Write to MH i2c: E2 08 00 3D 1F 80 11 00 00 00 00 00 00 D6 [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:19]Read from MH i2c: E2 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: E2 17 00 3D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2B [12:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:19]wFMCommunicate OK [12:35:19]CreateOFDProtocolMessage done [12:35:19]OFDSenderStorePacket 156888 [12:35:19]StoreOFDPacket docnum=156888 [12:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AF C4 07 01 BB DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 08 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 64 02 00 35 04 06 00 6D 1A 88 C1 8C 4A 8D 67 30 68 37 A1 B0 0F [12:35:19]CheckFolder [12:35:19]dirname=/storage/ofd_packets [12:35:19]CheckFolder done [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00156888 [12:35:19]NVStorageSaveData ofd_packets/00156888 [12:35:19]File name is /storage/ofd_packets/00156888 [12:35:19]Write 301 bytes [12:35:19]NVStorageSaveData done [12:35:19]OFDSenderStorePacket done [12:35:19]KKMCreateOFDPacket done [12:35:19]NVStorageSaveData kkm_last_timestamp [12:35:19]File name is /storage/kkm_last_timestamp [12:35:19]Write 4 bytes [12:35:19]NVStorageSaveData done [12:35:19]ExternCall_PrintAddStr [12:35:19]wPrintStart [12:35:19]Write to MH i2c: 01 00 00 3E 1F 5D [12:35:19]Write i2c OK [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 [12:35:19]MH_I2C_Read... [12:35:19]Read from MH i2c: 01 07 00 3E 1F 00 00 00 00 00 FF 0F 72 [12:35:19]RasterBufferAndPrint [12:35:19]line Счет N : (1)99702 [12:35:19]line ИНН: 02508201610067 [12:35:19]line Контрольно-Кассовый Чек [12:35:19]line ПРОДАЖА [12:35:19]line ТРК (МРК, ГНК) : 31 [12:35:19]line Товар: 2710124130 [12:35:19]line Аи-92-К-5 [12:35:19]line 5.980 * 66.90 [12:35:19]line = 400.06 [12:35:19]line НДС 12% НСП 1% [12:35:19]line > о реализуемом товаре [12:35:19]line ОКРУГЛЕНИЕ: -0.06 [12:35:19]line ИТОГО: 400.00 [12:35:19]line Внесено: 400.00 [12:35:19]line СДАЧА: 0.00 [12:35:19]line НСП 1% : 3.54 [12:35:19]line НДС 12% : 42.48 [12:35:19]line Наличными: 400.00 [12:35:19]line Безнал.: 0.00 [12:35:19]line Место: АЗС № 143 "Партнер Нефть" [12:35:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:35:19]line СНО: Общий режим [12:35:19]line Чек 104 28.10.2024 12:35 [12:35:19]line Смена: 538 ФФД: 1.0 [12:35:19]line ЗНМ: 0300000096 [12:35:19]line РНМ: 0000000000091693 [12:35:19]line Версия ККМ: 001 [12:35:19]line ФМ: 0000000000871792 [12:35:19]line ФД: 156888 [12:35:19]line ФПД: 119960730963018 [12:35:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123520&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156888&fm=119960730963018&tin=02508201610067®Number=0000000000091693&sum=40000 [12:35:19]OFD Sender: Processing packet 156888 [packets to send 31, broken 30] [12:35:19]ProducePacketName [12:35:19]name=ofd_packets/00156888 [12:35:19]OFD Sender: To server: pG, [12:35:19]CommunicateWithHost lk.salyk.kg:30040 [12:35:19]ConnectInit lk.salyk.kg [12:35:19]written 0, free lines is 4095 [12:35:19]Connected sock=10 [12:35: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 37 39 32 0F 01 00 00 AF C4 07 01 BB DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 08 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 64 02 00 35 04 06 00 6D 1A 88 C1 8C 4A 8D 67 30 68 37 A1 B0 0F [12:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 79 F5 47 00 90 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 64 02 00 F4 03 04 00 75 2A 1F 67 B6 04 01 00 00 A7 B7 28 FE 12 23 68 35 [12:35:20]CommunicateWithHost err = 0 [12:35:20]CheckOFDResponse [12:35:20]1017 (14) - 77093643461234 [12:35:20]1041 (16) - 0000000000871792 [12:35:20]1040 (4) - 156888 [12:35:20]1012 (4) - 28.10.2024 06:08 [12:35:20]1206 (1) - 0 [12:35:20]OFD Sender: Remove packet 156888 [12:35:20]ProducePacketName [12:35:20]name=ofd_packets/00156888 [12:35:20]NVStorageDeleteData [12:35:20]Write to MH i2c: 01 00 00 69 1F 88 [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 07 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: 01 07 00 69 1F 00 00 00 00 00 D7 0C 72 [12:35:20]RasterBufferAndPrint [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]line [12:35:20]written 0, free lines is 3294 [12:35:20]process_action close_receipt done [12:35:20]requested_data is exist [12:35:20]produce_requested_data [12:35:20]requested_item fm.sn is exist - process it [12:35:20]wFMCommunicate request_size=4 [12:35:20]MH_SAM_APDU [12:35:20]CAPDU: 80 11 00 00 [12:35:20]Write to MH i2c: E2 08 00 70 1F 80 11 00 00 00 00 00 00 09 [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:20]Read from MH i2c: E2 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 17 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 17 00 70 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [12:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:20]wFMCommunicate OK [12:35:20]requested_item fd.num is exist - process it [12:35:20]SAM_PROTO_GetFieldsCounters [12:35:20]wFMCommunicate request_size=4 [12:35:20]MH_SAM_APDU [12:35:20]CAPDU: 80 13 00 00 [12:35:20]Write to MH i2c: E2 08 00 71 1F 80 13 00 00 00 00 00 00 0C [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:20]Read from MH i2c: E2 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 62 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 62 00 71 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 64 02 00 0E 04 04 00 1A 02 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 C4 [12:35: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 64 02 00 0E 04 04 00 1A 02 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 [12:35:20]wFMCommunicate OK [12:35:20]SAM_PROTO_GetFieldsCounters done [12:35:20]requested_item shift.num is exist - process it [12:35:20]requested_item shift.opened is exist - process it [12:35:20]req_shift_opened [12:35:20]FM_GetShiftState [12:35:20]SAM_PROTO_GetShiftState [12:35:20]wFMCommunicate request_size=4 [12:35:20]MH_SAM_APDU [12:35:20]CAPDU: 80 13 01 00 [12:35:20]Write to MH i2c: E2 08 00 72 1F 80 13 01 00 00 00 00 00 0E [12:35:20]Write i2c OK [12:35:20]MH_I2C_Read... [12:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:20]Read from MH i2c: E2 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 0E 00 [12:35:20]MH_I2C_Read... [12:35:20]Read from MH i2c: E2 0E 00 72 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 00 [12:35:20]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:35:20]wFMCommunicate OK [12:35:20]SAM_PROTO_GetShiftState done [12:35:20]FM_GetShiftState done [12:35:20]req_shift_opened done [12:35:20]requested_item shift.open_date is exist - process it [12:35:20]req_shift_open_date [12:35:20]req_shift_open_date done [12:35:20]produce_requested_data done [12:35:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156888,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:35:20]process_action_free close_receipt [12:35:20]json_value_free [12:35:20]json_value_free done [12:35:20]process_json_proto returns [12:35:20]Send response to host [12:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156888,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:35:20]free response buf [12:35:20]execute_script done [12:35:20]execute_script returns [12:35:20]free content buf [12:35:20]Sock 7.Close socket [12:35:20]Sock 7.Thread stoped [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:50]accept exits with 9 [12:38:50]New connection [12:38:50]New thread 3066748260 created [12:38:50]Thread 3066604900 joined [12:38:50]Waiting for new connection... [12:38:50] Sock 9.Parse request [12:38:50]Sock 9.Check first char [12:38:50]Sock 9.First char is OK [12:38:50]request: POST /json_proto HTTP/1.0 [12:38:50]Method: POST [12:38:50]URL: /json_proto [12:38:50]Method is POST - this is cgi request [12:38:50]url: /json_proto [12:38:50]query_string will be loaded in cgi processing [12:38:50]execute_cgi json_proto POST (null) [12:38:50]execute_cgi path=json_proto method=POST [12:38:50]POST find Content-Length [12:38:50]Host: 172.17.63.3:8080 [12:38:50]Content-Length: 676 [12:38:50]Content-Type: application/json [12:38:50] [12:38:50]POST finish read [12:38:50]Found Content-Length = 676 [12:38:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:38:50]execute_script... [12:38: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)99704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:38:50]POST & json_proto [12:38:50]process_json_proto [12:38:50]json parsed OK: [12:38:50]protocol is kg_v1.0 [12:38:50]action value=close_receipt [12:38:50]process_action close_receipt [12:38:50]cmd_close_receipt [12:38:50]MH_GetDate [12:38:50]Write to MH i2c: F0 00 00 73 1F 81 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 09 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: F0 09 00 73 1F 00 DD 85 1F 67 50 D1 6C 64 63 [12:38:50]GetLastDocTimeStamp 1730118920 [12:38:50]current date 1730119133 [12:38:50]FM_GetShiftState [12:38:50]SAM_PROTO_GetShiftState [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 01 00 [12:38:50]Write to MH i2c: E2 08 00 74 1F 80 13 01 00 00 00 00 00 10 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 74 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 02 [12:38:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetShiftState done [12:38:50]FM_GetShiftState done [12:38:50]opened in 1730075526 [12:38:50]opened+sec_in_day 1730161926 [12:38:50]quantity*price = 30038 [12:38:50]sum+1 = 30039 [12:38:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 105 28.10.2024 12:38 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156889 ФПД: 241172262565702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123853&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156889&fm=241172262565702&tin=02508201610067®Number=0000000000091693&sum=30000 [12:38:52]StoreToDocumentArchive [12:38:52]shift 538 fd 156889 [12:38:52]save to /storage/0538/doc_00156889 [12:38:52]save last doc name /storage/0538/doc_00156889 to /storage/kkm_last_doc_name [12:38:52]save OK [12:38:52]Clear old archive folders... [12:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:52]tlvbuf is 01A6EA20 [12:38:52]SAM_PROTO_ClearQueue [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 09 00 00 [12:38:52]Write to MH i2c: E2 08 00 81 1F 80 09 00 00 00 00 00 00 12 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 81 1F 00 90 00 14 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_ClearQueue done [12:38:52]KKMCreateOFDPacket [12:38:52]OFDProtocolAddRootSTLVToBuf [12:38:52]FM_MakeSignedData [12:38:52]FM_MakeSignedData [12:38:52]SAM_PROTO_SignData [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 01 02 [12:38:52]Write to MH i2c: E2 08 00 82 1F 80 0D 01 02 00 00 00 00 1A [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 82 1F 00 90 00 15 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=255 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DD 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 64 02 00 35 04 06 00 DB [12:38:52]Write to MH i2c: E2 02 01 83 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DD 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 64 02 00 35 04 06 00 DB 00 00 29 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 83 1F 00 90 00 16 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=10 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 02 02 05 58 4B 0A 37 46 [12:38:52]Write to MH i2c: E2 0D 00 84 1F 80 0D 02 02 05 00 58 4B 0A 37 46 00 00 51 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 03 00 84 1F 00 90 00 17 [12:38:52]RAPDU: 90 00 [12:38:52]wFMCommunicate OK [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 0D 03 02 [12:38:52]Write to MH i2c: E2 08 00 85 1F 80 0D 03 02 00 00 00 00 1F [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0B 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 0B 00 85 1F 00 EC FB 9B 30 CD 0C F8 98 90 00 3B [12:38:52]RAPDU: EC FB 9B 30 CD 0C F8 98 90 00 [12:38:52]wFMCommunicate OK [12:38:52]SAM_PROTO_SignData done [12:38:52]FM_MakeSignedData done [12:38:52]CreateOFDProtocolMessage [12:38:52]wFMCommunicate request_size=4 [12:38:52]MH_SAM_APDU [12:38:52]CAPDU: 80 11 00 00 [12:38:52]Write to MH i2c: E2 08 00 86 1F 80 11 00 00 00 00 00 00 1F [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:52]Read from MH i2c: E2 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 17 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: E2 17 00 86 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [12:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:38:52]wFMCommunicate OK [12:38:52]CreateOFDProtocolMessage done [12:38:52]OFDSenderStorePacket 156889 [12:38:52]StoreOFDPacket docnum=156889 [12:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D9 66 07 01 3B C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DD 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 64 02 00 35 04 06 00 DB 58 4B 0A 37 46 EC FB 9B 30 CD 0C F8 98 [12:38:52]CheckFolder [12:38:52]dirname=/storage/ofd_packets [12:38:52]CheckFolder done [12:38:52]ProducePacketName [12:38:52]name=ofd_packets/00156889 [12:38:52]NVStorageSaveData ofd_packets/00156889 [12:38:52]File name is /storage/ofd_packets/00156889 [12:38:52]Write 301 bytes [12:38:52]NVStorageSaveData done [12:38:52]OFDSenderStorePacket done [12:38:52]KKMCreateOFDPacket done [12:38:52]NVStorageSaveData kkm_last_timestamp [12:38:52]File name is /storage/kkm_last_timestamp [12:38:52]Write 4 bytes [12:38:52]NVStorageSaveData done [12:38:52]ExternCall_PrintAddStr [12:38:52]wPrintStart [12:38:52]Write to MH i2c: 01 00 00 87 1F A6 [12:38:52]Write i2c OK [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 07 00 [12:38:52]MH_I2C_Read... [12:38:52]Read from MH i2c: 01 07 00 87 1F 00 00 00 00 00 FF 0F BB [12:38:52]RasterBufferAndPrint [12:38:52]line Счет N : (1)99704 [12:38:52]line ИНН: 02508201610067 [12:38:52]line Контрольно-Кассовый Чек [12:38:52]line ПРОДАЖА [12:38:52]line ТРК (МРК, ГНК) : 31 [12:38:52]line Товар: 2710124130 [12:38:52]line Аи-92-К-5 [12:38:52]line 4.490 * 66.90 [12:38:52]line = 300.38 [12:38:52]line НДС 12% НСП 1% [12:38:52]line > о реализуемом товаре [12:38:52]line ОКРУГЛЕНИЕ: -0.38 [12:38:52]line ИТОГО: 300.00 [12:38:52]line Внесено: 300.00 [12:38:52]line СДАЧА: 0.00 [12:38:52]line НСП 1% : 2.66 [12:38:52]line НДС 12% : 31.90 [12:38:52]line Наличными: 300.00 [12:38:52]line Безнал.: 0.00 [12:38:52]line Место: АЗС № 143 "Партнер Нефть" [12:38:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:38:52]line СНО: Общий режим [12:38:52]line Чек 105 28.10.2024 12:38 [12:38:52]line Смена: 538 ФФД: 1.0 [12:38:52]line ЗНМ: 0300000096 [12:38:52]line РНМ: 0000000000091693 [12:38:52]line Версия ККМ: 001 [12:38:52]line ФМ: 0000000000871792 [12:38:52]line ФД: 156889 [12:38:52]line ФПД: 241172262565702 [12:38:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123853&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156889&fm=241172262565702&tin=02508201610067®Number=0000000000091693&sum=30000 [12:38:52]OFD Sender: Processing packet 156889 [packets to send 31, broken 30] [12:38:52]ProducePacketName [12:38:52]name=ofd_packets/00156889 [12:38:52]OFD Sender: To server: pG, [12:38:52]CommunicateWithHost lk.salyk.kg:30040 [12:38:52]ConnectInit lk.salyk.kg [12:38:52]written 0, free lines is 4095 [12:38:53]Connected sock=10 [12:38: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 37 39 32 0F 01 00 00 D9 66 07 01 3B C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 DD 85 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 64 02 00 35 04 06 00 DB 58 4B 0A 37 46 EC FB 9B 30 CD 0C F8 98 [12:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CD 82 47 00 4A 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 64 02 00 F4 03 04 00 4A 2B 1F 67 B6 04 01 00 00 54 7B AA 18 54 50 49 62 [12:38:53]CommunicateWithHost err = 0 [12:38:53]CheckOFDResponse [12:38:53]1017 (14) - 77093643461234 [12:38:53]1041 (16) - 0000000000871792 [12:38:53]1040 (4) - 156889 [12:38:53]1012 (4) - 28.10.2024 06:12 [12:38:53]1206 (1) - 0 [12:38:53]OFD Sender: Remove packet 156889 [12:38:53]ProducePacketName [12:38:53]name=ofd_packets/00156889 [12:38:53]NVStorageDeleteData [12:38:53]Write to MH i2c: 01 00 00 B2 1F D1 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: 01 07 00 B2 1F 00 00 00 00 00 DC 0C C0 [12:38:53]RasterBufferAndPrint [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]line [12:38:53]written 0, free lines is 3298 [12:38:53]process_action close_receipt done [12:38:53]requested_data is exist [12:38:53]produce_requested_data [12:38:53]requested_item fm.sn is exist - process it [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 11 00 00 [12:38:53]Write to MH i2c: E2 08 00 B9 1F 80 11 00 00 00 00 00 00 52 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 17 00 B9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [12:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:38:53]wFMCommunicate OK [12:38:53]requested_item fd.num is exist - process it [12:38:53]SAM_PROTO_GetFieldsCounters [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 13 00 00 [12:38:53]Write to MH i2c: E2 08 00 BA 1F 80 13 00 00 00 00 00 00 55 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 62 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 62 00 BA 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 64 02 00 0E 04 04 00 1A 02 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 11 [12:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 64 02 00 0E 04 04 00 1A 02 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 [12:38:53]wFMCommunicate OK [12:38:53]SAM_PROTO_GetFieldsCounters done [12:38:53]requested_item shift.num is exist - process it [12:38:53]requested_item shift.opened is exist - process it [12:38:53]req_shift_opened [12:38:53]FM_GetShiftState [12:38:53]SAM_PROTO_GetShiftState [12:38:53]wFMCommunicate request_size=4 [12:38:53]MH_SAM_APDU [12:38:53]CAPDU: 80 13 01 00 [12:38:53]Write to MH i2c: E2 08 00 BB 1F 80 13 01 00 00 00 00 00 57 [12:38:53]Write i2c OK [12:38:53]MH_I2C_Read... [12:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:53]Read from MH i2c: E2 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0E 00 [12:38:53]MH_I2C_Read... [12:38:53]Read from MH i2c: E2 0E 00 BB 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 49 [12:38:53]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:38:53]wFMCommunicate OK [12:38:53]SAM_PROTO_GetShiftState done [12:38:53]FM_GetShiftState done [12:38:53]req_shift_opened done [12:38:53]requested_item shift.open_date is exist - process it [12:38:53]req_shift_open_date [12:38:53]req_shift_open_date done [12:38:53]produce_requested_data done [12:38:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156889,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:38:53]process_action_free close_receipt [12:38:53]json_value_free [12:38:53]json_value_free done [12:38:53]process_json_proto returns [12:38:53]Send response to host [12:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156889,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:38:53]free response buf [12:38:53]execute_script done [12:38:53]execute_script returns [12:38:53]free content buf [12:38:53]Sock 9.Close socket [12:38:53]Sock 9.Thread stoped [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:19]accept exits with 7 [12:41:19]New connection [12:41:19]New thread 3066604900 created [12:41:19]Thread 3066748260 joined [12:41:19]Waiting for new connection... [12:41:19] Sock 7.Parse request [12:41:19]Sock 7.Check first char [12:41:19]Sock 7.First char is OK [12:41:19]request: POST /json_proto HTTP/1.0 [12:41:19]Method: POST [12:41:19]URL: /json_proto [12:41:19]Method is POST - this is cgi request [12:41:19]url: /json_proto [12:41:19]query_string will be loaded in cgi processing [12:41:19]execute_cgi json_proto POST (null) [12:41:19]execute_cgi path=json_proto method=POST [12:41:19]POST find Content-Length [12:41:19]Host: 172.17.63.3:8080 [12:41:19]Content-Length: 676 [12:41:19]Content-Type: application/json [12:41:19] [12:41:19]POST finish read [12:41:19]Found Content-Length = 676 [12:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:41:19]execute_script... [12:41:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [12:41:19]POST & json_proto [12:41:19]process_json_proto [12:41:19]json parsed OK: [12:41:19]protocol is kg_v1.0 [12:41:19]action value=close_receipt [12:41:19]process_action close_receipt [12:41:19]cmd_close_receipt [12:41:19]MH_GetDate [12:41:19]Write to MH i2c: F0 00 00 BC 1F CA [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 09 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 09 00 BC 1F 00 72 86 1F 67 50 D1 6C 64 42 [12:41:19]GetLastDocTimeStamp 1730119133 [12:41:19]current date 1730119282 [12:41:19]FM_GetShiftState [12:41:19]SAM_PROTO_GetShiftState [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 13 01 00 [12:41:19]Write to MH i2c: E2 08 00 BD 1F 80 13 01 00 00 00 00 00 59 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0E 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0E 00 BD 1F 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 4B [12:41:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:41:19]wFMCommunicate OK [12:41:19]SAM_PROTO_GetShiftState done [12:41:19]FM_GetShiftState done [12:41:19]opened in 1730075526 [12:41:19]opened+sec_in_day 1730161926 [12:41:19]quantity*price = 50041 [12:41:19]sum+1 = 50042 [12:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 106 28.10.2024 12:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156890 ФПД: 278114380953611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156890&fm=278114380953611&tin=02508201610067®Number=0000000000091693&sum=50000 [12:41:20]StoreToDocumentArchive [12:41:20]shift 538 fd 156890 [12:41:20]save to /storage/0538/doc_00156890 [12:41:20]save last doc name /storage/0538/doc_00156890 to /storage/kkm_last_doc_name [12:41:20]save OK [12:41:20]Clear old archive folders... [12:41:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:20]tlvbuf is B6F23560 [12:41:20]SAM_PROTO_ClearQueue [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 09 00 00 [12:41:20]Write to MH i2c: E2 08 00 CA 1F 80 09 00 00 00 00 00 00 5B [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 03 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 03 00 CA 1F 00 90 00 5D [12:41:20]RAPDU: 90 00 [12:41:20]wFMCommunicate OK [12:41:20]SAM_PROTO_ClearQueue done [12:41:20]KKMCreateOFDPacket [12:41:20]OFDProtocolAddRootSTLVToBuf [12:41:20]FM_MakeSignedData [12:41:20]FM_MakeSignedData [12:41:20]SAM_PROTO_SignData [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 0D 01 02 [12:41:20]Write to MH i2c: E2 08 00 CB 1F 80 0D 01 02 00 00 00 00 63 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 03 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 03 00 CB 1F 00 90 00 5E [12:41:20]RAPDU: 90 00 [12:41:20]wFMCommunicate OK [12:41:20]wFMCommunicate request_size=255 [12:41:20]MH_SAM_APDU [12:41: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6A 00 00 00 F4 03 04 00 72 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 64 02 00 35 04 06 00 FC [12:41:20]Write to MH i2c: E2 02 01 CC 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6A 00 00 00 F4 03 04 00 72 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 64 02 00 35 04 06 00 FC 00 00 37 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 CC 1F 00 90 00 5F [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]wFMCommunicate request_size=10 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 02 02 05 F1 8C E2 38 0B [12:41:21]Write to MH i2c: E2 0D 00 CD 1F 80 0D 02 02 05 00 F1 8C E2 38 0B 00 00 12 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 CD 1F 00 90 00 60 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 03 02 [12:41:21]Write to MH i2c: E2 08 00 CE 1F 80 0D 03 02 00 00 00 00 68 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0B 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0B 00 CE 1F 00 3F C7 02 97 8B 9E F1 5F 90 00 81 [12:41:21]RAPDU: 3F C7 02 97 8B 9E F1 5F 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_SignData done [12:41:21]FM_MakeSignedData done [12:41:21]CreateOFDProtocolMessage [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 11 00 00 [12:41:21]Write to MH i2c: E2 08 00 CF 1F 80 11 00 00 00 00 00 00 68 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 CF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BD [12:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:41:21]wFMCommunicate OK [12:41:21]CreateOFDProtocolMessage done [12:41:21]OFDSenderStorePacket 156890 [12:41:21]StoreOFDPacket docnum=156890 [12:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB C5 07 01 82 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6A 00 00 00 F4 03 04 00 72 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 64 02 00 35 04 06 00 FC F1 8C E2 38 0B 3F C7 02 97 8B 9E F1 5F [12:41:21]CheckFolder [12:41:21]dirname=/storage/ofd_packets [12:41:21]CheckFolder done [12:41:21]ProducePacketName [12:41:21]name=ofd_packets/00156890 [12:41:21]NVStorageSaveData ofd_packets/00156890 [12:41:21]File name is /storage/ofd_packets/00156890 [12:41:21]Write 301 bytes [12:41:21]NVStorageSaveData done [12:41:21]OFDSenderStorePacket done [12:41:21]KKMCreateOFDPacket done [12:41:21]NVStorageSaveData kkm_last_timestamp [12:41:21]File name is /storage/kkm_last_timestamp [12:41:21]Write 4 bytes [12:41:21]NVStorageSaveData done [12:41:21]ExternCall_PrintAddStr [12:41:21]wPrintStart [12:41:21]Write to MH i2c: 01 00 00 D0 1F EF [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 D0 1F 00 00 00 00 00 FF 0F 04 [12:41:21]RasterBufferAndPrint [12:41:21]line Счет N : (1)99706 [12:41:21]line ИНН: 02508201610067 [12:41:21]line Контрольно-Кассовый Чек [12:41:21]line ПРОДАЖА [12:41:21]line ТРК (МРК, ГНК) : 31 [12:41:21]line Товар: 2710124130 [12:41:21]line Аи-92-К-5 [12:41:21]line 7.480 * 66.90 [12:41:21]line = 500.41 [12:41:21]line НДС 12% НСП 1% [12:41:21]line > о реализуемом товаре [12:41:21]line ОКРУГЛЕНИЕ: -0.41 [12:41:21]line ИТОГО: 500.00 [12:41:21]line Внесено: 500.00 [12:41:21]line СДАЧА: 0.00 [12:41:21]line НСП 1% : 4.43 [12:41:21]line НДС 12% : 53.14 [12:41:21]line Наличными: 500.00 [12:41:21]line Безнал.: 0.00 [12:41:21]line Место: АЗС № 143 "Партнер Нефть" [12:41:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:41:21]line СНО: Общий режим [12:41:21]line Чек 106 28.10.2024 12:41 [12:41:21]line Смена: 538 ФФД: 1.0 [12:41:21]line ЗНМ: 0300000096 [12:41:21]line РНМ: 0000000000091693 [12:41:21]line Версия ККМ: 001 [12:41:21]line ФМ: 0000000000871792 [12:41:21]line ФД: 156890 [12:41:21]line ФПД: 278114380953611 [12:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124122&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156890&fm=278114380953611&tin=02508201610067®Number=0000000000091693&sum=50000 [12:41:21]OFD Sender: Processing packet 156890 [packets to send 31, broken 30] [12:41:21]ProducePacketName [12:41:21]name=ofd_packets/00156890 [12:41:21]OFD Sender: To server: pG, [12:41:21]CommunicateWithHost lk.salyk.kg:30040 [12:41:21]ConnectInit lk.salyk.kg [12:41:21]written 0, free lines is 4095 [12:41:21]Connected sock=10 [12:41: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 37 39 32 0F 01 00 00 AB C5 07 01 82 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 6A 00 00 00 F4 03 04 00 72 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 64 02 00 35 04 06 00 FC F1 8C E2 38 0B 3F C7 02 97 8B 9E F1 5F [12:41:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9A 04 47 00 69 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 37 39 32 10 04 04 00 DA 64 02 00 F4 03 04 00 DE 2B 1F 67 B6 04 01 00 00 E9 1B 1D 81 17 76 FD E3 [12:41:21]CommunicateWithHost err = 0 [12:41:21]CheckOFDResponse [12:41:21]1017 (14) - 77093643461234 [12:41:21]1041 (16) - 0000000000871792 [12:41:21]1040 (4) - 156890 [12:41:21]1012 (4) - 28.10.2024 06:14 [12:41:21]1206 (1) - 0 [12:41:21]OFD Sender: Remove packet 156890 [12:41:21]ProducePacketName [12:41:21]name=ofd_packets/00156890 [12:41:21]NVStorageDeleteData [12:41:22]Write to MH i2c: 01 00 00 FB 1F 1A [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 FB 1F 00 00 00 00 00 DD 0C 0A [12:41:22]RasterBufferAndPrint [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]written 0, free lines is 3299 [12:41:22]process_action close_receipt done [12:41:22]requested_data is exist [12:41:22]produce_requested_data [12:41:22]requested_item fm.sn is exist - process it [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 11 00 00 [12:41:22]Write to MH i2c: E2 08 00 02 20 80 11 00 00 00 00 00 00 9C [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 17 00 02 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [12:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:41:22]wFMCommunicate OK [12:41:22]requested_item fd.num is exist - process it [12:41:22]SAM_PROTO_GetFieldsCounters [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 00 00 [12:41:22]Write to MH i2c: E2 08 00 03 20 80 13 00 00 00 00 00 00 9F [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 62 00 03 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 64 02 00 0E 04 04 00 1A 02 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 5F [12:41: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 64 02 00 0E 04 04 00 1A 02 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 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetFieldsCounters done [12:41:22]requested_item shift.num is exist - process it [12:41:22]requested_item shift.opened is exist - process it [12:41:22]req_shift_opened [12:41:22]FM_GetShiftState [12:41:22]SAM_PROTO_GetShiftState [12:41:22]wFMCommunicate request_size=4 [12:41:22]MH_SAM_APDU [12:41:22]CAPDU: 80 13 01 00 [12:41:22]Write to MH i2c: E2 08 00 04 20 80 13 01 00 00 00 00 00 A1 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:22]Read from MH i2c: E2 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: E2 0E 00 04 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 93 [12:41:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:41:22]wFMCommunicate OK [12:41:22]SAM_PROTO_GetShiftState done [12:41:22]FM_GetShiftState done [12:41:22]req_shift_opened done [12:41:22]requested_item shift.open_date is exist - process it [12:41:22]req_shift_open_date [12:41:22]req_shift_open_date done [12:41:22]produce_requested_data done [12:41:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156890,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:41:22]process_action_free close_receipt [12:41:22]json_value_free [12:41:22]json_value_free done [12:41:22]process_json_proto returns [12:41:22]Send response to host [12:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156890,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:41:22]free response buf [12:41:22]execute_script done [12:41:22]execute_script returns [12:41:22]free content buf [12:41:22]Sock 7.Close socket [12:41:22]Sock 7.Thread stoped [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:21]accept exits with 9 [12:42:21]New connection [12:42:21]New thread 3066748260 created [12:42:21]Thread 3066604900 joined [12:42:21]Waiting for new connection... [12:42:21] Sock 9.Parse request [12:42:21]Sock 9.Check first char [12:42:21]Sock 9.First char is OK [12:42:21]request: POST /json_proto HTTP/1.0 [12:42:21]Method: POST [12:42:21]URL: /json_proto [12:42:21]Method is POST - this is cgi request [12:42:21]url: /json_proto [12:42:21]query_string will be loaded in cgi processing [12:42:21]execute_cgi json_proto POST (null) [12:42:21]execute_cgi path=json_proto method=POST [12:42:21]POST find Content-Length [12:42:21]Host: 172.17.63.3:8080 [12:42:21]Content-Length: 678 [12:42:21]Content-Type: application/json [12:42:21] [12:42:21]POST finish read [12:42:21]Found Content-Length = 678 [12:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]execute_script... [12:42: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)99707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]POST & json_proto [12:42:21]process_json_proto [12:42:21]json parsed OK: [12:42:21]protocol is kg_v1.0 [12:42:21]action value=close_receipt [12:42:21]process_action close_receipt [12:42:21]cmd_close_receipt [12:42:21]MH_GetDate [12:42:21]Write to MH i2c: F0 00 00 05 20 14 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 05 20 00 AF 86 1F 67 50 D1 6C 64 C9 [12:42:21]GetLastDocTimeStamp 1730119282 [12:42:21]current date 1730119343 [12:42:21]FM_GetShiftState [12:42:21]SAM_PROTO_GetShiftState [12:42:21]wFMCommunicate request_size=4 [12:42:21]MH_SAM_APDU [12:42:21]CAPDU: 80 13 01 00 [12:42:21]Write to MH i2c: E2 08 00 06 20 80 13 01 00 00 00 00 00 A3 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:21]Read from MH i2c: E2 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 06 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 95 [12:42:21]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:42:21]wFMCommunicate OK [12:42:21]SAM_PROTO_GetShiftState done [12:42:21]FM_GetShiftState done [12:42:21]opened in 1730075526 [12:42:21]opened+sec_in_day 1730161926 [12:42:21]quantity*price = 200025 [12:42:21]sum+1 = 200026 [12:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 107 28.10.2024 12:42 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156891 ФПД: 174072679248758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156891&fm=174072679248758&tin=02508201610067®Number=0000000000091693&sum=200000 [12:42:22]StoreToDocumentArchive [12:42:22]shift 538 fd 156891 [12:42:22]save to /storage/0538/doc_00156891 [12:42:22]save last doc name /storage/0538/doc_00156891 to /storage/kkm_last_doc_name [12:42:22]save OK [12:42:22]Clear old archive folders... [12:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:22]tlvbuf is 01A88590 [12:42:22]SAM_PROTO_ClearQueue [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 09 00 00 [12:42:22]Write to MH i2c: E2 08 00 13 20 80 09 00 00 00 00 00 00 A5 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_ClearQueue done [12:42:22]KKMCreateOFDPacket [12:42:22]OFDProtocolAddRootSTLVToBuf [12:42:22]FM_MakeSignedData [12:42:22]FM_MakeSignedData [12:42:22]SAM_PROTO_SignData [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 01 02 [12:42:22]Write to MH i2c: E2 08 00 14 20 80 0D 01 02 00 00 00 00 AD [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=255 [12:42:22]MH_SAM_APDU [12:42: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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 6B 00 00 00 F4 03 04 00 B0 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 64 02 00 35 04 06 00 9E 51 74 36 [12:42:22]Write to MH i2c: E2 02 01 15 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 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 6B 00 00 00 F4 03 04 00 B0 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 64 02 00 35 04 06 00 9E 51 74 36 00 00 42 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]OFD Sender: No OFD packet to send [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 15 20 00 90 00 A9 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=7 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 02 02 02 33 76 [12:42:22]Write to MH i2c: E2 0A 00 16 20 80 0D 02 02 02 00 33 76 00 00 5D [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 16 20 00 90 00 AA [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 03 02 [12:42:22]Write to MH i2c: E2 08 00 17 20 80 0D 03 02 00 00 00 00 B2 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 17 20 00 6D 21 5A CA 11 7D 94 A4 90 00 2B [12:42:22]RAPDU: 6D 21 5A CA 11 7D 94 A4 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_SignData done [12:42:22]FM_MakeSignedData done [12:42:22]CreateOFDProtocolMessage [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 11 00 00 [12:42:22]Write to MH i2c: E2 08 00 18 20 80 11 00 00 00 00 00 00 B2 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 18 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 07 [12:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:22]wFMCommunicate OK [12:42:22]CreateOFDProtocolMessage done [12:42:22]OFDSenderStorePacket 156891 [12:42:22]StoreOFDPacket docnum=156891 [12:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 38 3F 04 01 77 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 6B 00 00 00 F4 03 04 00 B0 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 64 02 00 35 04 06 00 9E 51 74 36 33 76 6D 21 5A CA 11 7D 94 A4 [12:42:22]CheckFolder [12:42:22]dirname=/storage/ofd_packets [12:42:22]CheckFolder done [12:42:22]ProducePacketName [12:42:22]name=ofd_packets/00156891 [12:42:22]NVStorageSaveData ofd_packets/00156891 [12:42:22]File name is /storage/ofd_packets/00156891 [12:42:22]Write 298 bytes [12:42:22]NVStorageSaveData done [12:42:22]OFDSenderStorePacket done [12:42:22]KKMCreateOFDPacket done [12:42:22]NVStorageSaveData kkm_last_timestamp [12:42:22]File name is /storage/kkm_last_timestamp [12:42:22]Write 4 bytes [12:42:22]NVStorageSaveData done [12:42:22]ExternCall_PrintAddStr [12:42:22]wPrintStart [12:42:22]Write to MH i2c: 01 00 00 19 20 39 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 19 20 00 00 00 00 00 FF 0F 4E [12:42:22]RasterBufferAndPrint [12:42:22]line Счет N : (1)99707 [12:42:22]line ИНН: 02508201610067 [12:42:22]line Контрольно-Кассовый Чек [12:42:22]line ПРОДАЖА [12:42:22]line ТРК (МРК, ГНК) : 32 [12:42:22]line Товар: 2710194210 [12:42:22]line ДТ-К-5 [12:42:22]line 26.250 * 76.20 [12:42:22]line = 2000.25 [12:42:22]line НДС 12% НСП 1% [12:42:22]line > о реализуемом товаре [12:42:22]line ОКРУГЛЕНИЕ: -0.25 [12:42:22]line ИТОГО: 2000.00 [12:42:22]line Внесено: 2000.00 [12:42:22]line СДАЧА: 0.00 [12:42:22]line НСП 1% : 17.70 [12:42:22]line НДС 12% : 212.42 [12:42:22]line Наличными: 2000.00 [12:42:22]line Безнал.: 0.00 [12:42:22]line Место: АЗС № 143 "Партнер Нефть" [12:42:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:42:22]line СНО: Общий режим [12:42:22]line Чек 107 28.10.2024 12:42 [12:42:22]line Смена: 538 ФФД: 1.0 [12:42:22]line ЗНМ: 0300000096 [12:42:22]line РНМ: 0000000000091693 [12:42:22]line Версия ККМ: 001 [12:42:22]line ФМ: 0000000000871792 [12:42:22]line ФД: 156891 [12:42:22]line ФПД: 174072679248758 [12:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156891&fm=174072679248758&tin=02508201610067®Number=0000000000091693&sum=200000 [12:42:23]OFD Sender: Processing packet 156891 [packets to send 31, broken 30] [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00156891 [12:42:23]OFD Sender: To server: pG, [12:42:23]CommunicateWithHost lk.salyk.kg:30040 [12:42:23]ConnectInit lk.salyk.kg [12:42:23]written 0, free lines is 4095 [12:42:23]Connected sock=10 [12:42: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 37 39 32 0C 01 00 00 38 3F 04 01 77 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 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 FA 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 6B 00 00 00 F4 03 04 00 B0 86 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 64 02 00 35 04 06 00 9E 51 74 36 33 76 6D 21 5A CA 11 7D 94 A4 [12:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 92 F0 47 00 81 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 37 39 32 10 04 04 00 DB 64 02 00 F4 03 04 00 1C 2C 1F 67 B6 04 01 00 00 F1 99 1A 57 66 1E 7E 51 [12:42:23]CommunicateWithHost err = 0 [12:42:23]CheckOFDResponse [12:42:23]1017 (14) - 77093643461234 [12:42:23]1041 (16) - 0000000000871792 [12:42:23]1040 (4) - 156891 [12:42:23]1012 (4) - 28.10.2024 06:15 [12:42:23]1206 (1) - 0 [12:42:23]OFD Sender: Remove packet 156891 [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00156891 [12:42:23]NVStorageDeleteData [12:42:23]Write to MH i2c: 01 00 00 44 20 64 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 44 20 00 00 00 00 00 DF 0C 56 [12:42:23]RasterBufferAndPrint [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]written 0, free lines is 3301 [12:42:23]process_action close_receipt done [12:42:23]requested_data is exist [12:42:23]produce_requested_data [12:42:23]requested_item fm.sn is exist - process it [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 11 00 00 [12:42:23]Write to MH i2c: E2 08 00 4B 20 80 11 00 00 00 00 00 00 E5 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 17 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 17 00 4B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [12:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:23]wFMCommunicate OK [12:42:23]requested_item fd.num is exist - process it [12:42:23]SAM_PROTO_GetFieldsCounters [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 13 00 00 [12:42:23]Write to MH i2c: E2 08 00 4C 20 80 13 00 00 00 00 00 00 E8 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 62 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 62 00 4C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 64 02 00 0E 04 04 00 1A 02 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 AC [12: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 64 02 00 0E 04 04 00 1A 02 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 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_GetFieldsCounters done [12:42:23]requested_item shift.num is exist - process it [12:42:23]requested_item shift.opened is exist - process it [12:42:23]req_shift_opened [12:42:23]FM_GetShiftState [12:42:23]SAM_PROTO_GetShiftState [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 13 01 00 [12:42:23]Write to MH i2c: E2 08 00 4D 20 80 13 01 00 00 00 00 00 EA [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 0E 00 4D 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DC [12:42:23]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_GetShiftState done [12:42:23]FM_GetShiftState done [12:42:23]req_shift_opened done [12:42:23]requested_item shift.open_date is exist - process it [12:42:23]req_shift_open_date [12:42:23]req_shift_open_date done [12:42:23]produce_requested_data done [12:42:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156891,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:42:23]process_action_free close_receipt [12:42:23]json_value_free [12:42:23]json_value_free done [12:42:23]process_json_proto returns [12:42:23]Send response to host [12:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156891,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:42:23]free response buf [12:42:23]execute_script done [12:42:23]execute_script returns [12:42:23]free content buf [12:42:23]Sock 9.Close socket [12:42:23]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:46]accept exits with 7 [12:44:46]New connection [12:44:46]New thread 3066604900 created [12:44:46]Thread 3066748260 joined [12:44:46]Waiting for new connection... [12:44:46] Sock 7.Parse request [12:44:46]Sock 7.Check first char [12:44:46]Sock 7.First char is OK [12:44:46]request: POST /json_proto HTTP/1.0 [12:44:46]Method: POST [12:44:46]URL: /json_proto [12:44:46]Method is POST - this is cgi request [12:44:46]url: /json_proto [12:44:46]query_string will be loaded in cgi processing [12:44:46]execute_cgi json_proto POST (null) [12:44:46]execute_cgi path=json_proto method=POST [12:44:46]POST find Content-Length [12:44:46]Host: 172.17.63.3:8080 [12:44:46]Content-Length: 676 [12:44:46]Content-Type: application/json [12:44:46] [12:44:46]POST finish read [12:44:46]Found Content-Length = 676 [12:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:44:46]execute_script... [12:44: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)99708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:44:46]POST & json_proto [12:44:46]process_json_proto [12:44:46]json parsed OK: [12:44:46]protocol is kg_v1.0 [12:44:46]action value=close_receipt [12:44:46]process_action close_receipt [12:44:46]cmd_close_receipt [12:44:46]MH_GetDate [12:44:46]Write to MH i2c: F0 00 00 4E 20 5D [12:44:46]Write i2c OK [12:44:46]MH_I2C_Read... [12:44:46]Read from MH i2c: F0 [12:44:46]MH_I2C_Read... [12:44:46]Read from MH i2c: F0 09 00 [12:44:46]MH_I2C_Read... [12:44:46]Read from MH i2c: F0 09 00 4E 20 00 41 87 1F 67 50 D1 6C 64 A5 [12:44:46]GetLastDocTimeStamp 1730119344 [12:44:46]current date 1730119489 [12:44:46]FM_GetShiftState [12:44:46]SAM_PROTO_GetShiftState [12:44:46]wFMCommunicate request_size=4 [12:44:46]MH_SAM_APDU [12:44:46]CAPDU: 80 13 01 00 [12:44:46]Write to MH i2c: E2 08 00 4F 20 80 13 01 00 00 00 00 00 EC [12:44:46]Write i2c OK [12:44:46]MH_I2C_Read... [12:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:46]Read from MH i2c: E2 [12:44:46]MH_I2C_Read... [12:44:46]Read from MH i2c: E2 0E 00 [12:44:46]MH_I2C_Read... [12:44:46]Read from MH i2c: E2 0E 00 4F 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DE [12:44:46]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:44:46]wFMCommunicate OK [12:44:46]SAM_PROTO_GetShiftState done [12:44:46]FM_GetShiftState done [12:44:46]opened in 1730075526 [12:44:46]opened+sec_in_day 1730161926 [12:44:46]quantity*price = 30038 [12:44:46]sum+1 = 30039 [12:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 108 28.10.2024 12:44 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156892 ФПД: 125184276171609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156892&fm=125184276171609&tin=02508201610067®Number=0000000000091693&sum=30000 [12:44:47]StoreToDocumentArchive [12:44:47]shift 538 fd 156892 [12:44:47]save to /storage/0538/doc_00156892 [12:44:47]save last doc name /storage/0538/doc_00156892 to /storage/kkm_last_doc_name [12:44:47]save OK [12:44:47]Clear old archive folders... [12:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:47]tlvbuf is 01AF72C0 [12:44:47]SAM_PROTO_ClearQueue [12:44:47]wFMCommunicate request_size=4 [12:44:47]MH_SAM_APDU [12:44:47]CAPDU: 80 09 00 00 [12:44:47]Write to MH i2c: E2 08 00 5C 20 80 09 00 00 00 00 00 00 EE [12:44:47]Write i2c OK [12:44:47]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [12:44:48]RAPDU: 90 00 [12:44:48]wFMCommunicate OK [12:44:48]SAM_PROTO_ClearQueue done [12:44:48]KKMCreateOFDPacket [12:44:48]OFDProtocolAddRootSTLVToBuf [12:44:48]FM_MakeSignedData [12:44:48]FM_MakeSignedData [12:44:48]SAM_PROTO_SignData [12:44:48]wFMCommunicate request_size=4 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 0D 01 02 [12:44:48]Write to MH i2c: E2 08 00 5D 20 80 0D 01 02 00 00 00 00 F6 [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [12:44:48]RAPDU: 90 00 [12:44:48]wFMCommunicate OK [12:44:48]wFMCommunicate request_size=255 [12:44:48]MH_SAM_APDU [12:44: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 87 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 64 02 00 35 04 06 00 71 [12:44:48]Write to MH i2c: E2 02 01 5E 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 87 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 64 02 00 35 04 06 00 71 00 00 07 [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [12:44:48]RAPDU: 90 00 [12:44:48]wFMCommunicate OK [12:44:48]wFMCommunicate request_size=10 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 0D 02 02 05 DA BC 50 0B 59 [12:44:48]Write to MH i2c: E2 0D 00 5F 20 80 0D 02 02 05 00 DA BC 50 0B 59 00 00 4D [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 03 00 5F 20 00 90 00 F3 [12:44:48]RAPDU: 90 00 [12:44:48]wFMCommunicate OK [12:44:48]wFMCommunicate request_size=4 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 0D 03 02 [12:44:48]Write to MH i2c: E2 08 00 60 20 80 0D 03 02 00 00 00 00 FB [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 0B 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 0B 00 60 20 00 95 07 A0 26 01 7A 0F 8B 90 00 73 [12:44:48]RAPDU: 95 07 A0 26 01 7A 0F 8B 90 00 [12:44:48]wFMCommunicate OK [12:44:48]SAM_PROTO_SignData done [12:44:48]FM_MakeSignedData done [12:44:48]CreateOFDProtocolMessage [12:44:48]wFMCommunicate request_size=4 [12:44:48]MH_SAM_APDU [12:44:48]CAPDU: 80 11 00 00 [12:44:48]Write to MH i2c: E2 08 00 61 20 80 11 00 00 00 00 00 00 FB [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:48]Read from MH i2c: E2 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 17 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: E2 17 00 61 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [12:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:44:48]wFMCommunicate OK [12:44:48]CreateOFDProtocolMessage done [12:44:48]OFDSenderStorePacket 156892 [12:44:48]StoreOFDPacket docnum=156892 [12:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D4 40 07 01 6F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 87 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 64 02 00 35 04 06 00 71 DA BC 50 0B 59 95 07 A0 26 01 7A 0F 8B [12:44:48]CheckFolder [12:44:48]dirname=/storage/ofd_packets [12:44:48]CheckFolder done [12:44:48]ProducePacketName [12:44:48]name=ofd_packets/00156892 [12:44:48]NVStorageSaveData ofd_packets/00156892 [12:44:48]File name is /storage/ofd_packets/00156892 [12:44:48]Write 301 bytes [12:44:48]NVStorageSaveData done [12:44:48]OFDSenderStorePacket done [12:44:48]KKMCreateOFDPacket done [12:44:48]NVStorageSaveData kkm_last_timestamp [12:44:48]File name is /storage/kkm_last_timestamp [12:44:48]Write 4 bytes [12:44:48]NVStorageSaveData done [12:44:48]ExternCall_PrintAddStr [12:44:48]wPrintStart [12:44:48]Write to MH i2c: 01 00 00 62 20 82 [12:44:48]Write i2c OK [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: 01 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: 01 07 00 [12:44:48]MH_I2C_Read... [12:44:48]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 FF 0F 97 [12:44:48]RasterBufferAndPrint [12:44:48]line Счет N : (1)99708 [12:44:48]line ИНН: 02508201610067 [12:44:48]line Контрольно-Кассовый Чек [12:44:48]line ПРОДАЖА [12:44:48]line ТРК (МРК, ГНК) : 31 [12:44:48]line Товар: 2710124130 [12:44:48]line Аи-92-К-5 [12:44:48]line 4.490 * 66.90 [12:44:48]line = 300.38 [12:44:48]line НДС 12% НСП 1% [12:44:48]line > о реализуемом товаре [12:44:48]line ОКРУГЛЕНИЕ: -0.38 [12:44:48]line ИТОГО: 300.00 [12:44:48]line Внесено: 300.00 [12:44:48]line СДАЧА: 0.00 [12:44:48]line НСП 1% : 2.66 [12:44:48]line НДС 12% : 31.90 [12:44:48]line Наличными: 300.00 [12:44:48]line Безнал.: 0.00 [12:44:48]line Место: АЗС № 143 "Партнер Нефть" [12:44:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:44:48]line СНО: Общий режим [12:44:48]line Чек 108 28.10.2024 12:44 [12:44:48]line Смена: 538 ФФД: 1.0 [12:44:48]line ЗНМ: 0300000096 [12:44:48]line РНМ: 0000000000091693 [12:44:48]line Версия ККМ: 001 [12:44:48]line ФМ: 0000000000871792 [12:44:48]line ФД: 156892 [12:44:48]line ФПД: 125184276171609 [12:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124449&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156892&fm=125184276171609&tin=02508201610067®Number=0000000000091693&sum=30000 [12:44:48]OFD Sender: Processing packet 156892 [packets to send 31, broken 30] [12:44:48]ProducePacketName [12:44:48]name=ofd_packets/00156892 [12:44:48]OFD Sender: To server: pG, [12:44:48]CommunicateWithHost lk.salyk.kg:30040 [12:44:48]ConnectInit lk.salyk.kg [12:44:48]written 0, free lines is 4095 [12:44:48]Connected sock=10 [12:44: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 37 39 32 0F 01 00 00 D4 40 07 01 6F 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 41 87 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 64 02 00 35 04 06 00 71 DA BC 50 0B 59 95 07 A0 26 01 7A 0F 8B [12:44:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2E B6 47 00 7A 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 37 39 32 10 04 04 00 DC 64 02 00 F4 03 04 00 AE 2C 1F 67 B6 04 01 00 00 28 73 72 7D B7 43 85 3C [12:44:49]CommunicateWithHost err = 0 [12:44:49]CheckOFDResponse [12:44:49]1017 (14) - 77093643461234 [12:44:49]1041 (16) - 0000000000871792 [12:44:49]1040 (4) - 156892 [12:44:49]1012 (4) - 28.10.2024 06:18 [12:44:49]1206 (1) - 0 [12:44:49]OFD Sender: Remove packet 156892 [12:44:49]ProducePacketName [12:44:49]name=ofd_packets/00156892 [12:44:49]NVStorageDeleteData [12:44:49]Write to MH i2c: 01 00 00 8D 20 AD [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: 01 07 00 8D 20 00 00 00 00 00 D6 0C 96 [12:44:49]RasterBufferAndPrint [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]line [12:44:49]written 0, free lines is 3293 [12:44:49]process_action close_receipt done [12:44:49]requested_data is exist [12:44:49]produce_requested_data [12:44:49]requested_item fm.sn is exist - process it [12:44:49]wFMCommunicate request_size=4 [12:44:49]MH_SAM_APDU [12:44:49]CAPDU: 80 11 00 00 [12:44:49]Write to MH i2c: E2 08 00 94 20 80 11 00 00 00 00 00 00 2E [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 17 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 17 00 94 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [12:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:44:49]wFMCommunicate OK [12:44:49]requested_item fd.num is exist - process it [12:44:49]SAM_PROTO_GetFieldsCounters [12:44:49]wFMCommunicate request_size=4 [12:44:49]MH_SAM_APDU [12:44:49]CAPDU: 80 13 00 00 [12:44:49]Write to MH i2c: E2 08 00 95 20 80 13 00 00 00 00 00 00 31 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 62 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 62 00 95 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 64 02 00 0E 04 04 00 1A 02 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 F9 [12:44: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 64 02 00 0E 04 04 00 1A 02 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 [12:44:49]wFMCommunicate OK [12:44:49]SAM_PROTO_GetFieldsCounters done [12:44:49]requested_item shift.num is exist - process it [12:44:49]requested_item shift.opened is exist - process it [12:44:49]req_shift_opened [12:44:49]FM_GetShiftState [12:44:49]SAM_PROTO_GetShiftState [12:44:49]wFMCommunicate request_size=4 [12:44:49]MH_SAM_APDU [12:44:49]CAPDU: 80 13 01 00 [12:44:49]Write to MH i2c: E2 08 00 96 20 80 13 01 00 00 00 00 00 33 [12:44:49]Write i2c OK [12:44:49]MH_I2C_Read... [12:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:49]Read from MH i2c: E2 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 [12:44:49]MH_I2C_Read... [12:44:49]Read from MH i2c: E2 0E 00 96 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 25 [12:44:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [12:44:49]wFMCommunicate OK [12:44:49]SAM_PROTO_GetShiftState done [12:44:49]FM_GetShiftState done [12:44:49]req_shift_opened done [12:44:49]requested_item shift.open_date is exist - process it [12:44:49]req_shift_open_date [12:44:49]req_shift_open_date done [12:44:49]produce_requested_data done [12:44:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156892,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [12:44:49]process_action_free close_receipt [12:44:49]json_value_free [12:44:49]json_value_free done [12:44:49]process_json_proto returns [12:44:49]Send response to host [12:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156892,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [12:44:49]free response buf [12:44:49]execute_script done [12:44:49]execute_script returns [12:44:49]free content buf [12:44:49]Sock 7.Close socket [12:44:49]Sock 7.Thread stoped [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]OFD Sender: No OFD packet to send [12:47:39]OFD Sender: No OFD packet to send [12:47:44]OFD Sender: No OFD packet to send [12:47:49]OFD Sender: No OFD packet to send [12:47:54]OFD Sender: No OFD packet to send [12:47:59]OFD Sender: No OFD packet to send [12:48:04]OFD Sender: No OFD packet to send [12:48:09]OFD Sender: No OFD packet to send [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:54]int [12:51:54]Write to MH i2c: 01 00 00 97 20 B7 [12:51:54]*** FLAG_PRN_KEY set [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 97 20 00 08 00 00 00 FF 0F D4 [12:51:54]state=0 [12:51:54]Key pressed [12:51:54]Feed [12:51:54]Write to MH i2c: D8 00 00 98 20 8F [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D8 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D8 01 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D8 01 00 98 20 00 90 [12:51:54]int [12:51:54]Write to MH i2c: 01 00 00 99 20 B9 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 99 20 00 48 00 00 00 3D 00 45 [12:51:54]state=2 [12:51:54]Key pressed [12:51:55]OFD Sender: No OFD packet to send [12:51:55]int [12:51:55]Write to MH i2c: 01 00 00 9A 20 BA [12:51:55]*** FLAG_PRN_KEY reset [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 9A 20 00 00 00 00 00 F6 0F C6 [12:51:55]state=2 [12:51:55]Stop feed [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [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: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:29]int [12:55:29]Write to MH i2c: 01 00 00 9B 20 BB [12:55:29]*** FLAG_PRN_PAP1 set [12:55:29]Write i2c OK [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 07 00 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 07 00 9B 20 00 01 00 00 00 FF 0F D1 [12:55:29]state=0 [12:55:29]No paper [12:55:29]int [12:55:29]Write to MH i2c: 01 00 00 9C 20 BC [12:55:29]*** FLAG_PRN_PAP2 set [12:55:29]Write i2c OK [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 07 00 [12:55:29]MH_I2C_Read... [12:55:29]Read from MH i2c: 01 07 00 9C 20 00 03 00 00 00 FF 0F D4 [12:55:29]state=0 [12:55:29]No paper [12:55:29]Cover opened [12:55:30]OFD Sender: No OFD packet to send [12:55:34]Write to MH i2c: 01 00 00 9D 20 BD [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 9D 20 00 03 00 00 00 FF 0F D5 [12:55:34]state=3 [12:55:34]No paper [12:55:34]Cover opened [12:55:35]OFD Sender: No OFD packet to send [12:55:38]ConnectInit Can't connect to host [12:55:39]Write to MH i2c: 01 00 00 9E 20 BE [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 07 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 07 00 9E 20 00 03 00 00 00 FF 0F D6 [12:55:39]state=3 [12:55:39]No paper [12:55:39]Cover opened [12:55:40]OFD Sender: No OFD packet to send [12:55:44]Write to MH i2c: 01 00 00 9F 20 BF [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 9F 20 00 03 00 00 00 FF 0F D7 [12:55:44]state=3 [12:55:44]No paper [12:55:44]Cover opened [12:55:45]OFD Sender: No OFD packet to send [12:55:49]Write to MH i2c: 01 00 00 A0 20 C0 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 A0 20 00 03 00 00 00 FF 0F D8 [12:55:49]state=3 [12:55:49]No paper [12:55:49]Cover opened [12:55:50]OFD Sender: No OFD packet to send [12:55:50]int [12:55:50]Write to MH i2c: 01 00 00 A1 20 C1 [12:55:50]*** FLAG_PRN_PAP2 reset [12:55:50]Write i2c OK [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 07 00 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 07 00 A1 20 00 01 00 00 00 FF 0F D7 [12:55:50]state=3 [12:55:50]No paper [12:55:50]Cover closed [12:55:50]int [12:55:50]Write to MH i2c: 01 00 00 A2 20 C2 [12:55:50]*** FLAG_PRN_PAP1 reset [12:55:50]Write i2c OK [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 07 00 [12:55:50]MH_I2C_Read... [12:55:50]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 FF 0F D7 [12:55:50]state=0 [12:55:52]int [12:55:52]Write to MH i2c: 01 00 00 A3 20 C3 [12:55:52]*** FLAG_PRN_KEY set [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 A3 20 00 08 00 00 00 FF 0F E0 [12:55:52]state=0 [12:55:52]Key pressed [12:55:52]Feed [12:55:52]Write to MH i2c: D8 00 00 A4 20 9B [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D8 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: D8 01 00 [12:55:52]MH_I2C_Read... [12:55:53]Read from MH i2c: D8 01 00 A4 20 00 9C [12:55:53]int [12:55:53]Write to MH i2c: 01 00 00 A5 20 C5 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 A5 20 00 48 00 00 00 3D 00 51 [12:55:53]state=2 [12:55:53]Key pressed [12:55:53]int [12:55:53]Write to MH i2c: 01 00 00 A6 20 C6 [12:55:53]*** FLAG_PRN_KEY reset [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 A6 20 00 00 00 00 00 F6 0F D2 [12:55:53]state=2 [12:55:53]Stop feed [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:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [13:00:10]accept exits with 9 [13:00:10]New connection [13:00:10]New thread 3066748260 created [13:00:10]Thread 3066604900 joined [13:00:10]Waiting for new connection... [13:00:10] Sock 9.Parse request [13:00:10]Sock 9.Check first char [13:00:10]Sock 9.First char is OK [13:00:10]request: POST /json_proto HTTP/1.0 [13:00:10]Method: POST [13:00:10]URL: /json_proto [13:00:10]Method is POST - this is cgi request [13:00:10]url: /json_proto [13:00:10]query_string will be loaded in cgi processing [13:00:10]execute_cgi json_proto POST (null) [13:00:10]execute_cgi path=json_proto method=POST [13:00:10]POST find Content-Length [13:00:10]Host: 172.17.63.3:8080 [13:00:10]Content-Length: 683 [13:00:10]Content-Type: application/json [13:00:10] [13:00:10]POST finish read [13:00:10]Found Content-Length = 683 [13:00:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 189.390, "sum" : 14431.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 14478.00, "total" : 14431.00, "payments": [ { "type": 0, "sum" : 14431.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:10]execute_script... [13:00: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)99709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 189.390, "sum" : 14431.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 14478.00, "total" : 14431.00, "payments": [ { "type": 0, "sum" : 14431.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:10]POST & json_proto [13:00:10]process_json_proto [13:00:10]json parsed OK: [13:00:10]protocol is kg_v1.0 [13:00:10]action value=close_receipt [13:00:10]process_action close_receipt [13:00:10]cmd_close_receipt [13:00:10]MH_GetDate [13:00:10]Write to MH i2c: F0 00 00 A7 20 B6 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: F0 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: F0 09 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: F0 09 00 A7 20 00 DD 8A 1F 67 50 D1 6C 64 9D [13:00:10]GetLastDocTimeStamp 1730119489 [13:00:10]current date 1730120413 [13:00:10]FM_GetShiftState [13:00:10]SAM_PROTO_GetShiftState [13:00:10]wFMCommunicate request_size=4 [13:00:10]MH_SAM_APDU [13:00:10]CAPDU: 80 13 01 00 [13:00:10]Write to MH i2c: E2 08 00 A8 20 80 13 01 00 00 00 00 00 45 [13:00:10]Write i2c OK [13:00:10]MH_I2C_Read... [13:00:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:10]Read from MH i2c: E2 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 [13:00:10]MH_I2C_Read... [13:00:10]Read from MH i2c: E2 0E 00 A8 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 37 [13:00:10]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:00:10]wFMCommunicate OK [13:00:10]SAM_PROTO_GetShiftState done [13:00:10]FM_GetShiftState done [13:00:10]opened in 1730075526 [13:00:10]opened+sec_in_day 1730161926 [13:00:10]quantity*price = 1443151 [13:00:10]sum+1 = 1443153 [13:00:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 14431.00 Внесено: 14478.00 СДАЧА: 47.00 НСП 1% : 127.71 НДС 12% : 1532.55 Наличными: 14431.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 109 28.10.2024 13:00 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156893 ФПД: 1670005412647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130013&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156893&fm=1670005412647&tin=02508201610067®Number=0000000000091693&sum=1443100 [13:00:12]StoreToDocumentArchive [13:00:12]shift 538 fd 156893 [13:00:12]save to /storage/0538/doc_00156893 [13:00:12]save last doc name /storage/0538/doc_00156893 to /storage/kkm_last_doc_name [13:00:12]save OK [13:00:12]Clear old archive folders... [13:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:00:12]tlvbuf is B6D766C0 [13:00:12]SAM_PROTO_ClearQueue [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 09 00 00 [13:00:12]Write to MH i2c: E2 08 00 B5 20 80 09 00 00 00 00 00 00 47 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [13:00:12]RAPDU: 90 00 [13:00:12]wFMCommunicate OK [13:00:12]SAM_PROTO_ClearQueue done [13:00:12]KKMCreateOFDPacket [13:00:12]OFDProtocolAddRootSTLVToBuf [13:00:12]FM_MakeSignedData [13:00:12]FM_MakeSignedData [13:00:12]SAM_PROTO_SignData [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 0D 01 02 [13:00:12]Write to MH i2c: E2 08 00 B6 20 80 0D 01 02 00 00 00 00 4F [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [13:00:12]RAPDU: 90 00 [13:00:12]wFMCommunicate OK [13:00:12]wFMCommunicate request_size=255 [13:00:12]MH_SAM_APDU [13:00: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 CE E3 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 05 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 05 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 56 02 00 00 00 07 04 06 00 1C 05 16 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 DD 8A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 64 02 00 35 04 06 00 01 84 D4 14 [13:00:12]Write to MH i2c: E2 02 01 B7 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 CE E3 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 05 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 05 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 56 02 00 00 00 07 04 06 00 1C 05 16 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 DD 8A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 64 02 00 35 04 06 00 01 84 D4 14 00 00 57 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 B7 20 00 90 00 4B [13:00:12]RAPDU: 90 00 [13:00:12]wFMCommunicate OK [13:00:12]wFMCommunicate request_size=7 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 0D 02 02 02 53 27 [13:00:12]Write to MH i2c: E2 0A 00 B8 20 80 0D 02 02 02 00 53 27 00 00 D0 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 03 00 B8 20 00 90 00 4C [13:00:12]RAPDU: 90 00 [13:00:12]wFMCommunicate OK [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 0D 03 02 [13:00:12]Write to MH i2c: E2 08 00 B9 20 80 0D 03 02 00 00 00 00 54 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 0B 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 0B 00 B9 20 00 D8 DD E6 CC F4 1C 83 5C 90 00 AB [13:00:12]RAPDU: D8 DD E6 CC F4 1C 83 5C 90 00 [13:00:12]wFMCommunicate OK [13:00:12]SAM_PROTO_SignData done [13:00:12]FM_MakeSignedData done [13:00:12]CreateOFDProtocolMessage [13:00:12]wFMCommunicate request_size=4 [13:00:12]MH_SAM_APDU [13:00:12]CAPDU: 80 11 00 00 [13:00:12]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:12]Read from MH i2c: E2 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 17 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [13:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:00:12]wFMCommunicate OK [13:00:12]CreateOFDProtocolMessage done [13:00:12]OFDSenderStorePacket 156893 [13:00:12]StoreOFDPacket docnum=156893 [13:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 24 C4 04 01 B7 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE E3 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 05 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 05 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 56 02 00 00 00 07 04 06 00 1C 05 16 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 DD 8A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 64 02 00 35 04 06 00 01 84 D4 14 53 27 D8 DD E6 CC F4 1C 83 5C [13:00:12]CheckFolder [13:00:12]dirname=/storage/ofd_packets [13:00:12]CheckFolder done [13:00:12]ProducePacketName [13:00:12]name=ofd_packets/00156893 [13:00:12]NVStorageSaveData ofd_packets/00156893 [13:00:12]File name is /storage/ofd_packets/00156893 [13:00:12]Write 298 bytes [13:00:12]NVStorageSaveData done [13:00:12]OFDSenderStorePacket done [13:00:12]KKMCreateOFDPacket done [13:00:12]NVStorageSaveData kkm_last_timestamp [13:00:12]File name is /storage/kkm_last_timestamp [13:00:12]Write 4 bytes [13:00:12]NVStorageSaveData done [13:00:12]ExternCall_PrintAddStr [13:00:12]wPrintStart [13:00:12]Write to MH i2c: 01 00 00 BB 20 DB [13:00:12]Write i2c OK [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: 01 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: 01 07 00 [13:00:12]MH_I2C_Read... [13:00:12]Read from MH i2c: 01 07 00 BB 20 00 00 00 00 00 FF 0F F0 [13:00:12]RasterBufferAndPrint [13:00:12]line Счет N : (1)99709 [13:00:12]line ИНН: 02508201610067 [13:00:12]line Контрольно-Кассовый Чек [13:00:12]line ПРОДАЖА [13:00:12]line ТРК (МРК, ГНК) : 32 [13:00:12]line Товар: 2710194210 [13:00:12]line ДТ-К-5 [13:00:12]line 189.390 * 76.20 [13:00:12]line = 14431.52 [13:00:12]line НДС 12% НСП 1% [13:00:12]line > о реализуемом товаре [13:00:12]line ОКРУГЛЕНИЕ: -0.52 [13:00:12]line ИТОГО: 14431.00 [13:00:12]line Внесено: 14478.00 [13:00:12]line СДАЧА: 47.00 [13:00:12]line НСП 1% : 127.71 [13:00:12]line НДС 12% : 1532.55 [13:00:12]line Наличными: 14431.00 [13:00:12]line Безнал.: 0.00 [13:00:12]line Место: АЗС № 143 "Партнер Нефть" [13:00:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:00:12]line СНО: Общий режим [13:00:12]line Чек 109 28.10.2024 13:00 [13:00:12]line Смена: 538 ФФД: 1.0 [13:00:12]line ЗНМ: 0300000096 [13:00:12]line РНМ: 0000000000091693 [13:00:12]line Версия ККМ: 001 [13:00:12]line ФМ: 0000000000871792 [13:00:12]line ФД: 156893 [13:00:12]line ФПД: 1670005412647 [13:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130013&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156893&fm=1670005412647&tin=02508201610067®Number=0000000000091693&sum=1443100 [13:00:12]OFD Sender: Processing packet 156893 [packets to send 31, broken 30] [13:00:12]ProducePacketName [13:00:12]name=ofd_packets/00156893 [13:00:12]OFD Sender: To server: pG, [13:00:12]CommunicateWithHost lk.salyk.kg:30040 [13:00:12]ConnectInit lk.salyk.kg [13:00:12]written 0, free lines is 4095 [13:00:13]Connected sock=10 [13:00: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 37 39 32 0C 01 00 00 24 C4 04 01 B7 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE E3 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 50 05 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 05 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 31 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 56 02 00 00 00 07 04 06 00 1C 05 16 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 DD 8A 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 64 02 00 35 04 06 00 01 84 D4 14 53 27 D8 DD E6 CC F4 1C 83 5C [13:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 49 6A 47 00 25 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 37 39 32 10 04 04 00 DD 64 02 00 F4 03 04 00 4A 30 1F 67 B6 04 01 00 00 95 AD 83 C4 5D 36 60 99 [13:00:13]CommunicateWithHost err = 0 [13:00:13]CheckOFDResponse [13:00:13]1017 (14) - 77093643461234 [13:00:13]1041 (16) - 0000000000871792 [13:00:13]1040 (4) - 156893 [13:00:13]1012 (4) - 28.10.2024 06:33 [13:00:13]1206 (1) - 0 [13:00:13]OFD Sender: Remove packet 156893 [13:00:13]ProducePacketName [13:00:13]name=ofd_packets/00156893 [13:00:13]NVStorageDeleteData [13:00:13]Write to MH i2c: 01 00 00 E6 20 06 [13:00:13]Write i2c OK [13:00:13]MH_I2C_Read... [13:00:13]Read from MH i2c: 01 [13:00:13]MH_I2C_Read... [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 E6 20 00 00 00 00 00 DD 0C F6 [13:00:13]RasterBufferAndPrint [13:00:13]line [13:00:13]line [13:00:13]line [13:00:13]line [13:00:13]line [13:00:13]written 0, free lines is 3299 [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 ED 20 80 11 00 00 00 00 00 00 87 [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 ED 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [13:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 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 EE 20 80 13 00 00 00 00 00 00 8A [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 EE 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 64 02 00 0E 04 04 00 1A 02 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 56 [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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 64 02 00 0E 04 04 00 1A 02 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 [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 EF 20 80 13 01 00 00 00 00 00 8C [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 EF 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 7E [13:00:13]RAPDU: 09 00 01 86 DB 1E 67 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":"0000000000871792","fd.num":156893,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [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":"0000000000871792","fd.num":156893,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [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 9.Close socket [13:00:13]Sock 9.Thread stoped [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:47]int [13:00:47]Write to MH i2c: 01 00 00 F0 20 10 [13:00:47]*** FLAG_PRN_PAP1 set [13:00:47]Write i2c OK [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 [13:00:47]MH_I2C_Read... [13:00:47]Read from MH i2c: 01 07 00 F0 20 00 01 00 00 00 FF 0F 26 [13:00:47]state=0 [13:00:47]No paper [13:00:48]int [13:00:48]Write to MH i2c: 01 00 00 F1 20 11 [13:00:48]*** FLAG_PRN_PAP2 set [13:00:48]Write i2c OK [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: 01 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: 01 07 00 [13:00:48]MH_I2C_Read... [13:00:48]Read from MH i2c: 01 07 00 F1 20 00 03 00 00 00 FF 0F 29 [13:00:48]state=0 [13:00:48]No paper [13:00:48]Cover opened [13:00:48]OFD Sender: No OFD packet to send [13:00:49]int [13:00:49]Write to MH i2c: 01 00 00 F2 20 12 [13:00:49]*** FLAG_PRN_PAP2 reset [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 F2 20 00 01 00 00 00 FF 0F 28 [13:00:49]state=3 [13:00:49]No paper [13:00:49]Cover closed [13:00:49]int [13:00:49]Write to MH i2c: 01 00 00 F3 20 13 [13:00:49]*** FLAG_PRN_PAP1 reset [13:00:49]Write i2c OK [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 [13:00:49]MH_I2C_Read... [13:00:49]Read from MH i2c: 01 07 00 F3 20 00 00 00 00 00 FF 0F 28 [13:00:49]state=0 [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [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:02]accept exits with 7 [13:03:02]New connection [13:03:02]New thread 3066604900 created [13:03:02]Thread 3066748260 joined [13:03:02]Waiting for new connection... [13:03:02] Sock 7.Parse request [13:03:02]Sock 7.Check first char [13:03:02]Sock 7.First char is OK [13:03:02]request: POST /json_proto HTTP/1.0 [13:03:02]Method: POST [13:03:02]URL: /json_proto [13:03:02]Method is POST - this is cgi request [13:03:02]url: /json_proto [13:03:02]query_string will be loaded in cgi processing [13:03:02]execute_cgi json_proto POST (null) [13:03:02]execute_cgi path=json_proto method=POST [13:03:02]POST find Content-Length [13:03:02]Host: 172.17.63.3:8080 [13:03:02]Content-Length: 641 [13:03:02]Content-Type: application/json [13:03:02] [13:03:02]POST finish read [13:03:02]Found Content-Length = 641 [13:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:02]execute_script... [13:03: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)99710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:02]POST & json_proto [13:03:02]process_json_proto [13:03:02]json parsed OK: [13:03:02]protocol is kg_v1.0 [13:03:02]action value=close_receipt [13:03:02]process_action close_receipt [13:03:02]cmd_close_receipt [13:03:02]MH_GetDate [13:03:02]Write to MH i2c: F0 00 00 F4 20 03 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 09 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: F0 09 00 F4 20 00 89 8B 1F 67 50 D1 6C 64 97 [13:03:02]GetLastDocTimeStamp 1730120413 [13:03:02]current date 1730120585 [13:03:02]FM_GetShiftState [13:03:02]SAM_PROTO_GetShiftState [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 01 00 [13:03:02]Write to MH i2c: E2 08 00 F5 20 80 13 01 00 00 00 00 00 92 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 F5 20 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 84 [13:03:02]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetShiftState done [13:03:02]FM_GetShiftState done [13:03:02]opened in 1730075526 [13:03:02]opened+sec_in_day 1730161926 [13:03:02]quantity*price = 133800 [13:03:02]sum+1 = 133801 [13:03:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 110 28.10.2024 13:03 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156894 ФПД: 210516494965644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156894&fm=210516494965644&tin=02508201610067®Number=0000000000091693&sum=133800 [13:03:04]StoreToDocumentArchive [13:03:04]shift 538 fd 156894 [13:03:04]save to /storage/0538/doc_00156894 [13:03:04]save last doc name /storage/0538/doc_00156894 to /storage/kkm_last_doc_name [13:03:04]save OK [13:03:04]Clear old archive folders... [13:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:04]tlvbuf is 01A56050 [13:03:04]SAM_PROTO_ClearQueue [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 09 00 00 [13:03:04]Write to MH i2c: E2 08 00 02 21 80 09 00 00 00 00 00 00 95 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 02 21 00 90 00 97 [13:03:04]RAPDU: 90 00 [13:03:04]wFMCommunicate OK [13:03:04]SAM_PROTO_ClearQueue done [13:03:04]KKMCreateOFDPacket [13:03:04]OFDProtocolAddRootSTLVToBuf [13:03:04]FM_MakeSignedData [13:03:04]FM_MakeSignedData [13:03:04]SAM_PROTO_SignData [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 0D 01 02 [13:03:04]Write to MH i2c: E2 08 00 03 21 80 0D 01 02 00 00 00 00 9D [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 03 21 00 90 00 98 [13:03:04]RAPDU: 90 00 [13:03:04]wFMCommunicate OK [13:03:04]wFMCommunicate request_size=255 [13:03:04]MH_SAM_APDU [13:03: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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 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 89 8B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 64 02 00 35 04 06 00 BF [13:03:04]Write to MH i2c: E2 02 01 04 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 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 89 8B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 64 02 00 35 04 06 00 BF 00 00 F5 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 04 21 00 90 00 99 [13:03:04]RAPDU: 90 00 [13:03:04]wFMCommunicate OK [13:03:04]wFMCommunicate request_size=10 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 0D 02 02 05 76 B0 E6 DB 8C [13:03:04]Write to MH i2c: E2 0D 00 05 21 80 0D 02 02 05 00 76 B0 E6 DB 8C 00 00 1D [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 03 00 05 21 00 90 00 9A [13:03:04]RAPDU: 90 00 [13:03:04]wFMCommunicate OK [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 0D 03 02 [13:03:04]Write to MH i2c: E2 08 00 06 21 80 0D 03 02 00 00 00 00 A2 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0B 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0B 00 06 21 00 AE A8 C8 5F DB 0C 30 E8 90 00 1F [13:03:04]RAPDU: AE A8 C8 5F DB 0C 30 E8 90 00 [13:03:04]wFMCommunicate OK [13:03:04]SAM_PROTO_SignData done [13:03:04]FM_MakeSignedData done [13:03:04]CreateOFDProtocolMessage [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 11 00 00 [13:03:04]Write to MH i2c: E2 08 00 07 21 80 11 00 00 00 00 00 00 A2 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 17 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 17 00 07 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [13:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:03:04]wFMCommunicate OK [13:03:04]CreateOFDProtocolMessage done [13:03:04]OFDSenderStorePacket 156894 [13:03:04]StoreOFDPacket docnum=156894 [13:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 7A 07 01 51 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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 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 89 8B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 64 02 00 35 04 06 00 BF 76 B0 E6 DB 8C AE A8 C8 5F DB 0C 30 E8 [13:03:04]CheckFolder [13:03:04]dirname=/storage/ofd_packets [13:03:04]CheckFolder done [13:03:04]ProducePacketName [13:03:04]name=ofd_packets/00156894 [13:03:04]NVStorageSaveData ofd_packets/00156894 [13:03:04]File name is /storage/ofd_packets/00156894 [13:03:04]Write 301 bytes [13:03:04]NVStorageSaveData done [13:03:04]OFDSenderStorePacket done [13:03:04]KKMCreateOFDPacket done [13:03:04]NVStorageSaveData kkm_last_timestamp [13:03:04]File name is /storage/kkm_last_timestamp [13:03:04]Write 4 bytes [13:03:04]NVStorageSaveData done [13:03:04]ExternCall_PrintAddStr [13:03:04]wPrintStart [13:03:04]Write to MH i2c: 01 00 00 08 21 29 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 07 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: 01 07 00 08 21 00 00 00 00 00 FF 0F 3E [13:03:04]RasterBufferAndPrint [13:03:04]line Счет N : (1)99710 [13:03:04]line ИНН: 02508201610067 [13:03:04]line Контрольно-Кассовый Чек [13:03:04]line ПРОДАЖА [13:03:04]line ТРК (МРК, ГНК) : 31 [13:03:04]line Товар: 2710124130 [13:03:04]line Аи-92-К-5 [13:03:04]line 20.000 * 66.90 [13:03:04]line = 1338.00 [13:03:04]line НДС 12% НСП 1% [13:03:04]line > о реализуемом товаре [13:03:04]line ИТОГО: 1338.00 [13:03:04]line НСП 1% : 11.84 [13:03:04]line НДС 12% : 142.09 [13:03:04]line Наличными: 1338.00 [13:03:04]line Безнал.: 0.00 [13:03:04]line Место: АЗС № 143 "Партнер Нефть" [13:03:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:03:04]line СНО: Общий режим [13:03:04]line Чек 110 28.10.2024 13:03 [13:03:04]line Смена: 538 ФФД: 1.0 [13:03:04]line ЗНМ: 0300000096 [13:03:04]line РНМ: 0000000000091693 [13:03:04]line Версия ККМ: 001 [13:03:04]line ФМ: 0000000000871792 [13:03:04]line ФД: 156894 [13:03:04]line ФПД: 210516494965644 [13:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156894&fm=210516494965644&tin=02508201610067®Number=0000000000091693&sum=133800 [13:03:04]OFD Sender: Processing packet 156894 [packets to send 31, broken 30] [13:03:04]ProducePacketName [13:03:04]name=ofd_packets/00156894 [13:03:04]OFD Sender: To server: pG, [13:03:04]CommunicateWithHost lk.salyk.kg:30040 [13:03:04]ConnectInit lk.salyk.kg [13:03:04]written 0, free lines is 4095 [13:03:05]Connected sock=10 [13:03: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 37 39 32 0F 01 00 00 09 7A 07 01 51 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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 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 89 8B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 64 02 00 35 04 06 00 BF 76 B0 E6 DB 8C AE A8 C8 5F DB 0C 30 E8 [13:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B3 28 47 00 CD 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 37 39 32 10 04 04 00 DE 64 02 00 F4 03 04 00 F6 30 1F 67 B6 04 01 00 00 75 29 3A A4 06 73 E1 12 [13:03:05]CommunicateWithHost err = 0 [13:03:05]CheckOFDResponse [13:03:05]1017 (14) - 77093643461234 [13:03:05]1041 (16) - 0000000000871792 [13:03:05]1040 (4) - 156894 [13:03:05]1012 (4) - 28.10.2024 06:36 [13:03:05]1206 (1) - 0 [13:03:05]OFD Sender: Remove packet 156894 [13:03:05]ProducePacketName [13:03:05]name=ofd_packets/00156894 [13:03:05]NVStorageDeleteData [13:03:05]Write to MH i2c: 01 00 00 30 21 51 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: 01 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: 01 07 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: 01 07 00 30 21 00 00 00 00 00 14 0D 79 [13:03:05]RasterBufferAndPrint [13:03:05]line [13:03:05]line [13:03:05]line [13:03:05]line [13:03:05]line [13:03:05]written 0, free lines is 3356 [13:03:05]process_action close_receipt done [13:03:05]requested_data is exist [13:03:05]produce_requested_data [13:03:05]requested_item fm.sn is exist - process it [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 11 00 00 [13:03:05]Write to MH i2c: E2 08 00 37 21 80 11 00 00 00 00 00 00 D2 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:05]Read from MH i2c: E2 17 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 17 00 37 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 27 [13:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:03:05]wFMCommunicate OK [13:03:05]requested_item fd.num is exist - process it [13:03:05]SAM_PROTO_GetFieldsCounters [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 13 00 00 [13:03:05]Write to MH i2c: E2 08 00 38 21 80 13 00 00 00 00 00 00 D5 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 62 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 62 00 38 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 64 02 00 0E 04 04 00 1A 02 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 A5 [13:03: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 64 02 00 0E 04 04 00 1A 02 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 [13:03:05]wFMCommunicate OK [13:03:05]SAM_PROTO_GetFieldsCounters done [13:03:05]requested_item shift.num is exist - process it [13:03:05]requested_item shift.opened is exist - process it [13:03:05]req_shift_opened [13:03:05]FM_GetShiftState [13:03:05]SAM_PROTO_GetShiftState [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 13 01 00 [13:03:05]Write to MH i2c: E2 08 00 39 21 80 13 01 00 00 00 00 00 D7 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 0E 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 0E 00 39 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C9 [13:03:05]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:03:05]wFMCommunicate OK [13:03:05]SAM_PROTO_GetShiftState done [13:03:05]FM_GetShiftState done [13:03:05]req_shift_opened done [13:03:05]requested_item shift.open_date is exist - process it [13:03:05]req_shift_open_date [13:03:05]req_shift_open_date done [13:03:05]produce_requested_data done [13:03:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156894,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:03:05]process_action_free close_receipt [13:03:05]json_value_free [13:03:05]json_value_free done [13:03:05]process_json_proto returns [13:03:05]Send response to host [13:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156894,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:03:05]free response buf [13:03:05]execute_script done [13:03:05]execute_script returns [13:03:05]free content buf [13:03:05]Sock 7.Close socket [13:03:05]Sock 7.Thread stoped [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:46]int [13:03:46]Write to MH i2c: 01 00 00 3A 21 5B [13:03:46]*** FLAG_PRN_KEY set [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 3A 21 00 08 00 00 00 FF 0F 78 [13:03:46]state=0 [13:03:46]Key pressed [13:03:46]Feed [13:03:46]Write to MH i2c: D8 00 00 3B 21 33 [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: D8 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: D8 01 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: D8 01 00 3B 21 00 34 [13:03:46]int [13:03:46]Write to MH i2c: 01 00 00 3C 21 5D [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 3C 21 00 48 00 00 00 3D 00 E9 [13:03:46]state=2 [13:03:46]Key pressed [13:03:46]int [13:03:46]Write to MH i2c: 01 00 00 3D 21 5E [13:03:46]*** FLAG_PRN_KEY reset [13:03:46]Write i2c OK [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 [13:03:46]MH_I2C_Read... [13:03:46]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 F6 0F 6A [13:03:46]state=2 [13:03:46]Stop feed [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:05:59]accept exits with 9 [13:05:59]New connection [13:05:59]New thread 3066748260 created [13:05:59]Thread 3066604900 joined [13:05:59]Waiting for new connection... [13:05:59] Sock 9.Parse request [13:05:59]Sock 9.Check first char [13:05:59]Sock 9.First char is OK [13:05:59]request: POST /json_proto HTTP/1.0 [13:05:59]Method: POST [13:05:59]URL: /json_proto [13:05:59]Method is POST - this is cgi request [13:05:59]url: /json_proto [13:05:59]query_string will be loaded in cgi processing [13:05:59]execute_cgi json_proto POST (null) [13:05:59]execute_cgi path=json_proto method=POST [13:05:59]POST find Content-Length [13:05:59]Host: 172.17.63.3:8080 [13:05:59]Content-Length: 677 [13:05:59]Content-Type: application/json [13:05:59] [13:05:59]POST finish read [13:05:59]Found Content-Length = 677 [13:05:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:05:59]execute_script... [13:05: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)99711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [13:05:59]POST & json_proto [13:05:59]process_json_proto [13:05:59]json parsed OK: [13:05:59]protocol is kg_v1.0 [13:05:59]action value=close_receipt [13:05:59]process_action close_receipt [13:05:59]cmd_close_receipt [13:05:59]MH_GetDate [13:05:59]Write to MH i2c: F0 00 00 3E 21 4E [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: F0 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: F0 09 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: F0 09 00 3E 21 00 3A 8C 1F 67 50 D1 6C 64 94 [13:05:59]GetLastDocTimeStamp 1730120585 [13:05:59]current date 1730120762 [13:05:59]FM_GetShiftState [13:05:59]SAM_PROTO_GetShiftState [13:05:59]wFMCommunicate request_size=4 [13:05:59]MH_SAM_APDU [13:05:59]CAPDU: 80 13 01 00 [13:05:59]Write to MH i2c: E2 08 00 3F 21 80 13 01 00 00 00 00 00 DD [13:05:59]Write i2c OK [13:05:59]MH_I2C_Read... [13:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:59]Read from MH i2c: E2 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 0E 00 [13:05:59]MH_I2C_Read... [13:05:59]Read from MH i2c: E2 0E 00 3F 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 CF [13:05:59]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:05:59]wFMCommunicate OK [13:05:59]SAM_PROTO_GetShiftState done [13:05:59]FM_GetShiftState done [13:05:59]opened in 1730075526 [13:05:59]opened+sec_in_day 1730161926 [13:05:59]quantity*price = 70044 [13:05:59]sum+1 = 70045 [13:05:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 111 28.10.2024 13:06 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156895 ФПД: 111867351984067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156895&fm=111867351984067&tin=02508201610067®Number=0000000000091693&sum=70000 [13:06:01]StoreToDocumentArchive [13:06:01]shift 538 fd 156895 [13:06:01]save to /storage/0538/doc_00156895 [13:06:01]save last doc name /storage/0538/doc_00156895 to /storage/kkm_last_doc_name [13:06:01]save OK [13:06:01]Clear old archive folders... [13:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:01]tlvbuf is 01A5CF30 [13:06:01]SAM_PROTO_ClearQueue [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 09 00 00 [13:06:01]Write to MH i2c: E2 08 00 4C 21 80 09 00 00 00 00 00 00 DF [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 4C 21 00 90 00 E1 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]SAM_PROTO_ClearQueue done [13:06:01]KKMCreateOFDPacket [13:06:01]OFDProtocolAddRootSTLVToBuf [13:06:01]FM_MakeSignedData [13:06:01]FM_MakeSignedData [13:06:01]SAM_PROTO_SignData [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 0D 01 02 [13:06:01]Write to MH i2c: E2 08 00 4D 21 80 0D 01 02 00 00 00 00 E7 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 4D 21 00 90 00 E2 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]wFMCommunicate request_size=255 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6F 00 00 00 F4 03 04 00 3A 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 64 02 00 35 04 06 00 65 [13:06:01]Write to MH i2c: E2 02 01 4E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6F 00 00 00 F4 03 04 00 3A 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 64 02 00 35 04 06 00 65 00 00 0C [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 4E 21 00 90 00 E3 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]wFMCommunicate request_size=10 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 0D 02 02 05 BE 25 C6 E7 C3 [13:06:01]Write to MH i2c: E2 0D 00 4F 21 80 0D 02 02 05 00 BE 25 C6 E7 C3 00 00 47 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [13:06:01]RAPDU: 90 00 [13:06:01]wFMCommunicate OK [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 0D 03 02 [13:06:01]Write to MH i2c: E2 08 00 50 21 80 0D 03 02 00 00 00 00 EC [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 0B 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 0B 00 50 21 00 6F E0 74 AD E1 91 65 48 90 00 7C [13:06:01]RAPDU: 6F E0 74 AD E1 91 65 48 90 00 [13:06:01]wFMCommunicate OK [13:06:01]SAM_PROTO_SignData done [13:06:01]FM_MakeSignedData done [13:06:01]CreateOFDProtocolMessage [13:06:01]wFMCommunicate request_size=4 [13:06:01]MH_SAM_APDU [13:06:01]CAPDU: 80 11 00 00 [13:06:01]Write to MH i2c: E2 08 00 51 21 80 11 00 00 00 00 00 00 EC [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:01]Read from MH i2c: E2 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 17 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: E2 17 00 51 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [13:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:06:01]wFMCommunicate OK [13:06:01]CreateOFDProtocolMessage done [13:06:01]OFDSenderStorePacket 156895 [13:06:01]StoreOFDPacket docnum=156895 [13:06:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DA A3 07 01 50 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6F 00 00 00 F4 03 04 00 3A 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 64 02 00 35 04 06 00 65 BE 25 C6 E7 C3 6F E0 74 AD E1 91 65 48 [13:06:01]CheckFolder [13:06:01]dirname=/storage/ofd_packets [13:06:01]CheckFolder done [13:06:01]ProducePacketName [13:06:01]name=ofd_packets/00156895 [13:06:01]NVStorageSaveData ofd_packets/00156895 [13:06:01]File name is /storage/ofd_packets/00156895 [13:06:01]Write 301 bytes [13:06:01]NVStorageSaveData done [13:06:01]OFDSenderStorePacket done [13:06:01]KKMCreateOFDPacket done [13:06:01]NVStorageSaveData kkm_last_timestamp [13:06:01]File name is /storage/kkm_last_timestamp [13:06:01]Write 4 bytes [13:06:01]NVStorageSaveData done [13:06:01]ExternCall_PrintAddStr [13:06:01]wPrintStart [13:06:01]Write to MH i2c: 01 00 00 52 21 73 [13:06:01]Write i2c OK [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 07 00 [13:06:01]MH_I2C_Read... [13:06:01]Read from MH i2c: 01 07 00 52 21 00 00 00 00 00 FF 0F 88 [13:06:01]RasterBufferAndPrint [13:06:01]line Счет N : (1)99711 [13:06:01]line ИНН: 02508201610067 [13:06:01]line Контрольно-Кассовый Чек [13:06:01]line ПРОДАЖА [13:06:01]line ТРК (МРК, ГНК) : 31 [13:06:01]line Товар: 2710124130 [13:06:01]line Аи-92-К-5 [13:06:01]line 10.470 * 66.90 [13:06:01]line = 700.44 [13:06:01]line НДС 12% НСП 1% [13:06:01]line > о реализуемом товаре [13:06:01]line ОКРУГЛЕНИЕ: -0.44 [13:06:01]line ИТОГО: 700.00 [13:06:01]line Внесено: 700.00 [13:06:01]line СДАЧА: 0.00 [13:06:01]line НСП 1% : 6.20 [13:06:01]line НДС 12% : 74.38 [13:06:01]line Наличными: 700.00 [13:06:01]line Безнал.: 0.00 [13:06:01]line Место: АЗС № 143 "Партнер Нефть" [13:06:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:06:01]line СНО: Общий режим [13:06:01]line Чек 111 28.10.2024 13:06 [13:06:01]line Смена: 538 ФФД: 1.0 [13:06:01]line ЗНМ: 0300000096 [13:06:01]line РНМ: 0000000000091693 [13:06:01]line Версия ККМ: 001 [13:06:01]line ФМ: 0000000000871792 [13:06:01]line ФД: 156895 [13:06:01]line ФПД: 111867351984067 [13:06:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156895&fm=111867351984067&tin=02508201610067®Number=0000000000091693&sum=70000 [13:06:01]OFD Sender: Processing packet 156895 [packets to send 31, broken 30] [13:06:01]ProducePacketName [13:06:01]name=ofd_packets/00156895 [13:06:01]OFD Sender: To server: pG, [13:06:01]CommunicateWithHost lk.salyk.kg:30040 [13:06:01]ConnectInit lk.salyk.kg [13:06:01]written 0, free lines is 4095 [13:06:02]Connected sock=7 [13:06:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DA A3 07 01 50 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 6F 00 00 00 F4 03 04 00 3A 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 64 02 00 35 04 06 00 65 BE 25 C6 E7 C3 6F E0 74 AD E1 91 65 48 [13:06:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 60 47 00 5A 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 37 39 32 10 04 04 00 DF 64 02 00 F4 03 04 00 A7 31 1F 67 B6 04 01 00 00 72 06 AE E9 5A F8 95 3F [13:06:02]CommunicateWithHost err = 0 [13:06:02]CheckOFDResponse [13:06:02]1017 (14) - 77093643461234 [13:06:02]1041 (16) - 0000000000871792 [13:06:02]1040 (4) - 156895 [13:06:02]1012 (4) - 28.10.2024 06:39 [13:06:02]1206 (1) - 0 [13:06:02]OFD Sender: Remove packet 156895 [13:06:02]ProducePacketName [13:06:02]name=ofd_packets/00156895 [13:06:02]NVStorageDeleteData [13:06:02]Write to MH i2c: 01 00 00 7D 21 9E [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 D1 0C 82 [13:06:02]RasterBufferAndPrint [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]line [13:06:02]written 0, free lines is 3289 [13:06:02]process_action close_receipt done [13:06:02]requested_data is exist [13:06:02]produce_requested_data [13:06:02]requested_item fm.sn is exist - process it [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 11 00 00 [13:06:02]Write to MH i2c: E2 08 00 84 21 80 11 00 00 00 00 00 00 1F [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:02]Read from MH i2c: E2 17 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 17 00 84 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [13:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:06:02]wFMCommunicate OK [13:06:02]requested_item fd.num is exist - process it [13:06:02]SAM_PROTO_GetFieldsCounters [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 13 00 00 [13:06:02]Write to MH i2c: E2 08 00 85 21 80 13 00 00 00 00 00 00 22 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 62 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 62 00 85 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 64 02 00 0E 04 04 00 1A 02 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 F6 [13:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 64 02 00 0E 04 04 00 1A 02 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 [13:06:02]wFMCommunicate OK [13:06:02]SAM_PROTO_GetFieldsCounters done [13:06:02]requested_item shift.num is exist - process it [13:06:02]requested_item shift.opened is exist - process it [13:06:02]req_shift_opened [13:06:02]FM_GetShiftState [13:06:02]SAM_PROTO_GetShiftState [13:06:02]wFMCommunicate request_size=4 [13:06:02]MH_SAM_APDU [13:06:02]CAPDU: 80 13 01 00 [13:06:02]Write to MH i2c: E2 08 00 86 21 80 13 01 00 00 00 00 00 24 [13:06:02]Write i2c OK [13:06:02]MH_I2C_Read... [13:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:02]Read from MH i2c: E2 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0E 00 [13:06:02]MH_I2C_Read... [13:06:02]Read from MH i2c: E2 0E 00 86 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 16 [13:06:02]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:06:02]wFMCommunicate OK [13:06:02]SAM_PROTO_GetShiftState done [13:06:02]FM_GetShiftState done [13:06:02]req_shift_opened done [13:06:02]requested_item shift.open_date is exist - process it [13:06:02]req_shift_open_date [13:06:02]req_shift_open_date done [13:06:02]produce_requested_data done [13:06:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156895,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:06:02]process_action_free close_receipt [13:06:02]json_value_free [13:06:02]json_value_free done [13:06:02]process_json_proto returns [13:06:02]Send response to host [13:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156895,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:06:02]free response buf [13:06:02]execute_script done [13:06:02]execute_script returns [13:06:02]free content buf [13:06:02]Sock 9.Close socket [13:06:02]Sock 9.Thread stoped [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [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:51]accept exits with 10 [13:07:51]New connection [13:07:51]New thread 3066604900 created [13:07:51]Thread 3066748260 joined [13:07:51]Waiting for new connection... [13:07:51] Sock 10.Parse request [13:07:51]Sock 10.Check first char [13:07:51]Sock 10.First char is OK [13:07:51]request: POST /json_proto HTTP/1.0 [13:07:51]Method: POST [13:07:51]URL: /json_proto [13:07:51]Method is POST - this is cgi request [13:07:51]url: /json_proto [13:07:51]query_string will be loaded in cgi processing [13:07:51]execute_cgi json_proto POST (null) [13:07:51]execute_cgi path=json_proto method=POST [13:07:51]POST find Content-Length [13:07:51]Host: 172.17.63.3:8080 [13:07:51]Content-Length: 678 [13:07:51]Content-Type: application/json [13:07:51] [13:07:51]POST finish read [13:07:51]Found Content-Length = 678 [13:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [13:07:51]execute_script... [13:07: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)99712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [13:07:51]POST & json_proto [13:07:51]process_json_proto [13:07:51]json parsed OK: [13:07:51]protocol is kg_v1.0 [13:07:51]action value=close_receipt [13:07:51]process_action close_receipt [13:07:51]cmd_close_receipt [13:07:51]MH_GetDate [13:07:51]Write to MH i2c: F0 00 00 87 21 97 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: F0 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: F0 09 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: F0 09 00 87 21 00 AA 8C 1F 67 50 D1 6C 64 4D [13:07:51]GetLastDocTimeStamp 1730120762 [13:07:51]current date 1730120874 [13:07:51]FM_GetShiftState [13:07:51]SAM_PROTO_GetShiftState [13:07:51]wFMCommunicate request_size=4 [13:07:51]MH_SAM_APDU [13:07:51]CAPDU: 80 13 01 00 [13:07:51]Write to MH i2c: E2 08 00 88 21 80 13 01 00 00 00 00 00 26 [13:07:51]Write i2c OK [13:07:51]MH_I2C_Read... [13:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:51]Read from MH i2c: E2 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 0E 00 [13:07:51]MH_I2C_Read... [13:07:51]Read from MH i2c: E2 0E 00 88 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 18 [13:07:51]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:07:51]wFMCommunicate OK [13:07:51]SAM_PROTO_GetShiftState done [13:07:51]FM_GetShiftState done [13:07:51]opened in 1730075526 [13:07:51]opened+sec_in_day 1730161926 [13:07:51]quantity*price = 100050 [13:07:51]sum+1 = 100052 [13:07:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 112 28.10.2024 13:07 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156896 ФПД: 275207598529808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130754&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156896&fm=275207598529808&tin=02508201610067®Number=0000000000091693&sum=100000 [13:07:52]StoreToDocumentArchive [13:07:52]shift 538 fd 156896 [13:07:52]save to /storage/0538/doc_00156896 [13:07:52]save last doc name /storage/0538/doc_00156896 to /storage/kkm_last_doc_name [13:07:52]save OK [13:07:52]Clear old archive folders... [13:07:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:07:52]tlvbuf is 01A70C30 [13:07:52]SAM_PROTO_ClearQueue [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 09 00 00 [13:07:52]Write to MH i2c: E2 08 00 95 21 80 09 00 00 00 00 00 00 28 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 95 21 00 90 00 2A [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]SAM_PROTO_ClearQueue done [13:07:52]KKMCreateOFDPacket [13:07:52]OFDProtocolAddRootSTLVToBuf [13:07:52]FM_MakeSignedData [13:07:52]FM_MakeSignedData [13:07:52]SAM_PROTO_SignData [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 0D 01 02 [13:07:52]Write to MH i2c: E2 08 00 96 21 80 0D 01 02 00 00 00 00 30 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 96 21 00 90 00 2B [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]wFMCommunicate request_size=255 [13:07:52]MH_SAM_APDU [13:07: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AA 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 64 02 00 35 04 06 00 FA 4C C3 26 [13:07:52]Write to MH i2c: E2 02 01 97 21 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AA 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 64 02 00 35 04 06 00 FA 4C C3 26 00 00 77 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 97 21 00 90 00 2C [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]wFMCommunicate request_size=7 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 0D 02 02 02 5D 10 [13:07:52]Write to MH i2c: E2 0A 00 98 21 80 0D 02 02 02 00 5D 10 00 00 A4 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 03 00 98 21 00 90 00 2D [13:07:52]RAPDU: 90 00 [13:07:52]wFMCommunicate OK [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 0D 03 02 [13:07:52]Write to MH i2c: E2 08 00 99 21 80 0D 03 02 00 00 00 00 35 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0B 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 0B 00 99 21 00 F5 D2 C2 00 0B 45 A0 3B 90 00 EA [13:07:52]RAPDU: F5 D2 C2 00 0B 45 A0 3B 90 00 [13:07:52]wFMCommunicate OK [13:07:52]SAM_PROTO_SignData done [13:07:52]FM_MakeSignedData done [13:07:52]CreateOFDProtocolMessage [13:07:52]wFMCommunicate request_size=4 [13:07:52]MH_SAM_APDU [13:07:52]CAPDU: 80 11 00 00 [13:07:52]Write to MH i2c: E2 08 00 9A 21 80 11 00 00 00 00 00 00 35 [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:52]Read from MH i2c: E2 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 17 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: E2 17 00 9A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [13:07:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:07:52]wFMCommunicate OK [13:07:52]CreateOFDProtocolMessage done [13:07:52]OFDSenderStorePacket 156896 [13:07:52]StoreOFDPacket docnum=156896 [13:07:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B7 E0 04 01 72 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AA 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 64 02 00 35 04 06 00 FA 4C C3 26 5D 10 F5 D2 C2 00 0B 45 A0 3B [13:07:52]CheckFolder [13:07:52]dirname=/storage/ofd_packets [13:07:52]CheckFolder done [13:07:52]ProducePacketName [13:07:52]name=ofd_packets/00156896 [13:07:52]NVStorageSaveData ofd_packets/00156896 [13:07:52]File name is /storage/ofd_packets/00156896 [13:07:52]Write 298 bytes [13:07:52]NVStorageSaveData done [13:07:52]OFDSenderStorePacket done [13:07:52]KKMCreateOFDPacket done [13:07:52]NVStorageSaveData kkm_last_timestamp [13:07:52]File name is /storage/kkm_last_timestamp [13:07:52]Write 4 bytes [13:07:52]NVStorageSaveData done [13:07:52]ExternCall_PrintAddStr [13:07:52]wPrintStart [13:07:52]Write to MH i2c: 01 00 00 9B 21 BC [13:07:52]Write i2c OK [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 [13:07:52]MH_I2C_Read... [13:07:52]Read from MH i2c: 01 07 00 9B 21 00 00 00 00 00 FF 0F D1 [13:07:52]RasterBufferAndPrint [13:07:52]line Счет N : (1)99712 [13:07:52]line ИНН: 02508201610067 [13:07:52]line Контрольно-Кассовый Чек [13:07:52]line ПРОДАЖА [13:07:52]line ТРК (МРК, ГНК) : 32 [13:07:52]line Товар: 2710194210 [13:07:52]line ДТ-К-5 [13:07:52]line 13.130 * 76.20 [13:07:52]line = 1000.51 [13:07:52]line НДС 12% НСП 1% [13:07:52]line > о реализуемом товаре [13:07:52]line ОКРУГЛЕНИЕ: -0.51 [13:07:52]line ИТОГО: 1000.00 [13:07:52]line Внесено: 1000.00 [13:07:52]line СДАЧА: 0.00 [13:07:52]line НСП 1% : 8.85 [13:07:52]line НДС 12% : 106.25 [13:07:52]line Наличными: 1000.00 [13:07:52]line Безнал.: 0.00 [13:07:52]line Место: АЗС № 143 "Партнер Нефть" [13:07:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:07:52]line СНО: Общий режим [13:07:52]line Чек 112 28.10.2024 13:07 [13:07:52]line Смена: 538 ФФД: 1.0 [13:07:52]line ЗНМ: 0300000096 [13:07:52]line РНМ: 0000000000091693 [13:07:52]line Версия ККМ: 001 [13:07:52]line ФМ: 0000000000871792 [13:07:52]line ФД: 156896 [13:07:52]line ФПД: 275207598529808 [13:07:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T130754&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156896&fm=275207598529808&tin=02508201610067®Number=0000000000091693&sum=100000 [13:07:53]OFD Sender: Processing packet 156896 [packets to send 31, broken 30] [13:07:53]ProducePacketName [13:07:53]name=ofd_packets/00156896 [13:07:53]OFD Sender: To server: pG, [13:07:53]CommunicateWithHost lk.salyk.kg:30040 [13:07:53]ConnectInit lk.salyk.kg [13:07:53]written 0, free lines is 4095 [13:07:53]Connected sock=9 [13:07: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 37 39 32 0C 01 00 00 B7 E0 04 01 72 D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 AA 8C 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 64 02 00 35 04 06 00 FA 4C C3 26 5D 10 F5 D2 C2 00 0B 45 A0 3B [13:07:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AD 84 47 00 1F 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 37 39 32 10 04 04 00 E0 64 02 00 F4 03 04 00 16 32 1F 67 B6 04 01 00 00 FE A5 82 0C 74 14 F4 C6 [13:07:53]CommunicateWithHost err = 0 [13:07:53]CheckOFDResponse [13:07:53]1017 (14) - 77093643461234 [13:07:53]1041 (16) - 0000000000871792 [13:07:53]1040 (4) - 156896 [13:07:53]1012 (4) - 28.10.2024 06:41 [13:07:53]1206 (1) - 0 [13:07:53]OFD Sender: Remove packet 156896 [13:07:53]ProducePacketName [13:07:53]name=ofd_packets/00156896 [13:07:53]NVStorageDeleteData [13:07:53]Write to MH i2c: 01 00 00 C6 21 E7 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: 01 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: 01 07 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: 01 07 00 C6 21 00 00 00 00 00 DD 0C D7 [13:07:53]RasterBufferAndPrint [13:07:53]line [13:07:53]line [13:07:53]line [13:07:53]line [13:07:53]line [13:07:53]written 0, free lines is 3302 [13:07:53]process_action close_receipt done [13:07:53]requested_data is exist [13:07:53]produce_requested_data [13:07:53]requested_item fm.sn is exist - process it [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 11 00 00 [13:07:53]Write to MH i2c: E2 08 00 CD 21 80 11 00 00 00 00 00 00 68 [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 17 00 [13:07:53]MH_I2C_Read... [13:07:53]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 37 39 32 90 00 BD [13:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:07:53]wFMCommunicate OK [13:07:53]requested_item fd.num is exist - process it [13:07:53]SAM_PROTO_GetFieldsCounters [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 13 00 00 [13:07:53]Write to MH i2c: E2 08 00 CE 21 80 13 00 00 00 00 00 00 6B [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 62 00 [13:07:53]MH_I2C_Read... [13:07:53]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 64 02 00 0E 04 04 00 1A 02 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 43 [13:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 64 02 00 0E 04 04 00 1A 02 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 [13:07:53]wFMCommunicate OK [13:07:53]SAM_PROTO_GetFieldsCounters done [13:07:53]requested_item shift.num is exist - process it [13:07:53]requested_item shift.opened is exist - process it [13:07:53]req_shift_opened [13:07:53]FM_GetShiftState [13:07:53]SAM_PROTO_GetShiftState [13:07:53]wFMCommunicate request_size=4 [13:07:53]MH_SAM_APDU [13:07:53]CAPDU: 80 13 01 00 [13:07:53]Write to MH i2c: E2 08 00 CF 21 80 13 01 00 00 00 00 00 6D [13:07:53]Write i2c OK [13:07:53]MH_I2C_Read... [13:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:53]Read from MH i2c: E2 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 0E 00 [13:07:53]MH_I2C_Read... [13:07:53]Read from MH i2c: E2 0E 00 CF 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 5F [13:07:53]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:07:53]wFMCommunicate OK [13:07:53]SAM_PROTO_GetShiftState done [13:07:53]FM_GetShiftState done [13:07:53]req_shift_opened done [13:07:53]requested_item shift.open_date is exist - process it [13:07:53]req_shift_open_date [13:07:53]req_shift_open_date done [13:07:53]produce_requested_data done [13:07:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156896,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:07:53]process_action_free close_receipt [13:07:53]json_value_free [13:07:53]json_value_free done [13:07:53]process_json_proto returns [13:07:53]Send response to host [13:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156896,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:07:53]free response buf [13:07:53]execute_script done [13:07:53]execute_script returns [13:07:53]free content buf [13:07:53]Sock 10.Close socket [13:07:53]Sock 10.Thread stoped [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:57]accept exits with 7 [13:15:57]New connection [13:15:57]New thread 3066748260 created [13:15:57]Thread 3066604900 joined [13:15:57]Waiting for new connection... [13:15:57] Sock 7.Parse request [13:15:57]Sock 7.Check first char [13:15:57]Sock 7.First char is OK [13:15:57]request: POST /json_proto HTTP/1.0 [13:15:57]Method: POST [13:15:57]URL: /json_proto [13:15:57]Method is POST - this is cgi request [13:15:57]url: /json_proto [13:15:57]query_string will be loaded in cgi processing [13:15:57]execute_cgi json_proto POST (null) [13:15:57]execute_cgi path=json_proto method=POST [13:15:57]POST find Content-Length [13:15:57]Host: 172.17.63.3:8080 [13:15:57]Content-Length: 676 [13:15:57]Content-Type: application/json [13:15:57] [13:15:57]POST finish read [13:15:57]Found Content-Length = 676 [13:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:15:57]execute_script... [13:15: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)99713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:15:57]POST & json_proto [13:15:57]process_json_proto [13:15:57]json parsed OK: [13:15:57]protocol is kg_v1.0 [13:15:57]action value=close_receipt [13:15:57]process_action close_receipt [13:15:57]cmd_close_receipt [13:15:57]MH_GetDate [13:15:57]Write to MH i2c: F0 00 00 D0 21 E0 [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: F0 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: F0 09 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: F0 09 00 D0 21 00 90 8E 1F 67 50 D1 6C 64 7E [13:15:57]GetLastDocTimeStamp 1730120874 [13:15:57]current date 1730121360 [13:15:57]FM_GetShiftState [13:15:57]SAM_PROTO_GetShiftState [13:15:57]wFMCommunicate request_size=4 [13:15:57]MH_SAM_APDU [13:15:57]CAPDU: 80 13 01 00 [13:15:57]Write to MH i2c: E2 08 00 D1 21 80 13 01 00 00 00 00 00 6F [13:15:57]Write i2c OK [13:15:57]MH_I2C_Read... [13:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:57]Read from MH i2c: E2 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 [13:15:57]MH_I2C_Read... [13:15:57]Read from MH i2c: E2 0E 00 D1 21 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 61 [13:15:57]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:15:57]wFMCommunicate OK [13:15:57]SAM_PROTO_GetShiftState done [13:15:57]FM_GetShiftState done [13:15:57]opened in 1730075526 [13:15:57]opened+sec_in_day 1730161926 [13:15:57]quantity*price = 50041 [13:15:57]sum+1 = 50042 [13:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 113 28.10.2024 13:16 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156897 ФПД: 69708513767519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156897&fm=69708513767519&tin=02508201610067®Number=0000000000091693&sum=50000 [13:15:58]StoreToDocumentArchive [13:15:58]shift 538 fd 156897 [13:15:58]save to /storage/0538/doc_00156897 [13:15:58]save last doc name /storage/0538/doc_00156897 to /storage/kkm_last_doc_name [13:15:58]save OK [13:15:58]Clear old archive folders... [13:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:58]tlvbuf is 01A8A8C0 [13:15:58]SAM_PROTO_ClearQueue [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 09 00 00 [13:15:58]Write to MH i2c: E2 08 00 DE 21 80 09 00 00 00 00 00 00 71 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:58]Read from MH i2c: E2 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 [13:15:58]MH_I2C_Read... [13:15:58]Read from MH i2c: E2 03 00 DE 21 00 90 00 73 [13:15:58]RAPDU: 90 00 [13:15:58]wFMCommunicate OK [13:15:58]SAM_PROTO_ClearQueue done [13:15:58]KKMCreateOFDPacket [13:15:58]OFDProtocolAddRootSTLVToBuf [13:15:58]FM_MakeSignedData [13:15:58]FM_MakeSignedData [13:15:58]SAM_PROTO_SignData [13:15:58]wFMCommunicate request_size=4 [13:15:58]MH_SAM_APDU [13:15:58]CAPDU: 80 0D 01 02 [13:15:58]Write to MH i2c: E2 08 00 DF 21 80 0D 01 02 00 00 00 00 79 [13:15:58]Write i2c OK [13:15:58]MH_I2C_Read... [13:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 DF 21 00 90 00 74 [13:15:59]RAPDU: 90 00 [13:15:59]wFMCommunicate OK [13:15:59]wFMCommunicate request_size=255 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 71 00 00 00 F4 03 04 00 90 8E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 64 02 00 35 04 06 00 3F [13:15:59]Write to MH i2c: E2 02 01 E0 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 71 00 00 00 F4 03 04 00 90 8E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 64 02 00 35 04 06 00 3F 00 00 C4 [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 E0 21 00 90 00 75 [13:15:59]RAPDU: 90 00 [13:15:59]wFMCommunicate OK [13:15:59]wFMCommunicate request_size=10 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 0D 02 02 05 66 47 33 70 5F [13:15:59]Write to MH i2c: E2 0D 00 E1 21 80 0D 02 02 05 00 66 47 33 70 5F 00 00 35 [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 03 00 E1 21 00 90 00 76 [13:15:59]RAPDU: 90 00 [13:15:59]wFMCommunicate OK [13:15:59]wFMCommunicate request_size=4 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 0D 03 02 [13:15:59]Write to MH i2c: E2 08 00 E2 21 80 0D 03 02 00 00 00 00 7E [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 0B 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 0B 00 E2 21 00 B8 2D 93 05 CA 3E E6 63 90 00 4D [13:15:59]RAPDU: B8 2D 93 05 CA 3E E6 63 90 00 [13:15:59]wFMCommunicate OK [13:15:59]SAM_PROTO_SignData done [13:15:59]FM_MakeSignedData done [13:15:59]CreateOFDProtocolMessage [13:15:59]wFMCommunicate request_size=4 [13:15:59]MH_SAM_APDU [13:15:59]CAPDU: 80 11 00 00 [13:15:59]Write to MH i2c: E2 08 00 E3 21 80 11 00 00 00 00 00 00 7E [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:59]Read from MH i2c: E2 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 17 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: E2 17 00 E3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [13:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:15:59]wFMCommunicate OK [13:15:59]CreateOFDProtocolMessage done [13:15:59]OFDSenderStorePacket 156897 [13:15:59]StoreOFDPacket docnum=156897 [13:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B4 0D 07 01 76 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 71 00 00 00 F4 03 04 00 90 8E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 64 02 00 35 04 06 00 3F 66 47 33 70 5F B8 2D 93 05 CA 3E E6 63 [13:15:59]CheckFolder [13:15:59]dirname=/storage/ofd_packets [13:15:59]CheckFolder done [13:15:59]ProducePacketName [13:15:59]name=ofd_packets/00156897 [13:15:59]NVStorageSaveData ofd_packets/00156897 [13:15:59]File name is /storage/ofd_packets/00156897 [13:15:59]Write 301 bytes [13:15:59]NVStorageSaveData done [13:15:59]OFDSenderStorePacket done [13:15:59]KKMCreateOFDPacket done [13:15:59]NVStorageSaveData kkm_last_timestamp [13:15:59]File name is /storage/kkm_last_timestamp [13:15:59]Write 4 bytes [13:15:59]NVStorageSaveData done [13:15:59]ExternCall_PrintAddStr [13:15:59]wPrintStart [13:15:59]Write to MH i2c: 01 00 00 E4 21 05 [13:15:59]Write i2c OK [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 07 00 [13:15:59]MH_I2C_Read... [13:15:59]Read from MH i2c: 01 07 00 E4 21 00 00 00 00 00 FF 0F 1A [13:15:59]RasterBufferAndPrint [13:15:59]line Счет N : (1)99713 [13:15:59]line ИНН: 02508201610067 [13:15:59]line Контрольно-Кассовый Чек [13:15:59]line ПРОДАЖА [13:15:59]line ТРК (МРК, ГНК) : 31 [13:15:59]line Товар: 2710124130 [13:15:59]line Аи-92-К-5 [13:15:59]line 7.480 * 66.90 [13:15:59]line = 500.41 [13:15:59]line НДС 12% НСП 1% [13:15:59]line > о реализуемом товаре [13:15:59]line ОКРУГЛЕНИЕ: -0.41 [13:15:59]line ИТОГО: 500.00 [13:15:59]line Внесено: 500.00 [13:15:59]line СДАЧА: 0.00 [13:15:59]line НСП 1% : 4.43 [13:15:59]line НДС 12% : 53.14 [13:15:59]line Наличными: 500.00 [13:15:59]line Безнал.: 0.00 [13:15:59]line Место: АЗС № 143 "Партнер Нефть" [13:15:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:15:59]line СНО: Общий режим [13:15:59]line Чек 113 28.10.2024 13:16 [13:15:59]line Смена: 538 ФФД: 1.0 [13:15:59]line ЗНМ: 0300000096 [13:15:59]line РНМ: 0000000000091693 [13:15:59]line Версия ККМ: 001 [13:15:59]line ФМ: 0000000000871792 [13:15:59]line ФД: 156897 [13:15:59]line ФПД: 69708513767519 [13:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156897&fm=69708513767519&tin=02508201610067®Number=0000000000091693&sum=50000 [13:15:59]OFD Sender: Processing packet 156897 [packets to send 31, broken 30] [13:15:59]ProducePacketName [13:15:59]name=ofd_packets/00156897 [13:15:59]OFD Sender: To server: pG, [13:15:59]CommunicateWithHost lk.salyk.kg:30040 [13:15:59]ConnectInit lk.salyk.kg [13:15:59]written 0, free lines is 4095 [13:15:59]Connected sock=10 [13:15: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 37 39 32 0F 01 00 00 B4 0D 07 01 76 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 71 00 00 00 F4 03 04 00 90 8E 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 64 02 00 35 04 06 00 3F 66 47 33 70 5F B8 2D 93 05 CA 3E E6 63 [13:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BF E7 47 00 45 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 64 02 00 F4 03 04 00 FD 33 1F 67 B6 04 01 00 00 95 9E D1 3B 95 32 53 13 [13:16:00]CommunicateWithHost err = 0 [13:16:00]CheckOFDResponse [13:16:00]1017 (14) - 77093643461234 [13:16:00]1041 (16) - 0000000000871792 [13:16:00]1040 (4) - 156897 [13:16:00]1012 (4) - 28.10.2024 06:49 [13:16:00]1206 (1) - 0 [13:16:00]OFD Sender: Remove packet 156897 [13:16:00]ProducePacketName [13:16:00]name=ofd_packets/00156897 [13:16:00]NVStorageDeleteData [13:16:00]Write to MH i2c: 01 00 00 0F 22 31 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: 01 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: 01 07 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: 01 07 00 0F 22 00 00 00 00 00 D2 0C 16 [13:16:00]RasterBufferAndPrint [13:16:00]line [13:16:00]line [13:16:00]line [13:16:00]line [13:16:00]line [13:16:00]written 0, free lines is 3287 [13:16:00]process_action close_receipt done [13:16:00]requested_data is exist [13:16:00]produce_requested_data [13:16:00]requested_item fm.sn is exist - process it [13:16:00]wFMCommunicate request_size=4 [13:16:00]MH_SAM_APDU [13:16:00]CAPDU: 80 11 00 00 [13:16:00]Write to MH i2c: E2 08 00 16 22 80 11 00 00 00 00 00 00 B2 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:00]Read from MH i2c: E2 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 17 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 17 00 16 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 07 [13:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:16:00]wFMCommunicate OK [13:16:00]requested_item fd.num is exist - process it [13:16:00]SAM_PROTO_GetFieldsCounters [13:16:00]wFMCommunicate request_size=4 [13:16:00]MH_SAM_APDU [13:16:00]CAPDU: 80 13 00 00 [13:16:00]Write to MH i2c: E2 08 00 17 22 80 13 00 00 00 00 00 00 B5 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:00]Read from MH i2c: E2 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 62 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 62 00 17 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 64 02 00 0E 04 04 00 1A 02 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 91 [13:16: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 64 02 00 0E 04 04 00 1A 02 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 [13:16:00]wFMCommunicate OK [13:16:00]SAM_PROTO_GetFieldsCounters done [13:16:00]requested_item shift.num is exist - process it [13:16:00]requested_item shift.opened is exist - process it [13:16:00]req_shift_opened [13:16:00]FM_GetShiftState [13:16:00]SAM_PROTO_GetShiftState [13:16:00]wFMCommunicate request_size=4 [13:16:00]MH_SAM_APDU [13:16:00]CAPDU: 80 13 01 00 [13:16:00]Write to MH i2c: E2 08 00 18 22 80 13 01 00 00 00 00 00 B7 [13:16:00]Write i2c OK [13:16:00]MH_I2C_Read... [13:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:00]Read from MH i2c: E2 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 0E 00 [13:16:00]MH_I2C_Read... [13:16:00]Read from MH i2c: E2 0E 00 18 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 A9 [13:16:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:16:00]wFMCommunicate OK [13:16:00]SAM_PROTO_GetShiftState done [13:16:00]FM_GetShiftState done [13:16:00]req_shift_opened done [13:16:00]requested_item shift.open_date is exist - process it [13:16:00]req_shift_open_date [13:16:00]req_shift_open_date done [13:16:00]produce_requested_data done [13:16:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156897,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:16:00]process_action_free close_receipt [13:16:00]json_value_free [13:16:00]json_value_free done [13:16:00]process_json_proto returns [13:16:00]Send response to host [13:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156897,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:16:00]free response buf [13:16:00]execute_script done [13:16:00]execute_script returns [13:16:00]free content buf [13:16:00]Sock 7.Close socket [13:16:00]Sock 7.Thread stoped [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:39]accept exits with 9 [13:18:39]New connection [13:18:39]New thread 3066604900 created [13:18:39]Thread 3066748260 joined [13:18:39]Waiting for new connection... [13:18:39] Sock 9.Parse request [13:18:39]Sock 9.Check first char [13:18:39]Sock 9.First char is OK [13:18:39]request: POST /json_proto HTTP/1.0 [13:18:39]Method: POST [13:18:39]URL: /json_proto [13:18:39]Method is POST - this is cgi request [13:18:39]url: /json_proto [13:18:39]query_string will be loaded in cgi processing [13:18:39]execute_cgi json_proto POST (null) [13:18:39]execute_cgi path=json_proto method=POST [13:18:39]POST find Content-Length [13:18:39]Host: 172.17.63.3:8080 [13:18:39]Content-Length: 681 [13:18:39]Content-Type: application/json [13:18:39] [13:18:39]POST finish read [13:18:39]Found Content-Length = 681 [13:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:18:39]execute_script... [13:18: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)99714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:18:39]POST & json_proto [13:18:39]process_json_proto [13:18:39]json parsed OK: [13:18:39]protocol is kg_v1.0 [13:18:39]action value=close_receipt [13:18:39]process_action close_receipt [13:18:39]cmd_close_receipt [13:18:39]MH_GetDate [13:18:39]Write to MH i2c: F0 00 00 19 22 2A [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 09 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 09 00 19 22 00 32 8F 1F 67 50 D1 6C 64 6B [13:18:39]GetLastDocTimeStamp 1730121360 [13:18:39]current date 1730121522 [13:18:39]FM_GetShiftState [13:18:39]SAM_PROTO_GetShiftState [13:18:39]wFMCommunicate request_size=4 [13:18:39]MH_SAM_APDU [13:18:39]CAPDU: 80 13 01 00 [13:18:39]Write to MH i2c: E2 08 00 1A 22 80 13 01 00 00 00 00 00 B9 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:39]Read from MH i2c: E2 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 1A 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 AB [13:18:39]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:18:39]wFMCommunicate OK [13:18:39]SAM_PROTO_GetShiftState done [13:18:39]FM_GetShiftState done [13:18:39]opened in 1730075526 [13:18:39]opened+sec_in_day 1730161926 [13:18:39]quantity*price = 100015 [13:18:39]sum+1 = 100017 [13:18:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 114 28.10.2024 13:18 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156898 ФПД: 111270845802910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131842&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156898&fm=111270845802910&tin=02508201610067®Number=0000000000091693&sum=100000 [13:18:40]StoreToDocumentArchive [13:18:40]shift 538 fd 156898 [13:18:40]save to /storage/0538/doc_00156898 [13:18:40]save last doc name /storage/0538/doc_00156898 to /storage/kkm_last_doc_name [13:18:41]save OK [13:18:41]Clear old archive folders... [13:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:41]tlvbuf is 01A82AD0 [13:18:41]SAM_PROTO_ClearQueue [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 09 00 00 [13:18:41]Write to MH i2c: E2 08 00 27 22 80 09 00 00 00 00 00 00 BB [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 27 22 00 90 00 BD [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_ClearQueue done [13:18:41]KKMCreateOFDPacket [13:18:41]OFDProtocolAddRootSTLVToBuf [13:18:41]FM_MakeSignedData [13:18:41]FM_MakeSignedData [13:18:41]SAM_PROTO_SignData [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 01 02 [13:18:41]Write to MH i2c: E2 08 00 28 22 80 0D 01 02 00 00 00 00 C3 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 28 22 00 90 00 BE [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=255 [13:18:41]MH_SAM_APDU [13:18: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 72 00 00 00 F4 03 04 00 32 8F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 64 02 00 35 04 06 00 65 [13:18:41]Write to MH i2c: E2 02 01 29 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 72 00 00 00 F4 03 04 00 32 8F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 64 02 00 35 04 06 00 65 00 00 D3 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 29 22 00 90 00 BF [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=10 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 02 02 05 33 43 3C E9 9E [13:18:41]Write to MH i2c: E2 0D 00 2A 22 80 0D 02 02 05 00 33 43 3C E9 9E 00 00 09 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 2A 22 00 90 00 C0 [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 03 02 [13:18:41]Write to MH i2c: E2 08 00 2B 22 80 0D 03 02 00 00 00 00 C8 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 2B 22 00 8A 4A BE AC 58 B0 11 99 90 00 B9 [13:18:41]RAPDU: 8A 4A BE AC 58 B0 11 99 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_SignData done [13:18:41]FM_MakeSignedData done [13:18:41]CreateOFDProtocolMessage [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 11 00 00 [13:18:41]Write to MH i2c: E2 08 00 2C 22 80 11 00 00 00 00 00 00 C8 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 2C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [13:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:18:41]wFMCommunicate OK [13:18:41]CreateOFDProtocolMessage done [13:18:41]OFDSenderStorePacket 156898 [13:18:41]StoreOFDPacket docnum=156898 [13:18:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CB CC 07 01 DD CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 72 00 00 00 F4 03 04 00 32 8F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 64 02 00 35 04 06 00 65 33 43 3C E9 9E 8A 4A BE AC 58 B0 11 99 [13:18:41]CheckFolder [13:18:41]dirname=/storage/ofd_packets [13:18:41]CheckFolder done [13:18:41]ProducePacketName [13:18:41]name=ofd_packets/00156898 [13:18:41]NVStorageSaveData ofd_packets/00156898 [13:18:41]File name is /storage/ofd_packets/00156898 [13:18:41]Write 301 bytes [13:18:41]NVStorageSaveData done [13:18:41]OFDSenderStorePacket done [13:18:41]KKMCreateOFDPacket done [13:18:41]NVStorageSaveData kkm_last_timestamp [13:18:41]File name is /storage/kkm_last_timestamp [13:18:41]Write 4 bytes [13:18:41]NVStorageSaveData done [13:18:41]ExternCall_PrintAddStr [13:18:41]wPrintStart [13:18:41]Write to MH i2c: 01 00 00 2D 22 4F [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 07 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 07 00 2D 22 00 00 00 00 00 FF 0F 64 [13:18:41]RasterBufferAndPrint [13:18:41]line Счет N : (1)99714 [13:18:41]line ИНН: 02508201610067 [13:18:41]line Контрольно-Кассовый Чек [13:18:41]line ПРОДАЖА [13:18:41]line ТРК (МРК, ГНК) : 31 [13:18:41]line Товар: 2710124130 [13:18:41]line Аи-92-К-5 [13:18:41]line 14.950 * 66.90 [13:18:41]line = 1000.16 [13:18:41]line НДС 12% НСП 1% [13:18:41]line > о реализуемом товаре [13:18:41]line ОКРУГЛЕНИЕ: -0.16 [13:18:41]line ИТОГО: 1000.00 [13:18:41]line Внесено: 1000.00 [13:18:41]line СДАЧА: 0.00 [13:18:41]line НСП 1% : 8.85 [13:18:41]line НДС 12% : 106.21 [13:18:41]line Наличными: 1000.00 [13:18:41]line Безнал.: 0.00 [13:18:41]line Место: АЗС № 143 "Партнер Нефть" [13:18:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:18:41]line СНО: Общий режим [13:18:41]line Чек 114 28.10.2024 13:18 [13:18:41]line Смена: 538 ФФД: 1.0 [13:18:41]line ЗНМ: 0300000096 [13:18:41]line РНМ: 0000000000091693 [13:18:41]line Версия ККМ: 001 [13:18:41]line ФМ: 0000000000871792 [13:18:41]line ФД: 156898 [13:18:41]line ФПД: 111270845802910 [13:18:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131842&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156898&fm=111270845802910&tin=02508201610067®Number=0000000000091693&sum=100000 [13:18:41]OFD Sender: Processing packet 156898 [packets to send 31, broken 30] [13:18:41]ProducePacketName [13:18:41]name=ofd_packets/00156898 [13:18:41]OFD Sender: To server: pG, [13:18:41]CommunicateWithHost lk.salyk.kg:30040 [13:18:41]ConnectInit lk.salyk.kg [13:18:41]written 0, free lines is 4095 [13:18:41]Connected sock=10 [13:18: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 37 39 32 0F 01 00 00 CB CC 07 01 DD CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 72 00 00 00 F4 03 04 00 32 8F 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 64 02 00 35 04 06 00 65 33 43 3C E9 9E 8A 4A BE AC 58 B0 11 99 [13:18:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4A A3 47 00 70 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 64 02 00 F4 03 04 00 9F 34 1F 67 B6 04 01 00 00 2A EC 73 BA 87 55 9A A0 [13:18:42]CommunicateWithHost err = 0 [13:18:42]CheckOFDResponse [13:18:42]1017 (14) - 77093643461234 [13:18:42]1041 (16) - 0000000000871792 [13:18:42]1040 (4) - 156898 [13:18:42]1012 (4) - 28.10.2024 06:52 [13:18:42]1206 (1) - 0 [13:18:42]OFD Sender: Remove packet 156898 [13:18:42]ProducePacketName [13:18:42]name=ofd_packets/00156898 [13:18:42]NVStorageDeleteData [13:18:42]Write to MH i2c: 01 00 00 58 22 7A [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 58 22 00 00 00 00 00 D6 0C 63 [13:18:42]RasterBufferAndPrint [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]written 0, free lines is 3294 [13:18:42]process_action close_receipt done [13:18:42]requested_data is exist [13:18:42]produce_requested_data [13:18:42]requested_item fm.sn is exist - process it [13:18:42]wFMCommunicate request_size=4 [13:18:42]MH_SAM_APDU [13:18:42]CAPDU: 80 11 00 00 [13:18:42]Write to MH i2c: E2 08 00 5F 22 80 11 00 00 00 00 00 00 FB [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:42]Read from MH i2c: E2 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 17 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 17 00 5F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [13:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:18:42]wFMCommunicate OK [13:18:42]requested_item fd.num is exist - process it [13:18:42]SAM_PROTO_GetFieldsCounters [13:18:42]wFMCommunicate request_size=4 [13:18:42]MH_SAM_APDU [13:18:42]CAPDU: 80 13 00 00 [13:18:42]Write to MH i2c: E2 08 00 60 22 80 13 00 00 00 00 00 00 FE [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:42]Read from MH i2c: E2 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 62 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 62 00 60 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 64 02 00 0E 04 04 00 1A 02 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 DE [13:18: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 64 02 00 0E 04 04 00 1A 02 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 [13:18:42]wFMCommunicate OK [13:18:42]SAM_PROTO_GetFieldsCounters done [13:18:42]requested_item shift.num is exist - process it [13:18:42]requested_item shift.opened is exist - process it [13:18:42]req_shift_opened [13:18:42]FM_GetShiftState [13:18:42]SAM_PROTO_GetShiftState [13:18:42]wFMCommunicate request_size=4 [13:18:42]MH_SAM_APDU [13:18:42]CAPDU: 80 13 01 00 [13:18:42]Write to MH i2c: E2 08 00 61 22 80 13 01 00 00 00 00 00 00 [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:42]Read from MH i2c: E2 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 0E 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: E2 0E 00 61 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 F2 [13:18:42]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:18:42]wFMCommunicate OK [13:18:42]SAM_PROTO_GetShiftState done [13:18:42]FM_GetShiftState done [13:18:42]req_shift_opened done [13:18:42]requested_item shift.open_date is exist - process it [13:18:42]req_shift_open_date [13:18:42]req_shift_open_date done [13:18:42]produce_requested_data done [13:18:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156898,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:18:42]process_action_free close_receipt [13:18:42]json_value_free [13:18:42]json_value_free done [13:18:42]process_json_proto returns [13:18:42]Send response to host [13:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156898,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:18:42]free response buf [13:18:42]execute_script done [13:18:42]execute_script returns [13:18:42]free content buf [13:18:42]Sock 9.Close socket [13:18:42]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]OFD Sender: No OFD packet to send [13:24:00]accept exits with 7 [13:24:00]New connection [13:24:00]New thread 3066748260 created [13:24:00]Thread 3066604900 joined [13:24:00]Waiting for new connection... [13:24:00] Sock 7.Parse request [13:24:00]Sock 7.Check first char [13:24:00]Sock 7.First char is OK [13:24:00]request: POST /json_proto HTTP/1.0 [13:24:00]Method: POST [13:24:00]URL: /json_proto [13:24:00]Method is POST - this is cgi request [13:24:00]url: /json_proto [13:24:00]query_string will be loaded in cgi processing [13:24:00]execute_cgi json_proto POST (null) [13:24:00]execute_cgi path=json_proto method=POST [13:24:00]POST find Content-Length [13:24:00]Host: 172.17.63.3:8080 [13:24:00]Content-Length: 673 [13:24:00]Content-Type: application/json [13:24:00] [13:24:00]POST finish read [13:24:00]Found Content-Length = 673 [13:24:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:24:00]execute_script... [13:24:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:24:00]POST & json_proto [13:24:00]process_json_proto [13:24:00]json parsed OK: [13:24:00]protocol is kg_v1.0 [13:24:00]action value=close_receipt [13:24:00]process_action close_receipt [13:24:00]cmd_close_receipt [13:24:00]MH_GetDate [13:24:00]Write to MH i2c: F0 00 00 62 22 73 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: F0 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: F0 09 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: F0 09 00 62 22 00 73 90 1F 67 50 D1 6C 64 F6 [13:24:00]GetLastDocTimeStamp 1730121522 [13:24:00]current date 1730121843 [13:24:00]FM_GetShiftState [13:24:00]SAM_PROTO_GetShiftState [13:24:00]wFMCommunicate request_size=4 [13:24:00]MH_SAM_APDU [13:24:00]CAPDU: 80 13 01 00 [13:24:00]Write to MH i2c: E2 08 00 63 22 80 13 01 00 00 00 00 00 02 [13:24:00]Write i2c OK [13:24:00]MH_I2C_Read... [13:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:00]Read from MH i2c: E2 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 0E 00 [13:24:00]MH_I2C_Read... [13:24:00]Read from MH i2c: E2 0E 00 63 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 F4 [13:24:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:24:00]wFMCommunicate OK [13:24:00]SAM_PROTO_GetShiftState done [13:24:00]FM_GetShiftState done [13:24:00]opened in 1730075526 [13:24:00]opened+sec_in_day 1730161926 [13:24:00]quantity*price = 40005 [13:24:00]sum+1 = 40006 [13:24:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 115 28.10.2024 13:24 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156899 ФПД: 238228843515288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156899&fm=238228843515288&tin=02508201610067®Number=0000000000091693&sum=40000 [13:24:01]StoreToDocumentArchive [13:24:01]shift 538 fd 156899 [13:24:01]save to /storage/0538/doc_00156899 [13:24:01]save last doc name /storage/0538/doc_00156899 to /storage/kkm_last_doc_name [13:24:01]save OK [13:24:01]Clear old archive folders... [13:24:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:24:01]tlvbuf is 01AE1CE0 [13:24:01]SAM_PROTO_ClearQueue [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 09 00 00 [13:24:01]Write to MH i2c: E2 08 00 70 22 80 09 00 00 00 00 00 00 04 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 70 22 00 90 00 06 [13:24:01]RAPDU: 90 00 [13:24:01]wFMCommunicate OK [13:24:01]SAM_PROTO_ClearQueue done [13:24:01]KKMCreateOFDPacket [13:24:01]OFDProtocolAddRootSTLVToBuf [13:24:01]FM_MakeSignedData [13:24:01]FM_MakeSignedData [13:24:01]SAM_PROTO_SignData [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 0D 01 02 [13:24:01]Write to MH i2c: E2 08 00 71 22 80 0D 01 02 00 00 00 00 0C [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 71 22 00 90 00 07 [13:24:01]RAPDU: 90 00 [13:24:01]wFMCommunicate OK [13:24:01]wFMCommunicate request_size=255 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 73 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 64 02 00 35 04 06 00 D8 AA F9 97 [13:24:01]Write to MH i2c: E2 02 01 72 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 73 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 64 02 00 35 04 06 00 D8 AA F9 97 00 00 FC [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 72 22 00 90 00 08 [13:24:01]RAPDU: 90 00 [13:24:01]wFMCommunicate OK [13:24:01]wFMCommunicate request_size=7 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 0D 02 02 02 CD 98 [13:24:01]Write to MH i2c: E2 0A 00 73 22 80 0D 02 02 02 00 CD 98 00 00 78 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 03 00 73 22 00 90 00 09 [13:24:01]RAPDU: 90 00 [13:24:01]wFMCommunicate OK [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 0D 03 02 [13:24:01]Write to MH i2c: E2 08 00 74 22 80 0D 03 02 00 00 00 00 11 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 0B 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 0B 00 74 22 00 52 55 4E F4 E2 5E 42 ED 90 00 6A [13:24:01]RAPDU: 52 55 4E F4 E2 5E 42 ED 90 00 [13:24:01]wFMCommunicate OK [13:24:01]SAM_PROTO_SignData done [13:24:01]FM_MakeSignedData done [13:24:01]CreateOFDProtocolMessage [13:24:01]wFMCommunicate request_size=4 [13:24:01]MH_SAM_APDU [13:24:01]CAPDU: 80 11 00 00 [13:24:01]Write to MH i2c: E2 08 00 75 22 80 11 00 00 00 00 00 00 11 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:01]Read from MH i2c: E2 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 17 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: E2 17 00 75 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [13:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:01]wFMCommunicate OK [13:24:01]CreateOFDProtocolMessage done [13:24:01]OFDSenderStorePacket 156899 [13:24:01]StoreOFDPacket docnum=156899 [13:24:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B4 7A 04 01 9B 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 73 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 64 02 00 35 04 06 00 D8 AA F9 97 CD 98 52 55 4E F4 E2 5E 42 ED [13:24:01]CheckFolder [13:24:01]dirname=/storage/ofd_packets [13:24:01]CheckFolder done [13:24:01]ProducePacketName [13:24:01]name=ofd_packets/00156899 [13:24:01]NVStorageSaveData ofd_packets/00156899 [13:24:01]File name is /storage/ofd_packets/00156899 [13:24:01]Write 298 bytes [13:24:01]NVStorageSaveData done [13:24:01]OFDSenderStorePacket done [13:24:01]KKMCreateOFDPacket done [13:24:01]NVStorageSaveData kkm_last_timestamp [13:24:01]File name is /storage/kkm_last_timestamp [13:24:01]Write 4 bytes [13:24:01]NVStorageSaveData done [13:24:01]ExternCall_PrintAddStr [13:24:01]wPrintStart [13:24:01]Write to MH i2c: 01 00 00 76 22 98 [13:24:01]Write i2c OK [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: 01 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: 01 07 00 [13:24:01]MH_I2C_Read... [13:24:01]Read from MH i2c: 01 07 00 76 22 00 00 00 00 00 FF 0F AD [13:24:01]RasterBufferAndPrint [13:24:01]line Счет N : (1)99715 [13:24:01]line ИНН: 02508201610067 [13:24:01]line Контрольно-Кассовый Чек [13:24:01]line ПРОДАЖА [13:24:01]line ТРК (МРК, ГНК) : 32 [13:24:01]line Товар: 2710194210 [13:24:01]line ДТ-К-5 [13:24:01]line 5.250 * 76.20 [13:24:01]line = 400.05 [13:24:01]line НДС 12% НСП 1% [13:24:01]line > о реализуемом товаре [13:24:01]line ОКРУГЛЕНИЕ: -0.05 [13:24:01]line ИТОГО: 400.00 [13:24:01]line Внесено: 400.00 [13:24:01]line СДАЧА: 0.00 [13:24:01]line НСП 1% : 3.54 [13:24:01]line НДС 12% : 42.48 [13:24:01]line Наличными: 400.00 [13:24:01]line Безнал.: 0.00 [13:24:01]line Место: АЗС № 143 "Партнер Нефть" [13:24:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:24:01]line СНО: Общий режим [13:24:01]line Чек 115 28.10.2024 13:24 [13:24:01]line Смена: 538 ФФД: 1.0 [13:24:01]line ЗНМ: 0300000096 [13:24:01]line РНМ: 0000000000091693 [13:24:01]line Версия ККМ: 001 [13:24:01]line ФМ: 0000000000871792 [13:24:01]line ФД: 156899 [13:24:01]line ФПД: 238228843515288 [13:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132403&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156899&fm=238228843515288&tin=02508201610067®Number=0000000000091693&sum=40000 [13:24:02]OFD Sender: Processing packet 156899 [packets to send 31, broken 30] [13:24:02]ProducePacketName [13:24:02]name=ofd_packets/00156899 [13:24:02]OFD Sender: To server: pG, [13:24:02]CommunicateWithHost lk.salyk.kg:30040 [13:24:02]ConnectInit lk.salyk.kg [13:24:02]written 0, free lines is 4095 [13:24:02]Connected sock=10 [13:24:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B4 7A 04 01 9B 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 73 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 64 02 00 35 04 06 00 D8 AA F9 97 CD 98 52 55 4E F4 E2 5E 42 ED [13:24:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 75 9F 47 00 2A 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 37 39 32 10 04 04 00 E3 64 02 00 F4 03 04 00 DF 35 1F 67 B6 04 01 00 00 B1 0B 17 5B 27 56 8F F2 [13:24:02]CommunicateWithHost err = 0 [13:24:02]CheckOFDResponse [13:24:02]1017 (14) - 77093643461234 [13:24:02]1041 (16) - 0000000000871792 [13:24:02]1040 (4) - 156899 [13:24:02]1012 (4) - 28.10.2024 06:57 [13:24:02]1206 (1) - 0 [13:24:02]OFD Sender: Remove packet 156899 [13:24:02]ProducePacketName [13:24:02]name=ofd_packets/00156899 [13:24:02]NVStorageDeleteData [13:24:02]Write to MH i2c: 01 00 00 A1 22 C3 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: 01 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: 01 07 00 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: 01 07 00 A1 22 00 00 00 00 00 E0 0C B6 [13:24:02]RasterBufferAndPrint [13:24:02]line [13:24:02]line [13:24:02]line [13:24:02]line [13:24:02]line [13:24:02]written 0, free lines is 3302 [13:24:02]process_action close_receipt done [13:24:02]requested_data is exist [13:24:02]produce_requested_data [13:24:02]requested_item fm.sn is exist - process it [13:24:02]wFMCommunicate request_size=4 [13:24:02]MH_SAM_APDU [13:24:02]CAPDU: 80 11 00 00 [13:24:02]Write to MH i2c: E2 08 00 A8 22 80 11 00 00 00 00 00 00 44 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:02]Read from MH i2c: E2 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 17 00 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 17 00 A8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [13:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:02]wFMCommunicate OK [13:24:02]requested_item fd.num is exist - process it [13:24:02]SAM_PROTO_GetFieldsCounters [13:24:02]wFMCommunicate request_size=4 [13:24:02]MH_SAM_APDU [13:24:02]CAPDU: 80 13 00 00 [13:24:02]Write to MH i2c: E2 08 00 A9 22 80 13 00 00 00 00 00 00 47 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:02]Read from MH i2c: E2 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 62 00 [13:24:02]MH_I2C_Read... [13:24:02]Read from MH i2c: E2 62 00 A9 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 64 02 00 0E 04 04 00 1A 02 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 2B [13:24: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 64 02 00 0E 04 04 00 1A 02 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 [13:24:02]wFMCommunicate OK [13:24:02]SAM_PROTO_GetFieldsCounters done [13:24:02]requested_item shift.num is exist - process it [13:24:02]requested_item shift.opened is exist - process it [13:24:02]req_shift_opened [13:24:02]FM_GetShiftState [13:24:02]SAM_PROTO_GetShiftState [13:24:02]wFMCommunicate request_size=4 [13:24:02]MH_SAM_APDU [13:24:02]CAPDU: 80 13 01 00 [13:24:02]Write to MH i2c: E2 08 00 AA 22 80 13 01 00 00 00 00 00 49 [13:24:02]Write i2c OK [13:24:02]MH_I2C_Read... [13:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:03]Read from MH i2c: E2 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 0E 00 [13:24:03]MH_I2C_Read... [13:24:03]Read from MH i2c: E2 0E 00 AA 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 3B [13:24:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:24:03]wFMCommunicate OK [13:24:03]SAM_PROTO_GetShiftState done [13:24:03]FM_GetShiftState done [13:24:03]req_shift_opened done [13:24:03]requested_item shift.open_date is exist - process it [13:24:03]req_shift_open_date [13:24:03]req_shift_open_date done [13:24:03]produce_requested_data done [13:24:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156899,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:24:03]process_action_free close_receipt [13:24:03]json_value_free [13:24:03]json_value_free done [13:24:03]process_json_proto returns [13:24:03]Send response to host [13:24:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156899,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:24:03]free response buf [13:24:03]execute_script done [13:24:03]execute_script returns [13:24:03]free content buf [13:24:03]Sock 7.Close socket [13:24:03]Sock 7.Thread stoped [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:03]accept exits with 9 [13:26:03]New connection [13:26:03]New thread 3066604900 created [13:26:03]Thread 3066748260 joined [13:26:03]Waiting for new connection... [13:26:03] Sock 9.Parse request [13:26:03]Sock 9.Check first char [13:26:03]Sock 9.First char is OK [13:26:03]request: POST /json_proto HTTP/1.0 [13:26:03]Method: POST [13:26:03]URL: /json_proto [13:26:03]Method is POST - this is cgi request [13:26:03]url: /json_proto [13:26:03]query_string will be loaded in cgi processing [13:26:03]execute_cgi json_proto POST (null) [13:26:03]execute_cgi path=json_proto method=POST [13:26:03]POST find Content-Length [13:26:03]Host: 172.17.63.3:8080 [13:26:03]Content-Length: 796 [13:26:03]Content-Type: application/json [13:26:03] [13:26:03]POST finish read [13:26:03]Found Content-Length = 796 [13:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:03]execute_script... [13:26: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)99716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4381432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:03]POST & json_proto [13:26:03]process_json_proto [13:26:03]json parsed OK: [13:26:03]protocol is kg_v1.0 [13:26:03]action value=close_receipt [13:26:03]process_action close_receipt [13:26:03]cmd_close_receipt [13:26:03]MH_GetDate [13:26:03]Write to MH i2c: F0 00 00 AB 22 BC [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 09 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: F0 09 00 AB 22 00 EE 90 1F 67 50 D1 6C 64 BA [13:26:03]GetLastDocTimeStamp 1730121843 [13:26:03]current date 1730121966 [13:26:03]FM_GetShiftState [13:26:03]SAM_PROTO_GetShiftState [13:26:03]wFMCommunicate request_size=4 [13:26:03]MH_SAM_APDU [13:26:03]CAPDU: 80 13 01 00 [13:26:03]Write to MH i2c: E2 08 00 AC 22 80 13 01 00 00 00 00 00 4B [13:26:03]Write i2c OK [13:26:03]MH_I2C_Read... [13:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:03]Read from MH i2c: E2 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0E 00 [13:26:03]MH_I2C_Read... [13:26:03]Read from MH i2c: E2 0E 00 AC 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 3D [13:26:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:26:03]wFMCommunicate OK [13:26:03]SAM_PROTO_GetShiftState done [13:26:03]FM_GetShiftState done [13:26:03]opened in 1730075526 [13:26:03]opened+sec_in_day 1730161926 [13:26:03]quantity*price = 0 [13:26:03]sum+1 = 1 [13:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 116 28.10.2024 13:26 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4381432 ФМ: 0000000000871792 ФД: 156900 ФПД: 69481609133177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132606&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156900&fm=69481609133177&tin=02508201610067®Number=0000000000091693&sum=0 [13:26:04]StoreToDocumentArchive [13:26:04]shift 538 fd 156900 [13:26:04]save to /storage/0538/doc_00156900 [13:26:04]save last doc name /storage/0538/doc_00156900 to /storage/kkm_last_doc_name [13:26:04]save OK [13:26:04]Clear old archive folders... [13:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:04]tlvbuf is 01A5D050 [13:26:04]SAM_PROTO_ClearQueue [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 09 00 00 [13:26:04]Write to MH i2c: E2 08 00 B9 22 80 09 00 00 00 00 00 00 4D [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 B9 22 00 90 00 4F [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]SAM_PROTO_ClearQueue done [13:26:04]KKMCreateOFDPacket [13:26:04]OFDProtocolAddRootSTLVToBuf [13:26:04]FM_MakeSignedData [13:26:04]FM_MakeSignedData [13:26:04]SAM_PROTO_SignData [13:26:04]wFMCommunicate request_size=4 [13:26:04]MH_SAM_APDU [13:26:04]CAPDU: 80 0D 01 02 [13:26:04]Write to MH i2c: E2 08 00 BA 22 80 0D 01 02 00 00 00 00 55 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:04]Read from MH i2c: E2 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 [13:26:04]MH_I2C_Read... [13:26:04]Read from MH i2c: E2 03 00 BA 22 00 90 00 50 [13:26:04]RAPDU: 90 00 [13:26:04]wFMCommunicate OK [13:26:04]wFMCommunicate request_size=255 [13:26:04]MH_SAM_APDU [13:26: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 EE 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 64 02 00 35 04 06 00 3F 31 72 A1 [13:26:04]Write to MH i2c: E2 02 01 BB 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 EE 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 64 02 00 35 04 06 00 3F 31 72 A1 00 00 86 [13:26:04]Write i2c OK [13:26:04]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 03 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 03 00 BB 22 00 90 00 51 [13:26:05]RAPDU: 90 00 [13:26:05]wFMCommunicate OK [13:26:05]wFMCommunicate request_size=7 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 0D 02 02 02 7C 79 [13:26:05]Write to MH i2c: E2 0A 00 BC 22 80 0D 02 02 02 00 7C 79 00 00 51 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 03 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 03 00 BC 22 00 90 00 52 [13:26:05]RAPDU: 90 00 [13:26:05]wFMCommunicate OK [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 0D 03 02 [13:26:05]Write to MH i2c: E2 08 00 BD 22 80 0D 03 02 00 00 00 00 5A [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0B 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 0B 00 BD 22 00 CB BF A4 83 10 73 38 A5 90 00 6C [13:26:05]RAPDU: CB BF A4 83 10 73 38 A5 90 00 [13:26:05]wFMCommunicate OK [13:26:05]SAM_PROTO_SignData done [13:26:05]FM_MakeSignedData done [13:26:05]CreateOFDProtocolMessage [13:26:05]wFMCommunicate request_size=4 [13:26:05]MH_SAM_APDU [13:26:05]CAPDU: 80 11 00 00 [13:26:05]Write to MH i2c: E2 08 00 BE 22 80 11 00 00 00 00 00 00 5A [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:05]Read from MH i2c: E2 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 17 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: E2 17 00 BE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [13:26:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:26:05]wFMCommunicate OK [13:26:05]CreateOFDProtocolMessage done [13:26:05]OFDSenderStorePacket 156900 [13:26:05]StoreOFDPacket docnum=156900 [13:26:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 32 03 04 01 50 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 EE 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 64 02 00 35 04 06 00 3F 31 72 A1 7C 79 CB BF A4 83 10 73 38 A5 [13:26:05]CheckFolder [13:26:05]dirname=/storage/ofd_packets [13:26:05]CheckFolder done [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00156900 [13:26:05]NVStorageSaveData ofd_packets/00156900 [13:26:05]File name is /storage/ofd_packets/00156900 [13:26:05]Write 298 bytes [13:26:05]NVStorageSaveData done [13:26:05]OFDSenderStorePacket done [13:26:05]KKMCreateOFDPacket done [13:26:05]NVStorageSaveData kkm_last_timestamp [13:26:05]File name is /storage/kkm_last_timestamp [13:26:05]Write 4 bytes [13:26:05]NVStorageSaveData done [13:26:05]ExternCall_PrintAddStr [13:26:05]wPrintStart [13:26:05]Write to MH i2c: 01 00 00 BF 22 E1 [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 BF 22 00 00 00 00 00 FF 0F F6 [13:26:05]RasterBufferAndPrint [13:26:05]line Счет N : (1)99716 [13:26:05]line ИНН: 02508201610067 [13:26:05]line Контрольно-Кассовый Чек [13:26:05]line ПРОДАЖА [13:26:05]line ТРК (МРК, ГНК) : 32 [13:26:05]line Товар: 2710194210 [13:26:05]line ДТ-К-5 [13:26:05]line 20.000 * 0.00 [13:26:05]line = 0.00 [13:26:05]line НДС 12% НСП 1% [13:26:05]line > о реализуемом товаре [13:26:05]line ИТОГО: 0.00 [13:26:05]line НСП 1% : 0.00 [13:26:05]line НДС 12% : 0.00 [13:26:05]line Наличными: 0.00 [13:26:05]line Безнал.: 0.00 [13:26:05]line Место: АЗС № 143 "Партнер Нефть" [13:26:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:26:05]line СНО: Общий режим [13:26:05]line Чек 116 28.10.2024 13:26 [13:26:05]line Смена: 538 ФФД: 1.0 [13:26:05]line ЗНМ: 0300000096 [13:26:05]line РНМ: 0000000000091693 [13:26:05]line Версия ККМ: 001 [13:26:05]line Талоны: Топливные Талоны [13:26:05]line 4381432 [13:26:05]line ФМ: 0000000000871792 [13:26:05]line ФД: 156900 [13:26:05]line ФПД: 69481609133177 [13:26:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132606&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156900&fm=69481609133177&tin=02508201610067®Number=0000000000091693&sum=0 [13:26:05]OFD Sender: Processing packet 156900 [packets to send 31, broken 30] [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00156900 [13:26:05]OFD Sender: To server: pG, [13:26:05]CommunicateWithHost lk.salyk.kg:30040 [13:26:05]ConnectInit lk.salyk.kg [13:26:05]written 0, free lines is 4095 [13:26:05]Connected sock=10 [13:26: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 37 39 32 0C 01 00 00 32 03 04 01 50 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 EE 90 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 64 02 00 35 04 06 00 3F 31 72 A1 7C 79 CB BF A4 83 10 73 38 A5 [13:26:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 29 27 47 00 25 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 64 02 00 F4 03 04 00 5A 36 1F 67 B6 04 01 00 00 AF CC DC 85 BC 6E D1 4C [13:26:05]CommunicateWithHost err = 0 [13:26:05]CheckOFDResponse [13:26:05]1017 (14) - 77093643461234 [13:26:05]1041 (16) - 0000000000871792 [13:26:05]1040 (4) - 156900 [13:26:05]1012 (4) - 28.10.2024 06:59 [13:26:05]1206 (1) - 0 [13:26:05]OFD Sender: Remove packet 156900 [13:26:05]ProducePacketName [13:26:05]name=ofd_packets/00156900 [13:26:05]NVStorageDeleteData [13:26:05]Write to MH i2c: 01 00 00 E9 22 0B [13:26:05]Write i2c OK [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 [13:26:05]MH_I2C_Read... [13:26:05]Read from MH i2c: 01 07 00 E9 22 00 00 00 00 00 ED 0C 0B [13:26:05]RasterBufferAndPrint [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]line [13:26:05]written 0, free lines is 3315 [13:26:06]process_action close_receipt done [13:26:06]requested_data is exist [13:26:06]produce_requested_data [13:26:06]requested_item fm.sn is exist - process it [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 11 00 00 [13:26:06]Write to MH i2c: E2 08 00 F0 22 80 11 00 00 00 00 00 00 8C [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 17 00 F0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [13:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:26:06]wFMCommunicate OK [13:26:06]requested_item fd.num is exist - process it [13:26:06]SAM_PROTO_GetFieldsCounters [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 13 00 00 [13:26:06]Write to MH i2c: E2 08 00 F1 22 80 13 00 00 00 00 00 00 8F [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 62 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 62 00 F1 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 64 02 00 0E 04 04 00 1A 02 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 77 [13:26: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 64 02 00 0E 04 04 00 1A 02 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 [13:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_GetFieldsCounters done [13:26:06]requested_item shift.num is exist - process it [13:26:06]requested_item shift.opened is exist - process it [13:26:06]req_shift_opened [13:26:06]FM_GetShiftState [13:26:06]SAM_PROTO_GetShiftState [13:26:06]wFMCommunicate request_size=4 [13:26:06]MH_SAM_APDU [13:26:06]CAPDU: 80 13 01 00 [13:26:06]Write to MH i2c: E2 08 00 F2 22 80 13 01 00 00 00 00 00 91 [13:26:06]Write i2c OK [13:26:06]MH_I2C_Read... [13:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:06]Read from MH i2c: E2 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 0E 00 [13:26:06]MH_I2C_Read... [13:26:06]Read from MH i2c: E2 0E 00 F2 22 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 83 [13:26:06]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:26:06]wFMCommunicate OK [13:26:06]SAM_PROTO_GetShiftState done [13:26:06]FM_GetShiftState done [13:26:06]req_shift_opened done [13:26:06]requested_item shift.open_date is exist - process it [13:26:06]req_shift_open_date [13:26:06]req_shift_open_date done [13:26:06]produce_requested_data done [13:26:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156900,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:26:06]process_action_free close_receipt [13:26:06]json_value_free [13:26:06]json_value_free done [13:26:06]process_json_proto returns [13:26:06]Send response to host [13:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156900,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:26:06]free response buf [13:26:06]execute_script done [13:26:06]execute_script returns [13:26:06]free content buf [13:26:06]Sock 9.Close socket [13:26:06]Sock 9.Thread stoped [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 F3 22 15 [13:26:51]*** FLAG_PRN_KEY set [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 F3 22 00 08 00 00 00 FF 0F 32 [13:26:51]state=0 [13:26:51]Key pressed [13:26:51]Feed [13:26:51]Write to MH i2c: D8 00 00 F4 22 ED [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 F4 22 00 EE [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 F5 22 17 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 F5 22 00 48 00 00 00 3D 00 A3 [13:26:51]state=2 [13:26:51]Key pressed [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 F6 22 18 [13:26:51]*** FLAG_PRN_KEY reset [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 F6 22 00 00 00 00 00 F5 0F 23 [13:26:51]state=2 [13:26:51]Stop feed [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 F7 22 19 [13:26:51]*** FLAG_PRN_KEY set [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 F7 22 00 08 00 00 00 FF 0F 36 [13:26:51]state=0 [13:26:51]Key pressed [13:26:51]Feed [13:26:51]Write to MH i2c: D8 00 00 F8 22 F1 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 F8 22 00 F2 [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 F9 22 1B [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 F9 22 00 48 00 00 00 3C 00 A6 [13:26:51]state=2 [13:26:51]Key pressed [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 FA 22 1C [13:26:51]*** FLAG_PRN_KEY reset [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 F5 0F 27 [13:26:51]state=2 [13:26:51]Stop feed [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 FB 22 1D [13:26:51]*** FLAG_PRN_KEY set [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 FB 22 00 08 00 00 00 FF 0F 3A [13:26:51]state=0 [13:26:51]Key pressed [13:26:51]Feed [13:26:51]Write to MH i2c: D8 00 00 FC 22 F5 [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: D8 01 00 FC 22 00 F6 [13:26:51]int [13:26:51]Write to MH i2c: 01 00 00 FD 22 1F [13:26:51]Write i2c OK [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 [13:26:51]MH_I2C_Read... [13:26:51]Read from MH i2c: 01 07 00 FD 22 00 48 00 00 00 3C 00 AA [13:26:51]state=2 [13:26:51]Key pressed [13:26:52]int [13:26:52]Write to MH i2c: 01 00 00 FE 22 20 [13:26:52]*** FLAG_PRN_KEY reset [13:26:52]Write i2c OK [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 [13:26:52]MH_I2C_Read... [13:26:52]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 F6 0F 2C [13:26:52]state=2 [13:26:52]Stop feed [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:29]accept exits with 7 [13:27:29]New connection [13:27:29]New thread 3066748260 created [13:27:29]Thread 3066604900 joined [13:27:29]Waiting for new connection... [13:27:29] Sock 7.Parse request [13:27:29]Sock 7.Check first char [13:27:29]Sock 7.First char is OK [13:27:29]request: POST /json_proto HTTP/1.0 [13:27:29]Method: POST [13:27:29]URL: /json_proto [13:27:29]Method is POST - this is cgi request [13:27:29]url: /json_proto [13:27:29]query_string will be loaded in cgi processing [13:27:29]execute_cgi json_proto POST (null) [13:27:29]execute_cgi path=json_proto method=POST [13:27:29]POST find Content-Length [13:27:29]Host: 172.17.63.3:8080 [13:27:29]Content-Length: 673 [13:27:29]Content-Type: application/json [13:27:29] [13:27:29]POST finish read [13:27:29]Found Content-Length = 673 [13:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:27:29]execute_script... [13:27: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)99717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:27:29]POST & json_proto [13:27:29]process_json_proto [13:27:29]json parsed OK: [13:27:29]protocol is kg_v1.0 [13:27:29]action value=close_receipt [13:27:29]process_action close_receipt [13:27:29]cmd_close_receipt [13:27:29]MH_GetDate [13:27:29]Write to MH i2c: F0 00 00 FF 22 10 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 FF 22 00 44 91 1F 67 50 D1 6C 64 65 [13:27:29]GetLastDocTimeStamp 1730121966 [13:27:29]current date 1730122052 [13:27:29]FM_GetShiftState [13:27:29]SAM_PROTO_GetShiftState [13:27:29]wFMCommunicate request_size=4 [13:27:29]MH_SAM_APDU [13:27:29]CAPDU: 80 13 01 00 [13:27:29]Write to MH i2c: E2 08 00 00 23 80 13 01 00 00 00 00 00 A0 [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:29]Read from MH i2c: E2 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 00 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 92 [13:27:29]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:27:29]wFMCommunicate OK [13:27:29]SAM_PROTO_GetShiftState done [13:27:29]FM_GetShiftState done [13:27:29]opened in 1730075526 [13:27:29]opened+sec_in_day 1730161926 [13:27:29]quantity*price = 40005 [13:27:29]sum+1 = 40006 [13:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 117 28.10.2024 13:27 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156901 ФПД: 203732287625410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132732&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156901&fm=203732287625410&tin=02508201610067®Number=0000000000091693&sum=40000 [13:27:30]StoreToDocumentArchive [13:27:30]shift 538 fd 156901 [13:27:30]save to /storage/0538/doc_00156901 [13:27:30]save last doc name /storage/0538/doc_00156901 to /storage/kkm_last_doc_name [13:27:30]save OK [13:27:30]Clear old archive folders... [13:27:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:27:30]tlvbuf is 01AA2C30 [13:27:30]SAM_PROTO_ClearQueue [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 09 00 00 [13:27:30]Write to MH i2c: E2 08 00 0D 23 80 09 00 00 00 00 00 00 A2 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]SAM_PROTO_ClearQueue done [13:27:30]KKMCreateOFDPacket [13:27:30]OFDProtocolAddRootSTLVToBuf [13:27:30]FM_MakeSignedData [13:27:30]FM_MakeSignedData [13:27:30]SAM_PROTO_SignData [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 01 02 [13:27:30]Write to MH i2c: E2 08 00 0E 23 80 0D 01 02 00 00 00 00 AA [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=255 [13:27:30]MH_SAM_APDU [13:27: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 64 02 00 35 04 06 00 B9 4B 1E A2 [13:27:30]Write to MH i2c: E2 02 01 0F 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 64 02 00 35 04 06 00 B9 4B 1E A2 00 00 22 [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=7 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 02 02 02 18 C2 [13:27:30]Write to MH i2c: E2 0A 00 10 23 80 0D 02 02 02 00 18 C2 00 00 8B [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:30]Read from MH i2c: E2 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 [13:27:30]MH_I2C_Read... [13:27:30]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [13:27:30]RAPDU: 90 00 [13:27:30]wFMCommunicate OK [13:27:30]wFMCommunicate request_size=4 [13:27:30]MH_SAM_APDU [13:27:30]CAPDU: 80 0D 03 02 [13:27:30]Write to MH i2c: E2 08 00 11 23 80 0D 03 02 00 00 00 00 AF [13:27:30]Write i2c OK [13:27:30]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 11 23 00 07 81 FA 19 0A 70 05 0A 90 00 D4 [13:27:31]RAPDU: 07 81 FA 19 0A 70 05 0A 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_SignData done [13:27:31]FM_MakeSignedData done [13:27:31]CreateOFDProtocolMessage [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 11 00 00 [13:27:31]Write to MH i2c: E2 08 00 12 23 80 11 00 00 00 00 00 00 AF [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 12 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [13:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:27:31]wFMCommunicate OK [13:27:31]CreateOFDProtocolMessage done [13:27:31]OFDSenderStorePacket 156901 [13:27:31]StoreOFDPacket docnum=156901 [13:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 23 C5 04 01 7B 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 64 02 00 35 04 06 00 B9 4B 1E A2 18 C2 07 81 FA 19 0A 70 05 0A [13:27:31]CheckFolder [13:27:31]dirname=/storage/ofd_packets [13:27:31]CheckFolder done [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00156901 [13:27:31]NVStorageSaveData ofd_packets/00156901 [13:27:31]File name is /storage/ofd_packets/00156901 [13:27:31]Write 298 bytes [13:27:31]NVStorageSaveData done [13:27:31]OFDSenderStorePacket done [13:27:31]KKMCreateOFDPacket done [13:27:31]NVStorageSaveData kkm_last_timestamp [13:27:31]File name is /storage/kkm_last_timestamp [13:27:31]Write 4 bytes [13:27:31]NVStorageSaveData done [13:27:31]ExternCall_PrintAddStr [13:27:31]wPrintStart [13:27:31]Write to MH i2c: 01 00 00 13 23 36 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 13 23 00 00 00 00 00 FF 0F 4B [13:27:31]RasterBufferAndPrint [13:27:31]line Счет N : (1)99717 [13:27:31]line ИНН: 02508201610067 [13:27:31]line Контрольно-Кассовый Чек [13:27:31]line ПРОДАЖА [13:27:31]line ТРК (МРК, ГНК) : 32 [13:27:31]line Товар: 2710194210 [13:27:31]line ДТ-К-5 [13:27:31]line 5.250 * 76.20 [13:27:31]line = 400.05 [13:27:31]line НДС 12% НСП 1% [13:27:31]line > о реализуемом товаре [13:27:31]line ОКРУГЛЕНИЕ: -0.05 [13:27:31]line ИТОГО: 400.00 [13:27:31]line Внесено: 400.00 [13:27:31]line СДАЧА: 0.00 [13:27:31]line НСП 1% : 3.54 [13:27:31]line НДС 12% : 42.48 [13:27:31]line Наличными: 400.00 [13:27:31]line Безнал.: 0.00 [13:27:31]line Место: АЗС № 143 "Партнер Нефть" [13:27:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:27:31]line СНО: Общий режим [13:27:31]line Чек 117 28.10.2024 13:27 [13:27:31]line Смена: 538 ФФД: 1.0 [13:27:31]line ЗНМ: 0300000096 [13:27:31]line РНМ: 0000000000091693 [13:27:31]line Версия ККМ: 001 [13:27:31]line ФМ: 0000000000871792 [13:27:31]line ФД: 156901 [13:27:31]line ФПД: 203732287625410 [13:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132732&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156901&fm=203732287625410&tin=02508201610067®Number=0000000000091693&sum=40000 [13:27:31]OFD Sender: Processing packet 156901 [packets to send 31, broken 30] [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00156901 [13:27:31]OFD Sender: To server: pG, [13:27:31]CommunicateWithHost lk.salyk.kg:30040 [13:27:31]ConnectInit lk.salyk.kg [13:27:31]written 0, free lines is 4095 [13:27:31]Connected sock=10 [13:27: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 37 39 32 0C 01 00 00 23 C5 04 01 7B 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 44 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 64 02 00 35 04 06 00 B9 4B 1E A2 18 C2 07 81 FA 19 0A 70 05 0A [13:27:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 42 92 47 00 17 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 37 39 32 10 04 04 00 E5 64 02 00 F4 03 04 00 B0 36 1F 67 B6 04 01 00 00 A1 DD FD 6B 4C 04 7B 67 [13:27:31]CommunicateWithHost err = 0 [13:27:31]CheckOFDResponse [13:27:31]1017 (14) - 77093643461234 [13:27:31]1041 (16) - 0000000000871792 [13:27:31]1040 (4) - 156901 [13:27:31]1012 (4) - 28.10.2024 07:01 [13:27:31]1206 (1) - 0 [13:27:31]OFD Sender: Remove packet 156901 [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00156901 [13:27:31]NVStorageDeleteData [13:27:31]Write to MH i2c: 01 00 00 3E 23 61 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 3E 23 00 00 00 00 00 D4 0C 48 [13:27:31]RasterBufferAndPrint [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]line [13:27:31]written 0, free lines is 3292 [13:27:31]process_action close_receipt done [13:27:31]requested_data is exist [13:27:31]produce_requested_data [13:27:31]requested_item fm.sn is exist - process it [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 11 00 00 [13:27:31]Write to MH i2c: E2 08 00 45 23 80 11 00 00 00 00 00 00 E2 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 45 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [13:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:27:31]wFMCommunicate OK [13:27:31]requested_item fd.num is exist - process it [13:27:31]SAM_PROTO_GetFieldsCounters [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 13 00 00 [13:27:31]Write to MH i2c: E2 08 00 46 23 80 13 00 00 00 00 00 00 E5 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 62 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 62 00 46 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 64 02 00 0E 04 04 00 1A 02 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 D1 [13:27: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 64 02 00 0E 04 04 00 1A 02 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 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetFieldsCounters done [13:27:32]requested_item shift.num is exist - process it [13:27:32]requested_item shift.opened is exist - process it [13:27:32]req_shift_opened [13:27:32]FM_GetShiftState [13:27:32]SAM_PROTO_GetShiftState [13:27:32]wFMCommunicate request_size=4 [13:27:32]MH_SAM_APDU [13:27:32]CAPDU: 80 13 01 00 [13:27:32]Write to MH i2c: E2 08 00 47 23 80 13 01 00 00 00 00 00 E7 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:32]Read from MH i2c: E2 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: E2 0E 00 47 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D9 [13:27:32]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:27:32]wFMCommunicate OK [13:27:32]SAM_PROTO_GetShiftState done [13:27:32]FM_GetShiftState done [13:27:32]req_shift_opened done [13:27:32]requested_item shift.open_date is exist - process it [13:27:32]req_shift_open_date [13:27:32]req_shift_open_date done [13:27:32]produce_requested_data done [13:27:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156901,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:27:32]process_action_free close_receipt [13:27:32]json_value_free [13:27:32]json_value_free done [13:27:32]process_json_proto returns [13:27:32]Send response to host [13:27:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156901,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:27:32]free response buf [13:27:32]execute_script done [13:27:32]execute_script returns [13:27:32]free content buf [13:27:32]Sock 7.Close socket [13:27:32]Sock 7.Thread stoped [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:01]accept exits with 9 [13:29:01]New connection [13:29:01]New thread 3066604900 created [13:29:01]Thread 3066748260 joined [13:29:01]Waiting for new connection... [13:29:01] Sock 9.Parse request [13:29:01]Sock 9.Check first char [13:29:01]Sock 9.First char is OK [13:29:01]request: POST /json_proto HTTP/1.0 [13:29:01]Method: POST [13:29:01]URL: /json_proto [13:29:01]Method is POST - this is cgi request [13:29:01]url: /json_proto [13:29:01]query_string will be loaded in cgi processing [13:29:01]execute_cgi json_proto POST (null) [13:29:01]execute_cgi path=json_proto method=POST [13:29:01]POST find Content-Length [13:29:01]Host: 172.17.63.3:8080 [13:29:01]Content-Length: 678 [13:29:01]Content-Type: application/json [13:29:01] [13:29:01]POST finish read [13:29:01]Found Content-Length = 678 [13:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [13:29:01]execute_script... [13:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [13:29:01]POST & json_proto [13:29:01]process_json_proto [13:29:01]json parsed OK: [13:29:01]protocol is kg_v1.0 [13:29:01]action value=close_receipt [13:29:01]process_action close_receipt [13:29:01]cmd_close_receipt [13:29:01]MH_GetDate [13:29:01]Write to MH i2c: F0 00 00 48 23 5A [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: F0 09 00 48 23 00 A0 91 1F 67 50 D1 6C 64 0B [13:29:01]GetLastDocTimeStamp 1730122052 [13:29:01]current date 1730122144 [13:29:01]FM_GetShiftState [13:29:01]SAM_PROTO_GetShiftState [13:29:01]wFMCommunicate request_size=4 [13:29:01]MH_SAM_APDU [13:29:01]CAPDU: 80 13 01 00 [13:29:01]Write to MH i2c: E2 08 00 49 23 80 13 01 00 00 00 00 00 E9 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:01]Read from MH i2c: E2 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: E2 0E 00 49 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DB [13:29:01]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:29:01]wFMCommunicate OK [13:29:01]SAM_PROTO_GetShiftState done [13:29:01]FM_GetShiftState done [13:29:01]opened in 1730075526 [13:29:01]opened+sec_in_day 1730161926 [13:29:01]quantity*price = 100050 [13:29:01]sum+1 = 100052 [13:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 118 28.10.2024 13:29 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156902 ФПД: 215903916483163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132904&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156902&fm=215903916483163&tin=02508201610067®Number=0000000000091693&sum=100000 [13:29:02]StoreToDocumentArchive [13:29:02]shift 538 fd 156902 [13:29:02]save to /storage/0538/doc_00156902 [13:29:02]save last doc name /storage/0538/doc_00156902 to /storage/kkm_last_doc_name [13:29:02]save OK [13:29:02]Clear old archive folders... [13:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:29:02]tlvbuf is 01A5D280 [13:29:02]SAM_PROTO_ClearQueue [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 09 00 00 [13:29:02]Write to MH i2c: E2 08 00 56 23 80 09 00 00 00 00 00 00 EB [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 56 23 00 90 00 ED [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_ClearQueue done [13:29:02]KKMCreateOFDPacket [13:29:02]OFDProtocolAddRootSTLVToBuf [13:29:02]FM_MakeSignedData [13:29:02]FM_MakeSignedData [13:29:02]SAM_PROTO_SignData [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 0D 01 02 [13:29:02]Write to MH i2c: E2 08 00 57 23 80 0D 01 02 00 00 00 00 F3 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 03 00 57 23 00 90 00 EE [13:29:02]RAPDU: 90 00 [13:29:02]wFMCommunicate OK [13:29:02]wFMCommunicate request_size=255 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 76 00 00 00 F4 03 04 00 A0 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 64 02 00 35 04 06 00 C4 5D 0C 3F [13:29:02]Write to MH i2c: E2 02 01 58 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 76 00 00 00 F4 03 04 00 A0 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 64 02 00 35 04 06 00 C4 5D 0C 3F 00 00 7E [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=7 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 02 02 02 62 5B [13:29:03]Write to MH i2c: E2 0A 00 59 23 80 0D 02 02 02 00 62 5B 00 00 B7 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [13:29:03]RAPDU: 90 00 [13:29:03]wFMCommunicate OK [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 0D 03 02 [13:29:03]Write to MH i2c: E2 08 00 5A 23 80 0D 03 02 00 00 00 00 F8 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 0B 00 5A 23 00 74 25 B0 52 FA 0A 7E 57 90 00 6D [13:29:03]RAPDU: 74 25 B0 52 FA 0A 7E 57 90 00 [13:29:03]wFMCommunicate OK [13:29:03]SAM_PROTO_SignData done [13:29:03]FM_MakeSignedData done [13:29:03]CreateOFDProtocolMessage [13:29:03]wFMCommunicate request_size=4 [13:29:03]MH_SAM_APDU [13:29:03]CAPDU: 80 11 00 00 [13:29:03]Write to MH i2c: E2 08 00 5B 23 80 11 00 00 00 00 00 00 F8 [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:03]Read from MH i2c: E2 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: E2 17 00 5B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4D [13:29:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:29:03]wFMCommunicate OK [13:29:03]CreateOFDProtocolMessage done [13:29:03]OFDSenderStorePacket 156902 [13:29:03]StoreOFDPacket docnum=156902 [13:29:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2E BA 04 01 C3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 76 00 00 00 F4 03 04 00 A0 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 64 02 00 35 04 06 00 C4 5D 0C 3F 62 5B 74 25 B0 52 FA 0A 7E 57 [13:29:03]CheckFolder [13:29:03]dirname=/storage/ofd_packets [13:29:03]CheckFolder done [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00156902 [13:29:03]NVStorageSaveData ofd_packets/00156902 [13:29:03]File name is /storage/ofd_packets/00156902 [13:29:03]Write 298 bytes [13:29:03]NVStorageSaveData done [13:29:03]OFDSenderStorePacket done [13:29:03]KKMCreateOFDPacket done [13:29:03]NVStorageSaveData kkm_last_timestamp [13:29:03]File name is /storage/kkm_last_timestamp [13:29:03]Write 4 bytes [13:29:03]NVStorageSaveData done [13:29:03]ExternCall_PrintAddStr [13:29:03]wPrintStart [13:29:03]Write to MH i2c: 01 00 00 5C 23 7F [13:29:03]Write i2c OK [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 [13:29:03]MH_I2C_Read... [13:29:03]Read from MH i2c: 01 07 00 5C 23 00 00 00 00 00 FF 0F 94 [13:29:03]RasterBufferAndPrint [13:29:03]line Счет N : (1)99718 [13:29:03]line ИНН: 02508201610067 [13:29:03]line Контрольно-Кассовый Чек [13:29:03]line ПРОДАЖА [13:29:03]line ТРК (МРК, ГНК) : 32 [13:29:03]line Товар: 2710194210 [13:29:03]line ДТ-К-5 [13:29:03]line 13.130 * 76.20 [13:29:03]line = 1000.51 [13:29:03]line НДС 12% НСП 1% [13:29:03]line > о реализуемом товаре [13:29:03]line ОКРУГЛЕНИЕ: -0.51 [13:29:03]line ИТОГО: 1000.00 [13:29:03]line Внесено: 1000.00 [13:29:03]line СДАЧА: 0.00 [13:29:03]line НСП 1% : 8.85 [13:29:03]line НДС 12% : 106.25 [13:29:03]line Наличными: 1000.00 [13:29:03]line Безнал.: 0.00 [13:29:03]line Место: АЗС № 143 "Партнер Нефть" [13:29:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:29:03]line СНО: Общий режим [13:29:03]line Чек 118 28.10.2024 13:29 [13:29:03]line Смена: 538 ФФД: 1.0 [13:29:03]line ЗНМ: 0300000096 [13:29:03]line РНМ: 0000000000091693 [13:29:03]line Версия ККМ: 001 [13:29:03]line ФМ: 0000000000871792 [13:29:03]line ФД: 156902 [13:29:03]line ФПД: 215903916483163 [13:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132904&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156902&fm=215903916483163&tin=02508201610067®Number=0000000000091693&sum=100000 [13:29:03]OFD Sender: Processing packet 156902 [packets to send 31, broken 30] [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00156902 [13:29:03]OFD Sender: To server: pG, [13:29:03]CommunicateWithHost lk.salyk.kg:30040 [13:29:03]ConnectInit lk.salyk.kg [13:29:03]written 0, free lines is 4095 [13:29:03]Connected sock=10 [13:29: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 37 39 32 0C 01 00 00 2E BA 04 01 C3 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 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 81 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 76 00 00 00 F4 03 04 00 A0 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 64 02 00 35 04 06 00 C4 5D 0C 3F 62 5B 74 25 B0 52 FA 0A 7E 57 [13:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 30 98 47 00 2F D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 64 02 00 F4 03 04 00 0D 37 1F 67 B6 04 01 00 00 45 35 3C F4 32 9F 94 20 [13:29:03]CommunicateWithHost err = 0 [13:29:03]CheckOFDResponse [13:29:03]1017 (14) - 77093643461234 [13:29:03]1041 (16) - 0000000000871792 [13:29:03]1040 (4) - 156902 [13:29:03]1012 (4) - 28.10.2024 07:02 [13:29:03]1206 (1) - 0 [13:29:03]OFD Sender: Remove packet 156902 [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00156902 [13:29:03]NVStorageDeleteData [13:29:04]Write to MH i2c: 01 00 00 87 23 AA [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: 01 07 00 87 23 00 00 00 00 00 D6 0C 93 [13:29:04]RasterBufferAndPrint [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]line [13:29:04]written 0, free lines is 3294 [13:29:04]process_action close_receipt done [13:29:04]requested_data is exist [13:29:04]produce_requested_data [13:29:04]requested_item fm.sn is exist - process it [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 11 00 00 [13:29:04]Write to MH i2c: E2 08 00 8E 23 80 11 00 00 00 00 00 00 2B [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 17 00 8E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [13:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:29:04]wFMCommunicate OK [13:29:04]requested_item fd.num is exist - process it [13:29:04]SAM_PROTO_GetFieldsCounters [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 00 00 [13:29:04]Write to MH i2c: E2 08 00 8F 23 80 13 00 00 00 00 00 00 2E [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 62 00 8F 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 64 02 00 0E 04 04 00 1A 02 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 1E [13:29:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 64 02 00 0E 04 04 00 1A 02 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 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetFieldsCounters done [13:29:04]requested_item shift.num is exist - process it [13:29:04]requested_item shift.opened is exist - process it [13:29:04]req_shift_opened [13:29:04]FM_GetShiftState [13:29:04]SAM_PROTO_GetShiftState [13:29:04]wFMCommunicate request_size=4 [13:29:04]MH_SAM_APDU [13:29:04]CAPDU: 80 13 01 00 [13:29:04]Write to MH i2c: E2 08 00 90 23 80 13 01 00 00 00 00 00 30 [13:29:04]Write i2c OK [13:29:04]MH_I2C_Read... [13:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:04]Read from MH i2c: E2 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 [13:29:04]MH_I2C_Read... [13:29:04]Read from MH i2c: E2 0E 00 90 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 22 [13:29:04]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:29:04]wFMCommunicate OK [13:29:04]SAM_PROTO_GetShiftState done [13:29:04]FM_GetShiftState done [13:29:04]req_shift_opened done [13:29:04]requested_item shift.open_date is exist - process it [13:29:04]req_shift_open_date [13:29:04]req_shift_open_date done [13:29:04]produce_requested_data done [13:29:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156902,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:29:04]process_action_free close_receipt [13:29:04]json_value_free [13:29:04]json_value_free done [13:29:04]process_json_proto returns [13:29:04]Send response to host [13:29:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156902,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:29:04]free response buf [13:29:04]execute_script done [13:29:04]execute_script returns [13:29:04]free content buf [13:29:04]Sock 9.Close socket [13:29:04]Sock 9.Thread stoped [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:49]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:29]accept exits with 7 [13:30:29]New connection [13:30:29]New thread 3066748260 created [13:30:29]Thread 3066604900 joined [13:30:29]Waiting for new connection... [13:30:29] Sock 7.Parse request [13:30:29]Sock 7.Check first char [13:30:29]Sock 7.First char is OK [13:30:29]request: POST /json_proto HTTP/1.0 [13:30:29]Method: POST [13:30:29]URL: /json_proto [13:30:29]Method is POST - this is cgi request [13:30:29]url: /json_proto [13:30:29]query_string will be loaded in cgi processing [13:30:29]execute_cgi json_proto POST (null) [13:30:29]execute_cgi path=json_proto method=POST [13:30:29]POST find Content-Length [13:30:29]Host: 172.17.63.3:8080 [13:30:29]Content-Length: 677 [13:30:29]Content-Type: application/json [13:30:29] [13:30:29]POST finish read [13:30:29]Found Content-Length = 677 [13:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:29]execute_script... [13:30: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)99719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.260, "sum" : 820.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 820.00, "total" : 820.00, "payments": [ { "type": 0, "sum" : 820.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:29]POST & json_proto [13:30:29]process_json_proto [13:30:29]json parsed OK: [13:30:29]protocol is kg_v1.0 [13:30:29]action value=close_receipt [13:30:29]process_action close_receipt [13:30:29]cmd_close_receipt [13:30:29]MH_GetDate [13:30:29]Write to MH i2c: F0 00 00 91 23 A3 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 09 00 [13:30:29]MH_I2C_Read... [13:30:29]Read from MH i2c: F0 09 00 91 23 00 F9 91 1F 67 50 D1 6C 64 AD [13:30:29]GetLastDocTimeStamp 1730122144 [13:30:29]current date 1730122233 [13:30:29]FM_GetShiftState [13:30:29]SAM_PROTO_GetShiftState [13:30:29]wFMCommunicate request_size=4 [13:30:29]MH_SAM_APDU [13:30:29]CAPDU: 80 13 01 00 [13:30:29]Write to MH i2c: E2 08 00 92 23 80 13 01 00 00 00 00 00 32 [13:30:29]Write i2c OK [13:30:29]MH_I2C_Read... [13:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:30]Read from MH i2c: E2 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 0E 00 [13:30:30]MH_I2C_Read... [13:30:30]Read from MH i2c: E2 0E 00 92 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 24 [13:30:30]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:30:30]wFMCommunicate OK [13:30:30]SAM_PROTO_GetShiftState done [13:30:30]FM_GetShiftState done [13:30:30]opened in 1730075526 [13:30:30]opened+sec_in_day 1730161926 [13:30:30]quantity*price = 82019 [13:30:30]sum+1 = 82020 [13:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 820.00 Внесено: 820.00 СДАЧА: 0.00 НСП 1% : 7.26 НДС 12% : 87.10 Наличными: 820.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 119 28.10.2024 13:30 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156903 ФПД: 95324487645972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133033&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156903&fm=95324487645972&tin=02508201610067®Number=0000000000091693&sum=82000 [13:30:31]StoreToDocumentArchive [13:30:31]shift 538 fd 156903 [13:30:31]save to /storage/0538/doc_00156903 [13:30:31]save last doc name /storage/0538/doc_00156903 to /storage/kkm_last_doc_name [13:30:31]save OK [13:30:31]Clear old archive folders... [13:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:31]tlvbuf is 01AAF350 [13:30:31]SAM_PROTO_ClearQueue [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 09 00 00 [13:30:31]Write to MH i2c: E2 08 00 9F 23 80 09 00 00 00 00 00 00 34 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 9F 23 00 90 00 36 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]SAM_PROTO_ClearQueue done [13:30:31]KKMCreateOFDPacket [13:30:31]OFDProtocolAddRootSTLVToBuf [13:30:31]FM_MakeSignedData [13:30:31]FM_MakeSignedData [13:30:31]SAM_PROTO_SignData [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 01 02 [13:30:31]Write to MH i2c: E2 08 00 A0 23 80 0D 01 02 00 00 00 00 3C [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 A0 23 00 90 00 37 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]wFMCommunicate request_size=255 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 F9 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 64 02 00 35 04 06 00 56 [13:30:31]Write to MH i2c: E2 02 01 A1 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 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 F9 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 64 02 00 35 04 06 00 56 00 00 A6 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 A1 23 00 90 00 38 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]wFMCommunicate request_size=10 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 02 02 05 B2 76 39 7B 14 [13:30:31]Write to MH i2c: E2 0D 00 A2 23 80 0D 02 02 05 00 B2 76 39 7B 14 00 00 39 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 03 00 A2 23 00 90 00 39 [13:30:31]RAPDU: 90 00 [13:30:31]wFMCommunicate OK [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 0D 03 02 [13:30:31]Write to MH i2c: E2 08 00 A3 23 80 0D 03 02 00 00 00 00 41 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 0B 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 0B 00 A3 23 00 CC BB 3F 73 EE 37 F2 C5 90 00 57 [13:30:31]RAPDU: CC BB 3F 73 EE 37 F2 C5 90 00 [13:30:31]wFMCommunicate OK [13:30:31]SAM_PROTO_SignData done [13:30:31]FM_MakeSignedData done [13:30:31]CreateOFDProtocolMessage [13:30:31]wFMCommunicate request_size=4 [13:30:31]MH_SAM_APDU [13:30:31]CAPDU: 80 11 00 00 [13:30:31]Write to MH i2c: E2 08 00 A4 23 80 11 00 00 00 00 00 00 41 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:31]Read from MH i2c: E2 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 17 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: E2 17 00 A4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [13:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:30:31]wFMCommunicate OK [13:30:31]CreateOFDProtocolMessage done [13:30:31]OFDSenderStorePacket 156903 [13:30:31]StoreOFDPacket docnum=156903 [13:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 63 57 07 01 01 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 F9 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 64 02 00 35 04 06 00 56 B2 76 39 7B 14 CC BB 3F 73 EE 37 F2 C5 [13:30:31]CheckFolder [13:30:31]dirname=/storage/ofd_packets [13:30:31]CheckFolder done [13:30:31]ProducePacketName [13:30:31]name=ofd_packets/00156903 [13:30:31]NVStorageSaveData ofd_packets/00156903 [13:30:31]File name is /storage/ofd_packets/00156903 [13:30:31]Write 301 bytes [13:30:31]NVStorageSaveData done [13:30:31]OFDSenderStorePacket done [13:30:31]KKMCreateOFDPacket done [13:30:31]NVStorageSaveData kkm_last_timestamp [13:30:31]File name is /storage/kkm_last_timestamp [13:30:31]Write 4 bytes [13:30:31]NVStorageSaveData done [13:30:31]ExternCall_PrintAddStr [13:30:31]wPrintStart [13:30:31]Write to MH i2c: 01 00 00 A5 23 C8 [13:30:31]Write i2c OK [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 [13:30:31]MH_I2C_Read... [13:30:31]Read from MH i2c: 01 07 00 A5 23 00 00 00 00 00 FF 0F DD [13:30:31]RasterBufferAndPrint [13:30:31]line Счет N : (1)99719 [13:30:31]line ИНН: 02508201610067 [13:30:31]line Контрольно-Кассовый Чек [13:30:31]line ПРОДАЖА [13:30:31]line ТРК (МРК, ГНК) : 31 [13:30:31]line Товар: 2710124130 [13:30:31]line Аи-92-К-5 [13:30:31]line 12.260 * 66.90 [13:30:31]line = 820.19 [13:30:31]line НДС 12% НСП 1% [13:30:31]line > о реализуемом товаре [13:30:31]line ОКРУГЛЕНИЕ: -0.19 [13:30:31]line ИТОГО: 820.00 [13:30:31]line Внесено: 820.00 [13:30:31]line СДАЧА: 0.00 [13:30:31]line НСП 1% : 7.26 [13:30:31]line НДС 12% : 87.10 [13:30:31]line Наличными: 820.00 [13:30:31]line Безнал.: 0.00 [13:30:31]line Место: АЗС № 143 "Партнер Нефть" [13:30:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:30:31]line СНО: Общий режим [13:30:31]line Чек 119 28.10.2024 13:30 [13:30:31]line Смена: 538 ФФД: 1.0 [13:30:31]line ЗНМ: 0300000096 [13:30:31]line РНМ: 0000000000091693 [13:30:31]line Версия ККМ: 001 [13:30:31]line ФМ: 0000000000871792 [13:30:31]line ФД: 156903 [13:30:31]line ФПД: 95324487645972 [13:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133033&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156903&fm=95324487645972&tin=02508201610067®Number=0000000000091693&sum=82000 [13:30:32]OFD Sender: Processing packet 156903 [packets to send 31, broken 30] [13:30:32]ProducePacketName [13:30:32]name=ofd_packets/00156903 [13:30:32]OFD Sender: To server: pG, [13:30:32]CommunicateWithHost lk.salyk.kg:30040 [13:30:32]ConnectInit lk.salyk.kg [13:30:32]written 0, free lines is 4095 [13:30:32]Connected sock=10 [13:30: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 37 39 32 0F 01 00 00 63 57 07 01 01 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 63 40 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 40 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 22 00 00 00 00 07 04 06 00 50 40 01 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 F9 91 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 64 02 00 35 04 06 00 56 B2 76 39 7B 14 CC BB 3F 73 EE 37 F2 C5 [13:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 79 47 47 00 3D 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 64 02 00 F4 03 04 00 65 37 1F 67 B6 04 01 00 00 A1 FF 58 A4 19 EE 7E 8E [13:30:32]CommunicateWithHost err = 0 [13:30:32]CheckOFDResponse [13:30:32]1017 (14) - 77093643461234 [13:30:32]1041 (16) - 0000000000871792 [13:30:32]1040 (4) - 156903 [13:30:32]1012 (4) - 28.10.2024 07:04 [13:30:32]1206 (1) - 0 [13:30:32]OFD Sender: Remove packet 156903 [13:30:32]ProducePacketName [13:30:32]name=ofd_packets/00156903 [13:30:32]NVStorageDeleteData [13:30:32]Write to MH i2c: 01 00 00 D0 23 F3 [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: 01 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: 01 07 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: 01 07 00 D0 23 00 00 00 00 00 DC 0C E2 [13:30:32]RasterBufferAndPrint [13:30:32]line [13:30:32]line [13:30:32]line [13:30:32]line [13:30:32]line [13:30:32]written 0, free lines is 3298 [13:30:32]process_action close_receipt done [13:30:32]requested_data is exist [13:30:32]produce_requested_data [13:30:32]requested_item fm.sn is exist - process it [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 11 00 00 [13:30:32]Write to MH i2c: E2 08 00 D7 23 80 11 00 00 00 00 00 00 74 [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 17 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 17 00 D7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [13:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:30:32]wFMCommunicate OK [13:30:32]requested_item fd.num is exist - process it [13:30:32]SAM_PROTO_GetFieldsCounters [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 13 00 00 [13:30:32]Write to MH i2c: E2 08 00 D8 23 80 13 00 00 00 00 00 00 77 [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 62 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 62 00 D8 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 64 02 00 0E 04 04 00 1A 02 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 6B [13:30: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 64 02 00 0E 04 04 00 1A 02 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 [13:30:32]wFMCommunicate OK [13:30:32]SAM_PROTO_GetFieldsCounters done [13:30:32]requested_item shift.num is exist - process it [13:30:32]requested_item shift.opened is exist - process it [13:30:32]req_shift_opened [13:30:32]FM_GetShiftState [13:30:32]SAM_PROTO_GetShiftState [13:30:32]wFMCommunicate request_size=4 [13:30:32]MH_SAM_APDU [13:30:32]CAPDU: 80 13 01 00 [13:30:32]Write to MH i2c: E2 08 00 D9 23 80 13 01 00 00 00 00 00 79 [13:30:32]Write i2c OK [13:30:32]MH_I2C_Read... [13:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:32]Read from MH i2c: E2 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 0E 00 [13:30:32]MH_I2C_Read... [13:30:32]Read from MH i2c: E2 0E 00 D9 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6B [13:30:32]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:30:32]wFMCommunicate OK [13:30:32]SAM_PROTO_GetShiftState done [13:30:32]FM_GetShiftState done [13:30:32]req_shift_opened done [13:30:32]requested_item shift.open_date is exist - process it [13:30:32]req_shift_open_date [13:30:32]req_shift_open_date done [13:30:32]produce_requested_data done [13:30:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156903,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:30:32]process_action_free close_receipt [13:30:32]json_value_free [13:30:32]json_value_free done [13:30:32]process_json_proto returns [13:30:32]Send response to host [13:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156903,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:30:32]free response buf [13:30:32]execute_script done [13:30:32]execute_script returns [13:30:32]free content buf [13:30:32]Sock 7.Close socket [13:30:32]Sock 7.Thread stoped [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:30:58]accept exits with 9 [13:30:58]New connection [13:30:58]New thread 3066604900 created [13:30:58]Thread 3066748260 joined [13:30:58]Waiting for new connection... [13:30:58] Sock 9.Parse request [13:30:58]Sock 9.Check first char [13:30:58]Sock 9.First char is OK [13:30:58]request: POST /json_proto HTTP/1.0 [13:30:58]Method: POST [13:30:58]URL: /json_proto [13:30:58]Method is POST - this is cgi request [13:30:58]url: /json_proto [13:30:58]query_string will be loaded in cgi processing [13:30:58]execute_cgi json_proto POST (null) [13:30:58]execute_cgi path=json_proto method=POST [13:30:58]POST find Content-Length [13:30:58]Host: 172.17.63.3:8080 [13:30:58]Content-Length: 676 [13:30:58]Content-Type: application/json [13:30:58] [13:30:58]POST finish read [13:30:58]Found Content-Length = 676 [13:30:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:58]execute_script... [13:30: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)99720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:58]POST & json_proto [13:30:58]process_json_proto [13:30:58]json parsed OK: [13:30:58]protocol is kg_v1.0 [13:30:58]action value=close_receipt [13:30:58]process_action close_receipt [13:30:58]cmd_close_receipt [13:30:58]MH_GetDate [13:30:58]Write to MH i2c: F0 00 00 DA 23 EC [13:30:58]Write i2c OK [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 09 00 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: F0 09 00 DA 23 00 15 92 1F 67 50 D1 6C 64 13 [13:30:58]GetLastDocTimeStamp 1730122233 [13:30:58]current date 1730122261 [13:30:58]FM_GetShiftState [13:30:58]SAM_PROTO_GetShiftState [13:30:58]wFMCommunicate request_size=4 [13:30:58]MH_SAM_APDU [13:30:58]CAPDU: 80 13 01 00 [13:30:58]Write to MH i2c: E2 08 00 DB 23 80 13 01 00 00 00 00 00 7B [13:30:58]Write i2c OK [13:30:58]MH_I2C_Read... [13:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:58]Read from MH i2c: E2 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: E2 0E 00 [13:30:58]MH_I2C_Read... [13:30:58]Read from MH i2c: E2 0E 00 DB 23 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6D [13:30:58]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:30:58]wFMCommunicate OK [13:30:58]SAM_PROTO_GetShiftState done [13:30:58]FM_GetShiftState done [13:30:58]opened in 1730075526 [13:30:58]opened+sec_in_day 1730161926 [13:30:58]quantity*price = 10035 [13:30:58]sum+1 = 10036 [13:30:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 120 28.10.2024 13:31 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156904 ФПД: 263143563831286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156904&fm=263143563831286&tin=02508201610067®Number=0000000000091693&sum=10000 [13:30:59]StoreToDocumentArchive [13:30:59]shift 538 fd 156904 [13:30:59]save to /storage/0538/doc_00156904 [13:30:59]save last doc name /storage/0538/doc_00156904 to /storage/kkm_last_doc_name [13:30:59]save OK [13:30:59]Clear old archive folders... [13:30:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:59]tlvbuf is 01AE1B50 [13:30:59]SAM_PROTO_ClearQueue [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 09 00 00 [13:30:59]Write to MH i2c: E2 08 00 E8 23 80 09 00 00 00 00 00 00 7D [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 E8 23 00 90 00 7F [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]SAM_PROTO_ClearQueue done [13:30:59]KKMCreateOFDPacket [13:30:59]OFDProtocolAddRootSTLVToBuf [13:30:59]FM_MakeSignedData [13:30:59]FM_MakeSignedData [13:30:59]SAM_PROTO_SignData [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 01 02 [13:30:59]Write to MH i2c: E2 08 00 E9 23 80 0D 01 02 00 00 00 00 85 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 E9 23 00 90 00 80 [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=255 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 64 02 00 35 04 06 00 EF [13:30:59]Write to MH i2c: E2 02 01 EA 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 64 02 00 35 04 06 00 EF 00 00 FE [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 EA 23 00 90 00 81 [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=10 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 02 02 05 53 E2 A5 A7 F6 [13:30:59]Write to MH i2c: E2 0D 00 EB 23 80 0D 02 02 05 00 53 E2 A5 A7 F6 00 00 09 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 03 00 EB 23 00 90 00 82 [13:30:59]RAPDU: 90 00 [13:30:59]wFMCommunicate OK [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 0D 03 02 [13:30:59]Write to MH i2c: E2 08 00 EC 23 80 0D 03 02 00 00 00 00 8A [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 0B 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 0B 00 EC 23 00 FC 7F CD 22 76 ED 44 C9 90 00 65 [13:30:59]RAPDU: FC 7F CD 22 76 ED 44 C9 90 00 [13:30:59]wFMCommunicate OK [13:30:59]SAM_PROTO_SignData done [13:30:59]FM_MakeSignedData done [13:30:59]CreateOFDProtocolMessage [13:30:59]wFMCommunicate request_size=4 [13:30:59]MH_SAM_APDU [13:30:59]CAPDU: 80 11 00 00 [13:30:59]Write to MH i2c: E2 08 00 ED 23 80 11 00 00 00 00 00 00 8A [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:59]Read from MH i2c: E2 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 17 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: E2 17 00 ED 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [13:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:30:59]wFMCommunicate OK [13:30:59]CreateOFDProtocolMessage done [13:30:59]OFDSenderStorePacket 156904 [13:30:59]StoreOFDPacket docnum=156904 [13:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FB CF 07 01 82 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 64 02 00 35 04 06 00 EF 53 E2 A5 A7 F6 FC 7F CD 22 76 ED 44 C9 [13:30:59]CheckFolder [13:30:59]dirname=/storage/ofd_packets [13:30:59]CheckFolder done [13:30:59]ProducePacketName [13:30:59]name=ofd_packets/00156904 [13:30:59]NVStorageSaveData ofd_packets/00156904 [13:30:59]File name is /storage/ofd_packets/00156904 [13:30:59]Write 301 bytes [13:30:59]NVStorageSaveData done [13:30:59]OFDSenderStorePacket done [13:30:59]KKMCreateOFDPacket done [13:30:59]NVStorageSaveData kkm_last_timestamp [13:30:59]File name is /storage/kkm_last_timestamp [13:30:59]Write 4 bytes [13:30:59]NVStorageSaveData done [13:30:59]ExternCall_PrintAddStr [13:30:59]wPrintStart [13:30:59]Write to MH i2c: 01 00 00 EE 23 11 [13:30:59]Write i2c OK [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 07 00 [13:30:59]MH_I2C_Read... [13:30:59]Read from MH i2c: 01 07 00 EE 23 00 00 00 00 00 FF 0F 26 [13:30:59]RasterBufferAndPrint [13:30:59]line Счет N : (1)99720 [13:30:59]line ИНН: 02508201610067 [13:30:59]line Контрольно-Кассовый Чек [13:30:59]line ПРОДАЖА [13:30:59]line ТРК (МРК, ГНК) : 31 [13:30:59]line Товар: 2710124130 [13:30:59]line Аи-92-К-5 [13:30:59]line 1.500 * 66.90 [13:30:59]line = 100.35 [13:30:59]line НДС 12% НСП 1% [13:30:59]line > о реализуемом товаре [13:30:59]line ОКРУГЛЕНИЕ: -0.35 [13:30:59]line ИТОГО: 100.00 [13:30:59]line Внесено: 100.00 [13:30:59]line СДАЧА: 0.00 [13:30:59]line НСП 1% : 0.89 [13:30:59]line НДС 12% : 10.66 [13:30:59]line Наличными: 100.00 [13:30:59]line Безнал.: 0.00 [13:30:59]line Место: АЗС № 143 "Партнер Нефть" [13:30:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:30:59]line СНО: Общий режим [13:30:59]line Чек 120 28.10.2024 13:31 [13:30:59]line Смена: 538 ФФД: 1.0 [13:30:59]line ЗНМ: 0300000096 [13:30:59]line РНМ: 0000000000091693 [13:30:59]line Версия ККМ: 001 [13:30:59]line ФМ: 0000000000871792 [13:30:59]line ФД: 156904 [13:30:59]line ФПД: 263143563831286 [13:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133101&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156904&fm=263143563831286&tin=02508201610067®Number=0000000000091693&sum=10000 [13:31:00]OFD Sender: Processing packet 156904 [packets to send 31, broken 30] [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00156904 [13:31:00]OFD Sender: To server: pG, [13:31:00]CommunicateWithHost lk.salyk.kg:30040 [13:31:00]ConnectInit lk.salyk.kg [13:31:00]written 0, free lines is 4095 [13:31:00]Connected sock=10 [13:31: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 37 39 32 0F 01 00 00 FB CF 07 01 82 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 15 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 64 02 00 35 04 06 00 EF 53 E2 A5 A7 F6 FC 7F CD 22 76 ED 44 C9 [13:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 33 49 47 00 0A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 64 02 00 F4 03 04 00 81 37 1F 67 B6 04 01 00 00 94 0F F4 C1 36 3B EF 1D [13:31:00]CommunicateWithHost err = 0 [13:31:00]CheckOFDResponse [13:31:00]1017 (14) - 77093643461234 [13:31:00]1041 (16) - 0000000000871792 [13:31:00]1040 (4) - 156904 [13:31:00]1012 (4) - 28.10.2024 07:04 [13:31:00]1206 (1) - 0 [13:31:00]OFD Sender: Remove packet 156904 [13:31:00]ProducePacketName [13:31:00]name=ofd_packets/00156904 [13:31:00]NVStorageDeleteData [13:31:00]Write to MH i2c: 01 00 00 19 24 3D [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: 01 07 00 19 24 00 00 00 00 00 D0 0C 20 [13:31:00]RasterBufferAndPrint [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]line [13:31:00]written 0, free lines is 3288 [13:31:00]process_action close_receipt done [13:31:00]requested_data is exist [13:31:00]produce_requested_data [13:31:00]requested_item fm.sn is exist - process it [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 11 00 00 [13:31:00]Write to MH i2c: E2 08 00 20 24 80 11 00 00 00 00 00 00 BE [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 17 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 17 00 20 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [13:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:31:00]wFMCommunicate OK [13:31:00]requested_item fd.num is exist - process it [13:31:00]SAM_PROTO_GetFieldsCounters [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 13 00 00 [13:31:00]Write to MH i2c: E2 08 00 21 24 80 13 00 00 00 00 00 00 C1 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 62 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 62 00 21 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 64 02 00 0E 04 04 00 1A 02 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 B9 [13:31: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 64 02 00 0E 04 04 00 1A 02 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 [13:31:00]wFMCommunicate OK [13:31:00]SAM_PROTO_GetFieldsCounters done [13:31:00]requested_item shift.num is exist - process it [13:31:00]requested_item shift.opened is exist - process it [13:31:00]req_shift_opened [13:31:00]FM_GetShiftState [13:31:00]SAM_PROTO_GetShiftState [13:31:00]wFMCommunicate request_size=4 [13:31:00]MH_SAM_APDU [13:31:00]CAPDU: 80 13 01 00 [13:31:00]Write to MH i2c: E2 08 00 22 24 80 13 01 00 00 00 00 00 C3 [13:31:00]Write i2c OK [13:31:00]MH_I2C_Read... [13:31:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:00]Read from MH i2c: E2 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 0E 00 [13:31:00]MH_I2C_Read... [13:31:00]Read from MH i2c: E2 0E 00 22 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B5 [13:31:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:31:00]wFMCommunicate OK [13:31:00]SAM_PROTO_GetShiftState done [13:31:00]FM_GetShiftState done [13:31:00]req_shift_opened done [13:31:00]requested_item shift.open_date is exist - process it [13:31:00]req_shift_open_date [13:31:00]req_shift_open_date done [13:31:00]produce_requested_data done [13:31:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156904,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:31:00]process_action_free close_receipt [13:31:00]json_value_free [13:31:00]json_value_free done [13:31:00]process_json_proto returns [13:31:00]Send response to host [13:31:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156904,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:31:00]free response buf [13:31:00]execute_script done [13:31:00]execute_script returns [13:31:00]free content buf [13:31:00]Sock 9.Close socket [13:31:00]Sock 9.Thread stoped [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:33]accept exits with 7 [13:31:33]New connection [13:31:33]New thread 3066748260 created [13:31:33]Thread 3066604900 joined [13:31:33]Waiting for new connection... [13:31:33] Sock 7.Parse request [13:31:33]Sock 7.Check first char [13:31:33]Sock 7.First char is OK [13:31:33]request: POST /json_proto HTTP/1.0 [13:31:33]Method: POST [13:31:33]URL: /json_proto [13:31:33]Method is POST - this is cgi request [13:31:33]url: /json_proto [13:31:33]query_string will be loaded in cgi processing [13:31:33]execute_cgi json_proto POST (null) [13:31:33]execute_cgi path=json_proto method=POST [13:31:33]POST find Content-Length [13:31:33]Host: 172.17.63.3:8080 [13:31:33]Content-Length: 676 [13:31:33]Content-Type: application/json [13:31:33] [13:31:33]POST finish read [13:31:33]Found Content-Length = 676 [13:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:31:33]execute_script... [13:31: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)99721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:31:33]POST & json_proto [13:31:33]process_json_proto [13:31:33]json parsed OK: [13:31:33]protocol is kg_v1.0 [13:31:33]action value=close_receipt [13:31:33]process_action close_receipt [13:31:33]cmd_close_receipt [13:31:33]MH_GetDate [13:31:33]Write to MH i2c: F0 00 00 23 24 36 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 09 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: F0 09 00 23 24 00 38 92 1F 67 50 D1 6C 64 80 [13:31:33]GetLastDocTimeStamp 1730122261 [13:31:33]current date 1730122296 [13:31:33]FM_GetShiftState [13:31:33]SAM_PROTO_GetShiftState [13:31:33]wFMCommunicate request_size=4 [13:31:33]MH_SAM_APDU [13:31:33]CAPDU: 80 13 01 00 [13:31:33]Write to MH i2c: E2 08 00 24 24 80 13 01 00 00 00 00 00 C5 [13:31:33]Write i2c OK [13:31:33]MH_I2C_Read... [13:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:33]Read from MH i2c: E2 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0E 00 [13:31:33]MH_I2C_Read... [13:31:33]Read from MH i2c: E2 0E 00 24 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B7 [13:31:33]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:31:33]wFMCommunicate OK [13:31:33]SAM_PROTO_GetShiftState done [13:31:33]FM_GetShiftState done [13:31:33]opened in 1730075526 [13:31:33]opened+sec_in_day 1730161926 [13:31:33]quantity*price = 30038 [13:31:33]sum+1 = 30039 [13:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 121 28.10.2024 13:31 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156905 ФПД: 22795392224347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133136&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156905&fm=22795392224347&tin=02508201610067®Number=0000000000091693&sum=30000 [13:31:34]StoreToDocumentArchive [13:31:34]shift 538 fd 156905 [13:31:34]save to /storage/0538/doc_00156905 [13:31:34]save last doc name /storage/0538/doc_00156905 to /storage/kkm_last_doc_name [13:31:34]save OK [13:31:34]Clear old archive folders... [13:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:34]tlvbuf is 01AAF4A0 [13:31:34]SAM_PROTO_ClearQueue [13:31:34]wFMCommunicate request_size=4 [13:31:34]MH_SAM_APDU [13:31:34]CAPDU: 80 09 00 00 [13:31:34]Write to MH i2c: E2 08 00 31 24 80 09 00 00 00 00 00 00 C7 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [13:31:34]RAPDU: 90 00 [13:31:34]wFMCommunicate OK [13:31:34]SAM_PROTO_ClearQueue done [13:31:34]KKMCreateOFDPacket [13:31:34]OFDProtocolAddRootSTLVToBuf [13:31:34]FM_MakeSignedData [13:31:34]FM_MakeSignedData [13:31:34]SAM_PROTO_SignData [13:31:34]wFMCommunicate request_size=4 [13:31:34]MH_SAM_APDU [13:31:34]CAPDU: 80 0D 01 02 [13:31:34]Write to MH i2c: E2 08 00 32 24 80 0D 01 02 00 00 00 00 CF [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 32 24 00 90 00 CA [13:31:34]RAPDU: 90 00 [13:31:34]wFMCommunicate OK [13:31:34]wFMCommunicate request_size=255 [13:31:34]MH_SAM_APDU [13:31: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 38 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 64 02 00 35 04 06 00 14 [13:31:34]Write to MH i2c: E2 02 01 33 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 38 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 64 02 00 35 04 06 00 14 00 00 9F [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 33 24 00 90 00 CB [13:31:34]RAPDU: 90 00 [13:31:34]wFMCommunicate OK [13:31:34]wFMCommunicate request_size=10 [13:31:34]MH_SAM_APDU [13:31:34]CAPDU: 80 0D 02 02 05 BB 77 41 8C 5B [13:31:34]Write to MH i2c: E2 0D 00 34 24 80 0D 02 02 05 00 BB 77 41 8C 5B 00 00 36 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 03 00 34 24 00 90 00 CC [13:31:34]RAPDU: 90 00 [13:31:34]wFMCommunicate OK [13:31:34]wFMCommunicate request_size=4 [13:31:34]MH_SAM_APDU [13:31:34]CAPDU: 80 0D 03 02 [13:31:34]Write to MH i2c: E2 08 00 35 24 80 0D 03 02 00 00 00 00 D4 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 0B 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 0B 00 35 24 00 83 68 F7 19 73 9D 70 4B 90 00 9B [13:31:34]RAPDU: 83 68 F7 19 73 9D 70 4B 90 00 [13:31:34]wFMCommunicate OK [13:31:34]SAM_PROTO_SignData done [13:31:34]FM_MakeSignedData done [13:31:34]CreateOFDProtocolMessage [13:31:34]wFMCommunicate request_size=4 [13:31:34]MH_SAM_APDU [13:31:34]CAPDU: 80 11 00 00 [13:31:34]Write to MH i2c: E2 08 00 36 24 80 11 00 00 00 00 00 00 D4 [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:34]Read from MH i2c: E2 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 17 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: E2 17 00 36 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [13:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:31:34]wFMCommunicate OK [13:31:34]CreateOFDProtocolMessage done [13:31:34]OFDSenderStorePacket 156905 [13:31:34]StoreOFDPacket docnum=156905 [13:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 06 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 38 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 64 02 00 35 04 06 00 14 BB 77 41 8C 5B 83 68 F7 19 73 9D 70 4B [13:31:34]CheckFolder [13:31:34]dirname=/storage/ofd_packets [13:31:34]CheckFolder done [13:31:34]ProducePacketName [13:31:34]name=ofd_packets/00156905 [13:31:34]NVStorageSaveData ofd_packets/00156905 [13:31:34]File name is /storage/ofd_packets/00156905 [13:31:34]Write 301 bytes [13:31:34]NVStorageSaveData done [13:31:34]OFDSenderStorePacket done [13:31:34]KKMCreateOFDPacket done [13:31:34]NVStorageSaveData kkm_last_timestamp [13:31:34]File name is /storage/kkm_last_timestamp [13:31:34]Write 4 bytes [13:31:34]NVStorageSaveData done [13:31:34]ExternCall_PrintAddStr [13:31:34]wPrintStart [13:31:34]Write to MH i2c: 01 00 00 37 24 5B [13:31:34]Write i2c OK [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 07 00 [13:31:34]MH_I2C_Read... [13:31:34]Read from MH i2c: 01 07 00 37 24 00 00 00 00 00 FF 0F 70 [13:31:34]RasterBufferAndPrint [13:31:34]line Счет N : (1)99721 [13:31:34]line ИНН: 02508201610067 [13:31:34]line Контрольно-Кассовый Чек [13:31:34]line ПРОДАЖА [13:31:34]line ТРК (МРК, ГНК) : 31 [13:31:34]line Товар: 2710124130 [13:31:34]line Аи-92-К-5 [13:31:34]line 4.490 * 66.90 [13:31:34]line = 300.38 [13:31:34]line НДС 12% НСП 1% [13:31:34]line > о реализуемом товаре [13:31:34]line ОКРУГЛЕНИЕ: -0.38 [13:31:34]line ИТОГО: 300.00 [13:31:34]line Внесено: 300.00 [13:31:34]line СДАЧА: 0.00 [13:31:34]line НСП 1% : 2.66 [13:31:34]line НДС 12% : 31.90 [13:31:34]line Наличными: 300.00 [13:31:34]line Безнал.: 0.00 [13:31:34]line Место: АЗС № 143 "Партнер Нефть" [13:31:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:31:34]line СНО: Общий режим [13:31:34]line Чек 121 28.10.2024 13:31 [13:31:34]line Смена: 538 ФФД: 1.0 [13:31:34]line ЗНМ: 0300000096 [13:31:34]line РНМ: 0000000000091693 [13:31:34]line Версия ККМ: 001 [13:31:34]line ФМ: 0000000000871792 [13:31:34]line ФД: 156905 [13:31:34]line ФПД: 22795392224347 [13:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133136&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156905&fm=22795392224347&tin=02508201610067®Number=0000000000091693&sum=30000 [13:31:35]OFD Sender: Processing packet 156905 [packets to send 31, broken 30] [13:31:35]ProducePacketName [13:31:35]name=ofd_packets/00156905 [13:31:35]OFD Sender: To server: pG, [13:31:35]CommunicateWithHost lk.salyk.kg:30040 [13:31:35]ConnectInit lk.salyk.kg [13:31:35]written 0, free lines is 4095 [13:31:35]Connected sock=10 [13:31:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 06 07 01 8D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 38 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 64 02 00 35 04 06 00 14 BB 77 41 8C 5B 83 68 F7 19 73 9D 70 4B [13:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F 15 47 00 EC 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 64 02 00 F4 03 04 00 A4 37 1F 67 B6 04 01 00 00 52 A6 B3 24 81 53 8A 95 [13:31:35]CommunicateWithHost err = 0 [13:31:35]CheckOFDResponse [13:31:35]1017 (14) - 77093643461234 [13:31:35]1041 (16) - 0000000000871792 [13:31:35]1040 (4) - 156905 [13:31:35]1012 (4) - 28.10.2024 07:05 [13:31:35]1206 (1) - 0 [13:31:35]OFD Sender: Remove packet 156905 [13:31:35]ProducePacketName [13:31:35]name=ofd_packets/00156905 [13:31:35]NVStorageDeleteData [13:31:35]Write to MH i2c: 01 00 00 62 24 86 [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 07 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 E4 0C 7D [13:31:35]RasterBufferAndPrint [13:31:35]line [13:31:35]line [13:31:35]line [13:31:35]line [13:31:35]line [13:31:35]written 0, free lines is 3306 [13:31:35]process_action close_receipt done [13:31:35]requested_data is exist [13:31:35]produce_requested_data [13:31:35]requested_item fm.sn is exist - process it [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 11 00 00 [13:31:35]Write to MH i2c: E2 08 00 69 24 80 11 00 00 00 00 00 00 07 [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 17 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 17 00 69 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [13:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:31:35]wFMCommunicate OK [13:31:35]requested_item fd.num is exist - process it [13:31:35]SAM_PROTO_GetFieldsCounters [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 13 00 00 [13:31:35]Write to MH i2c: E2 08 00 6A 24 80 13 00 00 00 00 00 00 0A [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 62 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 62 00 6A 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 64 02 00 0E 04 04 00 1A 02 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 06 [13:31: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 64 02 00 0E 04 04 00 1A 02 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 [13:31:35]wFMCommunicate OK [13:31:35]SAM_PROTO_GetFieldsCounters done [13:31:35]requested_item shift.num is exist - process it [13:31:35]requested_item shift.opened is exist - process it [13:31:35]req_shift_opened [13:31:35]FM_GetShiftState [13:31:35]SAM_PROTO_GetShiftState [13:31:35]wFMCommunicate request_size=4 [13:31:35]MH_SAM_APDU [13:31:35]CAPDU: 80 13 01 00 [13:31:35]Write to MH i2c: E2 08 00 6B 24 80 13 01 00 00 00 00 00 0C [13:31:35]Write i2c OK [13:31:35]MH_I2C_Read... [13:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:35]Read from MH i2c: E2 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0E 00 [13:31:35]MH_I2C_Read... [13:31:35]Read from MH i2c: E2 0E 00 6B 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FE [13:31:35]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:31:36]wFMCommunicate OK [13:31:36]SAM_PROTO_GetShiftState done [13:31:36]FM_GetShiftState done [13:31:36]req_shift_opened done [13:31:36]requested_item shift.open_date is exist - process it [13:31:36]req_shift_open_date [13:31:36]req_shift_open_date done [13:31:36]produce_requested_data done [13:31:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156905,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:31:36]process_action_free close_receipt [13:31:36]json_value_free [13:31:36]json_value_free done [13:31:36]process_json_proto returns [13:31:36]Send response to host [13:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156905,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:31:36]free response buf [13:31:36]execute_script done [13:31:36]execute_script returns [13:31:36]free content buf [13:31:36]Sock 7.Close socket [13:31:36]Sock 7.Thread stoped [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:38]accept exits with 9 [13:33:38]New connection [13:33:38]New thread 3066604900 created [13:33:38]Thread 3066748260 joined [13:33:38]Waiting for new connection... [13:33:38] Sock 9.Parse request [13:33:38]Sock 9.Check first char [13:33:38]Sock 9.First char is OK [13:33:38]request: POST /json_proto HTTP/1.0 [13:33:38]Method: POST [13:33:38]URL: /json_proto [13:33:38]Method is POST - this is cgi request [13:33:38]url: /json_proto [13:33:38]query_string will be loaded in cgi processing [13:33:38]execute_cgi json_proto POST (null) [13:33:38]execute_cgi path=json_proto method=POST [13:33:38]POST find Content-Length [13:33:38]Host: 172.17.63.3:8080 [13:33:38]Content-Length: 681 [13:33:38]Content-Type: application/json [13:33:38] [13:33:38]POST finish read [13:33:38]Found Content-Length = 681 [13:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:38]execute_script... [13:33: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)99722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:38]POST & json_proto [13:33:38]process_json_proto [13:33:38]json parsed OK: [13:33:38]protocol is kg_v1.0 [13:33:38]action value=close_receipt [13:33:38]process_action close_receipt [13:33:38]cmd_close_receipt [13:33:38]MH_GetDate [13:33:38]Write to MH i2c: F0 00 00 6C 24 7F [13:33:38]Write i2c OK [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: F0 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: F0 09 00 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: F0 09 00 6C 24 00 B5 92 1F 67 50 D1 6C 64 46 [13:33:38]GetLastDocTimeStamp 1730122296 [13:33:38]current date 1730122421 [13:33:38]FM_GetShiftState [13:33:38]SAM_PROTO_GetShiftState [13:33:38]wFMCommunicate request_size=4 [13:33:38]MH_SAM_APDU [13:33:38]CAPDU: 80 13 01 00 [13:33:38]Write to MH i2c: E2 08 00 6D 24 80 13 01 00 00 00 00 00 0E [13:33:38]Write i2c OK [13:33:38]MH_I2C_Read... [13:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:38]Read from MH i2c: E2 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 0E 00 [13:33:38]MH_I2C_Read... [13:33:38]Read from MH i2c: E2 0E 00 6D 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 00 [13:33:38]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:33:38]wFMCommunicate OK [13:33:38]SAM_PROTO_GetShiftState done [13:33:38]FM_GetShiftState done [13:33:38]opened in 1730075526 [13:33:38]opened+sec_in_day 1730161926 [13:33:38]quantity*price = 200031 [13:33:38]sum+1 = 200032 [13:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 122 28.10.2024 13:33 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156906 ФПД: 227475740406147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133341&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156906&fm=227475740406147&tin=02508201610067®Number=0000000000091693&sum=200000 [13:33:39]StoreToDocumentArchive [13:33:39]shift 538 fd 156906 [13:33:39]save to /storage/0538/doc_00156906 [13:33:39]save last doc name /storage/0538/doc_00156906 to /storage/kkm_last_doc_name [13:33:39]save OK [13:33:39]Clear old archive folders... [13:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:39]tlvbuf is 01A88660 [13:33:39]SAM_PROTO_ClearQueue [13:33:39]wFMCommunicate request_size=4 [13:33:39]MH_SAM_APDU [13:33:39]CAPDU: 80 09 00 00 [13:33:39]Write to MH i2c: E2 08 00 7A 24 80 09 00 00 00 00 00 00 10 [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 7A 24 00 90 00 12 [13:33:39]RAPDU: 90 00 [13:33:39]wFMCommunicate OK [13:33:39]SAM_PROTO_ClearQueue done [13:33:39]KKMCreateOFDPacket [13:33:39]OFDProtocolAddRootSTLVToBuf [13:33:39]FM_MakeSignedData [13:33:39]FM_MakeSignedData [13:33:39]SAM_PROTO_SignData [13:33:39]wFMCommunicate request_size=4 [13:33:39]MH_SAM_APDU [13:33:39]CAPDU: 80 0D 01 02 [13:33:39]Write to MH i2c: E2 08 00 7B 24 80 0D 01 02 00 00 00 00 18 [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:39]Read from MH i2c: E2 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 [13:33:39]MH_I2C_Read... [13:33:39]Read from MH i2c: E2 03 00 7B 24 00 90 00 13 [13:33:39]RAPDU: 90 00 [13:33:39]wFMCommunicate OK [13:33:39]wFMCommunicate request_size=255 [13:33:39]MH_SAM_APDU [13:33: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 7A 00 00 00 F4 03 04 00 B5 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 64 02 00 35 04 06 00 CE [13:33:39]Write to MH i2c: E2 02 01 7C 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 7A 00 00 00 F4 03 04 00 B5 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 64 02 00 35 04 06 00 CE 00 00 6F [13:33:39]Write i2c OK [13:33:39]MH_I2C_Read... [13:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:40]Read from MH i2c: E2 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 03 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 03 00 7C 24 00 90 00 14 [13:33:40]RAPDU: 90 00 [13:33:40]wFMCommunicate OK [13:33:40]wFMCommunicate request_size=10 [13:33:40]MH_SAM_APDU [13:33:40]CAPDU: 80 0D 02 02 05 E3 52 B3 B1 83 [13:33:40]Write to MH i2c: E2 0D 00 7D 24 80 0D 02 02 05 00 E3 52 B3 B1 83 00 00 41 [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:40]Read from MH i2c: E2 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 03 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 03 00 7D 24 00 90 00 15 [13:33:40]RAPDU: 90 00 [13:33:40]wFMCommunicate OK [13:33:40]wFMCommunicate request_size=4 [13:33:40]MH_SAM_APDU [13:33:40]CAPDU: 80 0D 03 02 [13:33:40]Write to MH i2c: E2 08 00 7E 24 80 0D 03 02 00 00 00 00 1D [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:40]Read from MH i2c: E2 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 0B 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 0B 00 7E 24 00 D6 59 5B 17 FC C4 5E C1 90 00 9E [13:33:40]RAPDU: D6 59 5B 17 FC C4 5E C1 90 00 [13:33:40]wFMCommunicate OK [13:33:40]SAM_PROTO_SignData done [13:33:40]FM_MakeSignedData done [13:33:40]CreateOFDProtocolMessage [13:33:40]wFMCommunicate request_size=4 [13:33:40]MH_SAM_APDU [13:33:40]CAPDU: 80 11 00 00 [13:33:40]Write to MH i2c: E2 08 00 7F 24 80 11 00 00 00 00 00 00 1D [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:40]Read from MH i2c: E2 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 17 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: E2 17 00 7F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 72 [13:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:33:40]wFMCommunicate OK [13:33:40]CreateOFDProtocolMessage done [13:33:40]OFDSenderStorePacket 156906 [13:33:40]StoreOFDPacket docnum=156906 [13:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 14 07 01 E7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 7A 00 00 00 F4 03 04 00 B5 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 64 02 00 35 04 06 00 CE E3 52 B3 B1 83 D6 59 5B 17 FC C4 5E C1 [13:33:40]CheckFolder [13:33:40]dirname=/storage/ofd_packets [13:33:40]CheckFolder done [13:33:40]ProducePacketName [13:33:40]name=ofd_packets/00156906 [13:33:40]NVStorageSaveData ofd_packets/00156906 [13:33:40]File name is /storage/ofd_packets/00156906 [13:33:40]Write 301 bytes [13:33:40]NVStorageSaveData done [13:33:40]OFDSenderStorePacket done [13:33:40]KKMCreateOFDPacket done [13:33:40]NVStorageSaveData kkm_last_timestamp [13:33:40]File name is /storage/kkm_last_timestamp [13:33:40]Write 4 bytes [13:33:40]NVStorageSaveData done [13:33:40]ExternCall_PrintAddStr [13:33:40]wPrintStart [13:33:40]Write to MH i2c: 01 00 00 80 24 A4 [13:33:40]Write i2c OK [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 07 00 [13:33:40]MH_I2C_Read... [13:33:40]Read from MH i2c: 01 07 00 80 24 00 00 00 00 00 FF 0F B9 [13:33:40]RasterBufferAndPrint [13:33:40]line Счет N : (1)99722 [13:33:40]line ИНН: 02508201610067 [13:33:40]line Контрольно-Кассовый Чек [13:33:40]line ПРОДАЖА [13:33:40]line ТРК (МРК, ГНК) : 31 [13:33:40]line Товар: 2710124130 [13:33:40]line Аи-92-К-5 [13:33:40]line 29.900 * 66.90 [13:33:40]line = 2000.31 [13:33:40]line НДС 12% НСП 1% [13:33:40]line > о реализуемом товаре [13:33:40]line ОКРУГЛЕНИЕ: -0.31 [13:33:40]line ИТОГО: 2000.00 [13:33:40]line Внесено: 2000.00 [13:33:40]line СДАЧА: 0.00 [13:33:40]line НСП 1% : 17.70 [13:33:40]line НДС 12% : 212.42 [13:33:40]line Наличными: 2000.00 [13:33:40]line Безнал.: 0.00 [13:33:40]line Место: АЗС № 143 "Партнер Нефть" [13:33:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:33:40]line СНО: Общий режим [13:33:40]line Чек 122 28.10.2024 13:33 [13:33:40]line Смена: 538 ФФД: 1.0 [13:33:40]line ЗНМ: 0300000096 [13:33:40]line РНМ: 0000000000091693 [13:33:40]line Версия ККМ: 001 [13:33:40]line ФМ: 0000000000871792 [13:33:40]line ФД: 156906 [13:33:40]line ФПД: 227475740406147 [13:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133341&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156906&fm=227475740406147&tin=02508201610067®Number=0000000000091693&sum=200000 [13:33:40]OFD Sender: Processing packet 156906 [packets to send 31, broken 30] [13:33:40]ProducePacketName [13:33:40]name=ofd_packets/00156906 [13:33:40]OFD Sender: To server: pG, [13:33:40]CommunicateWithHost lk.salyk.kg:30040 [13:33:40]ConnectInit lk.salyk.kg [13:33:40]written 0, free lines is 4095 [13:33:40]Connected sock=10 [13:33: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 37 39 32 0F 01 00 00 B0 14 07 01 E7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FA 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 7A 00 00 00 F4 03 04 00 B5 92 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 64 02 00 35 04 06 00 CE E3 52 B3 B1 83 D6 59 5B 17 FC C4 5E C1 [13:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2D FD 47 00 8B 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 37 39 32 10 04 04 00 EA 64 02 00 F4 03 04 00 21 38 1F 67 B6 04 01 00 00 DF 49 F9 8F C1 2B B5 CB [13:33:40]CommunicateWithHost err = 0 [13:33:40]CheckOFDResponse [13:33:40]1017 (14) - 77093643461234 [13:33:40]1041 (16) - 0000000000871792 [13:33:40]1040 (4) - 156906 [13:33:40]1012 (4) - 28.10.2024 07:07 [13:33:40]1206 (1) - 0 [13:33:40]OFD Sender: Remove packet 156906 [13:33:40]ProducePacketName [13:33:40]name=ofd_packets/00156906 [13:33:40]NVStorageDeleteData [13:33:41]Write to MH i2c: 01 00 00 AB 24 CF [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: 01 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: 01 07 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: 01 07 00 AB 24 00 00 00 00 00 DD 0C BF [13:33:41]RasterBufferAndPrint [13:33:41]line [13:33:41]line [13:33:41]line [13:33:41]line [13:33:41]line [13:33:41]written 0, free lines is 3299 [13:33:41]process_action close_receipt done [13:33:41]requested_data is exist [13:33:41]produce_requested_data [13:33:41]requested_item fm.sn is exist - process it [13:33:41]wFMCommunicate request_size=4 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 11 00 00 [13:33:41]Write to MH i2c: E2 08 00 B2 24 80 11 00 00 00 00 00 00 50 [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:41]Read from MH i2c: E2 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 17 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 17 00 B2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [13:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:33:41]wFMCommunicate OK [13:33:41]requested_item fd.num is exist - process it [13:33:41]SAM_PROTO_GetFieldsCounters [13:33:41]wFMCommunicate request_size=4 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 13 00 00 [13:33:41]Write to MH i2c: E2 08 00 B3 24 80 13 00 00 00 00 00 00 53 [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:41]Read from MH i2c: E2 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 62 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 62 00 B3 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 64 02 00 0E 04 04 00 1A 02 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 53 [13:33: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 64 02 00 0E 04 04 00 1A 02 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 [13:33:41]wFMCommunicate OK [13:33:41]SAM_PROTO_GetFieldsCounters done [13:33:41]requested_item shift.num is exist - process it [13:33:41]requested_item shift.opened is exist - process it [13:33:41]req_shift_opened [13:33:41]FM_GetShiftState [13:33:41]SAM_PROTO_GetShiftState [13:33:41]wFMCommunicate request_size=4 [13:33:41]MH_SAM_APDU [13:33:41]CAPDU: 80 13 01 00 [13:33:41]Write to MH i2c: E2 08 00 B4 24 80 13 01 00 00 00 00 00 55 [13:33:41]Write i2c OK [13:33:41]MH_I2C_Read... [13:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:41]Read from MH i2c: E2 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 0E 00 [13:33:41]MH_I2C_Read... [13:33:41]Read from MH i2c: E2 0E 00 B4 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 47 [13:33:41]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:33:41]wFMCommunicate OK [13:33:41]SAM_PROTO_GetShiftState done [13:33:41]FM_GetShiftState done [13:33:41]req_shift_opened done [13:33:41]requested_item shift.open_date is exist - process it [13:33:41]req_shift_open_date [13:33:41]req_shift_open_date done [13:33:41]produce_requested_data done [13:33:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156906,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:33:41]process_action_free close_receipt [13:33:41]json_value_free [13:33:41]json_value_free done [13:33:41]process_json_proto returns [13:33:41]Send response to host [13:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156906,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:33:41]free response buf [13:33:41]execute_script done [13:33:41]execute_script returns [13:33:41]free content buf [13:33:41]Sock 9.Close socket [13:33:41]Sock 9.Thread stoped [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:41]OFD Sender: No OFD packet to send [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:22]accept exits with 7 [13:37:22]New connection [13:37:22]New thread 3066748260 created [13:37:22]Thread 3066604900 joined [13:37:22]Waiting for new connection... [13:37:22] Sock 7.Parse request [13:37:22]Sock 7.Check first char [13:37:22]Sock 7.First char is OK [13:37:22]request: POST /json_proto HTTP/1.0 [13:37:22]Method: POST [13:37:22]URL: /json_proto [13:37:22]Method is POST - this is cgi request [13:37:22]url: /json_proto [13:37:22]query_string will be loaded in cgi processing [13:37:22]execute_cgi json_proto POST (null) [13:37:22]execute_cgi path=json_proto method=POST [13:37:22]POST find Content-Length [13:37:22]Host: 172.17.63.3:8080 [13:37:22]Content-Length: 766 [13:37:22]Content-Type: application/json [13:37:22] [13:37:22]POST finish read [13:37:22]Found Content-Length = 766 [13:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 111.550, "sum" : 8500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:22]execute_script... [13:37: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)99723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 111.550, "sum" : 8500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:22]POST & json_proto [13:37:22]process_json_proto [13:37:22]json parsed OK: [13:37:22]protocol is kg_v1.0 [13:37:22]action value=close_receipt [13:37:22]process_action close_receipt [13:37:22]cmd_close_receipt [13:37:22]MH_GetDate [13:37:22]Write to MH i2c: F0 00 00 B5 24 C8 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 09 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: F0 09 00 B5 24 00 95 93 1F 67 50 D1 6C 64 70 [13:37:22]GetLastDocTimeStamp 1730122421 [13:37:22]current date 1730122645 [13:37:22]FM_GetShiftState [13:37:22]SAM_PROTO_GetShiftState [13:37:22]wFMCommunicate request_size=4 [13:37:22]MH_SAM_APDU [13:37:22]CAPDU: 80 13 01 00 [13:37:22]Write to MH i2c: E2 08 00 B6 24 80 13 01 00 00 00 00 00 57 [13:37:22]Write i2c OK [13:37:22]MH_I2C_Read... [13:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:22]Read from MH i2c: E2 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 0E 00 [13:37:22]MH_I2C_Read... [13:37:22]Read from MH i2c: E2 0E 00 B6 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 49 [13:37:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:37:22]wFMCommunicate OK [13:37:22]SAM_PROTO_GetShiftState done [13:37:22]FM_GetShiftState done [13:37:22]opened in 1730075526 [13:37:22]opened+sec_in_day 1730161926 [13:37:22]quantity*price = 850011 [13:37:22]sum+1 = 850012 [13:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8500.11 НСП 1% : 75.22 НДС 12% : 902.67 Наличными: 0.00 Безнал.: 8500.11 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 123 28.10.2024 13:37 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156907 ФПД: 73870164604401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156907&fm=73870164604401&tin=02508201610067®Number=0000000000091693&sum=850011 [13:37:23]StoreToDocumentArchive [13:37:23]shift 538 fd 156907 [13:37:23]save to /storage/0538/doc_00156907 [13:37:23]save last doc name /storage/0538/doc_00156907 to /storage/kkm_last_doc_name [13:37:23]save OK [13:37:23]Clear old archive folders... [13:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:23]tlvbuf is B6D76980 [13:37:23]SAM_PROTO_ClearQueue [13:37:23]wFMCommunicate request_size=4 [13:37:23]MH_SAM_APDU [13:37:23]CAPDU: 80 09 00 00 [13:37:23]Write to MH i2c: E2 08 00 C3 24 80 09 00 00 00 00 00 00 59 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 C3 24 00 90 00 5B [13:37:23]RAPDU: 90 00 [13:37:23]wFMCommunicate OK [13:37:23]SAM_PROTO_ClearQueue done [13:37:23]KKMCreateOFDPacket [13:37:23]OFDProtocolAddRootSTLVToBuf [13:37:23]FM_MakeSignedData [13:37:23]FM_MakeSignedData [13:37:23]SAM_PROTO_SignData [13:37:23]wFMCommunicate request_size=4 [13:37:23]MH_SAM_APDU [13:37:23]CAPDU: 80 0D 01 02 [13:37:23]Write to MH i2c: E2 08 00 C4 24 80 0D 01 02 00 00 00 00 61 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [13:37:23]RAPDU: 90 00 [13:37:23]wFMCommunicate OK [13:37:23]wFMCommunicate request_size=255 [13:37:23]MH_SAM_APDU [13:37: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 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B F8 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 95 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 64 02 00 35 04 06 00 43 2F 3C EB [13:37:23]Write to MH i2c: E2 02 01 C5 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 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B F8 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 95 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 64 02 00 35 04 06 00 43 2F 3C EB 00 00 DD [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [13:37:23]RAPDU: 90 00 [13:37:23]wFMCommunicate OK [13:37:23]wFMCommunicate request_size=7 [13:37:23]MH_SAM_APDU [13:37:23]CAPDU: 80 0D 02 02 02 B5 F1 [13:37:23]Write to MH i2c: E2 0A 00 C6 24 80 0D 02 02 02 00 B5 F1 00 00 0E [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 03 00 C6 24 00 90 00 5E [13:37:23]RAPDU: 90 00 [13:37:23]wFMCommunicate OK [13:37:23]wFMCommunicate request_size=4 [13:37:23]MH_SAM_APDU [13:37:23]CAPDU: 80 0D 03 02 [13:37:23]Write to MH i2c: E2 08 00 C7 24 80 0D 03 02 00 00 00 00 66 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 0B 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 0B 00 C7 24 00 61 D3 27 01 F5 1C 5E 99 90 00 CB [13:37:23]RAPDU: 61 D3 27 01 F5 1C 5E 99 90 00 [13:37:23]wFMCommunicate OK [13:37:23]SAM_PROTO_SignData done [13:37:23]FM_MakeSignedData done [13:37:23]CreateOFDProtocolMessage [13:37:23]wFMCommunicate request_size=4 [13:37:23]MH_SAM_APDU [13:37:23]CAPDU: 80 11 00 00 [13:37:23]Write to MH i2c: E2 08 00 C8 24 80 11 00 00 00 00 00 00 66 [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:23]Read from MH i2c: E2 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 17 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: E2 17 00 C8 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [13:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:37:23]wFMCommunicate OK [13:37:23]CreateOFDProtocolMessage done [13:37:23]OFDSenderStorePacket 156907 [13:37:23]StoreOFDPacket docnum=156907 [13:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9C 6B 04 01 8B 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 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B F8 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 95 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 64 02 00 35 04 06 00 43 2F 3C EB B5 F1 61 D3 27 01 F5 1C 5E 99 [13:37:23]CheckFolder [13:37:23]dirname=/storage/ofd_packets [13:37:23]CheckFolder done [13:37:23]ProducePacketName [13:37:23]name=ofd_packets/00156907 [13:37:23]NVStorageSaveData ofd_packets/00156907 [13:37:23]File name is /storage/ofd_packets/00156907 [13:37:23]Write 298 bytes [13:37:23]NVStorageSaveData done [13:37:23]OFDSenderStorePacket done [13:37:23]KKMCreateOFDPacket done [13:37:23]NVStorageSaveData kkm_last_timestamp [13:37:23]File name is /storage/kkm_last_timestamp [13:37:23]Write 4 bytes [13:37:23]NVStorageSaveData done [13:37:23]ExternCall_PrintAddStr [13:37:23]wPrintStart [13:37:23]Write to MH i2c: 01 00 00 C9 24 ED [13:37:23]Write i2c OK [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 07 00 [13:37:23]MH_I2C_Read... [13:37:23]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [13:37:23]RasterBufferAndPrint [13:37:23]line Счет N : (1)99723 [13:37:23]line ИНН: 02508201610067 [13:37:23]line Контрольно-Кассовый Чек [13:37:23]line ПРОДАЖА [13:37:23]line ТРК (МРК, ГНК) : 32 [13:37:23]line Товар: 2710194210 [13:37:23]line ДТ-К-5 [13:37:23]line 111.550 * 76.20 [13:37:23]line = 8500.11 [13:37:23]line НДС 12% НСП 1% [13:37:23]line > о реализуемом товаре [13:37:23]line ИТОГО: 8500.11 [13:37:23]line НСП 1% : 75.22 [13:37:23]line НДС 12% : 902.67 [13:37:23]line Наличными: 0.00 [13:37:23]line Безнал.: 8500.11 [13:37:23]line Место: АЗС № 143 "Партнер Нефть" [13:37:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:37:23]line СНО: Общий режим [13:37:23]line Чек 123 28.10.2024 13:37 [13:37:23]line Смена: 538 ФФД: 1.0 [13:37:23]line ЗНМ: 0300000096 [13:37:23]line РНМ: 0000000000091693 [13:37:23]line Версия ККМ: 001 [13:37:23]line Платежная система: Mbank [13:37:23]line ФМ: 0000000000871792 [13:37:23]line ФД: 156907 [13:37:23]line ФПД: 73870164604401 [13:37:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156907&fm=73870164604401&tin=02508201610067®Number=0000000000091693&sum=850011 [13:37:24]OFD Sender: Processing packet 156907 [packets to send 31, broken 30] [13:37:24]ProducePacketName [13:37:24]name=ofd_packets/00156907 [13:37:24]OFD Sender: To server: pG, [13:37:24]CommunicateWithHost lk.salyk.kg:30040 [13:37:24]ConnectInit lk.salyk.kg [13:37:24]written 0, free lines is 4095 [13:37:24]Connected sock=9 [13:37: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 37 39 32 0C 01 00 00 9C 6B 04 01 8B 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 BE B3 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B F8 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B F8 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 1D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 60 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B F8 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 95 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 64 02 00 35 04 06 00 43 2F 3C EB B5 F1 61 D3 27 01 F5 1C 5E 99 [13:37:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8E 5D 47 00 E4 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 37 39 32 10 04 04 00 EB 64 02 00 F4 03 04 00 01 39 1F 67 B6 04 01 00 00 0C C8 06 5F 42 E2 F5 EF [13:37:24]CommunicateWithHost err = 0 [13:37:24]CheckOFDResponse [13:37:24]1017 (14) - 77093643461234 [13:37:24]1041 (16) - 0000000000871792 [13:37:24]1040 (4) - 156907 [13:37:24]1012 (4) - 28.10.2024 07:10 [13:37:24]1206 (1) - 0 [13:37:24]OFD Sender: Remove packet 156907 [13:37:24]ProducePacketName [13:37:24]name=ofd_packets/00156907 [13:37:24]NVStorageDeleteData [13:37:24]Write to MH i2c: 01 00 00 F2 24 16 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 07 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: 01 07 00 F2 24 00 00 00 00 00 F5 0C 1E [13:37:24]RasterBufferAndPrint [13:37:24]line [13:37:24]line [13:37:24]line [13:37:24]line [13:37:24]line [13:37:24]written 0, free lines is 3324 [13:37:24]process_action close_receipt done [13:37:24]requested_data is exist [13:37:24]produce_requested_data [13:37:24]requested_item fm.sn is exist - process it [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 11 00 00 [13:37:24]Write to MH i2c: E2 08 00 F9 24 80 11 00 00 00 00 00 00 97 [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 17 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 17 00 F9 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EC [13:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:37:24]wFMCommunicate OK [13:37:24]requested_item fd.num is exist - process it [13:37:24]SAM_PROTO_GetFieldsCounters [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 13 00 00 [13:37:24]Write to MH i2c: E2 08 00 FA 24 80 13 00 00 00 00 00 00 9A [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 62 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 62 00 FA 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 64 02 00 0E 04 04 00 1A 02 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 9E [13:37: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 64 02 00 0E 04 04 00 1A 02 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 [13:37:24]wFMCommunicate OK [13:37:24]SAM_PROTO_GetFieldsCounters done [13:37:24]requested_item shift.num is exist - process it [13:37:24]requested_item shift.opened is exist - process it [13:37:24]req_shift_opened [13:37:24]FM_GetShiftState [13:37:24]SAM_PROTO_GetShiftState [13:37:24]wFMCommunicate request_size=4 [13:37:24]MH_SAM_APDU [13:37:24]CAPDU: 80 13 01 00 [13:37:24]Write to MH i2c: E2 08 00 FB 24 80 13 01 00 00 00 00 00 9C [13:37:24]Write i2c OK [13:37:24]MH_I2C_Read... [13:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:24]Read from MH i2c: E2 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 0E 00 [13:37:24]MH_I2C_Read... [13:37:24]Read from MH i2c: E2 0E 00 FB 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 8E [13:37:24]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:37:24]wFMCommunicate OK [13:37:24]SAM_PROTO_GetShiftState done [13:37:24]FM_GetShiftState done [13:37:24]req_shift_opened done [13:37:24]requested_item shift.open_date is exist - process it [13:37:24]req_shift_open_date [13:37:24]req_shift_open_date done [13:37:24]produce_requested_data done [13:37:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156907,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:37:24]process_action_free close_receipt [13:37:24]json_value_free [13:37:24]json_value_free done [13:37:24]process_json_proto returns [13:37:24]Send response to host [13:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156907,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:37:24]free response buf [13:37:24]execute_script done [13:37:24]execute_script returns [13:37:24]free content buf [13:37:24]Sock 7.Close socket [13:37:24]Sock 7.Thread stoped [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:41]accept exits with 10 [13:38:41]New connection [13:38:41]New thread 3066604900 created [13:38:41]Thread 3066748260 joined [13:38:41]Waiting for new connection... [13:38:41] Sock 10.Parse request [13:38:41]Sock 10.Check first char [13:38:41]Sock 10.First char is OK [13:38:41]request: POST /json_proto HTTP/1.0 [13:38:41]Method: POST [13:38:41]URL: /json_proto [13:38:41]Method is POST - this is cgi request [13:38:41]url: /json_proto [13:38:41]query_string will be loaded in cgi processing [13:38:41]execute_cgi json_proto POST (null) [13:38:41]execute_cgi path=json_proto method=POST [13:38:41]POST find Content-Length [13:38:41]Host: 172.17.63.3:8080 [13:38:41]Content-Length: 681 [13:38:41]Content-Type: application/json [13:38:41] [13:38:41]POST finish read [13:38:41]Found Content-Length = 681 [13:38:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:38:41]execute_script... [13:38: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)99724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:38:41]POST & json_proto [13:38:41]process_json_proto [13:38:41]json parsed OK: [13:38:41]protocol is kg_v1.0 [13:38:41]action value=close_receipt [13:38:41]process_action close_receipt [13:38:41]cmd_close_receipt [13:38:41]MH_GetDate [13:38:41]Write to MH i2c: F0 00 00 FC 24 0F [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: F0 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: F0 09 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: F0 09 00 FC 24 00 E4 93 1F 67 50 D1 6C 64 06 [13:38:41]GetLastDocTimeStamp 1730122645 [13:38:41]current date 1730122724 [13:38:41]FM_GetShiftState [13:38:41]SAM_PROTO_GetShiftState [13:38:41]wFMCommunicate request_size=4 [13:38:41]MH_SAM_APDU [13:38:41]CAPDU: 80 13 01 00 [13:38:41]Write to MH i2c: E2 08 00 FD 24 80 13 01 00 00 00 00 00 9E [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:41]Read from MH i2c: E2 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 0E 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: E2 0E 00 FD 24 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 90 [13:38:41]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:38:41]wFMCommunicate OK [13:38:41]SAM_PROTO_GetShiftState done [13:38:41]FM_GetShiftState done [13:38:41]opened in 1730075526 [13:38:41]opened+sec_in_day 1730161926 [13:38:41]quantity*price = 100015 [13:38:41]sum+1 = 100017 [13:38:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 124 28.10.2024 13:38 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156908 ФПД: 232407342927648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133844&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156908&fm=232407342927648&tin=02508201610067®Number=0000000000091693&sum=100000 [13:38:42]StoreToDocumentArchive [13:38:42]shift 538 fd 156908 [13:38:42]save to /storage/0538/doc_00156908 [13:38:42]save last doc name /storage/0538/doc_00156908 to /storage/kkm_last_doc_name [13:38:42]save OK [13:38:42]Clear old archive folders... [13:38:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:42]tlvbuf is B6EA8A40 [13:38:42]SAM_PROTO_ClearQueue [13:38:42]wFMCommunicate request_size=4 [13:38:42]MH_SAM_APDU [13:38:42]CAPDU: 80 09 00 00 [13:38:42]Write to MH i2c: E2 08 00 0A 25 80 09 00 00 00 00 00 00 A1 [13:38:42]Write i2c OK [13:38:42]MH_I2C_Read... [13:38:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:42]Read from MH i2c: E2 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 03 00 [13:38:42]MH_I2C_Read... [13:38:42]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [13:38:42]RAPDU: 90 00 [13:38:42]wFMCommunicate OK [13:38:42]SAM_PROTO_ClearQueue done [13:38:42]KKMCreateOFDPacket [13:38:42]OFDProtocolAddRootSTLVToBuf [13:38:42]FM_MakeSignedData [13:38:42]FM_MakeSignedData [13:38:42]SAM_PROTO_SignData [13:38:42]wFMCommunicate request_size=4 [13:38:42]MH_SAM_APDU [13:38:42]CAPDU: 80 0D 01 02 [13:38:43]Write to MH i2c: E2 08 00 0B 25 80 0D 01 02 00 00 00 00 A9 [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [13:38:43]RAPDU: 90 00 [13:38:43]wFMCommunicate OK [13:38:43]wFMCommunicate request_size=255 [13:38:43]MH_SAM_APDU [13:38: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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E4 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 64 02 00 35 04 06 00 D3 [13:38:43]Write to MH i2c: E2 02 01 0C 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E4 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 64 02 00 35 04 06 00 D3 00 00 F1 [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [13:38:43]RAPDU: 90 00 [13:38:43]wFMCommunicate OK [13:38:43]wFMCommunicate request_size=10 [13:38:43]MH_SAM_APDU [13:38:43]CAPDU: 80 0D 02 02 05 5F 8D 1E 4F 20 [13:38:43]Write to MH i2c: E2 0D 00 0D 25 80 0D 02 02 05 00 5F 8D 1E 4F 20 00 00 2F [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [13:38:43]RAPDU: 90 00 [13:38:43]wFMCommunicate OK [13:38:43]wFMCommunicate request_size=4 [13:38:43]MH_SAM_APDU [13:38:43]CAPDU: 80 0D 03 02 [13:38:43]Write to MH i2c: E2 08 00 0E 25 80 0D 03 02 00 00 00 00 AE [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 0B 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 0B 00 0E 25 00 02 38 29 63 E3 AD A9 D0 90 00 7E [13:38:43]RAPDU: 02 38 29 63 E3 AD A9 D0 90 00 [13:38:43]wFMCommunicate OK [13:38:43]SAM_PROTO_SignData done [13:38:43]FM_MakeSignedData done [13:38:43]CreateOFDProtocolMessage [13:38:43]wFMCommunicate request_size=4 [13:38:43]MH_SAM_APDU [13:38:43]CAPDU: 80 11 00 00 [13:38:43]Write to MH i2c: E2 08 00 0F 25 80 11 00 00 00 00 00 00 AE [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:43]Read from MH i2c: E2 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 17 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: E2 17 00 0F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 03 [13:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:38:43]wFMCommunicate OK [13:38:43]CreateOFDProtocolMessage done [13:38:43]OFDSenderStorePacket 156908 [13:38:43]StoreOFDPacket docnum=156908 [13:38:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B6 E8 07 01 8B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E4 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 64 02 00 35 04 06 00 D3 5F 8D 1E 4F 20 02 38 29 63 E3 AD A9 D0 [13:38:43]CheckFolder [13:38:43]dirname=/storage/ofd_packets [13:38:43]CheckFolder done [13:38:43]ProducePacketName [13:38:43]name=ofd_packets/00156908 [13:38:43]NVStorageSaveData ofd_packets/00156908 [13:38:43]File name is /storage/ofd_packets/00156908 [13:38:43]Write 301 bytes [13:38:43]NVStorageSaveData done [13:38:43]OFDSenderStorePacket done [13:38:43]KKMCreateOFDPacket done [13:38:43]NVStorageSaveData kkm_last_timestamp [13:38:43]File name is /storage/kkm_last_timestamp [13:38:43]Write 4 bytes [13:38:43]NVStorageSaveData done [13:38:43]ExternCall_PrintAddStr [13:38:43]wPrintStart [13:38:43]Write to MH i2c: 01 00 00 10 25 35 [13:38:43]Write i2c OK [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: 01 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: 01 07 00 [13:38:43]MH_I2C_Read... [13:38:43]Read from MH i2c: 01 07 00 10 25 00 00 00 00 00 FF 0F 4A [13:38:43]RasterBufferAndPrint [13:38:43]line Счет N : (1)99724 [13:38:43]line ИНН: 02508201610067 [13:38:43]line Контрольно-Кассовый Чек [13:38:43]line ПРОДАЖА [13:38:43]line ТРК (МРК, ГНК) : 31 [13:38:43]line Товар: 2710124130 [13:38:43]line Аи-92-К-5 [13:38:43]line 14.950 * 66.90 [13:38:43]line = 1000.16 [13:38:43]line НДС 12% НСП 1% [13:38:43]line > о реализуемом товаре [13:38:43]line ОКРУГЛЕНИЕ: -0.16 [13:38:43]line ИТОГО: 1000.00 [13:38:43]line Внесено: 1000.00 [13:38:43]line СДАЧА: 0.00 [13:38:43]line НСП 1% : 8.85 [13:38:43]line НДС 12% : 106.21 [13:38:43]line Наличными: 1000.00 [13:38:43]line Безнал.: 0.00 [13:38:43]line Место: АЗС № 143 "Партнер Нефть" [13:38:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:38:43]line СНО: Общий режим [13:38:43]line Чек 124 28.10.2024 13:38 [13:38:43]line Смена: 538 ФФД: 1.0 [13:38:43]line ЗНМ: 0300000096 [13:38:43]line РНМ: 0000000000091693 [13:38:43]line Версия ККМ: 001 [13:38:43]line ФМ: 0000000000871792 [13:38:43]line ФД: 156908 [13:38:43]line ФПД: 232407342927648 [13:38:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133844&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156908&fm=232407342927648&tin=02508201610067®Number=0000000000091693&sum=100000 [13:38:43]OFD Sender: Processing packet 156908 [packets to send 31, broken 30] [13:38:43]ProducePacketName [13:38:43]name=ofd_packets/00156908 [13:38:43]OFD Sender: To server: pG, [13:38:43]CommunicateWithHost lk.salyk.kg:30040 [13:38:43]ConnectInit lk.salyk.kg [13:38:43]written 0, free lines is 4095 [13:38:43]Connected sock=7 [13:38: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 37 39 32 0F 01 00 00 B6 E8 07 01 8B 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 E4 93 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 64 02 00 35 04 06 00 D3 5F 8D 1E 4F 20 02 38 29 63 E3 AD A9 D0 [13:38:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DC F6 47 00 2B 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 37 39 32 10 04 04 00 EC 64 02 00 F4 03 04 00 51 39 1F 67 B6 04 01 00 00 2A 79 18 B9 6F 60 B9 C1 [13:38:44]CommunicateWithHost err = 0 [13:38:44]CheckOFDResponse [13:38:44]1017 (14) - 77093643461234 [13:38:44]1041 (16) - 0000000000871792 [13:38:44]1040 (4) - 156908 [13:38:44]1012 (4) - 28.10.2024 07:12 [13:38:44]1206 (1) - 0 [13:38:44]OFD Sender: Remove packet 156908 [13:38:44]ProducePacketName [13:38:44]name=ofd_packets/00156908 [13:38:44]NVStorageDeleteData [13:38:44]Write to MH i2c: 01 00 00 3B 25 60 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 07 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 07 00 3B 25 00 00 00 00 00 D6 0C 49 [13:38:44]RasterBufferAndPrint [13:38:44]line [13:38:44]line [13:38:44]line [13:38:44]line [13:38:44]line [13:38:44]written 0, free lines is 3293 [13:38:44]process_action close_receipt done [13:38:44]requested_data is exist [13:38:44]produce_requested_data [13:38:44]requested_item fm.sn is exist - process it [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 11 00 00 [13:38:44]Write to MH i2c: E2 08 00 42 25 80 11 00 00 00 00 00 00 E1 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 17 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 17 00 42 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 36 [13:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:38:44]wFMCommunicate OK [13:38:44]requested_item fd.num is exist - process it [13:38:44]SAM_PROTO_GetFieldsCounters [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 13 00 00 [13:38:44]Write to MH i2c: E2 08 00 43 25 80 13 00 00 00 00 00 00 E4 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 62 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 62 00 43 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 64 02 00 0E 04 04 00 1A 02 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 EC [13:38: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 64 02 00 0E 04 04 00 1A 02 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 [13:38:44]wFMCommunicate OK [13:38:44]SAM_PROTO_GetFieldsCounters done [13:38:44]requested_item shift.num is exist - process it [13:38:44]requested_item shift.opened is exist - process it [13:38:44]req_shift_opened [13:38:44]FM_GetShiftState [13:38:44]SAM_PROTO_GetShiftState [13:38:44]wFMCommunicate request_size=4 [13:38:44]MH_SAM_APDU [13:38:44]CAPDU: 80 13 01 00 [13:38:44]Write to MH i2c: E2 08 00 44 25 80 13 01 00 00 00 00 00 E6 [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:44]Read from MH i2c: E2 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 0E 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: E2 0E 00 44 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D8 [13:38:44]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:38:44]wFMCommunicate OK [13:38:44]SAM_PROTO_GetShiftState done [13:38:44]FM_GetShiftState done [13:38:44]req_shift_opened done [13:38:44]requested_item shift.open_date is exist - process it [13:38:44]req_shift_open_date [13:38:44]req_shift_open_date done [13:38:44]produce_requested_data done [13:38:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156908,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:38:44]process_action_free close_receipt [13:38:44]json_value_free [13:38:44]json_value_free done [13:38:44]process_json_proto returns [13:38:44]Send response to host [13:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156908,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:38:44]free response buf [13:38:44]execute_script done [13:38:44]execute_script returns [13:38:44]free content buf [13:38:44]Sock 10.Close socket [13:38:44]Sock 10.Thread stoped [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:19]accept exits with 9 [13:39:19]New connection [13:39:19]New thread 3066748260 created [13:39:19]Thread 3066604900 joined [13:39:19]Waiting for new connection... [13:39:19] Sock 9.Parse request [13:39:19]Sock 9.Check first char [13:39:19]Sock 9.First char is OK [13:39:19]request: POST /json_proto HTTP/1.0 [13:39:19]Method: POST [13:39:19]URL: /json_proto [13:39:19]Method is POST - this is cgi request [13:39:19]url: /json_proto [13:39:19]query_string will be loaded in cgi processing [13:39:19]execute_cgi json_proto POST (null) [13:39:19]execute_cgi path=json_proto method=POST [13:39:19]POST find Content-Length [13:39:19]Host: 172.17.63.3:8080 [13:39:19]Content-Length: 676 [13:39:19]Content-Type: application/json [13:39:19] [13:39:19]POST finish read [13:39:19]Found Content-Length = 676 [13:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:39:19]execute_script... [13:39: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)99725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "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:39:19]POST & json_proto [13:39:19]process_json_proto [13:39:19]json parsed OK: [13:39:19]protocol is kg_v1.0 [13:39:19]action value=close_receipt [13:39:19]process_action close_receipt [13:39:19]cmd_close_receipt [13:39:19]MH_GetDate [13:39:19]Write to MH i2c: F0 00 00 45 25 59 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: F0 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: F0 09 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: F0 09 00 45 25 00 0A 94 1F 67 50 D1 6C 64 77 [13:39:19]GetLastDocTimeStamp 1730122724 [13:39:19]current date 1730122762 [13:39:19]FM_GetShiftState [13:39:19]SAM_PROTO_GetShiftState [13:39:19]wFMCommunicate request_size=4 [13:39:19]MH_SAM_APDU [13:39:19]CAPDU: 80 13 01 00 [13:39:19]Write to MH i2c: E2 08 00 46 25 80 13 01 00 00 00 00 00 E8 [13:39:19]Write i2c OK [13:39:19]MH_I2C_Read... [13:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:19]Read from MH i2c: E2 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0E 00 [13:39:19]MH_I2C_Read... [13:39:19]Read from MH i2c: E2 0E 00 46 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DA [13:39:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:39:19]wFMCommunicate OK [13:39:19]SAM_PROTO_GetShiftState done [13:39:19]FM_GetShiftState done [13:39:19]opened in 1730075526 [13:39:19]opened+sec_in_day 1730161926 [13:39:19]quantity*price = 30038 [13:39:19]sum+1 = 30039 [13:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 125 28.10.2024 13:39 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156909 ФПД: 258771654327652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156909&fm=258771654327652&tin=02508201610067®Number=0000000000091693&sum=30000 [13:39:20]StoreToDocumentArchive [13:39:20]shift 538 fd 156909 [13:39:20]save to /storage/0538/doc_00156909 [13:39:20]save last doc name /storage/0538/doc_00156909 to /storage/kkm_last_doc_name [13:39:20]save OK [13:39:20]Clear old archive folders... [13:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:20]tlvbuf is B6F237B0 [13:39:20]SAM_PROTO_ClearQueue [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 09 00 00 [13:39:20]Write to MH i2c: E2 08 00 53 25 80 09 00 00 00 00 00 00 EA [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:20]Read from MH i2c: E2 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 03 00 [13:39:20]MH_I2C_Read... [13:39:20]Read from MH i2c: E2 03 00 53 25 00 90 00 EC [13:39:20]RAPDU: 90 00 [13:39:20]wFMCommunicate OK [13:39:20]SAM_PROTO_ClearQueue done [13:39:20]KKMCreateOFDPacket [13:39:20]OFDProtocolAddRootSTLVToBuf [13:39:20]FM_MakeSignedData [13:39:20]FM_MakeSignedData [13:39:20]SAM_PROTO_SignData [13:39:20]wFMCommunicate request_size=4 [13:39:20]MH_SAM_APDU [13:39:20]CAPDU: 80 0D 01 02 [13:39:20]Write to MH i2c: E2 08 00 54 25 80 0D 01 02 00 00 00 00 F2 [13:39:20]Write i2c OK [13:39:20]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=255 [13:39:21]MH_SAM_APDU [13:39: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 0A 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 64 02 00 35 04 06 00 EB [13:39:21]Write to MH i2c: E2 02 01 55 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 0A 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 64 02 00 35 04 06 00 EB 00 00 75 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=10 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 02 02 05 59 F8 88 BD 64 [13:39:21]Write to MH i2c: E2 0D 00 56 25 80 0D 02 02 05 00 59 F8 88 BD 64 00 00 F9 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 03 00 56 25 00 90 00 EF [13:39:21]RAPDU: 90 00 [13:39:21]wFMCommunicate OK [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 0D 03 02 [13:39:21]Write to MH i2c: E2 08 00 57 25 80 0D 03 02 00 00 00 00 F7 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 0B 00 57 25 00 B5 3D C6 E0 C8 BE AC F3 90 00 B5 [13:39:21]RAPDU: B5 3D C6 E0 C8 BE AC F3 90 00 [13:39:21]wFMCommunicate OK [13:39:21]SAM_PROTO_SignData done [13:39:21]FM_MakeSignedData done [13:39:21]CreateOFDProtocolMessage [13:39:21]wFMCommunicate request_size=4 [13:39:21]MH_SAM_APDU [13:39:21]CAPDU: 80 11 00 00 [13:39:21]Write to MH i2c: E2 08 00 58 25 80 11 00 00 00 00 00 00 F7 [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:21]Read from MH i2c: E2 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: E2 17 00 58 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4C [13:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:39:21]wFMCommunicate OK [13:39:21]CreateOFDProtocolMessage done [13:39:21]OFDSenderStorePacket 156909 [13:39:21]StoreOFDPacket docnum=156909 [13:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA C1 07 01 9A 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 0A 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 64 02 00 35 04 06 00 EB 59 F8 88 BD 64 B5 3D C6 E0 C8 BE AC F3 [13:39:21]CheckFolder [13:39:21]dirname=/storage/ofd_packets [13:39:21]CheckFolder done [13:39:21]ProducePacketName [13:39:21]name=ofd_packets/00156909 [13:39:21]NVStorageSaveData ofd_packets/00156909 [13:39:21]File name is /storage/ofd_packets/00156909 [13:39:21]Write 301 bytes [13:39:21]NVStorageSaveData done [13:39:21]OFDSenderStorePacket done [13:39:21]KKMCreateOFDPacket done [13:39:21]NVStorageSaveData kkm_last_timestamp [13:39:21]File name is /storage/kkm_last_timestamp [13:39:21]Write 4 bytes [13:39:21]NVStorageSaveData done [13:39:21]ExternCall_PrintAddStr [13:39:21]wPrintStart [13:39:21]Write to MH i2c: 01 00 00 59 25 7E [13:39:21]Write i2c OK [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 [13:39:21]MH_I2C_Read... [13:39:21]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 FF 0F 93 [13:39:21]RasterBufferAndPrint [13:39:21]line Счет N : (1)99725 [13:39:21]line ИНН: 02508201610067 [13:39:21]line Контрольно-Кассовый Чек [13:39:21]line ПРОДАЖА [13:39:21]line ТРК (МРК, ГНК) : 31 [13:39:21]line Товар: 2710124130 [13:39:21]line Аи-92-К-5 [13:39:21]line 4.490 * 66.90 [13:39:21]line = 300.38 [13:39:21]line НДС 12% НСП 1% [13:39:21]line > о реализуемом товаре [13:39:21]line ОКРУГЛЕНИЕ: -0.38 [13:39:21]line ИТОГО: 300.00 [13:39:21]line Внесено: 300.00 [13:39:21]line СДАЧА: 0.00 [13:39:21]line НСП 1% : 2.66 [13:39:21]line НДС 12% : 31.90 [13:39:21]line Наличными: 300.00 [13:39:21]line Безнал.: 0.00 [13:39:21]line Место: АЗС № 143 "Партнер Нефть" [13:39:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:39:21]line СНО: Общий режим [13:39:21]line Чек 125 28.10.2024 13:39 [13:39:21]line Смена: 538 ФФД: 1.0 [13:39:21]line ЗНМ: 0300000096 [13:39:21]line РНМ: 0000000000091693 [13:39:21]line Версия ККМ: 001 [13:39:21]line ФМ: 0000000000871792 [13:39:21]line ФД: 156909 [13:39:21]line ФПД: 258771654327652 [13:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133922&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156909&fm=258771654327652&tin=02508201610067®Number=0000000000091693&sum=30000 [13:39:21]OFD Sender: Processing packet 156909 [packets to send 31, broken 30] [13:39:21]ProducePacketName [13:39:21]name=ofd_packets/00156909 [13:39:21]OFD Sender: To server: pG, [13:39:21]CommunicateWithHost lk.salyk.kg:30040 [13:39:21]ConnectInit lk.salyk.kg [13:39:21]written 0, free lines is 4095 [13:39:21]Connected sock=10 [13:39: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 37 39 32 0F 01 00 00 AA C1 07 01 9A 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 0A 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 64 02 00 35 04 06 00 EB 59 F8 88 BD 64 B5 3D C6 E0 C8 BE AC F3 [13:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 18 C1 47 00 2B 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 64 02 00 F4 03 04 00 77 39 1F 67 B6 04 01 00 00 D5 E9 4C DD 95 EE 9A 1C [13:39:22]CommunicateWithHost err = 0 [13:39:22]CheckOFDResponse [13:39:22]1017 (14) - 77093643461234 [13:39:22]1041 (16) - 0000000000871792 [13:39:22]1040 (4) - 156909 [13:39:22]1012 (4) - 28.10.2024 07:12 [13:39:22]1206 (1) - 0 [13:39:22]OFD Sender: Remove packet 156909 [13:39:22]ProducePacketName [13:39:22]name=ofd_packets/00156909 [13:39:22]NVStorageDeleteData [13:39:22]Write to MH i2c: 01 00 00 84 25 A9 [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: 01 07 00 84 25 00 00 00 00 00 E4 0C A0 [13:39:22]RasterBufferAndPrint [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]line [13:39:22]written 0, free lines is 3306 [13:39:22]process_action close_receipt done [13:39:22]requested_data is exist [13:39:22]produce_requested_data [13:39:22]requested_item fm.sn is exist - process it [13:39:22]wFMCommunicate request_size=4 [13:39:22]MH_SAM_APDU [13:39:22]CAPDU: 80 11 00 00 [13:39:22]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:22]Read from MH i2c: E2 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 17 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7F [13:39:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:39:22]wFMCommunicate OK [13:39:22]requested_item fd.num is exist - process it [13:39:22]SAM_PROTO_GetFieldsCounters [13:39:22]wFMCommunicate request_size=4 [13:39:22]MH_SAM_APDU [13:39:22]CAPDU: 80 13 00 00 [13:39:22]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:22]Read from MH i2c: E2 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 62 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 62 00 8C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 64 02 00 0E 04 04 00 1A 02 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 39 [13:39: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 64 02 00 0E 04 04 00 1A 02 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 [13:39:22]wFMCommunicate OK [13:39:22]SAM_PROTO_GetFieldsCounters done [13:39:22]requested_item shift.num is exist - process it [13:39:22]requested_item shift.opened is exist - process it [13:39:22]req_shift_opened [13:39:22]FM_GetShiftState [13:39:22]SAM_PROTO_GetShiftState [13:39:22]wFMCommunicate request_size=4 [13:39:22]MH_SAM_APDU [13:39:22]CAPDU: 80 13 01 00 [13:39:22]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [13:39:22]Write i2c OK [13:39:22]MH_I2C_Read... [13:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:22]Read from MH i2c: E2 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 0E 00 [13:39:22]MH_I2C_Read... [13:39:22]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 21 [13:39:22]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:39:22]wFMCommunicate OK [13:39:22]SAM_PROTO_GetShiftState done [13:39:22]FM_GetShiftState done [13:39:22]req_shift_opened done [13:39:22]requested_item shift.open_date is exist - process it [13:39:22]req_shift_open_date [13:39:22]req_shift_open_date done [13:39:22]produce_requested_data done [13:39:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156909,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:39:22]process_action_free close_receipt [13:39:22]json_value_free [13:39:22]json_value_free done [13:39:22]process_json_proto returns [13:39:22]Send response to host [13:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156909,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:39:22]free response buf [13:39:22]execute_script done [13:39:22]execute_script returns [13:39:22]free content buf [13:39:22]Sock 9.Close socket [13:39:22]Sock 9.Thread stoped [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:08]accept exits with 7 [13:41:08]New connection [13:41:08]New thread 3066604900 created [13:41:08]Thread 3066748260 joined [13:41:08]Waiting for new connection... [13:41:08] Sock 7.Parse request [13:41:08]Sock 7.Check first char [13:41:08]Sock 7.First char is OK [13:41:08]request: POST /json_proto HTTP/1.0 [13:41:08]Method: POST [13:41:08]URL: /json_proto [13:41:08]Method is POST - this is cgi request [13:41:08]url: /json_proto [13:41:08]query_string will be loaded in cgi processing [13:41:08]execute_cgi json_proto POST (null) [13:41:08]execute_cgi path=json_proto method=POST [13:41:08]POST find Content-Length [13:41:08]Host: 172.17.63.3:8080 [13:41:08]Content-Length: 681 [13:41:08]Content-Type: application/json [13:41:08] [13:41:08]POST finish read [13:41:08]Found Content-Length = 681 [13:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:08]execute_script... [13:41: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)99726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:08]POST & json_proto [13:41:08]process_json_proto [13:41:08]json parsed OK: [13:41:08]protocol is kg_v1.0 [13:41:08]action value=close_receipt [13:41:08]process_action close_receipt [13:41:08]cmd_close_receipt [13:41:08]MH_GetDate [13:41:08]Write to MH i2c: F0 00 00 8E 25 A2 [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: F0 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: F0 09 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: F0 09 00 8E 25 00 77 94 1F 67 50 D1 6C 64 2D [13:41:08]GetLastDocTimeStamp 1730122762 [13:41:08]current date 1730122871 [13:41:08]FM_GetShiftState [13:41:08]SAM_PROTO_GetShiftState [13:41:08]wFMCommunicate request_size=4 [13:41:08]MH_SAM_APDU [13:41:08]CAPDU: 80 13 01 00 [13:41:08]Write to MH i2c: E2 08 00 8F 25 80 13 01 00 00 00 00 00 31 [13:41:08]Write i2c OK [13:41:08]MH_I2C_Read... [13:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:08]Read from MH i2c: E2 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 0E 00 [13:41:08]MH_I2C_Read... [13:41:08]Read from MH i2c: E2 0E 00 8F 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 23 [13:41:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:41:08]wFMCommunicate OK [13:41:08]SAM_PROTO_GetShiftState done [13:41:08]FM_GetShiftState done [13:41:08]opened in 1730075526 [13:41:08]opened+sec_in_day 1730161926 [13:41:08]quantity*price = 150056 [13:41:08]sum+1 = 150058 [13:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 126 28.10.2024 13:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156910 ФПД: 169380454320459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156910&fm=169380454320459&tin=02508201610067®Number=0000000000091693&sum=150000 [13:41:09]StoreToDocumentArchive [13:41:09]shift 538 fd 156910 [13:41:09]save to /storage/0538/doc_00156910 [13:41:09]save last doc name /storage/0538/doc_00156910 to /storage/kkm_last_doc_name [13:41:09]save OK [13:41:09]Clear old archive folders... [13:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:09]tlvbuf is B6EA8AD0 [13:41:09]SAM_PROTO_ClearQueue [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 09 00 00 [13:41:09]Write to MH i2c: E2 08 00 9C 25 80 09 00 00 00 00 00 00 33 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]SAM_PROTO_ClearQueue done [13:41:09]KKMCreateOFDPacket [13:41:09]OFDProtocolAddRootSTLVToBuf [13:41:09]FM_MakeSignedData [13:41:09]FM_MakeSignedData [13:41:09]SAM_PROTO_SignData [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 01 02 [13:41:09]Write to MH i2c: E2 08 00 9D 25 80 0D 01 02 00 00 00 00 3B [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]wFMCommunicate request_size=255 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 7E 00 00 00 F4 03 04 00 77 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 64 02 00 35 04 06 00 9A [13:41:09]Write to MH i2c: E2 02 01 9E 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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 7E 00 00 00 F4 03 04 00 77 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 64 02 00 35 04 06 00 9A 00 00 31 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 9E 25 00 90 00 37 [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]wFMCommunicate request_size=10 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 02 02 05 0C F5 CF C9 4B [13:41:09]Write to MH i2c: E2 0D 00 9F 25 80 0D 02 02 05 00 0C F5 CF C9 4B 00 00 2C [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [13:41:09]RAPDU: 90 00 [13:41:09]wFMCommunicate OK [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 0D 03 02 [13:41:09]Write to MH i2c: E2 08 00 A0 25 80 0D 03 02 00 00 00 00 40 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:09]Read from MH i2c: E2 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0B 00 [13:41:09]MH_I2C_Read... [13:41:09]Read from MH i2c: E2 0B 00 A0 25 00 6E 52 9D A2 3A 24 BF 3F 90 00 9C [13:41:09]RAPDU: 6E 52 9D A2 3A 24 BF 3F 90 00 [13:41:09]wFMCommunicate OK [13:41:09]SAM_PROTO_SignData done [13:41:09]FM_MakeSignedData done [13:41:09]CreateOFDProtocolMessage [13:41:09]wFMCommunicate request_size=4 [13:41:09]MH_SAM_APDU [13:41:09]CAPDU: 80 11 00 00 [13:41:09]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [13:41:09]Write i2c OK [13:41:09]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [13:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:10]wFMCommunicate OK [13:41:10]CreateOFDProtocolMessage done [13:41:10]OFDSenderStorePacket 156910 [13:41:10]StoreOFDPacket docnum=156910 [13:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B3 D2 07 01 15 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 7E 00 00 00 F4 03 04 00 77 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 64 02 00 35 04 06 00 9A 0C F5 CF C9 4B 6E 52 9D A2 3A 24 BF 3F [13:41:10]CheckFolder [13:41:10]dirname=/storage/ofd_packets [13:41:10]CheckFolder done [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00156910 [13:41:10]NVStorageSaveData ofd_packets/00156910 [13:41:10]File name is /storage/ofd_packets/00156910 [13:41:10]Write 301 bytes [13:41:10]NVStorageSaveData done [13:41:10]OFDSenderStorePacket done [13:41:10]KKMCreateOFDPacket done [13:41:10]NVStorageSaveData kkm_last_timestamp [13:41:10]File name is /storage/kkm_last_timestamp [13:41:10]Write 4 bytes [13:41:10]NVStorageSaveData done [13:41:10]ExternCall_PrintAddStr [13:41:10]wPrintStart [13:41:10]Write to MH i2c: 01 00 00 A2 25 C7 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [13:41:10]RasterBufferAndPrint [13:41:10]line Счет N : (1)99726 [13:41:10]line ИНН: 02508201610067 [13:41:10]line Контрольно-Кассовый Чек [13:41:10]line ПРОДАЖА [13:41:10]line ТРК (МРК, ГНК) : 31 [13:41:10]line Товар: 2710124130 [13:41:10]line Аи-92-К-5 [13:41:10]line 22.430 * 66.90 [13:41:10]line = 1500.57 [13:41:10]line НДС 12% НСП 1% [13:41:10]line > о реализуемом товаре [13:41:10]line ОКРУГЛЕНИЕ: -0.57 [13:41:10]line ИТОГО: 1500.00 [13:41:10]line Внесено: 1500.00 [13:41:10]line СДАЧА: 0.00 [13:41:10]line НСП 1% : 13.28 [13:41:10]line НДС 12% : 159.35 [13:41:10]line Наличными: 1500.00 [13:41:10]line Безнал.: 0.00 [13:41:10]line Место: АЗС № 143 "Партнер Нефть" [13:41:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:41:10]line СНО: Общий режим [13:41:10]line Чек 126 28.10.2024 13:41 [13:41:10]line Смена: 538 ФФД: 1.0 [13:41:10]line ЗНМ: 0300000096 [13:41:10]line РНМ: 0000000000091693 [13:41:10]line Версия ККМ: 001 [13:41:10]line ФМ: 0000000000871792 [13:41:10]line ФД: 156910 [13:41:10]line ФПД: 169380454320459 [13:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156910&fm=169380454320459&tin=02508201610067®Number=0000000000091693&sum=150000 [13:41:10]OFD Sender: Processing packet 156910 [packets to send 31, broken 30] [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00156910 [13:41:10]OFD Sender: To server: pG, [13:41:10]CommunicateWithHost lk.salyk.kg:30040 [13:41:10]ConnectInit lk.salyk.kg [13:41:10]written 0, free lines is 4095 [13:41:10]Connected sock=10 [13:41: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 37 39 32 0F 01 00 00 B3 D2 07 01 15 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 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 3F 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 7E 00 00 00 F4 03 04 00 77 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 64 02 00 35 04 06 00 9A 0C F5 CF C9 4B 6E 52 9D A2 3A 24 BF 3F [13:41:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DD 01 47 00 2F ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 64 02 00 F4 03 04 00 E3 39 1F 67 B6 04 01 00 00 C8 62 52 7F 41 85 35 4E [13:41:10]CommunicateWithHost err = 0 [13:41:10]CheckOFDResponse [13:41:10]1017 (14) - 77093643461234 [13:41:10]1041 (16) - 0000000000871792 [13:41:10]1040 (4) - 156910 [13:41:10]1012 (4) - 28.10.2024 07:14 [13:41:10]1206 (1) - 0 [13:41:10]OFD Sender: Remove packet 156910 [13:41:10]ProducePacketName [13:41:10]name=ofd_packets/00156910 [13:41:10]NVStorageDeleteData [13:41:10]Write to MH i2c: 01 00 00 CD 25 F2 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: 01 07 00 CD 25 00 00 00 00 00 E0 0C E5 [13:41:10]RasterBufferAndPrint [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]line [13:41:10]written 0, free lines is 3301 [13:41:10]process_action close_receipt done [13:41:10]requested_data is exist [13:41:10]produce_requested_data [13:41:10]requested_item fm.sn is exist - process it [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 11 00 00 [13:41:10]Write to MH i2c: E2 08 00 D4 25 80 11 00 00 00 00 00 00 73 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:10]Read from MH i2c: E2 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 [13:41:10]MH_I2C_Read... [13:41:10]Read from MH i2c: E2 17 00 D4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [13:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:10]wFMCommunicate OK [13:41:10]requested_item fd.num is exist - process it [13:41:10]SAM_PROTO_GetFieldsCounters [13:41:10]wFMCommunicate request_size=4 [13:41:10]MH_SAM_APDU [13:41:10]CAPDU: 80 13 00 00 [13:41:10]Write to MH i2c: E2 08 00 D5 25 80 13 00 00 00 00 00 00 76 [13:41:10]Write i2c OK [13:41:10]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 62 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 62 00 D5 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 64 02 00 0E 04 04 00 1A 02 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 86 [13:41: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 64 02 00 0E 04 04 00 1A 02 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 [13:41:11]wFMCommunicate OK [13:41:11]SAM_PROTO_GetFieldsCounters done [13:41:11]requested_item shift.num is exist - process it [13:41:11]requested_item shift.opened is exist - process it [13:41:11]req_shift_opened [13:41:11]FM_GetShiftState [13:41:11]SAM_PROTO_GetShiftState [13:41:11]wFMCommunicate request_size=4 [13:41:11]MH_SAM_APDU [13:41:11]CAPDU: 80 13 01 00 [13:41:11]Write to MH i2c: E2 08 00 D6 25 80 13 01 00 00 00 00 00 78 [13:41:11]Write i2c OK [13:41:11]MH_I2C_Read... [13:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:11]Read from MH i2c: E2 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 0E 00 [13:41:11]MH_I2C_Read... [13:41:11]Read from MH i2c: E2 0E 00 D6 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6A [13:41:11]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:41:11]wFMCommunicate OK [13:41:11]SAM_PROTO_GetShiftState done [13:41:11]FM_GetShiftState done [13:41:11]req_shift_opened done [13:41:11]requested_item shift.open_date is exist - process it [13:41:11]req_shift_open_date [13:41:11]req_shift_open_date done [13:41:11]produce_requested_data done [13:41:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156910,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:41:11]process_action_free close_receipt [13:41:11]json_value_free [13:41:11]json_value_free done [13:41:11]process_json_proto returns [13:41:11]Send response to host [13:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156910,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:41:11]free response buf [13:41:11]execute_script done [13:41:11]execute_script returns [13:41:11]free content buf [13:41:11]Sock 7.Close socket [13:41:11]Sock 7.Thread stoped [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:38]accept exits with 9 [13:41:38]New connection [13:41:38]New thread 3066748260 created [13:41:38]Thread 3066604900 joined [13:41:38]Waiting for new connection... [13:41:38] Sock 9.Parse request [13:41:38]Sock 9.Check first char [13:41:38]Sock 9.First char is OK [13:41:38]request: POST /json_proto HTTP/1.0 [13:41:38]Method: POST [13:41:38]URL: /json_proto [13:41:38]Method is POST - this is cgi request [13:41:38]url: /json_proto [13:41:38]query_string will be loaded in cgi processing [13:41:38]execute_cgi json_proto POST (null) [13:41:38]execute_cgi path=json_proto method=POST [13:41:38]POST find Content-Length [13:41:38]Host: 172.17.63.3:8080 [13:41:38]Content-Length: 674 [13:41:38]Content-Type: application/json [13:41:38] [13:41:38]POST finish read [13:41:38]Found Content-Length = 674 [13:41:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [13:41:38]execute_script... [13:41: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)99727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [13:41:38]POST & json_proto [13:41:38]process_json_proto [13:41:38]json parsed OK: [13:41:38]protocol is kg_v1.0 [13:41:38]action value=close_receipt [13:41:38]process_action close_receipt [13:41:38]cmd_close_receipt [13:41:38]MH_GetDate [13:41:38]Write to MH i2c: F0 00 00 D7 25 EB [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: F0 09 00 D7 25 00 96 94 1F 67 50 D1 6C 64 95 [13:41:38]GetLastDocTimeStamp 1730122871 [13:41:38]current date 1730122902 [13:41:38]FM_GetShiftState [13:41:38]SAM_PROTO_GetShiftState [13:41:38]wFMCommunicate request_size=4 [13:41:38]MH_SAM_APDU [13:41:38]CAPDU: 80 13 01 00 [13:41:38]Write to MH i2c: E2 08 00 D8 25 80 13 01 00 00 00 00 00 7A [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:39]Read from MH i2c: E2 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 [13:41:39]MH_I2C_Read... [13:41:39]Read from MH i2c: E2 0E 00 D8 25 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6C [13:41:39]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:41:39]wFMCommunicate OK [13:41:39]SAM_PROTO_GetShiftState done [13:41:39]FM_GetShiftState done [13:41:39]opened in 1730075526 [13:41:39]opened+sec_in_day 1730161926 [13:41:39]quantity*price = 80010 [13:41:39]sum+1 = 80011 [13:41:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 127 28.10.2024 13:41 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156911 ФПД: 257137001037632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134142&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156911&fm=257137001037632&tin=02508201610067®Number=0000000000091693&sum=80000 [13:41:40]StoreToDocumentArchive [13:41:40]shift 538 fd 156911 [13:41:40]save to /storage/0538/doc_00156911 [13:41:40]save last doc name /storage/0538/doc_00156911 to /storage/kkm_last_doc_name [13:41:40]save OK [13:41:40]Clear old archive folders... [13:41:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:40]tlvbuf is 01A5D4E0 [13:41:40]SAM_PROTO_ClearQueue [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 09 00 00 [13:41:40]Write to MH i2c: E2 08 00 E5 25 80 09 00 00 00 00 00 00 7C [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_ClearQueue done [13:41:40]KKMCreateOFDPacket [13:41:40]OFDProtocolAddRootSTLVToBuf [13:41:40]FM_MakeSignedData [13:41:40]FM_MakeSignedData [13:41:40]SAM_PROTO_SignData [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 01 02 [13:41:40]Write to MH i2c: E2 08 00 E6 25 80 0D 01 02 00 00 00 00 84 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=255 [13:41:40]MH_SAM_APDU [13:41: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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 7F 00 00 00 F4 03 04 00 96 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 64 02 00 35 04 06 00 E9 DD 5F 9A [13:41:40]Write to MH i2c: E2 02 01 E7 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 7F 00 00 00 F4 03 04 00 96 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 64 02 00 35 04 06 00 E9 DD 5F 9A 00 00 A0 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=7 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 02 02 02 FF 40 [13:41:40]Write to MH i2c: E2 0A 00 E8 25 80 0D 02 02 02 00 FF 40 00 00 CA [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 03 00 E8 25 00 90 00 81 [13:41:40]RAPDU: 90 00 [13:41:40]wFMCommunicate OK [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 0D 03 02 [13:41:40]Write to MH i2c: E2 08 00 E9 25 80 0D 03 02 00 00 00 00 89 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0B 00 E9 25 00 D1 C4 6C A9 27 D1 A4 50 90 00 20 [13:41:40]RAPDU: D1 C4 6C A9 27 D1 A4 50 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_SignData done [13:41:40]FM_MakeSignedData done [13:41:40]CreateOFDProtocolMessage [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 11 00 00 [13:41:40]Write to MH i2c: E2 08 00 EA 25 80 11 00 00 00 00 00 00 89 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 EA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [13:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:40]wFMCommunicate OK [13:41:40]CreateOFDProtocolMessage done [13:41:40]OFDSenderStorePacket 156911 [13:41:40]StoreOFDPacket docnum=156911 [13:41:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E1 5B 04 01 5A 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 7F 00 00 00 F4 03 04 00 96 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 64 02 00 35 04 06 00 E9 DD 5F 9A FF 40 D1 C4 6C A9 27 D1 A4 50 [13:41:40]CheckFolder [13:41:40]dirname=/storage/ofd_packets [13:41:40]CheckFolder done [13:41:40]ProducePacketName [13:41:40]name=ofd_packets/00156911 [13:41:40]NVStorageSaveData ofd_packets/00156911 [13:41:40]File name is /storage/ofd_packets/00156911 [13:41:40]Write 298 bytes [13:41:40]NVStorageSaveData done [13:41:40]OFDSenderStorePacket done [13:41:40]KKMCreateOFDPacket done [13:41:40]NVStorageSaveData kkm_last_timestamp [13:41:40]File name is /storage/kkm_last_timestamp [13:41:40]Write 4 bytes [13:41:40]NVStorageSaveData done [13:41:40]ExternCall_PrintAddStr [13:41:40]wPrintStart [13:41:40]Write to MH i2c: 01 00 00 EB 25 10 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 FF 0F 25 [13:41:40]RasterBufferAndPrint [13:41:40]line Счет N : (1)99727 [13:41:40]line ИНН: 02508201610067 [13:41:40]line Контрольно-Кассовый Чек [13:41:40]line ПРОДАЖА [13:41:40]line ТРК (МРК, ГНК) : 32 [13:41:40]line Товар: 2710194210 [13:41:40]line ДТ-К-5 [13:41:40]line 10.500 * 76.20 [13:41:40]line = 800.10 [13:41:40]line НДС 12% НСП 1% [13:41:40]line > о реализуемом товаре [13:41:40]line ОКРУГЛЕНИЕ: -0.10 [13:41:40]line ИТОГО: 800.00 [13:41:40]line Внесено: 800.00 [13:41:40]line СДАЧА: 0.00 [13:41:40]line НСП 1% : 7.08 [13:41:40]line НДС 12% : 84.97 [13:41:40]line Наличными: 800.00 [13:41:40]line Безнал.: 0.00 [13:41:40]line Место: АЗС № 143 "Партнер Нефть" [13:41:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:41:40]line СНО: Общий режим [13:41:40]line Чек 127 28.10.2024 13:41 [13:41:40]line Смена: 538 ФФД: 1.0 [13:41:40]line ЗНМ: 0300000096 [13:41:40]line РНМ: 0000000000091693 [13:41:40]line Версия ККМ: 001 [13:41:40]line ФМ: 0000000000871792 [13:41:40]line ФД: 156911 [13:41:40]line ФПД: 257137001037632 [13:41:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134142&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156911&fm=257137001037632&tin=02508201610067®Number=0000000000091693&sum=80000 [13:41:41]OFD Sender: Processing packet 156911 [packets to send 31, broken 30] [13:41:41]ProducePacketName [13:41:41]name=ofd_packets/00156911 [13:41:41]OFD Sender: To server: pG, [13:41:41]CommunicateWithHost lk.salyk.kg:30040 [13:41:41]ConnectInit lk.salyk.kg [13:41:41]written 0, free lines is 4095 [13:41:41]Connected sock=10 [13:41: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 37 39 32 0C 01 00 00 E1 5B 04 01 5A 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 7F 00 00 00 F4 03 04 00 96 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 64 02 00 35 04 06 00 E9 DD 5F 9A FF 40 D1 C4 6C A9 27 D1 A4 50 [13:41:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 88 9D 47 00 3F 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 64 02 00 F4 03 04 00 02 3A 1F 67 B6 04 01 00 00 0F FC 3C 6F EC E1 F5 EC [13:41:41]CommunicateWithHost err = 0 [13:41:41]CheckOFDResponse [13:41:41]1017 (14) - 77093643461234 [13:41:41]1041 (16) - 0000000000871792 [13:41:41]1040 (4) - 156911 [13:41:41]1012 (4) - 28.10.2024 07:15 [13:41:41]1206 (1) - 0 [13:41:41]OFD Sender: Remove packet 156911 [13:41:41]ProducePacketName [13:41:41]name=ofd_packets/00156911 [13:41:41]NVStorageDeleteData [13:41:41]Write to MH i2c: 01 00 00 16 26 3C [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: 01 07 00 16 26 00 00 00 00 00 D9 0C 28 [13:41:41]RasterBufferAndPrint [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]line [13:41:41]written 0, free lines is 3296 [13:41:41]process_action close_receipt done [13:41:41]requested_data is exist [13:41:41]produce_requested_data [13:41:41]requested_item fm.sn is exist - process it [13:41:41]wFMCommunicate request_size=4 [13:41:41]MH_SAM_APDU [13:41:41]CAPDU: 80 11 00 00 [13:41:41]Write to MH i2c: E2 08 00 1D 26 80 11 00 00 00 00 00 00 BD [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:41]Read from MH i2c: E2 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 17 00 [13:41:41]MH_I2C_Read... [13:41:41]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 37 39 32 90 00 12 [13:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:41]wFMCommunicate OK [13:41:41]requested_item fd.num is exist - process it [13:41:41]SAM_PROTO_GetFieldsCounters [13:41:41]wFMCommunicate request_size=4 [13:41:41]MH_SAM_APDU [13:41:41]CAPDU: 80 13 00 00 [13:41:41]Write to MH i2c: E2 08 00 1E 26 80 13 00 00 00 00 00 00 C0 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:41]Read from MH i2c: E2 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 62 00 [13:41:41]MH_I2C_Read... [13:41:41]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [13:41: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:41]wFMCommunicate OK [13:41:41]SAM_PROTO_GetFieldsCounters done [13:41:41]requested_item shift.num is exist - process it [13:41:41]requested_item shift.opened is exist - process it [13:41:41]req_shift_opened [13:41:41]FM_GetShiftState [13:41:41]SAM_PROTO_GetShiftState [13:41:41]wFMCommunicate request_size=4 [13:41:41]MH_SAM_APDU [13:41:41]CAPDU: 80 13 01 00 [13:41:41]Write to MH i2c: E2 08 00 1F 26 80 13 01 00 00 00 00 00 C2 [13:41:41]Write i2c OK [13:41:41]MH_I2C_Read... [13:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:41]Read from MH i2c: E2 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 0E 00 [13:41:41]MH_I2C_Read... [13:41:41]Read from MH i2c: E2 0E 00 1F 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B4 [13:41:41]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:41:41]wFMCommunicate OK [13:41:41]SAM_PROTO_GetShiftState done [13:41:41]FM_GetShiftState done [13:41:41]req_shift_opened done [13:41:41]requested_item shift.open_date is exist - process it [13:41:41]req_shift_open_date [13:41:41]req_shift_open_date done [13:41:41]produce_requested_data done [13:41:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156911,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:41:41]process_action_free close_receipt [13:41:41]json_value_free [13:41:41]json_value_free done [13:41:41]process_json_proto returns [13:41:41]Send response to host [13:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156911,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:41:41]free response buf [13:41:41]execute_script done [13:41:41]execute_script returns [13:41:41]free content buf [13:41:41]Sock 9.Close socket [13:41:41]Sock 9.Thread stoped [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:30]accept exits with 7 [13:42:30]New connection [13:42:30]New thread 3066604900 created [13:42:30]Thread 3066748260 joined [13:42:30]Waiting for new connection... [13:42:30] Sock 7.Parse request [13:42:30]Sock 7.Check first char [13:42:30]Sock 7.First char is OK [13:42:30]request: POST /json_proto HTTP/1.0 [13:42:30]Method: POST [13:42:30]URL: /json_proto [13:42:30]Method is POST - this is cgi request [13:42:30]url: /json_proto [13:42:30]query_string will be loaded in cgi processing [13:42:30]execute_cgi json_proto POST (null) [13:42:30]execute_cgi path=json_proto method=POST [13:42:30]POST find Content-Length [13:42:30]Host: 172.17.63.3:8080 [13:42:30]Content-Length: 676 [13:42:30]Content-Type: application/json [13:42:30] [13:42:30]POST finish read [13:42:30]Found Content-Length = 676 [13:42:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:30]execute_script... [13:42: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)99728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:30]POST & json_proto [13:42:30]process_json_proto [13:42:30]json parsed OK: [13:42:30]protocol is kg_v1.0 [13:42:30]action value=close_receipt [13:42:30]process_action close_receipt [13:42:30]cmd_close_receipt [13:42:30]MH_GetDate [13:42:30]Write to MH i2c: F0 00 00 20 26 35 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: F0 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: F0 09 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: F0 09 00 20 26 00 C9 94 1F 67 50 D1 6C 64 12 [13:42:30]GetLastDocTimeStamp 1730122902 [13:42:30]current date 1730122953 [13:42:30]FM_GetShiftState [13:42:30]SAM_PROTO_GetShiftState [13:42:30]wFMCommunicate request_size=4 [13:42:30]MH_SAM_APDU [13:42:30]CAPDU: 80 13 01 00 [13:42:30]Write to MH i2c: E2 08 00 21 26 80 13 01 00 00 00 00 00 C4 [13:42:30]Write i2c OK [13:42:30]MH_I2C_Read... [13:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:30]Read from MH i2c: E2 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 0E 00 [13:42:30]MH_I2C_Read... [13:42:30]Read from MH i2c: E2 0E 00 21 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B6 [13:42:30]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:42:30]wFMCommunicate OK [13:42:30]SAM_PROTO_GetShiftState done [13:42:30]FM_GetShiftState done [13:42:30]opened in 1730075526 [13:42:30]opened+sec_in_day 1730161926 [13:42:30]quantity*price = 20003 [13:42:30]sum+1 = 20004 [13:42:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 128 28.10.2024 13:42 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156912 ФПД: 169477913710281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156912&fm=169477913710281&tin=02508201610067®Number=0000000000091693&sum=20000 [13:42:31]StoreToDocumentArchive [13:42:31]shift 538 fd 156912 [13:42:31]save to /storage/0538/doc_00156912 [13:42:31]save last doc name /storage/0538/doc_00156912 to /storage/kkm_last_doc_name [13:42:31]save OK [13:42:31]Clear old archive folders... [13:42:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:31]tlvbuf is 01AD28A0 [13:42:31]SAM_PROTO_ClearQueue [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 09 00 00 [13:42:31]Write to MH i2c: E2 08 00 2E 26 80 09 00 00 00 00 00 00 C6 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [13:42:31]RAPDU: 90 00 [13:42:31]wFMCommunicate OK [13:42:31]SAM_PROTO_ClearQueue done [13:42:31]KKMCreateOFDPacket [13:42:31]OFDProtocolAddRootSTLVToBuf [13:42:31]FM_MakeSignedData [13:42:31]FM_MakeSignedData [13:42:31]SAM_PROTO_SignData [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 0D 01 02 [13:42:31]Write to MH i2c: E2 08 00 2F 26 80 0D 01 02 00 00 00 00 CE [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [13:42:31]RAPDU: 90 00 [13:42:31]wFMCommunicate OK [13:42:31]wFMCommunicate request_size=255 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 80 00 00 00 F4 03 04 00 C9 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 64 02 00 35 04 06 00 9A [13:42:31]Write to MH i2c: E2 02 01 30 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 80 00 00 00 F4 03 04 00 C9 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 64 02 00 35 04 06 00 9A 00 00 93 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [13:42:31]RAPDU: 90 00 [13:42:31]wFMCommunicate OK [13:42:31]wFMCommunicate request_size=10 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 0D 02 02 05 23 A6 D8 0E C9 [13:42:31]Write to MH i2c: E2 0D 00 31 26 80 0D 02 02 05 00 23 A6 D8 0E C9 00 00 53 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 03 00 31 26 00 90 00 CB [13:42:31]RAPDU: 90 00 [13:42:31]wFMCommunicate OK [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 0D 03 02 [13:42:31]Write to MH i2c: E2 08 00 32 26 80 0D 03 02 00 00 00 00 D3 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0B 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 0B 00 32 26 00 E1 21 34 57 34 00 94 87 90 00 B0 [13:42:31]RAPDU: E1 21 34 57 34 00 94 87 90 00 [13:42:31]wFMCommunicate OK [13:42:31]SAM_PROTO_SignData done [13:42:31]FM_MakeSignedData done [13:42:31]CreateOFDProtocolMessage [13:42:31]wFMCommunicate request_size=4 [13:42:31]MH_SAM_APDU [13:42:31]CAPDU: 80 11 00 00 [13:42:31]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:31]Read from MH i2c: E2 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: E2 17 00 [13:42:31]MH_I2C_Read... [13:42:31]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 37 39 32 90 00 28 [13:42:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:42:31]wFMCommunicate OK [13:42:31]CreateOFDProtocolMessage done [13:42:31]OFDSenderStorePacket 156912 [13:42:31]StoreOFDPacket docnum=156912 [13:42:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F 1D 07 01 87 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 80 00 00 00 F4 03 04 00 C9 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 64 02 00 35 04 06 00 9A 23 A6 D8 0E C9 E1 21 34 57 34 00 94 87 [13:42:31]CheckFolder [13:42:31]dirname=/storage/ofd_packets [13:42:31]CheckFolder done [13:42:31]ProducePacketName [13:42:31]name=ofd_packets/00156912 [13:42:31]NVStorageSaveData ofd_packets/00156912 [13:42:31]File name is /storage/ofd_packets/00156912 [13:42:31]Write 301 bytes [13:42:31]NVStorageSaveData done [13:42:31]OFDSenderStorePacket done [13:42:31]KKMCreateOFDPacket done [13:42:31]NVStorageSaveData kkm_last_timestamp [13:42:31]File name is /storage/kkm_last_timestamp [13:42:31]Write 4 bytes [13:42:31]NVStorageSaveData done [13:42:31]ExternCall_PrintAddStr [13:42:31]wPrintStart [13:42:31]Write to MH i2c: 01 00 00 34 26 5A [13:42:31]Write i2c OK [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 [13:42:31]MH_I2C_Read... [13:42:31]Read from MH i2c: 01 07 00 34 26 00 00 00 00 00 FF 0F 6F [13:42:31]RasterBufferAndPrint [13:42:31]line Счет N : (1)99728 [13:42:31]line ИНН: 02508201610067 [13:42:31]line Контрольно-Кассовый Чек [13:42:31]line ПРОДАЖА [13:42:31]line ТРК (МРК, ГНК) : 31 [13:42:31]line Товар: 2710124130 [13:42:31]line Аи-92-К-5 [13:42:31]line 2.990 * 66.90 [13:42:31]line = 200.03 [13:42:31]line НДС 12% НСП 1% [13:42:31]line > о реализуемом товаре [13:42:31]line ОКРУГЛЕНИЕ: -0.03 [13:42:31]line ИТОГО: 200.00 [13:42:31]line Внесено: 200.00 [13:42:31]line СДАЧА: 0.00 [13:42:31]line НСП 1% : 1.77 [13:42:31]line НДС 12% : 21.24 [13:42:31]line Наличными: 200.00 [13:42:31]line Безнал.: 0.00 [13:42:31]line Место: АЗС № 143 "Партнер Нефть" [13:42:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:42:31]line СНО: Общий режим [13:42:31]line Чек 128 28.10.2024 13:42 [13:42:31]line Смена: 538 ФФД: 1.0 [13:42:31]line ЗНМ: 0300000096 [13:42:31]line РНМ: 0000000000091693 [13:42:31]line Версия ККМ: 001 [13:42:31]line ФМ: 0000000000871792 [13:42:31]line ФД: 156912 [13:42:31]line ФПД: 169477913710281 [13:42:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134233&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156912&fm=169477913710281&tin=02508201610067®Number=0000000000091693&sum=20000 [13:42:32]OFD Sender: Processing packet 156912 [packets to send 31, broken 30] [13:42:32]ProducePacketName [13:42:32]name=ofd_packets/00156912 [13:42:32]OFD Sender: To server: pG, [13:42:32]CommunicateWithHost lk.salyk.kg:30040 [13:42:32]ConnectInit lk.salyk.kg [13:42:32]written 0, free lines is 4095 [13:42:32]Connected sock=10 [13:42: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 37 39 32 0F 01 00 00 4F 1D 07 01 87 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 80 00 00 00 F4 03 04 00 C9 94 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 64 02 00 35 04 06 00 9A 23 A6 D8 0E C9 E1 21 34 57 34 00 94 87 [13:42:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6E E7 47 00 89 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 64 02 00 F4 03 04 00 35 3A 1F 67 B6 04 01 00 00 D3 87 CB 14 45 F2 9C E4 [13:42:32]CommunicateWithHost err = 0 [13:42:32]CheckOFDResponse [13:42:32]1017 (14) - 77093643461234 [13:42:32]1041 (16) - 0000000000871792 [13:42:32]1040 (4) - 156912 [13:42:32]1012 (4) - 28.10.2024 07:16 [13:42:32]1206 (1) - 0 [13:42:32]OFD Sender: Remove packet 156912 [13:42:32]ProducePacketName [13:42:32]name=ofd_packets/00156912 [13:42:32]NVStorageDeleteData [13:42:32]Write to MH i2c: 01 00 00 5F 26 85 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 07 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: 01 07 00 5F 26 00 00 00 00 00 D7 0C 6F [13:42:32]RasterBufferAndPrint [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]line [13:42:32]written 0, free lines is 3294 [13:42:32]process_action close_receipt done [13:42:32]requested_data is exist [13:42:32]produce_requested_data [13:42:32]requested_item fm.sn is exist - process it [13:42:32]wFMCommunicate request_size=4 [13:42:32]MH_SAM_APDU [13:42:32]CAPDU: 80 11 00 00 [13:42:32]Write to MH i2c: E2 08 00 66 26 80 11 00 00 00 00 00 00 06 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:32]Read from MH i2c: E2 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 17 00 [13:42:32]MH_I2C_Read... [13:42:32]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 37 39 32 90 00 5B [13:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:42:32]wFMCommunicate OK [13:42:32]requested_item fd.num is exist - process it [13:42:32]SAM_PROTO_GetFieldsCounters [13:42:32]wFMCommunicate request_size=4 [13:42:32]MH_SAM_APDU [13:42:32]CAPDU: 80 13 00 00 [13:42:32]Write to MH i2c: E2 08 00 67 26 80 13 00 00 00 00 00 00 09 [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:32]Read from MH i2c: E2 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 62 00 [13:42:32]MH_I2C_Read... [13:42:32]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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13:42: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:32]wFMCommunicate OK [13:42:32]SAM_PROTO_GetFieldsCounters done [13:42:32]requested_item shift.num is exist - process it [13:42:32]requested_item shift.opened is exist - process it [13:42:32]req_shift_opened [13:42:32]FM_GetShiftState [13:42:32]SAM_PROTO_GetShiftState [13:42:32]wFMCommunicate request_size=4 [13:42:32]MH_SAM_APDU [13:42:32]CAPDU: 80 13 01 00 [13:42:32]Write to MH i2c: E2 08 00 68 26 80 13 01 00 00 00 00 00 0B [13:42:32]Write i2c OK [13:42:32]MH_I2C_Read... [13:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:32]Read from MH i2c: E2 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 0E 00 [13:42:32]MH_I2C_Read... [13:42:32]Read from MH i2c: E2 0E 00 68 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FD [13:42:32]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:42:32]wFMCommunicate OK [13:42:32]SAM_PROTO_GetShiftState done [13:42:32]FM_GetShiftState done [13:42:32]req_shift_opened done [13:42:32]requested_item shift.open_date is exist - process it [13:42:32]req_shift_open_date [13:42:32]req_shift_open_date done [13:42:32]produce_requested_data done [13:42:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156912,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:42:32]process_action_free close_receipt [13:42:32]json_value_free [13:42:32]json_value_free done [13:42:32]process_json_proto returns [13:42:32]Send response to host [13:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156912,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:42:32]free response buf [13:42:32]execute_script done [13:42:32]execute_script returns [13:42:32]free content buf [13:42:32]Sock 7.Close socket [13:42:32]Sock 7.Thread stoped [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:37]OFD Sender: No OFD packet to send [13:43:42]OFD Sender: No OFD packet to send [13:43:47]OFD Sender: No OFD packet to send [13:43:52]OFD Sender: No OFD packet to send [13:43:57]OFD Sender: No OFD packet to send [13:44:02]OFD Sender: No OFD packet to send [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:24]accept exits with 9 [13:44:24]New connection [13:44:24]New thread 3066748260 created [13:44:24]Thread 3066604900 joined [13:44:24]Waiting for new connection... [13:44:24] Sock 9.Parse request [13:44:24]Sock 9.Check first char [13:44:24]Sock 9.First char is OK [13:44:24]request: POST /json_proto HTTP/1.0 [13:44:24]Method: POST [13:44:24]URL: /json_proto [13:44:24]Method is POST - this is cgi request [13:44:24]url: /json_proto [13:44:24]query_string will be loaded in cgi processing [13:44:24]execute_cgi json_proto POST (null) [13:44:24]execute_cgi path=json_proto method=POST [13:44:24]POST find Content-Length [13:44:24]Host: 172.17.63.3:8080 [13:44:24]Content-Length: 681 [13:44:24]Content-Type: application/json [13:44:24] [13:44:24]POST finish read [13:44:24]Found Content-Length = 681 [13:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:44:24]execute_script... [13:44: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)99729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "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" ] } } [13:44:24]POST & json_proto [13:44:24]process_json_proto [13:44:24]json parsed OK: [13:44:24]protocol is kg_v1.0 [13:44:24]action value=close_receipt [13:44:24]process_action close_receipt [13:44:24]cmd_close_receipt [13:44:24]MH_GetDate [13:44:24]Write to MH i2c: F0 00 00 69 26 7E [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: F0 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: F0 09 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: F0 09 00 69 26 00 3B 95 1F 67 50 D1 6C 64 CE [13:44:24]GetLastDocTimeStamp 1730122953 [13:44:24]current date 1730123067 [13:44:24]FM_GetShiftState [13:44:24]SAM_PROTO_GetShiftState [13:44:24]wFMCommunicate request_size=4 [13:44:24]MH_SAM_APDU [13:44:24]CAPDU: 80 13 01 00 [13:44:24]Write to MH i2c: E2 08 00 6A 26 80 13 01 00 00 00 00 00 0D [13:44:24]Write i2c OK [13:44:24]MH_I2C_Read... [13:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:24]Read from MH i2c: E2 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 0E 00 [13:44:24]MH_I2C_Read... [13:44:24]Read from MH i2c: E2 0E 00 6A 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FF [13:44:24]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:44:24]wFMCommunicate OK [13:44:24]SAM_PROTO_GetShiftState done [13:44:24]FM_GetShiftState done [13:44:24]opened in 1730075526 [13:44:24]opened+sec_in_day 1730161926 [13:44:24]quantity*price = 100015 [13:44:24]sum+1 = 100017 [13:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 129 28.10.2024 13:44 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156913 ФПД: 158760000124105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156913&fm=158760000124105&tin=02508201610067®Number=0000000000091693&sum=100000 [13:44:25]StoreToDocumentArchive [13:44:25]shift 538 fd 156913 [13:44:25]save to /storage/0538/doc_00156913 [13:44:25]save last doc name /storage/0538/doc_00156913 to /storage/kkm_last_doc_name [13:44:25]save OK [13:44:25]Clear old archive folders... [13:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:44:25]tlvbuf is B6F238C0 [13:44:25]SAM_PROTO_ClearQueue [13:44:25]wFMCommunicate request_size=4 [13:44:25]MH_SAM_APDU [13:44:25]CAPDU: 80 09 00 00 [13:44:25]Write to MH i2c: E2 08 00 77 26 80 09 00 00 00 00 00 00 0F [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:25]Read from MH i2c: E2 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 03 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 03 00 77 26 00 90 00 11 [13:44:25]RAPDU: 90 00 [13:44:25]wFMCommunicate OK [13:44:25]SAM_PROTO_ClearQueue done [13:44:25]KKMCreateOFDPacket [13:44:25]OFDProtocolAddRootSTLVToBuf [13:44:25]FM_MakeSignedData [13:44:25]FM_MakeSignedData [13:44:25]SAM_PROTO_SignData [13:44:25]wFMCommunicate request_size=4 [13:44:25]MH_SAM_APDU [13:44:25]CAPDU: 80 0D 01 02 [13:44:25]Write to MH i2c: E2 08 00 78 26 80 0D 01 02 00 00 00 00 17 [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:25]Read from MH i2c: E2 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 03 00 [13:44:25]MH_I2C_Read... [13:44:25]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [13:44:25]RAPDU: 90 00 [13:44:25]wFMCommunicate OK [13:44:25]wFMCommunicate request_size=255 [13:44:25]MH_SAM_APDU [13:44: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 81 00 00 00 F4 03 04 00 3B 95 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 64 02 00 35 04 06 00 90 [13:44:25]Write to MH i2c: E2 02 01 79 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 81 00 00 00 F4 03 04 00 3B 95 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 64 02 00 35 04 06 00 90 00 00 7F [13:44:25]Write i2c OK [13:44:25]MH_I2C_Read... [13:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]wFMCommunicate request_size=10 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 02 02 05 64 31 69 74 C9 [13:44:26]Write to MH i2c: E2 0D 00 7A 26 80 0D 02 02 05 00 64 31 69 74 C9 00 00 5F [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 03 00 7A 26 00 90 00 14 [13:44:26]RAPDU: 90 00 [13:44:26]wFMCommunicate OK [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 0D 03 02 [13:44:26]Write to MH i2c: E2 08 00 7B 26 80 0D 03 02 00 00 00 00 1C [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0B 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 0B 00 7B 26 00 87 0F F2 68 C2 7F EB 3E 90 00 77 [13:44:26]RAPDU: 87 0F F2 68 C2 7F EB 3E 90 00 [13:44:26]wFMCommunicate OK [13:44:26]SAM_PROTO_SignData done [13:44:26]FM_MakeSignedData done [13:44:26]CreateOFDProtocolMessage [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 11 00 00 [13:44:26]Write to MH i2c: E2 08 00 7C 26 80 11 00 00 00 00 00 00 1C [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:26]Read from MH i2c: E2 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 17 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: E2 17 00 7C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 71 [13:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:26]wFMCommunicate OK [13:44:26]CreateOFDProtocolMessage done [13:44:26]OFDSenderStorePacket 156913 [13:44:26]StoreOFDPacket docnum=156913 [13:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3B B1 07 01 8C 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 81 00 00 00 F4 03 04 00 3B 95 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 64 02 00 35 04 06 00 90 64 31 69 74 C9 87 0F F2 68 C2 7F EB 3E [13:44:26]CheckFolder [13:44:26]dirname=/storage/ofd_packets [13:44:26]CheckFolder done [13:44:26]ProducePacketName [13:44:26]name=ofd_packets/00156913 [13:44:26]NVStorageSaveData ofd_packets/00156913 [13:44:26]File name is /storage/ofd_packets/00156913 [13:44:26]Write 301 bytes [13:44:26]NVStorageSaveData done [13:44:26]OFDSenderStorePacket done [13:44:26]KKMCreateOFDPacket done [13:44:26]NVStorageSaveData kkm_last_timestamp [13:44:26]File name is /storage/kkm_last_timestamp [13:44:26]Write 4 bytes [13:44:26]NVStorageSaveData done [13:44:26]ExternCall_PrintAddStr [13:44:26]wPrintStart [13:44:26]Write to MH i2c: 01 00 00 7D 26 A3 [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 07 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FF 0F B8 [13:44:26]RasterBufferAndPrint [13:44:26]line Счет N : (1)99729 [13:44:26]line ИНН: 02508201610067 [13:44:26]line Контрольно-Кассовый Чек [13:44:26]line ПРОДАЖА [13:44:26]line ТРК (МРК, ГНК) : 31 [13:44:26]line Товар: 2710124130 [13:44:26]line Аи-92-К-5 [13:44:26]line 14.950 * 66.90 [13:44:26]line = 1000.16 [13:44:26]line НДС 12% НСП 1% [13:44:26]line > о реализуемом товаре [13:44:26]line ОКРУГЛЕНИЕ: -0.16 [13:44:26]line ИТОГО: 1000.00 [13:44:26]line Внесено: 1000.00 [13:44:26]line СДАЧА: 0.00 [13:44:26]line НСП 1% : 8.85 [13:44:26]line НДС 12% : 106.21 [13:44:26]line Наличными: 1000.00 [13:44:26]line Безнал.: 0.00 [13:44:26]line Место: АЗС № 143 "Партнер Нефть" [13:44:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:44:26]line СНО: Общий режим [13:44:26]line Чек 129 28.10.2024 13:44 [13:44:26]line Смена: 538 ФФД: 1.0 [13:44:26]line ЗНМ: 0300000096 [13:44:26]line РНМ: 0000000000091693 [13:44:26]line Версия ККМ: 001 [13:44:26]line ФМ: 0000000000871792 [13:44:26]line ФД: 156913 [13:44:26]line ФПД: 158760000124105 [13:44:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134427&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156913&fm=158760000124105&tin=02508201610067®Number=0000000000091693&sum=100000 [13:44:26]OFD Sender: Processing packet 156913 [packets to send 31, broken 30] [13:44:26]ProducePacketName [13:44:26]name=ofd_packets/00156913 [13:44:26]OFD Sender: To server: pG, [13:44:26]CommunicateWithHost lk.salyk.kg:30040 [13:44:26]ConnectInit lk.salyk.kg [13:44:26]written 0, free lines is 4095 [13:44:26]Connected sock=10 [13:44: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 37 39 32 0F 01 00 00 3B B1 07 01 8C 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 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 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 7D 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 81 00 00 00 F4 03 04 00 3B 95 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 64 02 00 35 04 06 00 90 64 31 69 74 C9 87 0F F2 68 C2 7F EB 3E [13:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 93 1F 47 00 D6 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 64 02 00 F4 03 04 00 A7 3A 1F 67 B6 04 01 00 00 3D 61 58 8C 66 AB EF 8E [13:44:26]CommunicateWithHost err = 0 [13:44:26]CheckOFDResponse [13:44:26]1017 (14) - 77093643461234 [13:44:26]1041 (16) - 0000000000871792 [13:44:26]1040 (4) - 156913 [13:44:26]1012 (4) - 28.10.2024 07:17 [13:44:26]1206 (1) - 0 [13:44:26]OFD Sender: Remove packet 156913 [13:44:26]ProducePacketName [13:44:26]name=ofd_packets/00156913 [13:44:26]NVStorageDeleteData [13:44:26]Write to MH i2c: 01 00 00 A8 26 CE [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 07 00 [13:44:26]MH_I2C_Read... [13:44:26]Read from MH i2c: 01 07 00 A8 26 00 00 00 00 00 D4 0C B5 [13:44:26]RasterBufferAndPrint [13:44:26]line [13:44:26]line [13:44:26]line [13:44:26]line [13:44:26]line [13:44:26]written 0, free lines is 3290 [13:44:26]process_action close_receipt done [13:44:26]requested_data is exist [13:44:26]produce_requested_data [13:44:26]requested_item fm.sn is exist - process it [13:44:26]wFMCommunicate request_size=4 [13:44:26]MH_SAM_APDU [13:44:26]CAPDU: 80 11 00 00 [13:44:26]Write to MH i2c: E2 08 00 AF 26 80 11 00 00 00 00 00 00 4F [13:44:26]Write i2c OK [13:44:26]MH_I2C_Read... [13:44:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:27]Read from MH i2c: E2 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 17 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 17 00 AF 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A4 [13:44:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:44:27]wFMCommunicate OK [13:44:27]requested_item fd.num is exist - process it [13:44:27]SAM_PROTO_GetFieldsCounters [13:44:27]wFMCommunicate request_size=4 [13:44:27]MH_SAM_APDU [13:44:27]CAPDU: 80 13 00 00 [13:44:27]Write to MH i2c: E2 08 00 B0 26 80 13 00 00 00 00 00 00 52 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:27]Read from MH i2c: E2 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 62 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 62 00 B0 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [13:44: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:27]wFMCommunicate OK [13:44:27]SAM_PROTO_GetFieldsCounters done [13:44:27]requested_item shift.num is exist - process it [13:44:27]requested_item shift.opened is exist - process it [13:44:27]req_shift_opened [13:44:27]FM_GetShiftState [13:44:27]SAM_PROTO_GetShiftState [13:44:27]wFMCommunicate request_size=4 [13:44:27]MH_SAM_APDU [13:44:27]CAPDU: 80 13 01 00 [13:44:27]Write to MH i2c: E2 08 00 B1 26 80 13 01 00 00 00 00 00 54 [13:44:27]Write i2c OK [13:44:27]MH_I2C_Read... [13:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:27]Read from MH i2c: E2 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 0E 00 [13:44:27]MH_I2C_Read... [13:44:27]Read from MH i2c: E2 0E 00 B1 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 46 [13:44:27]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:44:27]wFMCommunicate OK [13:44:27]SAM_PROTO_GetShiftState done [13:44:27]FM_GetShiftState done [13:44:27]req_shift_opened done [13:44:27]requested_item shift.open_date is exist - process it [13:44:27]req_shift_open_date [13:44:27]req_shift_open_date done [13:44:27]produce_requested_data done [13:44:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156913,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:44:27]process_action_free close_receipt [13:44:27]json_value_free [13:44:27]json_value_free done [13:44:27]process_json_proto returns [13:44:27]Send response to host [13:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156913,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:44:27]free response buf [13:44:27]execute_script done [13:44:27]execute_script returns [13:44:27]free content buf [13:44:27]Sock 9.Close socket [13:44:27]Sock 9.Thread stoped [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:47]OFD Sender: No OFD packet to send [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:12]accept exits with 7 [13:48:12]New connection [13:48:12]New thread 3066604900 created [13:48:12]Thread 3066748260 joined [13:48:12]Waiting for new connection... [13:48:12] Sock 7.Parse request [13:48:12]Sock 7.Check first char [13:48:12]Sock 7.First char is OK [13:48:12]request: POST /json_proto HTTP/1.0 [13:48:12]Method: POST [13:48:12]URL: /json_proto [13:48:12]Method is POST - this is cgi request [13:48:12]url: /json_proto [13:48:12]query_string will be loaded in cgi processing [13:48:12]execute_cgi json_proto POST (null) [13:48:12]execute_cgi path=json_proto method=POST [13:48:12]POST find Content-Length [13:48:12]Host: 172.17.63.3:8080 [13:48:12]Content-Length: 683 [13:48:12]Content-Type: application/json [13:48:12] [13:48:12]POST finish read [13:48:12]Found Content-Length = 683 [13:48:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:12]execute_script... [13:48:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.240, "sum" : 10000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:48:12]POST & json_proto [13:48:12]process_json_proto [13:48:12]json parsed OK: [13:48:12]protocol is kg_v1.0 [13:48:12]action value=close_receipt [13:48:12]process_action close_receipt [13:48:12]cmd_close_receipt [13:48:12]MH_GetDate [13:48:12]Write to MH i2c: F0 00 00 B2 26 C7 [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 09 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: F0 09 00 B2 26 00 20 96 1F 67 50 D1 6C 64 FD [13:48:12]GetLastDocTimeStamp 1730123067 [13:48:12]current date 1730123296 [13:48:12]FM_GetShiftState [13:48:12]SAM_PROTO_GetShiftState [13:48:12]wFMCommunicate request_size=4 [13:48:12]MH_SAM_APDU [13:48:12]CAPDU: 80 13 01 00 [13:48:12]Write to MH i2c: E2 08 00 B3 26 80 13 01 00 00 00 00 00 56 [13:48:12]Write i2c OK [13:48:12]MH_I2C_Read... [13:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:12]Read from MH i2c: E2 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 [13:48:12]MH_I2C_Read... [13:48:12]Read from MH i2c: E2 0E 00 B3 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 48 [13:48:12]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:48:12]wFMCommunicate OK [13:48:12]SAM_PROTO_GetShiftState done [13:48:12]FM_GetShiftState done [13:48:12]opened in 1730075526 [13:48:12]opened+sec_in_day 1730161926 [13:48:12]quantity*price = 1000048 [13:48:12]sum+1 = 1000050 [13:48:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1062.00 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 130 28.10.2024 13:48 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156914 ФПД: 89815234220706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156914&fm=89815234220706&tin=02508201610067®Number=0000000000091693&sum=1000000 [13:48:14]StoreToDocumentArchive [13:48:14]shift 538 fd 156914 [13:48:14]save to /storage/0538/doc_00156914 [13:48:14]save last doc name /storage/0538/doc_00156914 to /storage/kkm_last_doc_name [13:48:14]save OK [13:48:14]Clear old archive folders... [13:48:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:48:14]tlvbuf is 01A88590 [13:48:14]SAM_PROTO_ClearQueue [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 09 00 00 [13:48:14]Write to MH i2c: E2 08 00 C0 26 80 09 00 00 00 00 00 00 58 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 C0 26 00 90 00 5A [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]SAM_PROTO_ClearQueue done [13:48:14]KKMCreateOFDPacket [13:48:14]OFDProtocolAddRootSTLVToBuf [13:48:14]FM_MakeSignedData [13:48:14]FM_MakeSignedData [13:48:14]SAM_PROTO_SignData [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 01 02 [13:48:14]Write to MH i2c: E2 08 00 C1 26 80 0D 01 02 00 00 00 00 60 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 C1 26 00 90 00 5B [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=255 [13:48:14]MH_SAM_APDU [13:48: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 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 20 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 64 02 00 35 04 06 00 51 AF BD 21 [13:48:14]Write to MH i2c: E2 02 01 C2 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 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 20 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 64 02 00 35 04 06 00 51 AF BD 21 00 00 6C [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 C2 26 00 90 00 5C [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=7 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 02 02 02 92 A2 [13:48:14]Write to MH i2c: E2 0A 00 C3 26 80 0D 02 02 02 00 92 A2 00 00 9B [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 03 00 C3 26 00 90 00 5D [13:48:14]RAPDU: 90 00 [13:48:14]wFMCommunicate OK [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 0D 03 02 [13:48:14]Write to MH i2c: E2 08 00 C4 26 80 0D 03 02 00 00 00 00 65 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 0B 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 0B 00 C4 26 00 DF 51 B2 E7 DF FC 71 CC 90 00 47 [13:48:14]RAPDU: DF 51 B2 E7 DF FC 71 CC 90 00 [13:48:14]wFMCommunicate OK [13:48:14]SAM_PROTO_SignData done [13:48:14]FM_MakeSignedData done [13:48:14]CreateOFDProtocolMessage [13:48:14]wFMCommunicate request_size=4 [13:48:14]MH_SAM_APDU [13:48:14]CAPDU: 80 11 00 00 [13:48:14]Write to MH i2c: E2 08 00 C5 26 80 11 00 00 00 00 00 00 65 [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:14]Read from MH i2c: E2 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 17 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: E2 17 00 C5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BA [13:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:48:14]wFMCommunicate OK [13:48:14]CreateOFDProtocolMessage done [13:48:14]OFDSenderStorePacket 156914 [13:48:14]StoreOFDPacket docnum=156914 [13:48:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5E 72 04 01 72 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 20 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 64 02 00 35 04 06 00 51 AF BD 21 92 A2 DF 51 B2 E7 DF FC 71 CC [13:48:14]CheckFolder [13:48:14]dirname=/storage/ofd_packets [13:48:14]CheckFolder done [13:48:14]ProducePacketName [13:48:14]name=ofd_packets/00156914 [13:48:14]NVStorageSaveData ofd_packets/00156914 [13:48:14]File name is /storage/ofd_packets/00156914 [13:48:14]Write 298 bytes [13:48:14]NVStorageSaveData done [13:48:14]OFDSenderStorePacket done [13:48:14]KKMCreateOFDPacket done [13:48:14]NVStorageSaveData kkm_last_timestamp [13:48:14]File name is /storage/kkm_last_timestamp [13:48:14]Write 4 bytes [13:48:14]NVStorageSaveData done [13:48:14]ExternCall_PrintAddStr [13:48:14]wPrintStart [13:48:14]Write to MH i2c: 01 00 00 C6 26 EC [13:48:14]Write i2c OK [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 07 00 [13:48:14]MH_I2C_Read... [13:48:14]Read from MH i2c: 01 07 00 C6 26 00 00 00 00 00 FF 0F 01 [13:48:14]RasterBufferAndPrint [13:48:14]line Счет N : (1)99730 [13:48:14]line ИНН: 02508201610067 [13:48:14]line Контрольно-Кассовый Чек [13:48:14]line ПРОДАЖА [13:48:14]line ТРК (МРК, ГНК) : 32 [13:48:14]line Товар: 2710194210 [13:48:14]line ДТ-К-5 [13:48:14]line 131.240 * 76.20 [13:48:14]line = 10000.49 [13:48:14]line НДС 12% НСП 1% [13:48:14]line > о реализуемом товаре [13:48:14]line ОКРУГЛЕНИЕ: -0.49 [13:48:14]line ИТОГО: 10000.00 [13:48:14]line Внесено: 10000.00 [13:48:14]line СДАЧА: 0.00 [13:48:14]line НСП 1% : 88.50 [13:48:14]line НДС 12% : 1062.00 [13:48:14]line Наличными: 10000.00 [13:48:14]line Безнал.: 0.00 [13:48:14]line Место: АЗС № 143 "Партнер Нефть" [13:48:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:48:14]line СНО: Общий режим [13:48:14]line Чек 130 28.10.2024 13:48 [13:48:14]line Смена: 538 ФФД: 1.0 [13:48:14]line ЗНМ: 0300000096 [13:48:14]line РНМ: 0000000000091693 [13:48:14]line Версия ККМ: 001 [13:48:14]line ФМ: 0000000000871792 [13:48:14]line ФД: 156914 [13:48:14]line ФПД: 89815234220706 [13:48:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156914&fm=89815234220706&tin=02508201610067®Number=0000000000091693&sum=1000000 [13:48:14]OFD Sender: Processing packet 156914 [packets to send 31, broken 30] [13:48:14]ProducePacketName [13:48:14]name=ofd_packets/00156914 [13:48:14]OFD Sender: To server: pG, [13:48:14]CommunicateWithHost lk.salyk.kg:30040 [13:48:14]ConnectInit lk.salyk.kg [13:48:14]written 0, free lines is 4095 [13:48:15]Connected sock=10 [13:48: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 37 39 32 0C 01 00 00 5E 72 04 01 72 53 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 71 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 9E 01 00 00 00 07 04 06 00 40 42 0F 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 20 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 64 02 00 35 04 06 00 51 AF BD 21 92 A2 DF 51 B2 E7 DF FC 71 CC [13:48:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F8 53 47 00 1C 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 37 39 32 10 04 04 00 F2 64 02 00 F4 03 04 00 8C 3B 1F 67 B6 04 01 00 00 30 3F 05 36 10 8A 4A 49 [13:48:15]CommunicateWithHost err = 0 [13:48:15]CheckOFDResponse [13:48:15]1017 (14) - 77093643461234 [13:48:15]1041 (16) - 0000000000871792 [13:48:15]1040 (4) - 156914 [13:48:15]1012 (4) - 28.10.2024 07:21 [13:48:15]1206 (1) - 0 [13:48:15]OFD Sender: Remove packet 156914 [13:48:15]ProducePacketName [13:48:15]name=ofd_packets/00156914 [13:48:15]NVStorageDeleteData [13:48:15]Write to MH i2c: 01 00 00 F1 26 17 [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 07 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: 01 07 00 F1 26 00 00 00 00 00 DD 0C 07 [13:48:15]RasterBufferAndPrint [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]line [13:48:15]written 0, free lines is 3299 [13:48:15]process_action close_receipt done [13:48:15]requested_data is exist [13:48:15]produce_requested_data [13:48:15]requested_item fm.sn is exist - process it [13:48:15]wFMCommunicate request_size=4 [13:48:15]MH_SAM_APDU [13:48:15]CAPDU: 80 11 00 00 [13:48:15]Write to MH i2c: E2 08 00 F8 26 80 11 00 00 00 00 00 00 98 [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:15]Read from MH i2c: E2 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 17 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 17 00 F8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [13:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:48:15]wFMCommunicate OK [13:48:15]requested_item fd.num is exist - process it [13:48:15]SAM_PROTO_GetFieldsCounters [13:48:15]wFMCommunicate request_size=4 [13:48:15]MH_SAM_APDU [13:48:15]CAPDU: 80 13 00 00 [13:48:15]Write to MH i2c: E2 08 00 F9 26 80 13 00 00 00 00 00 00 9B [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:15]Read from MH i2c: E2 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 62 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 62 00 F9 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [13:48: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:48:15]wFMCommunicate OK [13:48:15]SAM_PROTO_GetFieldsCounters done [13:48:15]requested_item shift.num is exist - process it [13:48:15]requested_item shift.opened is exist - process it [13:48:15]req_shift_opened [13:48:15]FM_GetShiftState [13:48:15]SAM_PROTO_GetShiftState [13:48:15]wFMCommunicate request_size=4 [13:48:15]MH_SAM_APDU [13:48:15]CAPDU: 80 13 01 00 [13:48:15]Write to MH i2c: E2 08 00 FA 26 80 13 01 00 00 00 00 00 9D [13:48:15]Write i2c OK [13:48:15]MH_I2C_Read... [13:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:15]Read from MH i2c: E2 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 0E 00 [13:48:15]MH_I2C_Read... [13:48:15]Read from MH i2c: E2 0E 00 FA 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 8F [13:48:15]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:48:15]wFMCommunicate OK [13:48:15]SAM_PROTO_GetShiftState done [13:48:15]FM_GetShiftState done [13:48:15]req_shift_opened done [13:48:15]requested_item shift.open_date is exist - process it [13:48:15]req_shift_open_date [13:48:15]req_shift_open_date done [13:48:15]produce_requested_data done [13:48:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156914,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:48:15]process_action_free close_receipt [13:48:15]json_value_free [13:48:15]json_value_free done [13:48:15]process_json_proto returns [13:48:15]Send response to host [13:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156914,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:48:15]free response buf [13:48:15]execute_script done [13:48:15]execute_script returns [13:48:15]free content buf [13:48:15]Sock 7.Close socket [13:48:15]Sock 7.Thread stoped [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]accept exits with 9 [13:49:00]New connection [13:49:00]New thread 3066748260 created [13:49:00]Thread 3066604900 joined [13:49:00]Waiting for new connection... [13:49:00] Sock 9.Parse request [13:49:00]Sock 9.Check first char [13:49:00]Sock 9.First char is OK [13:49:00]request: POST /json_proto HTTP/1.0 [13:49:00]Method: POST [13:49:00]URL: /json_proto [13:49:00]Method is POST - this is cgi request [13:49:00]url: /json_proto [13:49:00]query_string will be loaded in cgi processing [13:49:00]execute_cgi json_proto POST (null) [13:49:00]execute_cgi path=json_proto method=POST [13:49:00]POST find Content-Length [13:49:00]Host: 172.17.63.3:8080 [13:49:00]Content-Length: 676 [13:49:00]Content-Type: application/json [13:49:00] [13:49:00]POST finish read [13:49:00]Found Content-Length = 676 [13:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:00]execute_script... [13:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:00]POST & json_proto [13:49:00]process_json_proto [13:49:00]json parsed OK: [13:49:00]protocol is kg_v1.0 [13:49:00]action value=close_receipt [13:49:00]process_action close_receipt [13:49:00]cmd_close_receipt [13:49:00]MH_GetDate [13:49:00]Write to MH i2c: F0 00 00 FB 26 10 [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 09 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: F0 09 00 FB 26 00 4F 96 1F 67 50 D1 6C 64 75 [13:49:00]GetLastDocTimeStamp 1730123296 [13:49:00]current date 1730123343 [13:49:00]FM_GetShiftState [13:49:00]SAM_PROTO_GetShiftState [13:49:00]wFMCommunicate request_size=4 [13:49:00]MH_SAM_APDU [13:49:00]CAPDU: 80 13 01 00 [13:49:00]Write to MH i2c: E2 08 00 FC 26 80 13 01 00 00 00 00 00 9F [13:49:00]Write i2c OK [13:49:00]MH_I2C_Read... [13:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:00]Read from MH i2c: E2 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 [13:49:00]MH_I2C_Read... [13:49:00]Read from MH i2c: E2 0E 00 FC 26 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 91 [13:49:00]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:49:00]wFMCommunicate OK [13:49:00]SAM_PROTO_GetShiftState done [13:49:00]FM_GetShiftState done [13:49:00]opened in 1730075526 [13:49:00]opened+sec_in_day 1730161926 [13:49:00]quantity*price = 45023 [13:49:00]sum+1 = 45025 [13:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 131 28.10.2024 13:49 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156915 ФПД: 31043487929248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134903&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156915&fm=31043487929248&tin=02508201610067®Number=0000000000091693&sum=45000 [13:49:01]StoreToDocumentArchive [13:49:01]shift 538 fd 156915 [13:49:01]save to /storage/0538/doc_00156915 [13:49:01]save last doc name /storage/0538/doc_00156915 to /storage/kkm_last_doc_name [13:49:01]save OK [13:49:01]Clear old archive folders... [13:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:01]tlvbuf is 01AF7740 [13:49:01]SAM_PROTO_ClearQueue [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 09 00 00 [13:49:01]Write to MH i2c: E2 08 00 09 27 80 09 00 00 00 00 00 00 A2 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 09 27 00 90 00 A4 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]SAM_PROTO_ClearQueue done [13:49:01]KKMCreateOFDPacket [13:49:01]OFDProtocolAddRootSTLVToBuf [13:49:01]FM_MakeSignedData [13:49:01]FM_MakeSignedData [13:49:01]SAM_PROTO_SignData [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 01 02 [13:49:01]Write to MH i2c: E2 08 00 0A 27 80 0D 01 02 00 00 00 00 AA [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 0A 27 00 90 00 A5 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=255 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4F 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 64 02 00 35 04 06 00 1C [13:49:01]Write to MH i2c: E2 02 01 0B 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 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4F 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 64 02 00 35 04 06 00 1C 00 00 A3 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 0B 27 00 90 00 A6 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=10 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 02 02 05 3B E0 12 13 A0 [13:49:01]Write to MH i2c: E2 0D 00 0C 27 80 0D 02 02 05 00 3B E0 12 13 A0 00 00 97 [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:01]Read from MH i2c: E2 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 [13:49:01]MH_I2C_Read... [13:49:01]Read from MH i2c: E2 03 00 0C 27 00 90 00 A7 [13:49:01]RAPDU: 90 00 [13:49:01]wFMCommunicate OK [13:49:01]wFMCommunicate request_size=4 [13:49:01]MH_SAM_APDU [13:49:01]CAPDU: 80 0D 03 02 [13:49:01]Write to MH i2c: E2 08 00 0D 27 80 0D 03 02 00 00 00 00 AF [13:49:01]Write i2c OK [13:49:01]MH_I2C_Read... [13:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:02]Read from MH i2c: E2 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 0B 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 0B 00 0D 27 00 DE FB C9 B1 BC DE 82 29 90 00 48 [13:49:02]RAPDU: DE FB C9 B1 BC DE 82 29 90 00 [13:49:02]wFMCommunicate OK [13:49:02]SAM_PROTO_SignData done [13:49:02]FM_MakeSignedData done [13:49:02]CreateOFDProtocolMessage [13:49:02]wFMCommunicate request_size=4 [13:49:02]MH_SAM_APDU [13:49:02]CAPDU: 80 11 00 00 [13:49:02]Write to MH i2c: E2 08 00 0E 27 80 11 00 00 00 00 00 00 AF [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:02]Read from MH i2c: E2 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 0E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [13:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:49:02]wFMCommunicate OK [13:49:02]CreateOFDProtocolMessage done [13:49:02]OFDSenderStorePacket 156915 [13:49:02]StoreOFDPacket docnum=156915 [13:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 4E 07 01 0F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4F 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 64 02 00 35 04 06 00 1C 3B E0 12 13 A0 DE FB C9 B1 BC DE 82 29 [13:49:02]CheckFolder [13:49:02]dirname=/storage/ofd_packets [13:49:02]CheckFolder done [13:49:02]ProducePacketName [13:49:02]name=ofd_packets/00156915 [13:49:02]NVStorageSaveData ofd_packets/00156915 [13:49:02]File name is /storage/ofd_packets/00156915 [13:49:02]Write 301 bytes [13:49:02]NVStorageSaveData done [13:49:02]OFDSenderStorePacket done [13:49:02]KKMCreateOFDPacket done [13:49:02]NVStorageSaveData kkm_last_timestamp [13:49:02]File name is /storage/kkm_last_timestamp [13:49:02]Write 4 bytes [13:49:02]NVStorageSaveData done [13:49:02]ExternCall_PrintAddStr [13:49:02]wPrintStart [13:49:02]Write to MH i2c: 01 00 00 0F 27 36 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 0F 27 00 00 00 00 00 FF 0F 4B [13:49:02]RasterBufferAndPrint [13:49:02]line Счет N : (1)99731 [13:49:02]line ИНН: 02508201610067 [13:49:02]line Контрольно-Кассовый Чек [13:49:02]line ПРОДАЖА [13:49:02]line ТРК (МРК, ГНК) : 31 [13:49:02]line Товар: 2710124130 [13:49:02]line Аи-92-К-5 [13:49:02]line 6.730 * 66.90 [13:49:02]line = 450.24 [13:49:02]line НДС 12% НСП 1% [13:49:02]line > о реализуемом товаре [13:49:02]line ОКРУГЛЕНИЕ: -0.24 [13:49:02]line ИТОГО: 450.00 [13:49:02]line Внесено: 450.00 [13:49:02]line СДАЧА: 0.00 [13:49:02]line НСП 1% : 3.98 [13:49:02]line НДС 12% : 47.81 [13:49:02]line Наличными: 450.00 [13:49:02]line Безнал.: 0.00 [13:49:02]line Место: АЗС № 143 "Партнер Нефть" [13:49:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:49:02]line СНО: Общий режим [13:49:02]line Чек 131 28.10.2024 13:49 [13:49:02]line Смена: 538 ФФД: 1.0 [13:49:02]line ЗНМ: 0300000096 [13:49:02]line РНМ: 0000000000091693 [13:49:02]line Версия ККМ: 001 [13:49:02]line ФМ: 0000000000871792 [13:49:02]line ФД: 156915 [13:49:02]line ФПД: 31043487929248 [13:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134903&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156915&fm=31043487929248&tin=02508201610067®Number=0000000000091693&sum=45000 [13:49:02]OFD Sender: Processing packet 156915 [packets to send 31, broken 30] [13:49:02]ProducePacketName [13:49:02]name=ofd_packets/00156915 [13:49:02]OFD Sender: To server: pG, [13:49:02]CommunicateWithHost lk.salyk.kg:30040 [13:49:02]ConnectInit lk.salyk.kg [13:49:02]written 0, free lines is 4095 [13:49:02]Connected sock=10 [13:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 20 4E 07 01 0F 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 4F 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 64 02 00 35 04 06 00 1C 3B E0 12 13 A0 DE FB C9 B1 BC DE 82 29 [13:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 60 2A 47 00 27 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 64 02 00 F4 03 04 00 BB 3B 1F 67 B6 04 01 00 00 60 BA A8 B9 7F F4 D6 8C [13:49:02]CommunicateWithHost err = 0 [13:49:02]CheckOFDResponse [13:49:02]1017 (14) - 77093643461234 [13:49:02]1041 (16) - 0000000000871792 [13:49:02]1040 (4) - 156915 [13:49:02]1012 (4) - 28.10.2024 07:22 [13:49:02]1206 (1) - 0 [13:49:02]OFD Sender: Remove packet 156915 [13:49:02]ProducePacketName [13:49:02]name=ofd_packets/00156915 [13:49:02]NVStorageDeleteData [13:49:02]Write to MH i2c: 01 00 00 3A 27 61 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: 01 07 00 3A 27 00 00 00 00 00 D7 0C 4B [13:49:02]RasterBufferAndPrint [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]line [13:49:02]written 0, free lines is 3290 [13:49:02]process_action close_receipt done [13:49:02]requested_data is exist [13:49:02]produce_requested_data [13:49:02]requested_item fm.sn is exist - process it [13:49:02]wFMCommunicate request_size=4 [13:49:02]MH_SAM_APDU [13:49:02]CAPDU: 80 11 00 00 [13:49:02]Write to MH i2c: E2 08 00 41 27 80 11 00 00 00 00 00 00 E2 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:02]Read from MH i2c: E2 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 [13:49:02]MH_I2C_Read... [13:49:02]Read from MH i2c: E2 17 00 41 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 37 [13:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:49:02]wFMCommunicate OK [13:49:02]requested_item fd.num is exist - process it [13:49:02]SAM_PROTO_GetFieldsCounters [13:49:02]wFMCommunicate request_size=4 [13:49:02]MH_SAM_APDU [13:49:02]CAPDU: 80 13 00 00 [13:49:02]Write to MH i2c: E2 08 00 42 27 80 13 00 00 00 00 00 00 E5 [13:49:02]Write i2c OK [13:49:02]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 62 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 62 00 42 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [13:49: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_GetFieldsCounters done [13:49:03]requested_item shift.num is exist - process it [13:49:03]requested_item shift.opened is exist - process it [13:49:03]req_shift_opened [13:49:03]FM_GetShiftState [13:49:03]SAM_PROTO_GetShiftState [13:49:03]wFMCommunicate request_size=4 [13:49:03]MH_SAM_APDU [13:49:03]CAPDU: 80 13 01 00 [13:49:03]Write to MH i2c: E2 08 00 43 27 80 13 01 00 00 00 00 00 E7 [13:49:03]Write i2c OK [13:49:03]MH_I2C_Read... [13:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:03]Read from MH i2c: E2 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 [13:49:03]MH_I2C_Read... [13:49:03]Read from MH i2c: E2 0E 00 43 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 D9 [13:49:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:49:03]wFMCommunicate OK [13:49:03]SAM_PROTO_GetShiftState done [13:49:03]FM_GetShiftState done [13:49:03]req_shift_opened done [13:49:03]requested_item shift.open_date is exist - process it [13:49:03]req_shift_open_date [13:49:03]req_shift_open_date done [13:49:03]produce_requested_data done [13:49:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156915,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:49:03]process_action_free close_receipt [13:49:03]json_value_free [13:49:03]json_value_free done [13:49:03]process_json_proto returns [13:49:03]Send response to host [13:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156915,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:49:03]free response buf [13:49:03]execute_script done [13:49:03]execute_script returns [13:49:03]free content buf [13:49:03]Sock 9.Close socket [13:49:03]Sock 9.Thread stoped [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:53]OFD Sender: No OFD packet to send [13:49:58]OFD Sender: No OFD packet to send [13:50:03]OFD Sender: No OFD packet to send [13:50:08]OFD Sender: No OFD packet to send [13:50:13]OFD Sender: No OFD packet to send [13:50:18]OFD Sender: No OFD packet to send [13:50:23]OFD Sender: No OFD packet to send [13:50:28]OFD Sender: No OFD packet to send [13:50:33]OFD Sender: No OFD packet to send [13:50:38]OFD Sender: No OFD packet to send [13:50:43]OFD Sender: No OFD packet to send [13:50:48]OFD Sender: No OFD packet to send [13:50:53]OFD Sender: No OFD packet to send [13:50:58]OFD Sender: No OFD packet to send [13:51:03]OFD Sender: No OFD packet to send [13:51:08]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:25]accept exits with 7 [13:51:25]New connection [13:51:25]New thread 3066604900 created [13:51:25]Thread 3066748260 joined [13:51:25]Waiting for new connection... [13:51:25] Sock 7.Parse request [13:51:25]Sock 7.Check first char [13:51:25]Sock 7.First char is OK [13:51:25]request: POST /json_proto HTTP/1.0 [13:51:25]Method: POST [13:51:25]URL: /json_proto [13:51:25]Method is POST - this is cgi request [13:51:25]url: /json_proto [13:51:25]query_string will be loaded in cgi processing [13:51:25]execute_cgi json_proto POST (null) [13:51:25]execute_cgi path=json_proto method=POST [13:51:25]POST find Content-Length [13:51:25]Host: 172.17.63.3:8080 [13:51:25]Content-Length: 673 [13:51:25]Content-Type: application/json [13:51:25] [13:51:25]POST finish read [13:51:25]Found Content-Length = 673 [13:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:51:25]execute_script... [13:51: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)99732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "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:51:25]POST & json_proto [13:51:25]process_json_proto [13:51:25]json parsed OK: [13:51:25]protocol is kg_v1.0 [13:51:25]action value=close_receipt [13:51:25]process_action close_receipt [13:51:25]cmd_close_receipt [13:51:25]MH_GetDate [13:51:25]Write to MH i2c: F0 00 00 44 27 5A [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: F0 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: F0 09 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: F0 09 00 44 27 00 E0 96 1F 67 50 D1 6C 64 50 [13:51:25]GetLastDocTimeStamp 1730123343 [13:51:25]current date 1730123488 [13:51:25]FM_GetShiftState [13:51:25]SAM_PROTO_GetShiftState [13:51:25]wFMCommunicate request_size=4 [13:51:25]MH_SAM_APDU [13:51:25]CAPDU: 80 13 01 00 [13:51:25]Write to MH i2c: E2 08 00 45 27 80 13 01 00 00 00 00 00 E9 [13:51:25]Write i2c OK [13:51:25]MH_I2C_Read... [13:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:25]Read from MH i2c: E2 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0E 00 [13:51:25]MH_I2C_Read... [13:51:25]Read from MH i2c: E2 0E 00 45 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DB [13:51:25]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:51:25]wFMCommunicate OK [13:51:25]SAM_PROTO_GetShiftState done [13:51:25]FM_GetShiftState done [13:51:25]opened in 1730075526 [13:51:25]opened+sec_in_day 1730161926 [13:51:25]quantity*price = 40005 [13:51:25]sum+1 = 40006 [13:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 132 28.10.2024 13:51 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156916 ФПД: 238872456233012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156916&fm=238872456233012&tin=02508201610067®Number=0000000000091693&sum=40000 [13:51:26]StoreToDocumentArchive [13:51:26]shift 538 fd 156916 [13:51:26]save to /storage/0538/doc_00156916 [13:51:26]save last doc name /storage/0538/doc_00156916 to /storage/kkm_last_doc_name [13:51:26]save OK [13:51:26]Clear old archive folders... [13:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:51:26]tlvbuf is B6F26A50 [13:51:26]SAM_PROTO_ClearQueue [13:51:26]wFMCommunicate request_size=4 [13:51:26]MH_SAM_APDU [13:51:26]CAPDU: 80 09 00 00 [13:51:26]Write to MH i2c: E2 08 00 52 27 80 09 00 00 00 00 00 00 EB [13:51:26]Write i2c OK [13:51:26]MH_I2C_Read... [13:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:26]Read from MH i2c: E2 [13:51:26]MH_I2C_Read... [13:51:26]Read from MH i2c: E2 03 00 [13:51:26]MH_I2C_Read... [13:51:26]Read from MH i2c: E2 03 00 52 27 00 90 00 ED [13:51:26]RAPDU: 90 00 [13:51:26]wFMCommunicate OK [13:51:26]SAM_PROTO_ClearQueue done [13:51:26]KKMCreateOFDPacket [13:51:26]OFDProtocolAddRootSTLVToBuf [13:51:26]FM_MakeSignedData [13:51:26]FM_MakeSignedData [13:51:26]SAM_PROTO_SignData [13:51:26]wFMCommunicate request_size=4 [13:51:26]MH_SAM_APDU [13:51:26]CAPDU: 80 0D 01 02 [13:51:26]Write to MH i2c: E2 08 00 53 27 80 0D 01 02 00 00 00 00 F3 [13:51:26]Write i2c OK [13:51:26]MH_I2C_Read... [13:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:26]Read from MH i2c: E2 [13:51:26]MH_I2C_Read... [13:51:26]Read from MH i2c: E2 03 00 [13:51:26]MH_I2C_Read... [13:51:26]Read from MH i2c: E2 03 00 53 27 00 90 00 EE [13:51:26]RAPDU: 90 00 [13:51:26]wFMCommunicate OK [13:51:26]wFMCommunicate request_size=255 [13:51:26]MH_SAM_APDU [13:51: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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E0 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 64 02 00 35 04 06 00 D9 40 D3 E6 [13:51:26]Write to MH i2c: E2 02 01 54 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 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E0 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 64 02 00 35 04 06 00 D9 40 D3 E6 00 00 38 [13:51:26]Write i2c OK [13:51:26]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 03 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 03 00 54 27 00 90 00 EF [13:51:27]RAPDU: 90 00 [13:51:27]wFMCommunicate OK [13:51:27]wFMCommunicate request_size=7 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 0D 02 02 02 80 34 [13:51:27]Write to MH i2c: E2 0A 00 55 27 80 0D 02 02 02 00 80 34 00 00 AE [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 03 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 03 00 55 27 00 90 00 F0 [13:51:27]RAPDU: 90 00 [13:51:27]wFMCommunicate OK [13:51:27]wFMCommunicate request_size=4 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 0D 03 02 [13:51:27]Write to MH i2c: E2 08 00 56 27 80 0D 03 02 00 00 00 00 F8 [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 0B 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 0B 00 56 27 00 EC B6 83 00 FD F1 77 32 90 00 B5 [13:51:27]RAPDU: EC B6 83 00 FD F1 77 32 90 00 [13:51:27]wFMCommunicate OK [13:51:27]SAM_PROTO_SignData done [13:51:27]FM_MakeSignedData done [13:51:27]CreateOFDProtocolMessage [13:51:27]wFMCommunicate request_size=4 [13:51:27]MH_SAM_APDU [13:51:27]CAPDU: 80 11 00 00 [13:51:27]Write to MH i2c: E2 08 00 57 27 80 11 00 00 00 00 00 00 F8 [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:27]Read from MH i2c: E2 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 17 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: E2 17 00 57 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4D [13:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:27]wFMCommunicate OK [13:51:27]CreateOFDProtocolMessage done [13:51:27]OFDSenderStorePacket 156916 [13:51:27]StoreOFDPacket docnum=156916 [13:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7C 66 04 01 67 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E0 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 64 02 00 35 04 06 00 D9 40 D3 E6 80 34 EC B6 83 00 FD F1 77 32 [13:51:27]CheckFolder [13:51:27]dirname=/storage/ofd_packets [13:51:27]CheckFolder done [13:51:27]ProducePacketName [13:51:27]name=ofd_packets/00156916 [13:51:27]NVStorageSaveData ofd_packets/00156916 [13:51:27]File name is /storage/ofd_packets/00156916 [13:51:27]Write 298 bytes [13:51:27]NVStorageSaveData done [13:51:27]OFDSenderStorePacket done [13:51:27]KKMCreateOFDPacket done [13:51:27]NVStorageSaveData kkm_last_timestamp [13:51:27]File name is /storage/kkm_last_timestamp [13:51:27]Write 4 bytes [13:51:27]NVStorageSaveData done [13:51:27]ExternCall_PrintAddStr [13:51:27]wPrintStart [13:51:27]Write to MH i2c: 01 00 00 58 27 7F [13:51:27]Write i2c OK [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 07 00 [13:51:27]MH_I2C_Read... [13:51:27]Read from MH i2c: 01 07 00 58 27 00 00 00 00 00 FF 0F 94 [13:51:27]RasterBufferAndPrint [13:51:27]line Счет N : (1)99732 [13:51:27]line ИНН: 02508201610067 [13:51:27]line Контрольно-Кассовый Чек [13:51:27]line ПРОДАЖА [13:51:27]line ТРК (МРК, ГНК) : 32 [13:51:27]line Товар: 2710194210 [13:51:27]line ДТ-К-5 [13:51:27]line 5.250 * 76.20 [13:51:27]line = 400.05 [13:51:27]line НДС 12% НСП 1% [13:51:27]line > о реализуемом товаре [13:51:27]line ОКРУГЛЕНИЕ: -0.05 [13:51:27]line ИТОГО: 400.00 [13:51:27]line Внесено: 400.00 [13:51:27]line СДАЧА: 0.00 [13:51:27]line НСП 1% : 3.54 [13:51:27]line НДС 12% : 42.48 [13:51:27]line Наличными: 400.00 [13:51:27]line Безнал.: 0.00 [13:51:27]line Место: АЗС № 143 "Партнер Нефть" [13:51:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:51:27]line СНО: Общий режим [13:51:27]line Чек 132 28.10.2024 13:51 [13:51:27]line Смена: 538 ФФД: 1.0 [13:51:27]line ЗНМ: 0300000096 [13:51:27]line РНМ: 0000000000091693 [13:51:27]line Версия ККМ: 001 [13:51:27]line ФМ: 0000000000871792 [13:51:27]line ФД: 156916 [13:51:27]line ФПД: 238872456233012 [13:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156916&fm=238872456233012&tin=02508201610067®Number=0000000000091693&sum=40000 [13:51:27]OFD Sender: Processing packet 156916 [packets to send 31, broken 30] [13:51:27]ProducePacketName [13:51:27]name=ofd_packets/00156916 [13:51:27]OFD Sender: To server: pG, [13:51:27]CommunicateWithHost lk.salyk.kg:30040 [13:51:27]ConnectInit lk.salyk.kg [13:51:27]written 0, free lines is 4095 [13:51:27]Connected sock=10 [13:51: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 37 39 32 0C 01 00 00 7C 66 04 01 67 F1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 E0 96 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 64 02 00 35 04 06 00 D9 40 D3 E6 80 34 EC B6 83 00 FD F1 77 32 [13:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 57 63 47 00 A0 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 37 39 32 10 04 04 00 F4 64 02 00 F4 03 04 00 4D 3C 1F 67 B6 04 01 00 00 31 5C B0 A3 43 B0 A9 EE [13:51:28]CommunicateWithHost err = 0 [13:51:28]CheckOFDResponse [13:51:28]1017 (14) - 77093643461234 [13:51:28]1041 (16) - 0000000000871792 [13:51:28]1040 (4) - 156916 [13:51:28]1012 (4) - 28.10.2024 07:25 [13:51:28]1206 (1) - 0 [13:51:28]OFD Sender: Remove packet 156916 [13:51:28]ProducePacketName [13:51:28]name=ofd_packets/00156916 [13:51:28]NVStorageDeleteData [13:51:28]Write to MH i2c: 01 00 00 83 27 AA [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: 01 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: 01 07 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: 01 07 00 83 27 00 00 00 00 00 E4 0C A1 [13:51:28]RasterBufferAndPrint [13:51:28]line [13:51:28]line [13:51:28]line [13:51:28]line [13:51:28]line [13:51:28]written 0, free lines is 3306 [13:51:28]process_action close_receipt done [13:51:28]requested_data is exist [13:51:28]produce_requested_data [13:51:28]requested_item fm.sn is exist - process it [13:51:28]wFMCommunicate request_size=4 [13:51:28]MH_SAM_APDU [13:51:28]CAPDU: 80 11 00 00 [13:51:28]Write to MH i2c: E2 08 00 8A 27 80 11 00 00 00 00 00 00 2B [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:28]Read from MH i2c: E2 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 17 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 17 00 8A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [13:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:28]wFMCommunicate OK [13:51:28]requested_item fd.num is exist - process it [13:51:28]SAM_PROTO_GetFieldsCounters [13:51:28]wFMCommunicate request_size=4 [13:51:28]MH_SAM_APDU [13:51:28]CAPDU: 80 13 00 00 [13:51:28]Write to MH i2c: E2 08 00 8B 27 80 13 00 00 00 00 00 00 2E [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:28]Read from MH i2c: E2 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 62 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 62 00 8B 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:51: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:28]wFMCommunicate OK [13:51:28]SAM_PROTO_GetFieldsCounters done [13:51:28]requested_item shift.num is exist - process it [13:51:28]requested_item shift.opened is exist - process it [13:51:28]req_shift_opened [13:51:28]FM_GetShiftState [13:51:28]SAM_PROTO_GetShiftState [13:51:28]wFMCommunicate request_size=4 [13:51:28]MH_SAM_APDU [13:51:28]CAPDU: 80 13 01 00 [13:51:28]Write to MH i2c: E2 08 00 8C 27 80 13 01 00 00 00 00 00 30 [13:51:28]Write i2c OK [13:51:28]MH_I2C_Read... [13:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:28]Read from MH i2c: E2 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 0E 00 [13:51:28]MH_I2C_Read... [13:51:28]Read from MH i2c: E2 0E 00 8C 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 22 [13:51:28]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:51:28]wFMCommunicate OK [13:51:28]SAM_PROTO_GetShiftState done [13:51:28]FM_GetShiftState done [13:51:28]req_shift_opened done [13:51:28]requested_item shift.open_date is exist - process it [13:51:28]req_shift_open_date [13:51:28]req_shift_open_date done [13:51:28]produce_requested_data done [13:51:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156916,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:51:28]process_action_free close_receipt [13:51:28]json_value_free [13:51:28]json_value_free done [13:51:28]process_json_proto returns [13:51:28]Send response to host [13:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156916,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:51:28]free response buf [13:51:28]execute_script done [13:51:28]execute_script returns [13:51:28]free content buf [13:51:28]Sock 7.Close socket [13:51:28]Sock 7.Thread stoped [13:51:28]OFD Sender: No OFD packet to send [13:51:33]OFD Sender: No OFD packet to send [13:51:38]OFD Sender: No OFD packet to send [13:51:43]OFD Sender: No OFD packet to send [13:51:48]OFD Sender: No OFD packet to send [13:51:53]OFD Sender: No OFD packet to send [13:51:58]OFD Sender: No OFD packet to send [13:52:03]OFD Sender: No OFD packet to send [13:52:08]OFD Sender: No OFD packet to send [13:52:13]OFD Sender: No OFD packet to send [13:52:18]OFD Sender: No OFD packet to send [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:13]OFD Sender: No OFD packet to send [13:53:18]OFD Sender: No OFD packet to send [13:53:23]OFD Sender: No OFD packet to send [13:53:28]OFD Sender: No OFD packet to send [13:53:33]OFD Sender: No OFD packet to send [13:53:38]OFD Sender: No OFD packet to send [13:53:43]OFD Sender: No OFD packet to send [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:35]accept exits with 9 [13:57:35]New connection [13:57:35]New thread 3066748260 created [13:57:35]Thread 3066604900 joined [13:57:35]Waiting for new connection... [13:57:35] Sock 9.Parse request [13:57:35]Sock 9.Check first char [13:57:35]Sock 9.First char is OK [13:57:35]request: POST /json_proto HTTP/1.0 [13:57:35]Method: POST [13:57:35]URL: /json_proto [13:57:35]Method is POST - this is cgi request [13:57:35]url: /json_proto [13:57:35]query_string will be loaded in cgi processing [13:57:35]execute_cgi json_proto POST (null) [13:57:35]execute_cgi path=json_proto method=POST [13:57:35]POST find Content-Length [13:57:35]Host: 172.17.63.3:8080 [13:57:35]Content-Length: 676 [13:57:35]Content-Type: application/json [13:57:35] [13:57:35]POST finish read [13:57:35]Found Content-Length = 676 [13:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:57:35]execute_script... [13:57: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)99733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [13:57:35]POST & json_proto [13:57:35]process_json_proto [13:57:35]json parsed OK: [13:57:35]protocol is kg_v1.0 [13:57:35]action value=close_receipt [13:57:35]process_action close_receipt [13:57:35]cmd_close_receipt [13:57:35]MH_GetDate [13:57:35]Write to MH i2c: F0 00 00 8D 27 A3 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: F0 09 00 8D 27 00 52 98 1F 67 50 D1 6C 64 0D [13:57:35]GetLastDocTimeStamp 1730123488 [13:57:35]current date 1730123858 [13:57:35]FM_GetShiftState [13:57:35]SAM_PROTO_GetShiftState [13:57:35]wFMCommunicate request_size=4 [13:57:35]MH_SAM_APDU [13:57:35]CAPDU: 80 13 01 00 [13:57:35]Write to MH i2c: E2 08 00 8E 27 80 13 01 00 00 00 00 00 32 [13:57:35]Write i2c OK [13:57:35]MH_I2C_Read... [13:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:35]Read from MH i2c: E2 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 [13:57:35]MH_I2C_Read... [13:57:35]Read from MH i2c: E2 0E 00 8E 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 24 [13:57:35]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:57:35]wFMCommunicate OK [13:57:35]SAM_PROTO_GetShiftState done [13:57:35]FM_GetShiftState done [13:57:35]opened in 1730075526 [13:57:35]opened+sec_in_day 1730161926 [13:57:35]quantity*price = 35055 [13:57:35]sum+1 = 35057 [13:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 133 28.10.2024 13:57 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156917 ФПД: 215423170133945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156917&fm=215423170133945&tin=02508201610067®Number=0000000000091693&sum=35000 [13:57:36]StoreToDocumentArchive [13:57:36]shift 538 fd 156917 [13:57:36]save to /storage/0538/doc_00156917 [13:57:36]save last doc name /storage/0538/doc_00156917 to /storage/kkm_last_doc_name [13:57:36]save OK [13:57:36]Clear old archive folders... [13:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:36]tlvbuf is 01B07670 [13:57:36]SAM_PROTO_ClearQueue [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 09 00 00 [13:57:36]Write to MH i2c: E2 08 00 9B 27 80 09 00 00 00 00 00 00 34 [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]SAM_PROTO_ClearQueue done [13:57:36]KKMCreateOFDPacket [13:57:36]OFDProtocolAddRootSTLVToBuf [13:57:36]FM_MakeSignedData [13:57:36]FM_MakeSignedData [13:57:36]SAM_PROTO_SignData [13:57:36]wFMCommunicate request_size=4 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 01 02 [13:57:36]Write to MH i2c: E2 08 00 9C 27 80 0D 01 02 00 00 00 00 3C [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:36]Read from MH i2c: E2 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 [13:57:36]MH_I2C_Read... [13:57:36]Read from MH i2c: E2 03 00 9C 27 00 90 00 37 [13:57:36]RAPDU: 90 00 [13:57:36]wFMCommunicate OK [13:57:36]wFMCommunicate request_size=255 [13:57:36]MH_SAM_APDU [13:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 85 00 00 00 F4 03 04 00 52 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 64 02 00 35 04 06 00 C3 [13:57:36]Write to MH i2c: E2 02 01 9D 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 85 00 00 00 F4 03 04 00 52 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 64 02 00 35 04 06 00 C3 00 00 0A [13:57:36]Write i2c OK [13:57:36]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [13:57:37]RAPDU: 90 00 [13:57:37]wFMCommunicate OK [13:57:37]wFMCommunicate request_size=10 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 0D 02 02 05 ED 1D 88 3F B9 [13:57:37]Write to MH i2c: E2 0D 00 9E 27 80 0D 02 02 05 00 ED 1D 88 3F B9 00 00 D3 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 03 00 9E 27 00 90 00 39 [13:57:37]RAPDU: 90 00 [13:57:37]wFMCommunicate OK [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 0D 03 02 [13:57:37]Write to MH i2c: E2 08 00 9F 27 80 0D 03 02 00 00 00 00 41 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0B 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 0B 00 9F 27 00 5B 24 A8 F7 1C 1A 50 F3 90 00 D9 [13:57:37]RAPDU: 5B 24 A8 F7 1C 1A 50 F3 90 00 [13:57:37]wFMCommunicate OK [13:57:37]SAM_PROTO_SignData done [13:57:37]FM_MakeSignedData done [13:57:37]CreateOFDProtocolMessage [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 11 00 00 [13:57:37]Write to MH i2c: E2 08 00 A0 27 80 11 00 00 00 00 00 00 41 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:37]Read from MH i2c: E2 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 17 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: E2 17 00 A0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [13:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:57:37]wFMCommunicate OK [13:57:37]CreateOFDProtocolMessage done [13:57:37]OFDSenderStorePacket 156917 [13:57:37]StoreOFDPacket docnum=156917 [13:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 39 0D 07 01 3A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 85 00 00 00 F4 03 04 00 52 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 64 02 00 35 04 06 00 C3 ED 1D 88 3F B9 5B 24 A8 F7 1C 1A 50 F3 [13:57:37]CheckFolder [13:57:37]dirname=/storage/ofd_packets [13:57:37]CheckFolder done [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00156917 [13:57:37]NVStorageSaveData ofd_packets/00156917 [13:57:37]File name is /storage/ofd_packets/00156917 [13:57:37]Write 301 bytes [13:57:37]NVStorageSaveData done [13:57:37]OFDSenderStorePacket done [13:57:37]KKMCreateOFDPacket done [13:57:37]NVStorageSaveData kkm_last_timestamp [13:57:37]File name is /storage/kkm_last_timestamp [13:57:37]Write 4 bytes [13:57:37]NVStorageSaveData done [13:57:37]ExternCall_PrintAddStr [13:57:37]wPrintStart [13:57:37]Write to MH i2c: 01 00 00 A1 27 C8 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 FF 0F DD [13:57:37]RasterBufferAndPrint [13:57:37]line Счет N : (1)99733 [13:57:37]line ИНН: 02508201610067 [13:57:37]line Контрольно-Кассовый Чек [13:57:37]line ПРОДАЖА [13:57:37]line ТРК (МРК, ГНК) : 31 [13:57:37]line Товар: 2710124130 [13:57:37]line Аи-92-К-5 [13:57:37]line 5.240 * 66.90 [13:57:37]line = 350.56 [13:57:37]line НДС 12% НСП 1% [13:57:37]line > о реализуемом товаре [13:57:37]line ОКРУГЛЕНИЕ: -0.56 [13:57:37]line ИТОГО: 350.00 [13:57:37]line Внесено: 350.00 [13:57:37]line СДАЧА: 0.00 [13:57:37]line НСП 1% : 3.10 [13:57:37]line НДС 12% : 37.23 [13:57:37]line Наличными: 350.00 [13:57:37]line Безнал.: 0.00 [13:57:37]line Место: АЗС № 143 "Партнер Нефть" [13:57:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:57:37]line СНО: Общий режим [13:57:37]line Чек 133 28.10.2024 13:57 [13:57:37]line Смена: 538 ФФД: 1.0 [13:57:37]line ЗНМ: 0300000096 [13:57:37]line РНМ: 0000000000091693 [13:57:37]line Версия ККМ: 001 [13:57:37]line ФМ: 0000000000871792 [13:57:37]line ФД: 156917 [13:57:37]line ФПД: 215423170133945 [13:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156917&fm=215423170133945&tin=02508201610067®Number=0000000000091693&sum=35000 [13:57:37]OFD Sender: Processing packet 156917 [packets to send 31, broken 30] [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00156917 [13:57:37]OFD Sender: To server: pG, [13:57:37]CommunicateWithHost lk.salyk.kg:30040 [13:57:37]ConnectInit lk.salyk.kg [13:57:37]written 0, free lines is 4095 [13:57:37]Connected sock=10 [13:57: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 37 39 32 0F 01 00 00 39 0D 07 01 3A A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 85 00 00 00 F4 03 04 00 52 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 64 02 00 35 04 06 00 C3 ED 1D 88 3F B9 5B 24 A8 F7 1C 1A 50 F3 [13:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4D B0 47 00 A8 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 37 39 32 10 04 04 00 F5 64 02 00 F4 03 04 00 BE 3D 1F 67 B6 04 01 00 00 B9 01 48 31 CE 5D 83 FC [13:57:37]CommunicateWithHost err = 0 [13:57:37]CheckOFDResponse [13:57:37]1017 (14) - 77093643461234 [13:57:37]1041 (16) - 0000000000871792 [13:57:37]1040 (4) - 156917 [13:57:37]1012 (4) - 28.10.2024 07:31 [13:57:37]1206 (1) - 0 [13:57:37]OFD Sender: Remove packet 156917 [13:57:37]ProducePacketName [13:57:37]name=ofd_packets/00156917 [13:57:37]NVStorageDeleteData [13:57:37]Write to MH i2c: 01 00 00 CC 27 F3 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 [13:57:37]MH_I2C_Read... [13:57:37]Read from MH i2c: 01 07 00 CC 27 00 00 00 00 00 D7 0C DD [13:57:37]RasterBufferAndPrint [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]line [13:57:37]written 0, free lines is 3294 [13:57:37]process_action close_receipt done [13:57:37]requested_data is exist [13:57:37]produce_requested_data [13:57:37]requested_item fm.sn is exist - process it [13:57:37]wFMCommunicate request_size=4 [13:57:37]MH_SAM_APDU [13:57:37]CAPDU: 80 11 00 00 [13:57:37]Write to MH i2c: E2 08 00 D3 27 80 11 00 00 00 00 00 00 74 [13:57:37]Write i2c OK [13:57:37]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 17 00 D3 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [13:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:57:38]wFMCommunicate OK [13:57:38]requested_item fd.num is exist - process it [13:57:38]SAM_PROTO_GetFieldsCounters [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 00 00 [13:57:38]Write to MH i2c: E2 08 00 D4 27 80 13 00 00 00 00 00 00 77 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 62 00 D4 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [13:57: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetFieldsCounters done [13:57:38]requested_item shift.num is exist - process it [13:57:38]requested_item shift.opened is exist - process it [13:57:38]req_shift_opened [13:57:38]FM_GetShiftState [13:57:38]SAM_PROTO_GetShiftState [13:57:38]wFMCommunicate request_size=4 [13:57:38]MH_SAM_APDU [13:57:38]CAPDU: 80 13 01 00 [13:57:38]Write to MH i2c: E2 08 00 D5 27 80 13 01 00 00 00 00 00 79 [13:57:38]Write i2c OK [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 [13:57:38]MH_I2C_Read... [13:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:38]Read from MH i2c: E2 0E 00 [13:57:38]MH_I2C_Read... [13:57:38]Read from MH i2c: E2 0E 00 D5 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6B [13:57:38]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:57:38]wFMCommunicate OK [13:57:38]SAM_PROTO_GetShiftState done [13:57:38]FM_GetShiftState done [13:57:38]req_shift_opened done [13:57:38]requested_item shift.open_date is exist - process it [13:57:38]req_shift_open_date [13:57:38]req_shift_open_date done [13:57:38]produce_requested_data done [13:57:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156917,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:57:38]process_action_free close_receipt [13:57:38]json_value_free [13:57:38]json_value_free done [13:57:38]process_json_proto returns [13:57:38]Send response to host [13:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156917,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:57:38]free response buf [13:57:38]execute_script done [13:57:38]execute_script returns [13:57:38]free content buf [13:57:38]Sock 9.Close socket [13:57:38]Sock 9.Thread stoped [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:34]accept exits with 7 [13:58:34]New connection [13:58:34]New thread 3066604900 created [13:58:34]Thread 3066748260 joined [13:58:34]Waiting for new connection... [13:58:34] Sock 7.Parse request [13:58:34]Sock 7.Check first char [13:58:34]Sock 7.First char is OK [13:58:34]request: POST /json_proto HTTP/1.0 [13:58:34]Method: POST [13:58:34]URL: /json_proto [13:58:34]Method is POST - this is cgi request [13:58:34]url: /json_proto [13:58:34]query_string will be loaded in cgi processing [13:58:34]execute_cgi json_proto POST (null) [13:58:34]execute_cgi path=json_proto method=POST [13:58:34]POST find Content-Length [13:58:34]Host: 172.17.63.3:8080 [13:58:34]Content-Length: 676 [13:58:34]Content-Type: application/json [13:58:34] [13:58:34]POST finish read [13:58:34]Found Content-Length = 676 [13:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:34]execute_script... [13:58: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)99734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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:34]POST & json_proto [13:58:34]process_json_proto [13:58:34]json parsed OK: [13:58:34]protocol is kg_v1.0 [13:58:34]action value=close_receipt [13:58:34]process_action close_receipt [13:58:34]cmd_close_receipt [13:58:34]MH_GetDate [13:58:34]Write to MH i2c: F0 00 00 D6 27 EC [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: F0 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: F0 09 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: F0 09 00 D6 27 00 8D 98 1F 67 50 D1 6C 64 91 [13:58:34]GetLastDocTimeStamp 1730123858 [13:58:34]current date 1730123917 [13:58:34]FM_GetShiftState [13:58:34]SAM_PROTO_GetShiftState [13:58:34]wFMCommunicate request_size=4 [13:58:34]MH_SAM_APDU [13:58:34]CAPDU: 80 13 01 00 [13:58:34]Write to MH i2c: E2 08 00 D7 27 80 13 01 00 00 00 00 00 7B [13:58:34]Write i2c OK [13:58:34]MH_I2C_Read... [13:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:34]Read from MH i2c: E2 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: E2 0E 00 [13:58:34]MH_I2C_Read... [13:58:34]Read from MH i2c: E2 0E 00 D7 27 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6D [13:58:34]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:58:34]wFMCommunicate OK [13:58:34]SAM_PROTO_GetShiftState done [13:58:34]FM_GetShiftState done [13:58:34]opened in 1730075526 [13:58:34]opened+sec_in_day 1730161926 [13:58:34]quantity*price = 50041 [13:58:34]sum+1 = 50042 [13:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 134 28.10.2024 13:58 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156918 ФПД: 61089449270478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156918&fm=61089449270478&tin=02508201610067®Number=0000000000091693&sum=50000 [13:58:35]StoreToDocumentArchive [13:58:35]shift 538 fd 156918 [13:58:35]save to /storage/0538/doc_00156918 [13:58:35]save last doc name /storage/0538/doc_00156918 to /storage/kkm_last_doc_name [13:58:35]save OK [13:58:35]Clear old archive folders... [13:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:35]tlvbuf is 01AAF8E0 [13:58:35]SAM_PROTO_ClearQueue [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 09 00 00 [13:58:35]Write to MH i2c: E2 08 00 E4 27 80 09 00 00 00 00 00 00 7D [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 E4 27 00 90 00 7F [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_ClearQueue done [13:58:35]KKMCreateOFDPacket [13:58:35]OFDProtocolAddRootSTLVToBuf [13:58:35]FM_MakeSignedData [13:58:35]FM_MakeSignedData [13:58:35]SAM_PROTO_SignData [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 01 02 [13:58:35]Write to MH i2c: E2 08 00 E5 27 80 0D 01 02 00 00 00 00 85 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 E5 27 00 90 00 80 [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=255 [13:58:35]MH_SAM_APDU [13:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 86 00 00 00 F4 03 04 00 8D 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 64 02 00 35 04 06 00 37 [13:58:35]Write to MH i2c: E2 02 01 E6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 86 00 00 00 F4 03 04 00 8D 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 64 02 00 35 04 06 00 37 00 00 F9 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 E6 27 00 90 00 81 [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=10 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 02 02 05 8F 7E EC 5C CE [13:58:35]Write to MH i2c: E2 0D 00 E7 27 80 0D 02 02 05 00 8F 7E EC 5C CE 00 00 B5 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 03 00 E7 27 00 90 00 82 [13:58:35]RAPDU: 90 00 [13:58:35]wFMCommunicate OK [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 0D 03 02 [13:58:35]Write to MH i2c: E2 08 00 E8 27 80 0D 03 02 00 00 00 00 8A [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0B 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 0B 00 E8 27 00 9A 53 1A CF F0 87 F4 93 90 00 5F [13:58:35]RAPDU: 9A 53 1A CF F0 87 F4 93 90 00 [13:58:35]wFMCommunicate OK [13:58:35]SAM_PROTO_SignData done [13:58:35]FM_MakeSignedData done [13:58:35]CreateOFDProtocolMessage [13:58:35]wFMCommunicate request_size=4 [13:58:35]MH_SAM_APDU [13:58:35]CAPDU: 80 11 00 00 [13:58:35]Write to MH i2c: E2 08 00 E9 27 80 11 00 00 00 00 00 00 8A [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:35]Read from MH i2c: E2 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: E2 17 00 E9 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [13:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:58:35]wFMCommunicate OK [13:58:35]CreateOFDProtocolMessage done [13:58:35]OFDSenderStorePacket 156918 [13:58:35]StoreOFDPacket docnum=156918 [13:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 A5 07 01 AC FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 86 00 00 00 F4 03 04 00 8D 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 64 02 00 35 04 06 00 37 8F 7E EC 5C CE 9A 53 1A CF F0 87 F4 93 [13:58:35]CheckFolder [13:58:35]dirname=/storage/ofd_packets [13:58:35]CheckFolder done [13:58:35]ProducePacketName [13:58:35]name=ofd_packets/00156918 [13:58:35]NVStorageSaveData ofd_packets/00156918 [13:58:35]File name is /storage/ofd_packets/00156918 [13:58:35]Write 301 bytes [13:58:35]NVStorageSaveData done [13:58:35]OFDSenderStorePacket done [13:58:35]KKMCreateOFDPacket done [13:58:35]NVStorageSaveData kkm_last_timestamp [13:58:35]File name is /storage/kkm_last_timestamp [13:58:35]Write 4 bytes [13:58:35]NVStorageSaveData done [13:58:35]ExternCall_PrintAddStr [13:58:35]wPrintStart [13:58:35]Write to MH i2c: 01 00 00 EA 27 11 [13:58:35]Write i2c OK [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 [13:58:35]MH_I2C_Read... [13:58:35]Read from MH i2c: 01 07 00 EA 27 00 00 00 00 00 FF 0F 26 [13:58:35]RasterBufferAndPrint [13:58:35]line Счет N : (1)99734 [13:58:35]line ИНН: 02508201610067 [13:58:35]line Контрольно-Кассовый Чек [13:58:35]line ПРОДАЖА [13:58:35]line ТРК (МРК, ГНК) : 31 [13:58:35]line Товар: 2710124130 [13:58:35]line Аи-92-К-5 [13:58:35]line 7.480 * 66.90 [13:58:35]line = 500.41 [13:58:35]line НДС 12% НСП 1% [13:58:35]line > о реализуемом товаре [13:58:35]line ОКРУГЛЕНИЕ: -0.41 [13:58:35]line ИТОГО: 500.00 [13:58:35]line Внесено: 500.00 [13:58:35]line СДАЧА: 0.00 [13:58:35]line НСП 1% : 4.43 [13:58:35]line НДС 12% : 53.14 [13:58:35]line Наличными: 500.00 [13:58:35]line Безнал.: 0.00 [13:58:35]line Место: АЗС № 143 "Партнер Нефть" [13:58:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:58:35]line СНО: Общий режим [13:58:35]line Чек 134 28.10.2024 13:58 [13:58:35]line Смена: 538 ФФД: 1.0 [13:58:35]line ЗНМ: 0300000096 [13:58:35]line РНМ: 0000000000091693 [13:58:35]line Версия ККМ: 001 [13:58:35]line ФМ: 0000000000871792 [13:58:35]line ФД: 156918 [13:58:35]line ФПД: 61089449270478 [13:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T135837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156918&fm=61089449270478&tin=02508201610067®Number=0000000000091693&sum=50000 [13:58:36]OFD Sender: Processing packet 156918 [packets to send 31, broken 30] [13:58:36]ProducePacketName [13:58:36]name=ofd_packets/00156918 [13:58:36]OFD Sender: To server: pG, [13:58:36]CommunicateWithHost lk.salyk.kg:30040 [13:58:36]ConnectInit lk.salyk.kg [13:58:36]written 0, free lines is 4095 [13:58:36]Connected sock=9 [13:58: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 37 39 32 0F 01 00 00 E0 A5 07 01 AC FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 86 00 00 00 F4 03 04 00 8D 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 64 02 00 35 04 06 00 37 8F 7E EC 5C CE 9A 53 1A CF F0 87 F4 93 [13:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 97 F9 47 00 0F A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 64 02 00 F4 03 04 00 F9 3D 1F 67 B6 04 01 00 00 D5 AB 23 84 34 F9 C1 A1 [13:58:36]CommunicateWithHost err = 0 [13:58:36]CheckOFDResponse [13:58:36]1017 (14) - 77093643461234 [13:58:36]1041 (16) - 0000000000871792 [13:58:36]1040 (4) - 156918 [13:58:36]1012 (4) - 28.10.2024 07:32 [13:58:36]1206 (1) - 0 [13:58:36]OFD Sender: Remove packet 156918 [13:58:36]ProducePacketName [13:58:36]name=ofd_packets/00156918 [13:58:36]NVStorageDeleteData [13:58:36]Write to MH i2c: 01 00 00 15 28 3D [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: 01 07 00 15 28 00 00 00 00 00 D8 0C 28 [13:58:36]RasterBufferAndPrint [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]line [13:58:36]written 0, free lines is 3295 [13:58:36]process_action close_receipt done [13:58:36]requested_data is exist [13:58:36]produce_requested_data [13:58:36]requested_item fm.sn is exist - process it [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 11 00 00 [13:58:36]Write to MH i2c: E2 08 00 1C 28 80 11 00 00 00 00 00 00 BE [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 17 00 1C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [13:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:58:36]wFMCommunicate OK [13:58:36]requested_item fd.num is exist - process it [13:58:36]SAM_PROTO_GetFieldsCounters [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 13 00 00 [13:58:36]Write to MH i2c: E2 08 00 1D 28 80 13 00 00 00 00 00 00 C1 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 62 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 62 00 1D 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [13:58: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_GetFieldsCounters done [13:58:36]requested_item shift.num is exist - process it [13:58:36]requested_item shift.opened is exist - process it [13:58:36]req_shift_opened [13:58:36]FM_GetShiftState [13:58:36]SAM_PROTO_GetShiftState [13:58:36]wFMCommunicate request_size=4 [13:58:36]MH_SAM_APDU [13:58:36]CAPDU: 80 13 01 00 [13:58:36]Write to MH i2c: E2 08 00 1E 28 80 13 01 00 00 00 00 00 C3 [13:58:36]Write i2c OK [13:58:36]MH_I2C_Read... [13:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:36]Read from MH i2c: E2 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0E 00 [13:58:36]MH_I2C_Read... [13:58:36]Read from MH i2c: E2 0E 00 1E 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B5 [13:58:36]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [13:58:36]wFMCommunicate OK [13:58:36]SAM_PROTO_GetShiftState done [13:58:36]FM_GetShiftState done [13:58:36]req_shift_opened done [13:58:36]requested_item shift.open_date is exist - process it [13:58:36]req_shift_open_date [13:58:36]req_shift_open_date done [13:58:36]produce_requested_data done [13:58:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156918,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [13:58:36]process_action_free close_receipt [13:58:36]json_value_free [13:58:36]json_value_free done [13:58:36]process_json_proto returns [13:58:36]Send response to host [13:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156918,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [13:58:36]free response buf [13:58:36]execute_script done [13:58:36]execute_script returns [13:58:36]free content buf [13:58:36]Sock 7.Close socket [13:58:36]Sock 7.Thread stoped [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:16]accept exits with 10 [14:00:16]New connection [14:00:16]New thread 3066748260 created [14:00:16]Thread 3066604900 joined [14:00:16]Waiting for new connection... [14:00:16] Sock 10.Parse request [14:00:16]Sock 10.Check first char [14:00:16]Sock 10.First char is OK [14:00:16]request: POST /json_proto HTTP/1.0 [14:00:16]Method: POST [14:00:16]URL: /json_proto [14:00:16]Method is POST - this is cgi request [14:00:16]url: /json_proto [14:00:16]query_string will be loaded in cgi processing [14:00:16]execute_cgi json_proto POST (null) [14:00:16]execute_cgi path=json_proto method=POST [14:00:16]POST find Content-Length [14:00:16]Host: 172.17.63.3:8080 [14:00:16]Content-Length: 674 [14:00:16]Content-Type: application/json [14:00:16] [14:00:16]POST finish read [14:00:16]Found Content-Length = 674 [14:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:16]execute_script... [14:00: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)99735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:16]POST & json_proto [14:00:16]process_json_proto [14:00:16]json parsed OK: [14:00:16]protocol is kg_v1.0 [14:00:16]action value=close_receipt [14:00:16]process_action close_receipt [14:00:16]cmd_close_receipt [14:00:16]MH_GetDate [14:00:16]Write to MH i2c: F0 00 00 1F 28 36 [14:00:16]Write i2c OK [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 09 00 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: F0 09 00 1F 28 00 F3 98 1F 67 50 D1 6C 64 41 [14:00:16]GetLastDocTimeStamp 1730123917 [14:00:16]current date 1730124019 [14:00:16]FM_GetShiftState [14:00:16]SAM_PROTO_GetShiftState [14:00:16]wFMCommunicate request_size=4 [14:00:16]MH_SAM_APDU [14:00:16]CAPDU: 80 13 01 00 [14:00:16]Write to MH i2c: E2 08 00 20 28 80 13 01 00 00 00 00 00 C5 [14:00:16]Write i2c OK [14:00:16]MH_I2C_Read... [14:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:16]Read from MH i2c: E2 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: E2 0E 00 [14:00:16]MH_I2C_Read... [14:00:16]Read from MH i2c: E2 0E 00 20 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B7 [14:00:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:00:16]wFMCommunicate OK [14:00:16]SAM_PROTO_GetShiftState done [14:00:16]FM_GetShiftState done [14:00:16]opened in 1730075526 [14:00:16]opened+sec_in_day 1730161926 [14:00:16]quantity*price = 80010 [14:00:16]sum+1 = 80011 [14:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 135 28.10.2024 14:00 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156919 ФПД: 140362167381489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140019&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156919&fm=140362167381489&tin=02508201610067®Number=0000000000091693&sum=80000 [14:00:17]StoreToDocumentArchive [14:00:17]shift 538 fd 156919 [14:00:17]save to /storage/0538/doc_00156919 [14:00:17]save last doc name /storage/0538/doc_00156919 to /storage/kkm_last_doc_name [14:00:17]save OK [14:00:17]Clear old archive folders... [14:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:17]tlvbuf is B6D76BE0 [14:00:17]SAM_PROTO_ClearQueue [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 09 00 00 [14:00:17]Write to MH i2c: E2 08 00 2D 28 80 09 00 00 00 00 00 00 C7 [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 2D 28 00 90 00 C9 [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]SAM_PROTO_ClearQueue done [14:00:17]KKMCreateOFDPacket [14:00:17]OFDProtocolAddRootSTLVToBuf [14:00:17]FM_MakeSignedData [14:00:17]FM_MakeSignedData [14:00:17]SAM_PROTO_SignData [14:00:17]wFMCommunicate request_size=4 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 01 02 [14:00:17]Write to MH i2c: E2 08 00 2E 28 80 0D 01 02 00 00 00 00 CF [14:00:17]Write i2c OK [14:00:17]MH_I2C_Read... [14:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:17]Read from MH i2c: E2 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 [14:00:17]MH_I2C_Read... [14:00:17]Read from MH i2c: E2 03 00 2E 28 00 90 00 CA [14:00:17]RAPDU: 90 00 [14:00:17]wFMCommunicate OK [14:00:17]wFMCommunicate request_size=255 [14:00:17]MH_SAM_APDU [14:00:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 87 00 00 00 F4 03 04 00 F3 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 64 02 00 35 04 06 00 7F A8 9D 20 [14:00:17]Write to MH i2c: E2 02 01 2F 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 87 00 00 00 F4 03 04 00 F3 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 64 02 00 35 04 06 00 7F A8 9D 20 00 00 81 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 2F 28 00 90 00 CB [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]wFMCommunicate request_size=7 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 02 02 02 6D F1 [14:00:18]Write to MH i2c: E2 0A 00 30 28 80 0D 02 02 02 00 6D F1 00 00 34 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 03 00 30 28 00 90 00 CC [14:00:18]RAPDU: 90 00 [14:00:18]wFMCommunicate OK [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 0D 03 02 [14:00:18]Write to MH i2c: E2 08 00 31 28 80 0D 03 02 00 00 00 00 D4 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 0B 00 31 28 00 3E 16 B9 08 1E 63 7A 16 90 00 FB [14:00:18]RAPDU: 3E 16 B9 08 1E 63 7A 16 90 00 [14:00:18]wFMCommunicate OK [14:00:18]SAM_PROTO_SignData done [14:00:18]FM_MakeSignedData done [14:00:18]CreateOFDProtocolMessage [14:00:18]wFMCommunicate request_size=4 [14:00:18]MH_SAM_APDU [14:00:18]CAPDU: 80 11 00 00 [14:00:18]Write to MH i2c: E2 08 00 32 28 80 11 00 00 00 00 00 00 D4 [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:18]Read from MH i2c: E2 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: E2 17 00 32 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [14:00:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:18]wFMCommunicate OK [14:00:18]CreateOFDProtocolMessage done [14:00:18]OFDSenderStorePacket 156919 [14:00:18]StoreOFDPacket docnum=156919 [14:00:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A6 DF 04 01 B7 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 87 00 00 00 F4 03 04 00 F3 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 64 02 00 35 04 06 00 7F A8 9D 20 6D F1 3E 16 B9 08 1E 63 7A 16 [14:00:18]CheckFolder [14:00:18]dirname=/storage/ofd_packets [14:00:18]CheckFolder done [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00156919 [14:00:18]NVStorageSaveData ofd_packets/00156919 [14:00:18]File name is /storage/ofd_packets/00156919 [14:00:18]Write 298 bytes [14:00:18]NVStorageSaveData done [14:00:18]OFDSenderStorePacket done [14:00:18]KKMCreateOFDPacket done [14:00:18]NVStorageSaveData kkm_last_timestamp [14:00:18]File name is /storage/kkm_last_timestamp [14:00:18]Write 4 bytes [14:00:18]NVStorageSaveData done [14:00:18]ExternCall_PrintAddStr [14:00:18]wPrintStart [14:00:18]Write to MH i2c: 01 00 00 33 28 5B [14:00:18]Write i2c OK [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 [14:00:18]MH_I2C_Read... [14:00:18]Read from MH i2c: 01 07 00 33 28 00 00 00 00 00 FF 0F 70 [14:00:18]RasterBufferAndPrint [14:00:18]line Счет N : (1)99735 [14:00:18]line ИНН: 02508201610067 [14:00:18]line Контрольно-Кассовый Чек [14:00:18]line ПРОДАЖА [14:00:18]line ТРК (МРК, ГНК) : 32 [14:00:18]line Товар: 2710194210 [14:00:18]line ДТ-К-5 [14:00:18]line 10.500 * 76.20 [14:00:18]line = 800.10 [14:00:18]line НДС 12% НСП 1% [14:00:18]line > о реализуемом товаре [14:00:18]line ОКРУГЛЕНИЕ: -0.10 [14:00:18]line ИТОГО: 800.00 [14:00:18]line Внесено: 800.00 [14:00:18]line СДАЧА: 0.00 [14:00:18]line НСП 1% : 7.08 [14:00:18]line НДС 12% : 84.97 [14:00:18]line Наличными: 800.00 [14:00:18]line Безнал.: 0.00 [14:00:18]line Место: АЗС № 143 "Партнер Нефть" [14:00:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:00:18]line СНО: Общий режим [14:00:18]line Чек 135 28.10.2024 14:00 [14:00:18]line Смена: 538 ФФД: 1.0 [14:00:18]line ЗНМ: 0300000096 [14:00:18]line РНМ: 0000000000091693 [14:00:18]line Версия ККМ: 001 [14:00:18]line ФМ: 0000000000871792 [14:00:18]line ФД: 156919 [14:00:18]line ФПД: 140362167381489 [14:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140019&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156919&fm=140362167381489&tin=02508201610067®Number=0000000000091693&sum=80000 [14:00:18]OFD Sender: Processing packet 156919 [packets to send 31, broken 30] [14:00:18]ProducePacketName [14:00:18]name=ofd_packets/00156919 [14:00:18]OFD Sender: To server: pG, [14:00:18]CommunicateWithHost lk.salyk.kg:30040 [14:00:18]ConnectInit lk.salyk.kg [14:00:18]written 0, free lines is 4095 [14:00:18]Connected sock=9 [14:00: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 37 39 32 0C 01 00 00 A6 DF 04 01 B7 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 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 31 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 87 00 00 00 F4 03 04 00 F3 98 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 64 02 00 35 04 06 00 7F A8 9D 20 6D F1 3E 16 B9 08 1E 63 7A 16 [14:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CB A0 47 00 88 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 64 02 00 F4 03 04 00 60 3E 1F 67 B6 04 01 00 00 48 88 5D EF A4 24 E0 B1 [14:00:19]CommunicateWithHost err = 0 [14:00:19]CheckOFDResponse [14:00:19]1017 (14) - 77093643461234 [14:00:19]1041 (16) - 0000000000871792 [14:00:19]1040 (4) - 156919 [14:00:19]1012 (4) - 28.10.2024 07:33 [14:00:19]1206 (1) - 0 [14:00:19]OFD Sender: Remove packet 156919 [14:00:19]ProducePacketName [14:00:19]name=ofd_packets/00156919 [14:00:19]NVStorageDeleteData [14:00:19]Write to MH i2c: 01 00 00 5E 28 86 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: 01 07 00 5E 28 00 00 00 00 00 E4 0C 7D [14:00:19]RasterBufferAndPrint [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]line [14:00:19]written 0, free lines is 3306 [14:00:19]process_action close_receipt done [14:00:19]requested_data is exist [14:00:19]produce_requested_data [14:00:19]requested_item fm.sn is exist - process it [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 11 00 00 [14:00:19]Write to MH i2c: E2 08 00 65 28 80 11 00 00 00 00 00 00 07 [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 17 00 65 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5C [14:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:19]wFMCommunicate OK [14:00:19]requested_item fd.num is exist - process it [14:00:19]SAM_PROTO_GetFieldsCounters [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 13 00 00 [14:00:19]Write to MH i2c: E2 08 00 66 28 80 13 00 00 00 00 00 00 0A [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 62 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 62 00 66 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:00: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_GetFieldsCounters done [14:00:19]requested_item shift.num is exist - process it [14:00:19]requested_item shift.opened is exist - process it [14:00:19]req_shift_opened [14:00:19]FM_GetShiftState [14:00:19]SAM_PROTO_GetShiftState [14:00:19]wFMCommunicate request_size=4 [14:00:19]MH_SAM_APDU [14:00:19]CAPDU: 80 13 01 00 [14:00:19]Write to MH i2c: E2 08 00 67 28 80 13 01 00 00 00 00 00 0C [14:00:19]Write i2c OK [14:00:19]MH_I2C_Read... [14:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:19]Read from MH i2c: E2 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0E 00 [14:00:19]MH_I2C_Read... [14:00:19]Read from MH i2c: E2 0E 00 67 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 FE [14:00:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:00:19]wFMCommunicate OK [14:00:19]SAM_PROTO_GetShiftState done [14:00:19]FM_GetShiftState done [14:00:19]req_shift_opened done [14:00:19]requested_item shift.open_date is exist - process it [14:00:19]req_shift_open_date [14:00:19]req_shift_open_date done [14:00:19]produce_requested_data done [14:00:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156919,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:00:19]process_action_free close_receipt [14:00:19]json_value_free [14:00:19]json_value_free done [14:00:19]process_json_proto returns [14:00:19]Send response to host [14:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156919,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:00:19]free response buf [14:00:19]execute_script done [14:00:19]execute_script returns [14:00:19]free content buf [14:00:19]Sock 10.Close socket [14:00:19]Sock 10.Thread stoped [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]OFD Sender: No OFD packet to send [14:00:34]OFD Sender: No OFD packet to send [14:00:39]OFD Sender: No OFD packet to send [14:00:44]OFD Sender: No OFD packet to send [14:00:49]OFD Sender: No OFD packet to send [14:00:54]OFD Sender: No OFD packet to send [14:00:59]OFD Sender: No OFD packet to send [14:01:04]OFD Sender: No OFD packet to send [14:01:09]OFD Sender: No OFD packet to send [14:01:14]OFD Sender: No OFD packet to send [14:01:19]OFD Sender: No OFD packet to send [14:01:21]accept exits with 7 [14:01:21]New connection [14:01:21]New thread 3066604900 created [14:01:21]Thread 3066748260 joined [14:01:21]Waiting for new connection... [14:01:21] Sock 7.Parse request [14:01:21]Sock 7.Check first char [14:01:21]Sock 7.First char is OK [14:01:21]request: POST /json_proto HTTP/1.0 [14:01:21]Method: POST [14:01:21]URL: /json_proto [14:01:21]Method is POST - this is cgi request [14:01:21]url: /json_proto [14:01:21]query_string will be loaded in cgi processing [14:01:21]execute_cgi json_proto POST (null) [14:01:21]execute_cgi path=json_proto method=POST [14:01:21]POST find Content-Length [14:01:21]Host: 172.17.63.3:8080 [14:01:21]Content-Length: 676 [14:01:21]Content-Type: application/json [14:01:21] [14:01:21]POST finish read [14:01:21]Found Content-Length = 676 [14:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [14:01:21]execute_script... [14:01: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)99736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [14:01:21]POST & json_proto [14:01:21]process_json_proto [14:01:21]json parsed OK: [14:01:21]protocol is kg_v1.0 [14:01:21]action value=close_receipt [14:01:21]process_action close_receipt [14:01:21]cmd_close_receipt [14:01:21]MH_GetDate [14:01:21]Write to MH i2c: F0 00 00 68 28 7F [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 09 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 09 00 68 28 00 34 99 1F 67 50 D1 6C 64 CC [14:01:21]GetLastDocTimeStamp 1730124019 [14:01:21]current date 1730124084 [14:01:21]FM_GetShiftState [14:01:21]SAM_PROTO_GetShiftState [14:01:21]wFMCommunicate request_size=4 [14:01:21]MH_SAM_APDU [14:01:21]CAPDU: 80 13 01 00 [14:01:21]Write to MH i2c: E2 08 00 69 28 80 13 01 00 00 00 00 00 0E [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:21]Read from MH i2c: E2 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 0E 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 0E 00 69 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 00 [14:01:21]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:01:21]wFMCommunicate OK [14:01:21]SAM_PROTO_GetShiftState done [14:01:21]FM_GetShiftState done [14:01:21]opened in 1730075526 [14:01:21]opened+sec_in_day 1730161926 [14:01:21]quantity*price = 60009 [14:01:21]sum+1 = 60010 [14:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 136 28.10.2024 14:01 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156920 ФПД: 68377835045431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156920&fm=68377835045431&tin=02508201610067®Number=0000000000091693&sum=60000 [14:01:22]StoreToDocumentArchive [14:01:22]shift 538 fd 156920 [14:01:22]save to /storage/0538/doc_00156920 [14:01:22]save last doc name /storage/0538/doc_00156920 to /storage/kkm_last_doc_name [14:01:22]save OK [14:01:22]Clear old archive folders... [14:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:22]tlvbuf is 01AE1DC0 [14:01:22]SAM_PROTO_ClearQueue [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 09 00 00 [14:01:22]Write to MH i2c: E2 08 00 76 28 80 09 00 00 00 00 00 00 10 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 76 28 00 90 00 12 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_ClearQueue done [14:01:22]KKMCreateOFDPacket [14:01:22]OFDProtocolAddRootSTLVToBuf [14:01:22]FM_MakeSignedData [14:01:22]FM_MakeSignedData [14:01:22]SAM_PROTO_SignData [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 01 02 [14:01:22]Write to MH i2c: E2 08 00 77 28 80 0D 01 02 00 00 00 00 18 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 77 28 00 90 00 13 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]wFMCommunicate request_size=255 [14:01:22]MH_SAM_APDU [14:01: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 88 00 00 00 F4 03 04 00 34 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 64 02 00 35 04 06 00 3E [14:01:22]Write to MH i2c: E2 02 01 78 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 88 00 00 00 F4 03 04 00 34 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 64 02 00 35 04 06 00 3E 00 00 1C [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 78 28 00 90 00 14 [14:01:23]RAPDU: 90 00 [14:01:23]wFMCommunicate OK [14:01:23]wFMCommunicate request_size=10 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 0D 02 02 05 30 74 91 82 37 [14:01:23]Write to MH i2c: E2 0D 00 79 28 80 0D 02 02 05 00 30 74 91 82 37 00 00 13 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 79 28 00 90 00 15 [14:01:23]RAPDU: 90 00 [14:01:23]wFMCommunicate OK [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 0D 03 02 [14:01:23]Write to MH i2c: E2 08 00 7A 28 80 0D 03 02 00 00 00 00 1D [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0B 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0B 00 7A 28 00 05 6D 9E E8 08 DD 19 50 90 00 64 [14:01:23]RAPDU: 05 6D 9E E8 08 DD 19 50 90 00 [14:01:23]wFMCommunicate OK [14:01:23]SAM_PROTO_SignData done [14:01:23]FM_MakeSignedData done [14:01:23]CreateOFDProtocolMessage [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 11 00 00 [14:01:23]Write to MH i2c: E2 08 00 7B 28 80 11 00 00 00 00 00 00 1D [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 7B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 72 [14:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:23]wFMCommunicate OK [14:01:23]CreateOFDProtocolMessage done [14:01:23]OFDSenderStorePacket 156920 [14:01:23]StoreOFDPacket docnum=156920 [14:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 81 4C 07 01 D7 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 88 00 00 00 F4 03 04 00 34 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 64 02 00 35 04 06 00 3E 30 74 91 82 37 05 6D 9E E8 08 DD 19 50 [14:01:23]CheckFolder [14:01:23]dirname=/storage/ofd_packets [14:01:23]CheckFolder done [14:01:23]ProducePacketName [14:01:23]name=ofd_packets/00156920 [14:01:23]NVStorageSaveData ofd_packets/00156920 [14:01:23]File name is /storage/ofd_packets/00156920 [14:01:23]Write 301 bytes [14:01:23]NVStorageSaveData done [14:01:23]OFDSenderStorePacket done [14:01:23]KKMCreateOFDPacket done [14:01:23]NVStorageSaveData kkm_last_timestamp [14:01:23]File name is /storage/kkm_last_timestamp [14:01:23]Write 4 bytes [14:01:23]NVStorageSaveData done [14:01:23]ExternCall_PrintAddStr [14:01:23]wPrintStart [14:01:23]Write to MH i2c: 01 00 00 7C 28 A4 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 7C 28 00 00 00 00 00 FF 0F B9 [14:01:23]RasterBufferAndPrint [14:01:23]line Счет N : (1)99736 [14:01:23]line ИНН: 02508201610067 [14:01:23]line Контрольно-Кассовый Чек [14:01:23]line ПРОДАЖА [14:01:23]line ТРК (МРК, ГНК) : 31 [14:01:23]line Товар: 2710124130 [14:01:23]line Аи-92-К-5 [14:01:23]line 8.970 * 66.90 [14:01:23]line = 600.09 [14:01:23]line НДС 12% НСП 1% [14:01:23]line > о реализуемом товаре [14:01:23]line ОКРУГЛЕНИЕ: -0.09 [14:01:23]line ИТОГО: 600.00 [14:01:23]line Внесено: 600.00 [14:01:23]line СДАЧА: 0.00 [14:01:23]line НСП 1% : 5.31 [14:01:23]line НДС 12% : 63.73 [14:01:23]line Наличными: 600.00 [14:01:23]line Безнал.: 0.00 [14:01:23]line Место: АЗС № 143 "Партнер Нефть" [14:01:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:01:23]line СНО: Общий режим [14:01:23]line Чек 136 28.10.2024 14:01 [14:01:23]line Смена: 538 ФФД: 1.0 [14:01:23]line ЗНМ: 0300000096 [14:01:23]line РНМ: 0000000000091693 [14:01:23]line Версия ККМ: 001 [14:01:23]line ФМ: 0000000000871792 [14:01:23]line ФД: 156920 [14:01:23]line ФПД: 68377835045431 [14:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140124&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156920&fm=68377835045431&tin=02508201610067®Number=0000000000091693&sum=60000 [14:01:23]OFD Sender: Processing packet 156920 [packets to send 31, broken 30] [14:01:23]ProducePacketName [14:01:23]name=ofd_packets/00156920 [14:01:23]OFD Sender: To server: pG, [14:01:23]CommunicateWithHost lk.salyk.kg:30040 [14:01:23]ConnectInit lk.salyk.kg [14:01:23]written 0, free lines is 4095 [14:01:23]Connected sock=11 [14:01: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 37 39 32 0F 01 00 00 81 4C 07 01 D7 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 88 00 00 00 F4 03 04 00 34 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 64 02 00 35 04 06 00 3E 30 74 91 82 37 05 6D 9E E8 08 DD 19 50 [14:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E DD 47 00 0E 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 37 39 32 10 04 04 00 F8 64 02 00 F4 03 04 00 A1 3E 1F 67 B6 04 01 00 00 D2 79 DB D1 68 A1 47 5A [14:01:23]CommunicateWithHost err = 0 [14:01:23]CheckOFDResponse [14:01:23]1017 (14) - 77093643461234 [14:01:23]1041 (16) - 0000000000871792 [14:01:23]1040 (4) - 156920 [14:01:23]1012 (4) - 28.10.2024 07:34 [14:01:23]1206 (1) - 0 [14:01:23]OFD Sender: Remove packet 156920 [14:01:23]ProducePacketName [14:01:23]name=ofd_packets/00156920 [14:01:23]NVStorageDeleteData [14:01:24]Write to MH i2c: 01 00 00 A7 28 CF [14:01:24]Write i2c OK [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: 01 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: 01 07 00 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: 01 07 00 A7 28 00 00 00 00 00 D7 0C B9 [14:01:24]RasterBufferAndPrint [14:01:24]line [14:01:24]line [14:01:24]line [14:01:24]line [14:01:24]line [14:01:24]written 0, free lines is 3294 [14:01:24]process_action close_receipt done [14:01:24]requested_data is exist [14:01:24]produce_requested_data [14:01:24]requested_item fm.sn is exist - process it [14:01:24]wFMCommunicate request_size=4 [14:01:24]MH_SAM_APDU [14:01:24]CAPDU: 80 11 00 00 [14:01:24]Write to MH i2c: E2 08 00 AE 28 80 11 00 00 00 00 00 00 50 [14:01:24]Write i2c OK [14:01:24]MH_I2C_Read... [14:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:24]Read from MH i2c: E2 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 17 00 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 17 00 AE 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A5 [14:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:24]wFMCommunicate OK [14:01:24]requested_item fd.num is exist - process it [14:01:24]SAM_PROTO_GetFieldsCounters [14:01:24]wFMCommunicate request_size=4 [14:01:24]MH_SAM_APDU [14:01:24]CAPDU: 80 13 00 00 [14:01:24]Write to MH i2c: E2 08 00 AF 28 80 13 00 00 00 00 00 00 53 [14:01:24]Write i2c OK [14:01:24]MH_I2C_Read... [14:01:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:24]Read from MH i2c: E2 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 62 00 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 62 00 AF 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:01: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:24]wFMCommunicate OK [14:01:24]SAM_PROTO_GetFieldsCounters done [14:01:24]requested_item shift.num is exist - process it [14:01:24]requested_item shift.opened is exist - process it [14:01:24]req_shift_opened [14:01:24]FM_GetShiftState [14:01:24]SAM_PROTO_GetShiftState [14:01:24]wFMCommunicate request_size=4 [14:01:24]MH_SAM_APDU [14:01:24]CAPDU: 80 13 01 00 [14:01:24]Write to MH i2c: E2 08 00 B0 28 80 13 01 00 00 00 00 00 55 [14:01:24]Write i2c OK [14:01:24]MH_I2C_Read... [14:01:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:24]Read from MH i2c: E2 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 0E 00 [14:01:24]MH_I2C_Read... [14:01:24]Read from MH i2c: E2 0E 00 B0 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 47 [14:01:24]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:01:24]wFMCommunicate OK [14:01:24]SAM_PROTO_GetShiftState done [14:01:24]FM_GetShiftState done [14:01:24]req_shift_opened done [14:01:24]requested_item shift.open_date is exist - process it [14:01:24]req_shift_open_date [14:01:24]req_shift_open_date done [14:01:24]produce_requested_data done [14:01:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156920,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:01:24]process_action_free close_receipt [14:01:24]json_value_free [14:01:24]json_value_free done [14:01:24]process_json_proto returns [14:01:24]Send response to host [14:01:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156920,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:01:24]free response buf [14:01:24]execute_script done [14:01:24]execute_script returns [14:01:24]free content buf [14:01:24]Sock 7.Close socket [14:01:24]Sock 7.Thread stoped [14:01:24]OFD Sender: No OFD packet to send [14:01:29]OFD Sender: No OFD packet to send [14:01:34]OFD Sender: No OFD packet to send [14:01:39]OFD Sender: No OFD packet to send [14:01:44]OFD Sender: No OFD packet to send [14:01:49]OFD Sender: No OFD packet to send [14:01:54]OFD Sender: No OFD packet to send [14:01:59]OFD Sender: No OFD packet to send [14:02:04]OFD Sender: No OFD packet to send [14:02:09]OFD Sender: No OFD packet to send [14:02:09]accept exits with 9 [14:02:09]New connection [14:02:09]New thread 3066748260 created [14:02:09]Thread 3066604900 joined [14:02:09]Waiting for new connection... [14:02:09] Sock 9.Parse request [14:02:09]Sock 9.Check first char [14:02:09]Sock 9.First char is OK [14:02:09]request: POST /json_proto HTTP/1.0 [14:02:09]Method: POST [14:02:09]URL: /json_proto [14:02:09]Method is POST - this is cgi request [14:02:09]url: /json_proto [14:02:09]query_string will be loaded in cgi processing [14:02:09]execute_cgi json_proto POST (null) [14:02:09]execute_cgi path=json_proto method=POST [14:02:09]POST find Content-Length [14:02:09]Host: 172.17.63.3:8080 [14:02:09]Content-Length: 676 [14:02:09]Content-Type: application/json [14:02:09] [14:02:09]POST finish read [14:02:09]Found Content-Length = 676 [14:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:02:09]execute_script... [14:02: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)99737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:02:09]POST & json_proto [14:02:09]process_json_proto [14:02:09]json parsed OK: [14:02:09]protocol is kg_v1.0 [14:02:09]action value=close_receipt [14:02:09]process_action close_receipt [14:02:09]cmd_close_receipt [14:02:09]MH_GetDate [14:02:09]Write to MH i2c: F0 00 00 B1 28 C8 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: F0 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: F0 09 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: F0 09 00 B1 28 00 64 99 1F 67 50 D1 6C 64 45 [14:02:09]GetLastDocTimeStamp 1730124084 [14:02:09]current date 1730124132 [14:02:09]FM_GetShiftState [14:02:09]SAM_PROTO_GetShiftState [14:02:09]wFMCommunicate request_size=4 [14:02:09]MH_SAM_APDU [14:02:09]CAPDU: 80 13 01 00 [14:02:09]Write to MH i2c: E2 08 00 B2 28 80 13 01 00 00 00 00 00 57 [14:02:09]Write i2c OK [14:02:09]MH_I2C_Read... [14:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:09]Read from MH i2c: E2 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 0E 00 [14:02:09]MH_I2C_Read... [14:02:09]Read from MH i2c: E2 0E 00 B2 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 49 [14:02:09]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:02:09]wFMCommunicate OK [14:02:09]SAM_PROTO_GetShiftState done [14:02:09]FM_GetShiftState done [14:02:09]opened in 1730075526 [14:02:09]opened+sec_in_day 1730161926 [14:02:09]quantity*price = 50041 [14:02:09]sum+1 = 50042 [14:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 137 28.10.2024 14:02 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156921 ФПД: 152329140421950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156921&fm=152329140421950&tin=02508201610067®Number=0000000000091693&sum=50000 [14:02:10]StoreToDocumentArchive [14:02:10]shift 538 fd 156921 [14:02:10]save to /storage/0538/doc_00156921 [14:02:10]save last doc name /storage/0538/doc_00156921 to /storage/kkm_last_doc_name [14:02:10]save OK [14:02:10]Clear old archive folders... [14:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:10]tlvbuf is 01A988E0 [14:02:10]SAM_PROTO_ClearQueue [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 09 00 00 [14:02:10]Write to MH i2c: E2 08 00 BF 28 80 09 00 00 00 00 00 00 59 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:10]Read from MH i2c: E2 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 [14:02:10]MH_I2C_Read... [14:02:10]Read from MH i2c: E2 03 00 BF 28 00 90 00 5B [14:02:10]RAPDU: 90 00 [14:02:10]wFMCommunicate OK [14:02:10]SAM_PROTO_ClearQueue done [14:02:10]KKMCreateOFDPacket [14:02:10]OFDProtocolAddRootSTLVToBuf [14:02:10]FM_MakeSignedData [14:02:10]FM_MakeSignedData [14:02:10]SAM_PROTO_SignData [14:02:10]wFMCommunicate request_size=4 [14:02:10]MH_SAM_APDU [14:02:10]CAPDU: 80 0D 01 02 [14:02:10]Write to MH i2c: E2 08 00 C0 28 80 0D 01 02 00 00 00 00 61 [14:02:10]Write i2c OK [14:02:10]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 C0 28 00 90 00 5C [14:02:11]RAPDU: 90 00 [14:02:11]wFMCommunicate OK [14:02:11]wFMCommunicate request_size=255 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 89 00 00 00 F4 03 04 00 64 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 64 02 00 35 04 06 00 8A [14:02:11]Write to MH i2c: E2 02 01 C1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 89 00 00 00 F4 03 04 00 64 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 64 02 00 35 04 06 00 8A 00 00 06 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 C1 28 00 90 00 5D [14:02:11]RAPDU: 90 00 [14:02:11]wFMCommunicate OK [14:02:11]wFMCommunicate request_size=10 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 0D 02 02 05 8A E4 4D C5 3E [14:02:11]Write to MH i2c: E2 0D 00 C2 28 80 0D 02 02 05 00 8A E4 4D C5 3E 00 00 2C [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 03 00 C2 28 00 90 00 5E [14:02:11]RAPDU: 90 00 [14:02:11]wFMCommunicate OK [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 0D 03 02 [14:02:11]Write to MH i2c: E2 08 00 C3 28 80 0D 03 02 00 00 00 00 66 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0B 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 0B 00 C3 28 00 49 26 B6 22 36 B4 69 86 90 00 87 [14:02:11]RAPDU: 49 26 B6 22 36 B4 69 86 90 00 [14:02:11]wFMCommunicate OK [14:02:11]SAM_PROTO_SignData done [14:02:11]FM_MakeSignedData done [14:02:11]CreateOFDProtocolMessage [14:02:11]wFMCommunicate request_size=4 [14:02:11]MH_SAM_APDU [14:02:11]CAPDU: 80 11 00 00 [14:02:11]Write to MH i2c: E2 08 00 C4 28 80 11 00 00 00 00 00 00 66 [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:11]Read from MH i2c: E2 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: E2 17 00 C4 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [14:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:02:11]wFMCommunicate OK [14:02:11]CreateOFDProtocolMessage done [14:02:11]OFDSenderStorePacket 156921 [14:02:11]StoreOFDPacket docnum=156921 [14:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F 3B 07 01 4A 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 89 00 00 00 F4 03 04 00 64 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 64 02 00 35 04 06 00 8A 8A E4 4D C5 3E 49 26 B6 22 36 B4 69 86 [14:02:11]CheckFolder [14:02:11]dirname=/storage/ofd_packets [14:02:11]CheckFolder done [14:02:11]ProducePacketName [14:02:11]name=ofd_packets/00156921 [14:02:11]NVStorageSaveData ofd_packets/00156921 [14:02:11]File name is /storage/ofd_packets/00156921 [14:02:11]Write 301 bytes [14:02:11]NVStorageSaveData done [14:02:11]OFDSenderStorePacket done [14:02:11]KKMCreateOFDPacket done [14:02:11]NVStorageSaveData kkm_last_timestamp [14:02:11]File name is /storage/kkm_last_timestamp [14:02:11]Write 4 bytes [14:02:11]NVStorageSaveData done [14:02:11]ExternCall_PrintAddStr [14:02:11]wPrintStart [14:02:11]Write to MH i2c: 01 00 00 C5 28 ED [14:02:11]OFD Sender: Processing packet 156921 [packets to send 31, broken 30] [14:02:11]ProducePacketName [14:02:11]name=ofd_packets/00156921 [14:02:11]OFD Sender: To server: pG, [14:02:11]CommunicateWithHost lk.salyk.kg:30040 [14:02:11]ConnectInit lk.salyk.kg [14:02:11]Write i2c OK [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 [14:02:11]MH_I2C_Read... [14:02:11]Read from MH i2c: 01 07 00 C5 28 00 00 00 00 00 FF 0F 02 [14:02:11]RasterBufferAndPrint [14:02:11]line Счет N : (1)99737 [14:02:11]line ИНН: 02508201610067 [14:02:11]line Контрольно-Кассовый Чек [14:02:11]line ПРОДАЖА [14:02:11]line ТРК (МРК, ГНК) : 31 [14:02:11]line Товар: 2710124130 [14:02:11]line Аи-92-К-5 [14:02:11]line 7.480 * 66.90 [14:02:11]line = 500.41 [14:02:11]line НДС 12% НСП 1% [14:02:11]line > о реализуемом товаре [14:02:11]line ОКРУГЛЕНИЕ: -0.41 [14:02:11]line ИТОГО: 500.00 [14:02:11]line Внесено: 500.00 [14:02:11]line СДАЧА: 0.00 [14:02:11]line НСП 1% : 4.43 [14:02:11]line НДС 12% : 53.14 [14:02:11]line Наличными: 500.00 [14:02:11]line Безнал.: 0.00 [14:02:11]line Место: АЗС № 143 "Партнер Нефть" [14:02:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:02:11]line СНО: Общий режим [14:02:11]line Чек 137 28.10.2024 14:02 [14:02:11]line Смена: 538 ФФД: 1.0 [14:02:11]line ЗНМ: 0300000096 [14:02:11]line РНМ: 0000000000091693 [14:02:11]line Версия ККМ: 001 [14:02:11]line ФМ: 0000000000871792 [14:02:11]line ФД: 156921 [14:02:11]line ФПД: 152329140421950 [14:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T140212&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156921&fm=152329140421950&tin=02508201610067®Number=0000000000091693&sum=50000 [14:02:11]Connected sock=10 [14:02: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 37 39 32 0F 01 00 00 0F 3B 07 01 4A 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 89 00 00 00 F4 03 04 00 64 99 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 64 02 00 35 04 06 00 8A 8A E4 4D C5 3E 49 26 B6 22 36 B4 69 86 [14:02:11]written 0, free lines is 4095 [14:02:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 89 D8 47 00 96 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 37 39 32 10 04 04 00 F9 64 02 00 F4 03 04 00 D1 3E 1F 67 B6 04 01 00 00 9C 64 3E E0 F3 BC 9C 6B [14:02:11]CommunicateWithHost err = 0 [14:02:11]CheckOFDResponse [14:02:11]1017 (14) - 77093643461234 [14:02:11]1041 (16) - 0000000000871792 [14:02:11]1040 (4) - 156921 [14:02:11]1012 (4) - 28.10.2024 07:35 [14:02:11]1206 (1) - 0 [14:02:11]OFD Sender: Remove packet 156921 [14:02:11]ProducePacketName [14:02:11]name=ofd_packets/00156921 [14:02:11]NVStorageDeleteData [14:02:12]Write to MH i2c: 01 00 00 F0 28 18 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: 01 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: 01 07 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: 01 07 00 F0 28 00 00 00 00 00 D4 0C FF [14:02:12]RasterBufferAndPrint [14:02:12]line [14:02:12]line [14:02:12]line [14:02:12]line [14:02:12]line [14:02:12]written 0, free lines is 3288 [14:02:12]process_action close_receipt done [14:02:12]requested_data is exist [14:02:12]produce_requested_data [14:02:12]requested_item fm.sn is exist - process it [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 11 00 00 [14:02:12]Write to MH i2c: E2 08 00 F7 28 80 11 00 00 00 00 00 00 99 [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 17 00 F7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EE [14:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:02:12]wFMCommunicate OK [14:02:12]requested_item fd.num is exist - process it [14:02:12]SAM_PROTO_GetFieldsCounters [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 00 00 [14:02:12]Write to MH i2c: E2 08 00 F8 28 80 13 00 00 00 00 00 00 9C [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 62 00 F8 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 64 02 00 0E 04 04 00 1A 02 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 D8 [14:02: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 64 02 00 0E 04 04 00 1A 02 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 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetFieldsCounters done [14:02:12]requested_item shift.num is exist - process it [14:02:12]requested_item shift.opened is exist - process it [14:02:12]req_shift_opened [14:02:12]FM_GetShiftState [14:02:12]SAM_PROTO_GetShiftState [14:02:12]wFMCommunicate request_size=4 [14:02:12]MH_SAM_APDU [14:02:12]CAPDU: 80 13 01 00 [14:02:12]Write to MH i2c: E2 08 00 F9 28 80 13 01 00 00 00 00 00 9E [14:02:12]Write i2c OK [14:02:12]MH_I2C_Read... [14:02:12]OFD Sender: No OFD packet to send [14:02:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:12]Read from MH i2c: E2 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 [14:02:12]MH_I2C_Read... [14:02:12]Read from MH i2c: E2 0E 00 F9 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 90 [14:02:12]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:02:12]wFMCommunicate OK [14:02:12]SAM_PROTO_GetShiftState done [14:02:12]FM_GetShiftState done [14:02:12]req_shift_opened done [14:02:12]requested_item shift.open_date is exist - process it [14:02:12]req_shift_open_date [14:02:12]req_shift_open_date done [14:02:12]produce_requested_data done [14:02:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156921,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:02:12]process_action_free close_receipt [14:02:12]json_value_free [14:02:12]json_value_free done [14:02:12]process_json_proto returns [14:02:12]Send response to host [14:02:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156921,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:02:12]free response buf [14:02:12]execute_script done [14:02:12]execute_script returns [14:02:12]free content buf [14:02:12]Sock 9.Close socket [14:02:12]Sock 9.Thread stoped [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:13]accept exits with 7 [14:11:13]New connection [14:11:13]New thread 3066604900 created [14:11:13]Thread 3066748260 joined [14:11:13]Waiting for new connection... [14:11:13] Sock 7.Parse request [14:11:13]Sock 7.Check first char [14:11:13]Sock 7.First char is OK [14:11:13]request: POST /json_proto HTTP/1.0 [14:11:13]Method: POST [14:11:13]URL: /json_proto [14:11:13]Method is POST - this is cgi request [14:11:13]url: /json_proto [14:11:13]query_string will be loaded in cgi processing [14:11:13]execute_cgi json_proto POST (null) [14:11:13]execute_cgi path=json_proto method=POST [14:11:13]POST find Content-Length [14:11:13]Host: 172.17.63.3:8080 [14:11:13]Content-Length: 676 [14:11:13]Content-Type: application/json [14:11:13] [14:11:13]POST finish read [14:11:13]Found Content-Length = 676 [14:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:11:13]execute_script... [14: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)99738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "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" ] } } [14:11:13]POST & json_proto [14:11:13]process_json_proto [14:11:13]json parsed OK: [14:11:13]protocol is kg_v1.0 [14:11:13]action value=close_receipt [14:11:13]process_action close_receipt [14:11:13]cmd_close_receipt [14:11:13]MH_GetDate [14:11:13]Write to MH i2c: F0 00 00 FA 28 11 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: F0 09 00 FA 28 00 84 9B 1F 67 50 D1 6C 64 B0 [14:11:13]GetLastDocTimeStamp 1730124132 [14:11:13]current date 1730124676 [14:11:13]FM_GetShiftState [14:11:13]SAM_PROTO_GetShiftState [14:11:13]wFMCommunicate request_size=4 [14:11:13]MH_SAM_APDU [14:11:13]CAPDU: 80 13 01 00 [14:11:13]Write to MH i2c: E2 08 00 FB 28 80 13 01 00 00 00 00 00 A0 [14:11:13]Write i2c OK [14:11:13]MH_I2C_Read... [14:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:13]Read from MH i2c: E2 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 [14:11:13]MH_I2C_Read... [14:11:13]Read from MH i2c: E2 0E 00 FB 28 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 92 [14:11:13]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:11:13]wFMCommunicate OK [14:11:13]SAM_PROTO_GetShiftState done [14:11:13]FM_GetShiftState done [14:11:13]opened in 1730075526 [14:11:13]opened+sec_in_day 1730161926 [14:11:13]quantity*price = 50041 [14:11:13]sum+1 = 50042 [14:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 138 28.10.2024 14:11 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156922 ФПД: 57101391683565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141116&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156922&fm=57101391683565&tin=02508201610067®Number=0000000000091693&sum=50000 [14:11:14]StoreToDocumentArchive [14:11:14]shift 538 fd 156922 [14:11:14]save to /storage/0538/doc_00156922 [14:11:14]save last doc name /storage/0538/doc_00156922 to /storage/kkm_last_doc_name [14:11:14]save OK [14:11:14]Clear old archive folders... [14:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:14]tlvbuf is B6F264F0 [14:11:14]SAM_PROTO_ClearQueue [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 09 00 00 [14:11:14]Write to MH i2c: E2 08 00 08 29 80 09 00 00 00 00 00 00 A3 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 08 29 00 90 00 A5 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]SAM_PROTO_ClearQueue done [14:11:14]KKMCreateOFDPacket [14:11:14]OFDProtocolAddRootSTLVToBuf [14:11:14]FM_MakeSignedData [14:11:14]FM_MakeSignedData [14:11:14]SAM_PROTO_SignData [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 01 02 [14:11:14]Write to MH i2c: E2 08 00 09 29 80 0D 01 02 00 00 00 00 AB [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 09 29 00 90 00 A6 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=255 [14:11:14]MH_SAM_APDU [14:11: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 8A 00 00 00 F4 03 04 00 84 9B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 64 02 00 35 04 06 00 33 [14:11:14]Write to MH i2c: E2 02 01 0A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 8A 00 00 00 F4 03 04 00 84 9B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 64 02 00 35 04 06 00 33 00 00 1D [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 0A 29 00 90 00 A7 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=10 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 02 02 05 EE F4 2A DF ED [14:11:14]Write to MH i2c: E2 0D 00 0B 29 80 0D 02 02 05 00 EE F4 2A DF ED 00 00 90 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:14]Read from MH i2c: E2 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 [14:11:14]MH_I2C_Read... [14:11:14]Read from MH i2c: E2 03 00 0B 29 00 90 00 A8 [14:11:14]RAPDU: 90 00 [14:11:14]wFMCommunicate OK [14:11:14]wFMCommunicate request_size=4 [14:11:14]MH_SAM_APDU [14:11:14]CAPDU: 80 0D 03 02 [14:11:14]Write to MH i2c: E2 08 00 0C 29 80 0D 03 02 00 00 00 00 B0 [14:11:14]Write i2c OK [14:11:14]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0B 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 0B 00 0C 29 00 DC 9A 17 4B 88 A9 1E 66 90 00 3E [14:11:15]RAPDU: DC 9A 17 4B 88 A9 1E 66 90 00 [14:11:15]wFMCommunicate OK [14:11:15]SAM_PROTO_SignData done [14:11:15]FM_MakeSignedData done [14:11:15]CreateOFDProtocolMessage [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 11 00 00 [14:11:15]Write to MH i2c: E2 08 00 0D 29 80 11 00 00 00 00 00 00 B0 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 0D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [14:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:11:15]wFMCommunicate OK [14:11:15]CreateOFDProtocolMessage done [14:11:15]OFDSenderStorePacket 156922 [14:11:15]StoreOFDPacket docnum=156922 [14:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 52 F9 07 01 4A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 8A 00 00 00 F4 03 04 00 84 9B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 64 02 00 35 04 06 00 33 EE F4 2A DF ED DC 9A 17 4B 88 A9 1E 66 [14:11:15]CheckFolder [14:11:15]dirname=/storage/ofd_packets [14:11:15]CheckFolder done [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00156922 [14:11:15]NVStorageSaveData ofd_packets/00156922 [14:11:15]File name is /storage/ofd_packets/00156922 [14:11:15]Write 301 bytes [14:11:15]NVStorageSaveData done [14:11:15]OFDSenderStorePacket done [14:11:15]KKMCreateOFDPacket done [14:11:15]NVStorageSaveData kkm_last_timestamp [14:11:15]File name is /storage/kkm_last_timestamp [14:11:15]Write 4 bytes [14:11:15]NVStorageSaveData done [14:11:15]ExternCall_PrintAddStr [14:11:15]wPrintStart [14:11:15]Write to MH i2c: 01 00 00 0E 29 37 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 FF 0F 4C [14:11:15]RasterBufferAndPrint [14:11:15]line Счет N : (1)99738 [14:11:15]line ИНН: 02508201610067 [14:11:15]line Контрольно-Кассовый Чек [14:11:15]line ПРОДАЖА [14:11:15]line ТРК (МРК, ГНК) : 31 [14:11:15]line Товар: 2710124130 [14:11:15]line Аи-92-К-5 [14:11:15]line 7.480 * 66.90 [14:11:15]line = 500.41 [14:11:15]line НДС 12% НСП 1% [14:11:15]line > о реализуемом товаре [14:11:15]line ОКРУГЛЕНИЕ: -0.41 [14:11:15]line ИТОГО: 500.00 [14:11:15]line Внесено: 500.00 [14:11:15]line СДАЧА: 0.00 [14:11:15]line НСП 1% : 4.43 [14:11:15]line НДС 12% : 53.14 [14:11:15]line Наличными: 500.00 [14:11:15]line Безнал.: 0.00 [14:11:15]line Место: АЗС № 143 "Партнер Нефть" [14:11:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:11:15]line СНО: Общий режим [14:11:15]line Чек 138 28.10.2024 14:11 [14:11:15]line Смена: 538 ФФД: 1.0 [14:11:15]line ЗНМ: 0300000096 [14:11:15]line РНМ: 0000000000091693 [14:11:15]line Версия ККМ: 001 [14:11:15]line ФМ: 0000000000871792 [14:11:15]line ФД: 156922 [14:11:15]line ФПД: 57101391683565 [14:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T141116&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156922&fm=57101391683565&tin=02508201610067®Number=0000000000091693&sum=50000 [14:11:15]OFD Sender: Processing packet 156922 [packets to send 31, broken 30] [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00156922 [14:11:15]OFD Sender: To server: pG, [14:11:15]CommunicateWithHost lk.salyk.kg:30040 [14:11:15]ConnectInit lk.salyk.kg [14:11:15]written 0, free lines is 4095 [14:11:15]Connected sock=10 [14: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 37 39 32 0F 01 00 00 52 F9 07 01 4A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 8A 00 00 00 F4 03 04 00 84 9B 1F 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 64 02 00 35 04 06 00 33 EE F4 2A DF ED DC 9A 17 4B 88 A9 1E 66 [14:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 23 50 47 00 98 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 64 02 00 F4 03 04 00 F0 40 1F 67 B6 04 01 00 00 4D 39 54 19 C7 4B C2 CA [14:11:15]CommunicateWithHost err = 0 [14:11:15]CheckOFDResponse [14:11:15]1017 (14) - 77093643461234 [14:11:15]1041 (16) - 0000000000871792 [14:11:15]1040 (4) - 156922 [14:11:15]1012 (4) - 28.10.2024 07:44 [14:11:15]1206 (1) - 0 [14:11:15]OFD Sender: Remove packet 156922 [14:11:15]ProducePacketName [14:11:15]name=ofd_packets/00156922 [14:11:15]NVStorageDeleteData [14:11:15]Write to MH i2c: 01 00 00 39 29 62 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: 01 07 00 39 29 00 00 00 00 00 F0 0C 65 [14:11:15]RasterBufferAndPrint [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]line [14:11:15]written 0, free lines is 3318 [14:11:15]process_action close_receipt done [14:11:15]requested_data is exist [14:11:15]produce_requested_data [14:11:15]requested_item fm.sn is exist - process it [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 11 00 00 [14:11:15]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:15]Read from MH i2c: E2 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 [14:11:15]MH_I2C_Read... [14:11:15]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [14:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:11:15]wFMCommunicate OK [14:11:15]requested_item fd.num is exist - process it [14:11:15]SAM_PROTO_GetFieldsCounters [14:11:15]wFMCommunicate request_size=4 [14:11:15]MH_SAM_APDU [14:11:15]CAPDU: 80 13 00 00 [14:11:15]Write to MH i2c: E2 08 00 41 29 80 13 00 00 00 00 00 00 E6 [14:11:15]Write i2c OK [14:11:15]MH_I2C_Read... [14:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:16]Read from MH i2c: E2 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 62 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 62 00 41 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 26 [14:11: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:11:16]wFMCommunicate OK [14:11:16]SAM_PROTO_GetFieldsCounters done [14:11:16]requested_item shift.num is exist - process it [14:11:16]requested_item shift.opened is exist - process it [14:11:16]req_shift_opened [14:11:16]FM_GetShiftState [14:11:16]SAM_PROTO_GetShiftState [14:11:16]wFMCommunicate request_size=4 [14:11:16]MH_SAM_APDU [14:11:16]CAPDU: 80 13 01 00 [14:11:16]Write to MH i2c: E2 08 00 42 29 80 13 01 00 00 00 00 00 E8 [14:11:16]Write i2c OK [14:11:16]MH_I2C_Read... [14:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:16]Read from MH i2c: E2 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 0E 00 [14:11:16]MH_I2C_Read... [14:11:16]Read from MH i2c: E2 0E 00 42 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 DA [14:11:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:11:16]wFMCommunicate OK [14:11:16]SAM_PROTO_GetShiftState done [14:11:16]FM_GetShiftState done [14:11:16]req_shift_opened done [14:11:16]requested_item shift.open_date is exist - process it [14:11:16]req_shift_open_date [14:11:16]req_shift_open_date done [14:11:16]produce_requested_data done [14:11:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:11:16]process_action_free close_receipt [14:11:16]json_value_free [14:11:16]json_value_free done [14:11:16]process_json_proto returns [14:11:16]Send response to host [14:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:11:16]free response buf [14:11:16]execute_script done [14:11:16]execute_script returns [14:11:16]free content buf [14:11:16]Sock 7.Close socket [14:11:16]Sock 7.Thread stoped [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 43 29 6C [14:17:55]*** FLAG_PRN_KEY set [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 43 29 00 08 00 00 00 FF 0F 89 [14:17:55]state=0 [14:17:55]Key pressed [14:17:55]Feed [14:17:55]Write to MH i2c: D8 00 00 44 29 44 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 44 29 00 45 [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 45 29 6E [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 45 29 00 48 00 00 00 3D 00 FA [14:17:55]state=2 [14:17:55]Key pressed [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 46 29 6F [14:17:55]*** FLAG_PRN_KEY reset [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 46 29 00 00 00 00 00 F5 0F 7A [14:17:55]state=2 [14:17:55]Stop feed [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 47 29 70 [14:17:55]*** FLAG_PRN_KEY set [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 47 29 00 08 00 00 00 FF 0F 8D [14:17:55]state=0 [14:17:55]Key pressed [14:17:55]Feed [14:17:55]Write to MH i2c: D8 00 00 48 29 48 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 48 29 00 49 [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 49 29 72 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 49 29 00 48 00 00 00 3C 00 FD [14:17:55]state=2 [14:17:55]Key pressed [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 4A 29 73 [14:17:55]*** FLAG_PRN_KEY reset [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 4A 29 00 00 00 00 00 F5 0F 7E [14:17:55]state=2 [14:17:55]Stop feed [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 4B 29 74 [14:17:55]*** FLAG_PRN_KEY set [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 4B 29 00 08 00 00 00 FF 0F 91 [14:17:55]state=0 [14:17:55]Key pressed [14:17:55]Feed [14:17:55]Write to MH i2c: D8 00 00 4C 29 4C [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: D8 01 00 4C 29 00 4D [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 4D 29 76 [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 4D 29 00 48 00 00 00 3C 00 01 [14:17:55]state=2 [14:17:55]Key pressed [14:17:55]int [14:17:55]Write to MH i2c: 01 00 00 4E 29 77 [14:17:55]*** FLAG_PRN_KEY reset [14:17:55]Write i2c OK [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 [14:17:55]MH_I2C_Read... [14:17:55]Read from MH i2c: 01 07 00 4E 29 00 00 00 00 00 F5 0F 82 [14:17:55]state=2 [14:17:55]Stop feed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 4F 29 78 [14:17:56]*** FLAG_PRN_KEY set [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 4F 29 00 08 00 00 00 FF 0F 95 [14:17:56]state=0 [14:17:56]Key pressed [14:17:56]Feed [14:17:56]Write to MH i2c: D8 00 00 50 29 50 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 50 29 00 51 [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 51 29 7A [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 51 29 00 48 00 00 00 3C 00 05 [14:17:56]state=2 [14:17:56]Key pressed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 52 29 7B [14:17:56]*** FLAG_PRN_KEY reset [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 F6 0F 87 [14:17:56]state=2 [14:17:56]Stop feed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 53 29 7C [14:17:56]*** FLAG_PRN_KEY set [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 53 29 00 08 00 00 00 FF 0F 99 [14:17:56]state=0 [14:17:56]Key pressed [14:17:56]Feed [14:17:56]Write to MH i2c: D8 00 00 54 29 54 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 54 29 00 55 [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 55 29 7E [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 55 29 00 48 00 00 00 3C 00 09 [14:17:56]state=2 [14:17:56]Key pressed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 56 29 7F [14:17:56]*** FLAG_PRN_KEY reset [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 56 29 00 00 00 00 00 F5 0F 8A [14:17:56]state=2 [14:17:56]Stop feed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 57 29 80 [14:17:56]*** FLAG_PRN_KEY set [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 57 29 00 08 00 00 00 FF 0F 9D [14:17:56]state=0 [14:17:56]Key pressed [14:17:56]Feed [14:17:56]Write to MH i2c: D8 00 00 58 29 58 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: D8 01 00 58 29 00 59 [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 59 29 82 [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 59 29 00 48 00 00 00 3D 00 0E [14:17:56]state=2 [14:17:56]Key pressed [14:17:56]int [14:17:56]Write to MH i2c: 01 00 00 5A 29 83 [14:17:56]*** FLAG_PRN_KEY reset [14:17:56]Write i2c OK [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 [14:17:56]MH_I2C_Read... [14:17:56]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 F5 0F 8E [14:17:56]state=2 [14:17:56]Stop feed [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:31]OFD Sender: No OFD packet to send [14:19:36]OFD Sender: No OFD packet to send [14:19:41]OFD Sender: No OFD packet to send [14:19:46]OFD Sender: No OFD packet to send [14:19:51]OFD Sender: No OFD packet to send [14:19:56]OFD Sender: No OFD packet to send [14:20:01]OFD Sender: No OFD packet to send [14:20:06]OFD Sender: No OFD packet to send [14:20:11]OFD Sender: No OFD packet to send [14:20:16]OFD Sender: No OFD packet to send [14:20:21]OFD Sender: No OFD packet to send [14:20:26]OFD Sender: No OFD packet to send [14:20:31]OFD Sender: No OFD packet to send [14:20:36]OFD Sender: No OFD packet to send [14:20:41]OFD Sender: No OFD packet to send [14:20:46]OFD Sender: No OFD packet to send [14:20:51]OFD Sender: No OFD packet to send [14:20:56]OFD Sender: No OFD packet to send [14:21:01]OFD Sender: No OFD packet to send [14:21:06]OFD Sender: No OFD packet to send [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:13]accept exits with 9 [14:22:13]New connection [14:22:13]New thread 3066748260 created [14:22:13]Thread 3066604900 joined [14:22:13]Waiting for new connection... [14:22:13] Sock 9.Parse request [14:22:13]Sock 9.Check first char [14:22:13]Sock 9.First char is OK [14:22:13]request: POST /json_proto HTTP/1.0 [14:22:13]Method: POST [14:22:13]URL: /json_proto [14:22:13]Method is POST - this is cgi request [14:22:13]url: /json_proto [14:22:13]query_string will be loaded in cgi processing [14:22:13]execute_cgi json_proto POST (null) [14:22:13]execute_cgi path=json_proto method=POST [14:22:13]POST find Content-Length [14:22:13]Host: 172.17.63.3:8080 [14:22:13]Content-Length: 215 [14:22:13]Content-Type: application/json [14:22:13] [14:22:13]POST finish read [14:22:13]Found Content-Length = 215 [14:22: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" ] } } [14:22:13]execute_script... [14:22: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" ] } } [14:22:13]POST & json_proto [14:22:13]process_json_proto [14:22:13]json parsed OK: [14:22:13]protocol is kg_v1.0 [14:22:13]action value=get_value [14:22:13]process_action get_value [14:22:13]cmd_get_value [14:22:13]process_action get_value done [14:22:13]requested_data is exist [14:22:13]produce_requested_data [14:22:13]requested_item kkm.sn is exist - process it [14:22:13]requested_item kkm.ver is exist - process it [14:22:13]requested_item fm.sn is exist - process it [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 11 00 00 [14:22:13]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [14:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:22:13]wFMCommunicate OK [14:22:13]requested_item fd.num is exist - process it [14:22:13]SAM_PROTO_GetFieldsCounters [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 00 00 [14:22:13]Write to MH i2c: E2 08 00 5C 29 80 13 00 00 00 00 00 00 01 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 62 00 5C 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 41 [14:22: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetFieldsCounters done [14:22:13]requested_item shift.num is exist - process it [14:22:13]requested_item shift.opened is exist - process it [14:22:13]req_shift_opened [14:22:13]FM_GetShiftState [14:22:13]SAM_PROTO_GetShiftState [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 01 00 [14:22:13]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:13]Read from MH i2c: E2 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 [14:22:13]MH_I2C_Read... [14:22:13]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 F5 [14:22:13]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:22:13]wFMCommunicate OK [14:22:13]SAM_PROTO_GetShiftState done [14:22:13]FM_GetShiftState done [14:22:13]req_shift_opened done [14:22:13]requested_item shift.open_date is exist - process it [14:22:13]req_shift_open_date [14:22:13]req_shift_open_date done [14:22:13]produce_requested_data done [14:22:13]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:22:13]process_action_free get_value [14:22:13]json_value_free [14:22:13]json_value_free done [14:22:13]process_json_proto returns [14:22:13]Send response to host [14:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:22:13]free response buf [14:22:13]execute_script done [14:22:13]execute_script returns [14:22:13]free content buf [14:22:13]Sock 9.Close socket [14:22:13]Sock 9.Thread stoped [14:22:13]accept exits with 7 [14:22:13]New connection [14:22:13]New thread 3066604900 created [14:22:13]Thread 3066748260 joined [14:22:13]Waiting for new connection... [14:22:13] Sock 7.Parse request [14:22:13]Sock 7.Check first char [14:22:13]Sock 7.First char is OK [14:22:13]request: POST /json_proto HTTP/1.0 [14:22:13]Method: POST [14:22:13]URL: /json_proto [14:22:13]Method is POST - this is cgi request [14:22:13]url: /json_proto [14:22:13]query_string will be loaded in cgi processing [14:22:13]execute_cgi json_proto POST (null) [14:22:13]execute_cgi path=json_proto method=POST [14:22:13]POST find Content-Length [14:22:13]Host: 172.17.63.3:8080 [14:22:13]Content-Length: 331 [14:22:13]Content-Type: application/json [14:22:13] [14:22:13]POST finish read [14:22:13]Found Content-Length = 331 [14:22: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" ] } } [14:22:13]execute_script... [14:22: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" ] } } [14:22:13]POST & json_proto [14:22:13]process_json_proto [14:22:13]json parsed OK: [14:22:13]protocol is kg_v1.0 [14:22:13]action value=get_value [14:22:13]process_action get_value [14:22:13]cmd_get_value [14:22:13]process_action get_value done [14:22:13]requested_data is exist [14:22:13]produce_requested_data [14:22:13]requested_item fm.sale.total is exist - process it [14:22:13]SAM_PROTO_GetFMData [14:22:13]wFMCommunicate request_size=4 [14:22:13]MH_SAM_APDU [14:22:13]CAPDU: 80 13 03 00 [14:22:13]Write to MH i2c: E2 08 00 5E 29 80 13 03 00 00 00 00 00 06 [14:22:13]Write i2c OK [14:22:13]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 5E 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 B8 [14:22:14]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 17 00 00 [14:22:14]Write to MH i2c: E2 08 00 5F 29 80 17 00 00 00 00 00 00 08 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 5F 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 77 [14:22:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 17 00 00 [14:22:14]Write to MH i2c: E2 08 00 60 29 80 17 00 00 00 00 00 00 09 [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:14]Read from MH i2c: E2 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 [14:22:14]MH_I2C_Read... [14:22:14]Read from MH i2c: E2 FD 00 60 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 B7 [14:22:14]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:22:14]wFMCommunicate OK [14:22:14]wFMCommunicate request_size=4 [14:22:14]MH_SAM_APDU [14:22:14]CAPDU: 80 17 00 00 [14:22:14]Write to MH i2c: E2 08 00 61 29 80 17 00 00 00 00 00 00 0A [14:22:14]Write i2c OK [14:22:14]MH_I2C_Read... [14:22:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 FD 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 FD 00 61 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 85 [14:22:15]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:22:15]wFMCommunicate OK [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 17 00 00 [14:22:15]Write to MH i2c: E2 08 00 62 29 80 17 00 00 00 00 00 00 0B [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 DF 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 DF 00 62 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EB [14:22:15]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:22:15]wFMCommunicate OK [14:22:15]SAM_PROTO_GetFMData done [14:22:15]requested_item fm.sale_refund.total is exist - process it [14:22:15]requested_item fm.buy.total is exist - process it [14:22:15]requested_item shift.sale.total is exist - process it [14:22:15]SAM_PROTO_GetShiftData [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 13 02 00 [14:22:15]Write to MH i2c: E2 08 00 63 29 80 13 02 00 00 00 00 00 0A [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:22:15]Read from MH i2c: E2 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 FD 00 [14:22:15]MH_I2C_Read... [14:22:15]Read from MH i2c: E2 FD 00 63 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 F2 [14:22:15]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:22:15]wFMCommunicate OK [14:22:15]wFMCommunicate request_size=4 [14:22:15]MH_SAM_APDU [14:22:15]CAPDU: 80 17 00 00 [14:22:15]Write to MH i2c: E2 08 00 64 29 80 17 00 00 00 00 00 00 0D [14:22:15]Write i2c OK [14:22:15]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 64 29 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 26 [14:22:16]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 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 17 00 00 [14:22:16]Write to MH i2c: E2 08 00 65 29 80 17 00 00 00 00 00 00 0E [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 65 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 C2 [14:22:16]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 17 00 00 [14:22:16]Write to MH i2c: E2 08 00 66 29 80 17 00 00 00 00 00 00 0F [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:16]Read from MH i2c: E2 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 [14:22:16]MH_I2C_Read... [14:22:16]Read from MH i2c: E2 FD 00 66 29 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 8D [14:22:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [14:22:16]wFMCommunicate OK [14:22:16]wFMCommunicate request_size=4 [14:22:16]MH_SAM_APDU [14:22:16]CAPDU: 80 17 00 00 [14:22:16]Write to MH i2c: E2 08 00 67 29 80 17 00 00 00 00 00 00 10 [14:22:16]Write i2c OK [14:22:16]MH_I2C_Read... [14:22:16]OFD Sender: No OFD packet to send [14:22:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:22:17]Read from MH i2c: E2 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 CC 00 [14:22:17]MH_I2C_Read... [14:22:17]Read from MH i2c: E2 CC 00 67 29 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 F1 [14:22:17]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 [14:22:17]wFMCommunicate OK [14:22:17]SAM_PROTO_GetShiftData done [14:22:17]requested_item shift.sale.total_cash is exist - process it [14:22:17]requested_item shift.sale_refund.total is exist - process it [14:22:17]requested_item shift.sale_refund.total_cash is exist - process it [14:22:17]requested_item shift.buy.total is exist - process it [14:22:17]requested_item shift.buy.total_cash is exist - process it [14:22:17]produce_requested_data done [14:22:17]produce_requested_data return {"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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} [14:22:17]process_action_free get_value [14:22:17]json_value_free [14:22:17]json_value_free done [14:22:17]process_json_proto returns [14:22:17]Send response to host [14:22:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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}}} [14:22:17]free response buf [14:22:17]execute_script done [14:22:17]execute_script returns [14:22:17]free content buf [14:22:17]Sock 7.Close socket [14:22:17]Sock 7.Thread stoped [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]accept exits with 9 [14:22:46]New connection [14:22:46]New thread 3066748260 created [14:22:46]Thread 3066604900 joined [14:22:46]Waiting for new connection... [14:22:46] Sock 9.Parse request [14:22:46]Sock 9.Check first char [14:22:46]Sock 9.First char is OK [14:22:46]request: POST /json_proto HTTP/1.0 [14:22:46]Method: POST [14:22:46]URL: /json_proto [14:22:46]Method is POST - this is cgi request [14:22:46]url: /json_proto [14:22:46]query_string will be loaded in cgi processing [14:22:46]execute_cgi json_proto POST (null) [14:22:46]execute_cgi path=json_proto method=POST [14:22:46]POST find Content-Length [14:22:46]Host: 172.17.63.3:8080 [14:22:46]Content-Length: 215 [14:22:46]Content-Type: application/json [14:22:46] [14:22:46]POST finish read [14:22:46]Found Content-Length = 215 [14:22:46]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" ] } } [14:22:46]execute_script... [14:22:46]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" ] } } [14:22:46]POST & json_proto [14:22:46]process_json_proto [14:22:46]json parsed OK: [14:22:46]protocol is kg_v1.0 [14:22:46]action value=get_value [14:22:46]process_action get_value [14:22:46]cmd_get_value [14:22:46]process_action get_value done [14:22:46]requested_data is exist [14:22:46]produce_requested_data [14:22:46]requested_item kkm.sn is exist - process it [14:22:46]requested_item kkm.ver is exist - process it [14:22:46]requested_item fm.sn is exist - process it [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 11 00 00 [14:22:46]Write to MH i2c: E2 08 00 68 29 80 11 00 00 00 00 00 00 0B [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 68 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [14:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:22:46]wFMCommunicate OK [14:22:46]requested_item fd.num is exist - process it [14:22:46]SAM_PROTO_GetFieldsCounters [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 13 00 00 [14:22:46]Write to MH i2c: E2 08 00 69 29 80 13 00 00 00 00 00 00 0E [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 62 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 62 00 69 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 4E [14:22: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_GetFieldsCounters done [14:22:46]requested_item shift.num is exist - process it [14:22:46]requested_item shift.opened is exist - process it [14:22:46]req_shift_opened [14:22:46]FM_GetShiftState [14:22:46]SAM_PROTO_GetShiftState [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 13 01 00 [14:22:46]Write to MH i2c: E2 08 00 6A 29 80 13 01 00 00 00 00 00 10 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0E 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0E 00 6A 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 02 [14:22:46]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_GetShiftState done [14:22:46]FM_GetShiftState done [14:22:46]req_shift_opened done [14:22:46]requested_item shift.open_date is exist - process it [14:22:46]req_shift_open_date [14:22:46]req_shift_open_date done [14:22:46]produce_requested_data done [14:22:46]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:22:46]process_action_free get_value [14:22:46]json_value_free [14:22:46]json_value_free done [14:22:46]process_json_proto returns [14:22:46]Send response to host [14:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:22:46]free response buf [14:22:46]execute_script done [14:22:46]execute_script returns [14:22:46]free content buf [14:22:46]Sock 9.Close socket [14:22:46]Sock 9.Thread stoped [14:22:46]accept exits with 7 [14:22:46]New connection [14:22:46]New thread 3066604900 created [14:22:46]Thread 3066748260 joined [14:22:46]Waiting for new connection... [14:22:46] Sock 7.Parse request [14:22:46]Sock 7.Check first char [14:22:46]Sock 7.First char is OK [14:22:46]request: POST /json_proto HTTP/1.0 [14:22:46]Method: POST [14:22:46]URL: /json_proto [14:22:46]Method is POST - this is cgi request [14:22:46]url: /json_proto [14:22:46]query_string will be loaded in cgi processing [14:22:46]execute_cgi json_proto POST (null) [14:22:46]execute_cgi path=json_proto method=POST [14:22:46]POST find Content-Length [14:22:46]Host: 172.17.63.3:8080 [14:22:46]Content-Length: 331 [14:22:46]Content-Type: application/json [14:22:46] [14:22:46]POST finish read [14:22:46]Found Content-Length = 331 [14:22:46]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" ] } } [14:22:46]execute_script... [14:22:46]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" ] } } [14:22:46]POST & json_proto [14:22:46]process_json_proto [14:22:46]json parsed OK: [14:22:46]protocol is kg_v1.0 [14:22:46]action value=get_value [14:22:46]process_action get_value [14:22:46]cmd_get_value [14:22:46]process_action get_value done [14:22:46]requested_data is exist [14:22:46]produce_requested_data [14:22:46]requested_item fm.sale.total is exist - process it [14:22:46]SAM_PROTO_GetFMData [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 13 03 00 [14:22:46]Write to MH i2c: E2 08 00 6B 29 80 13 03 00 00 00 00 00 13 [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]OFD Sender: No OFD packet to send [14:22:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 6B 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 C5 [14:22:47]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:22:47]wFMCommunicate OK [14:22:47]wFMCommunicate request_size=4 [14:22:47]MH_SAM_APDU [14:22:47]CAPDU: 80 17 00 00 [14:22:47]Write to MH i2c: E2 08 00 6C 29 80 17 00 00 00 00 00 00 15 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]int [14:22:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:47]*** FLAG_PRN_KEY set [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 6C 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 84 [14:22:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:22:47]wFMCommunicate OK [14:22:47]wFMCommunicate request_size=4 [14:22:47]MH_SAM_APDU [14:22:47]CAPDU: 80 17 00 00 [14:22:47]Write to MH i2c: E2 08 00 6D 29 80 17 00 00 00 00 00 00 16 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 6D 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 C4 [14:22:47]RAPDU: Write to MH i2c: 04 01 00 00 00 00 72 6E 04 29 00 97 00 00 [14:22:47]04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:22:47]wFMCommunicate OK [14:22:47]wFMCommunicate request_size=4 [14:22:47]MH_SAM_APDU [14:22:47]CAPDU: 80 17 00 00 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 6E 29 00 08 00 00 00 FF 0F B4 [14:22:47]state=0 [14:22:47]Write to MH i2c: Key pressed [14:22:47]E2 Feed [14:22:47]08 00 6F 29 80 17 00 00 00 00 00 00 18 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:47]*** FLAG_PRN_KEY reset [14:22:47]Read from MH i2c: E2 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: E2 FD 00 6F 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [14:22:47]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:22:47]wFMCommunicate OK [14:22:47]wFMCommunicate request_size=4 [14:22:47]MH_SAM_APDU [14:22:47]CAPDU: 80 17 00 00 [14:22:47]Write to MH i2c: D8 00 00 70 29 70 [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D8 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D8 01 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: D8 01 00 70 29 00 71 [14:22:47]int line is 0 - check status [14:22:47]Write to MH i2c: 01 00 00 71 29 9A [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 [14:22:47]MH_I2C_Read... [14:22:47]Read from MH i2c: 01 07 00 71 29 00 00 00 00 00 F5 0F A5 [14:22:47]state=2 [14:22:47]Stop feed [14:22:47]Write to MH i2c: E2 08 00 72 29 80 17 00 00 00 00 00 00 1B [14:22:47]int [14:22:47]Write i2c OK [14:22:47]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 DF 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 DF 00 72 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FB [14:22:48]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:22:48]wFMCommunicate OK [14:22:48]SAM_PROTO_GetFMData done [14:22:48]requested_item fm.sale_refund.total is exist - process it [14:22:48]requested_item fm.buy.total is exist - process it [14:22:48]requested_item shift.sale.total is exist - process it [14:22:48]SAM_PROTO_GetShiftData [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 13 02 00 [14:22:48]Write to MH i2c: 01 00 00 73 29 9C [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: 01 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: 01 07 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: 01 07 00 73 29 00 00 00 00 00 FF 0F B1 [14:22:48]state=0 [14:22:48]Write to MH i2c: E2 08 00 74 29 80 13 02 00 00 00 00 00 1B [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 FD 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 FD 00 74 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 03 [14:22:48]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:22:48]wFMCommunicate OK [14:22:48]wFMCommunicate request_size=4 [14:22:48]MH_SAM_APDU [14:22:48]CAPDU: 80 17 00 00 [14:22:48]Write to MH i2c: E2 08 00 75 29 80 17 00 00 00 00 00 00 1E [14:22:48]Write i2c OK [14:22:48]MH_I2C_Read... [14:22:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:48]Read from MH i2c: E2 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 FD 00 [14:22:48]MH_I2C_Read... [14:22:48]Read from MH i2c: E2 FD 00 75 29 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 37 [14:22:49]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 [14:22:49]wFMCommunicate OK [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 17 00 00 [14:22:49]Write to MH i2c: E2 08 00 76 29 80 17 00 00 00 00 00 00 1F [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 FD 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 FD 00 76 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 D3 [14:22:49]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 [14:22:49]wFMCommunicate OK [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 17 00 00 [14:22:49]Write to MH i2c: E2 08 00 77 29 80 17 00 00 00 00 00 00 20 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 FD 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 FD 00 77 29 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 9E [14:22:49]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 [14:22:49]wFMCommunicate OK [14:22:49]wFMCommunicate request_size=4 [14:22:49]MH_SAM_APDU [14:22:49]CAPDU: 80 17 00 00 [14:22:49]Write to MH i2c: E2 08 00 78 29 80 17 00 00 00 00 00 00 21 [14:22:49]Write i2c OK [14:22:49]MH_I2C_Read... [14:22:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:22:49]Read from MH i2c: E2 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 CC 00 [14:22:49]MH_I2C_Read... [14:22:49]Read from MH i2c: E2 CC 00 78 29 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 02 [14:22:49]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 [14:22:49]wFMCommunicate OK [14:22:49]SAM_PROTO_GetShiftData done [14:22:49]requested_item shift.sale.total_cash is exist - process it [14:22:49]requested_item shift.sale_refund.total is exist - process it [14:22:49]requested_item shift.sale_refund.total_cash is exist - process it [14:22:49]requested_item shift.buy.total is exist - process it [14:22:49]requested_item shift.buy.total_cash is exist - process it [14:22:49]produce_requested_data done [14:22:49]produce_requested_data return {"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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} [14:22:49]process_action_free get_value [14:22:49]json_value_free [14:22:49]json_value_free done [14:22:49]process_json_proto returns [14:22:49]Send response to host [14:22:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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}}} [14:22:49]free response buf [14:22:49]execute_script done [14:22:49]execute_script returns [14:22:49]free content buf [14:22:49]Sock 7.Close socket [14:22:49]Sock 7.Thread stoped [14:22:50]accept exits with 9 [14:22:50]New connection [14:22:50]New thread 3066748260 created [14:22:50]Thread 3066604900 joined [14:22:50]Waiting for new connection... [14:22:50] Sock 9.Parse request [14:22:50]Sock 9.Check first char [14:22:50]Sock 9.First char is OK [14:22:50]request: POST /json_proto HTTP/1.0 [14:22:50]Method: POST [14:22:50]URL: /json_proto [14:22:50]Method is POST - this is cgi request [14:22:50]url: /json_proto [14:22:50]query_string will be loaded in cgi processing [14:22:50]execute_cgi json_proto POST (null) [14:22:50]execute_cgi path=json_proto method=POST [14:22:50]POST find Content-Length [14:22:50]Host: 172.17.63.3:8080 [14:22:50]Content-Length: 331 [14:22:50]Content-Type: application/json [14:22:50] [14:22:50]POST finish read [14:22:50]Found Content-Length = 331 [14:22:50]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" ] } } [14:22:50]execute_script... [14:22:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [14:22:50]POST & json_proto [14:22:50]process_json_proto [14:22:50]json parsed OK: [14:22:50]protocol is kg_v1.0 [14:22:50]action value=get_value [14:22:50]process_action get_value [14:22:50]cmd_get_value [14:22:50]process_action get_value done [14:22:50]requested_data is exist [14:22:50]produce_requested_data [14:22:50]requested_item fm.sale.total is exist - process it [14:22:50]SAM_PROTO_GetFMData [14:22:50]wFMCommunicate request_size=4 [14:22:50]MH_SAM_APDU [14:22:50]CAPDU: 80 13 03 00 [14:22:50]Write to MH i2c: E2 08 00 79 29 80 13 03 00 00 00 00 00 21 [14:22:50]Write i2c OK [14:22:50]MH_I2C_Read... [14:22:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:22:50]Read from MH i2c: E2 [14:22:50]MH_I2C_Read... [14:22:50]Read from MH i2c: E2 FD 00 [14:22:50]MH_I2C_Read... [14:22:50]Read from MH i2c: E2 FD 00 79 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 D3 [14:22:50]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:22:50]wFMCommunicate OK [14:22:50]wFMCommunicate request_size=4 [14:22:50]MH_SAM_APDU [14:22:50]CAPDU: 80 17 00 00 [14:22:50]Write to MH i2c: E2 08 00 7A 29 80 17 00 00 00 00 00 00 23 [14:22:50]Write i2c OK [14:22:50]MH_I2C_Read... [14:22:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:50]Read from MH i2c: E2 [14:22:50]MH_I2C_Read... [14:22:50]Read from MH i2c: E2 FD 00 [14:22:50]MH_I2C_Read... [14:22:50]Read from MH i2c: E2 FD 00 7A 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 92 [14:22:50]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:22:51]wFMCommunicate OK [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 17 00 00 [14:22:51]Write to MH i2c: E2 08 00 7B 29 80 17 00 00 00 00 00 00 24 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 FD 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 FD 00 7B 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 D2 [14:22:51]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:22:51]wFMCommunicate OK [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 17 00 00 [14:22:51]Write to MH i2c: E2 08 00 7C 29 80 17 00 00 00 00 00 00 25 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 FD 00 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 FD 00 7C 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A0 [14:22:51]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:22:51]wFMCommunicate OK [14:22:51]wFMCommunicate request_size=4 [14:22:51]MH_SAM_APDU [14:22:51]CAPDU: 80 17 00 00 [14:22:51]Write to MH i2c: E2 08 00 7D 29 80 17 00 00 00 00 00 00 26 [14:22:51]Write i2c OK [14:22:51]MH_I2C_Read... [14:22:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:22:51]Read from MH i2c: E2 [14:22:51]MH_I2C_Read... [14:22:51]Read from MH i2c: E2 DF 00 [14:22:51]MH_I2C_Read... [14:22:51]OFD Sender: No OFD packet to send [14:22:51]Read from MH i2c: E2 DF 00 7D 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:22:52]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:22:52]wFMCommunicate OK [14:22:52]SAM_PROTO_GetFMData done [14:22:52]requested_item fm.sale_refund.total is exist - process it [14:22:52]requested_item fm.buy.total is exist - process it [14:22:52]requested_item shift.sale.total is exist - process it [14:22:52]SAM_PROTO_GetShiftData [14:22:52]wFMCommunicate request_size=4 [14:22:52]MH_SAM_APDU [14:22:52]CAPDU: 80 13 02 00 [14:22:52]Write to MH i2c: E2 08 00 7E 29 80 13 02 00 00 00 00 00 25 [14:22:52]Write i2c OK [14:22:52]MH_I2C_Read... [14:22:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:22:52]Read from MH i2c: E2 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 FD 00 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 FD 00 7E 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 0D [14:22:52]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:22:52]wFMCommunicate OK [14:22:52]wFMCommunicate request_size=4 [14:22:52]MH_SAM_APDU [14:22:52]CAPDU: 80 17 00 00 [14:22:52]Write to MH i2c: E2 08 00 7F 29 80 17 00 00 00 00 00 00 28 [14:22:52]Write i2c OK [14:22:52]MH_I2C_Read... [14:22:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:52]Read from MH i2c: E2 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 FD 00 [14:22:52]MH_I2C_Read... [14:22:52]Read from MH i2c: E2 FD 00 7F 29 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 41 [14:22:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:22:53]wFMCommunicate OK [14:22:53]wFMCommunicate request_size=4 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 17 00 00 [14:22:53]Write to MH i2c: E2 08 00 80 29 80 17 00 00 00 00 00 00 29 [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 FD 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 FD 00 80 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 DD [14:22:53]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 [14:22:53]wFMCommunicate OK [14:22:53]wFMCommunicate request_size=4 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 17 00 00 [14:22:53]Write to MH i2c: E2 08 00 81 29 80 17 00 00 00 00 00 00 2A [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:53]Read from MH i2c: E2 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 FD 00 [14:22:53]MH_I2C_Read... [14:22:53]Read from MH i2c: E2 FD 00 81 29 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 A8 [14:22:53]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 [14:22:53]wFMCommunicate OK [14:22:53]wFMCommunicate request_size=4 [14:22:53]MH_SAM_APDU [14:22:53]CAPDU: 80 17 00 00 [14:22:53]Write to MH i2c: E2 08 00 82 29 80 17 00 00 00 00 00 00 2B [14:22:53]Write i2c OK [14:22:53]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 CC 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 CC 00 82 29 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 0C [14:22:54]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 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetShiftData done [14:22:54]requested_item shift.sale.total_cash is exist - process it [14:22:54]requested_item shift.sale_refund.total is exist - process it [14:22:54]requested_item shift.sale_refund.total_cash is exist - process it [14:22:54]requested_item shift.buy.total is exist - process it [14:22:54]requested_item shift.buy.total_cash is exist - process it [14:22:54]produce_requested_data done [14:22:54]produce_requested_data return {"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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} [14:22:54]process_action_free get_value [14:22:54]json_value_free [14:22:54]json_value_free done [14:22:54]process_json_proto returns [14:22:54]Send response to host [14:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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}}} [14:22:54]free response buf [14:22:54]execute_script done [14:22:54]execute_script returns [14:22:54]free content buf [14:22:54]Sock 9.Close socket [14:22:54]Sock 9.Thread stoped [14:22:54]accept exits with 7 [14:22:54]New connection [14:22:54]New thread 3066604900 created [14:22:54]Thread 3066748260 joined [14:22:54]Waiting for new connection... [14:22:54] Sock 7.Parse request [14:22:54]Sock 7.Check first char [14:22:54]Sock 7.First char is OK [14:22:54]request: POST /json_proto HTTP/1.0 [14:22:54]Method: POST [14:22:54]URL: /json_proto [14:22:54]Method is POST - this is cgi request [14:22:54]url: /json_proto [14:22:54]query_string will be loaded in cgi processing [14:22:54]execute_cgi json_proto POST (null) [14:22:54]execute_cgi path=json_proto method=POST [14:22:54]POST find Content-Length [14:22:54]Host: 172.17.63.3:8080 [14:22:54]Content-Length: 269 [14:22:54]Content-Type: application/json [14:22:54] [14:22:54]POST finish read [14:22:54]Found Content-Length = 269 [14:22:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:54]execute_script... [14:22:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:54]POST & json_proto [14:22:54]process_json_proto [14:22:54]json parsed OK: [14:22:54]protocol is kg_v1.0 [14:22:54]action value=x_report [14:22:54]process_action x_report [14:22:54]cmd_x_report [14:22:54]MH_GetDate [14:22:54]Write to MH i2c: F0 00 00 83 29 9B [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 83 29 00 41 9E 1F 67 50 D1 6C 64 FA [14:22:54]GetLastDocTimeStamp 1730124676 [14:22:54]current date 1730125377 [14:22:54]FM_GetShiftState [14:22:54]SAM_PROTO_GetShiftState [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 01 00 [14:22:54]Write to MH i2c: E2 08 00 84 29 80 13 01 00 00 00 00 00 2A [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 0E 00 84 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 1C [14:22:54]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetShiftState done [14:22:54]FM_GetShiftState done [14:22:54]KKMCreateXReportDocument [14:22:54]Load OK [14:22:54]Malloc new data [14:22:54]MH_GetDate [14:22:54]Write to MH i2c: F0 00 00 85 29 9D [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: F0 09 00 85 29 00 41 9E 1F 67 50 D1 6C 64 FC [14:22:54]Malloc new data [14:22:54]Malloc new data [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 11 00 00 [14:22:54]Write to MH i2c: E2 08 00 86 29 80 11 00 00 00 00 00 00 29 [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 17 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 17 00 86 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [14:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetFieldsCounters [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 00 00 [14:22:54]Write to MH i2c: E2 08 00 87 29 80 13 00 00 00 00 00 00 2C [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:54]Read from MH i2c: E2 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 62 00 [14:22:54]MH_I2C_Read... [14:22:54]Read from MH i2c: E2 62 00 87 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 6C [14: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:22:54]wFMCommunicate OK [14:22:54]SAM_PROTO_GetFieldsCounters done [14:22:54]Malloc new data [14:22:54]Malloc new data [14:22:54]Malloc new data [14:22:54]KKMCreateXReportDocument OK [14:22:54]KKMSetXReportData OK [14:22:54]KKMPrepareXReportFMData [14:22:54]SAM_PROTO_GetShiftData [14:22:54]wFMCommunicate request_size=4 [14:22:54]MH_SAM_APDU [14:22:54]CAPDU: 80 13 02 00 [14:22:54]Write to MH i2c: E2 08 00 88 29 80 13 02 00 00 00 00 00 2F [14:22:54]Write i2c OK [14:22:54]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 FD 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 FD 00 88 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 17 [14:22:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:22:55]wFMCommunicate OK [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 17 00 00 [14:22:55]Write to MH i2c: E2 08 00 89 29 80 17 00 00 00 00 00 00 32 [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:55]Read from MH i2c: E2 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 FD 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: E2 FD 00 89 29 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 4B [14:22:55]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 [14:22:55]wFMCommunicate OK [14:22:55]wFMCommunicate request_size=4 [14:22:55]MH_SAM_APDU [14:22:55]CAPDU: 80 17 00 00 [14:22:55]Write to MH i2c: E2 08 00 8A 29 80 17 00 00 00 00 00 00 33 [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 FD 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 FD 00 8A 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 E7 [14:22: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 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 17 00 00 [14:22:56]Write to MH i2c: E2 08 00 8B 29 80 17 00 00 00 00 00 00 34 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:56]Read from MH i2c: E2 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 FD 00 [14:22:56]MH_I2C_Read... [14:22:56]Read from MH i2c: E2 FD 00 8B 29 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 B2 [14:22:56]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 [14:22:56]wFMCommunicate OK [14:22:56]wFMCommunicate request_size=4 [14:22:56]MH_SAM_APDU [14:22:56]CAPDU: 80 17 00 00 [14:22:56]Write to MH i2c: E2 08 00 8C 29 80 17 00 00 00 00 00 00 35 [14:22:56]Write i2c OK [14:22:56]MH_I2C_Read... [14:22:57]OFD Sender: No OFD packet to send [14:22:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:22:57]Read from MH i2c: E2 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 CC 00 [14:22:57]MH_I2C_Read... [14:22:57]Read from MH i2c: E2 CC 00 8C 29 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 16 [14:22: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 [14:22:57]wFMCommunicate OK [14:22:57]SAM_PROTO_GetShiftData done [14:22:57]1194 (1195) - счетчики итогов смены [14:22:57] 1134 (4) - 138 - количество чеков со всеми признаками расчетов [14:22:57] 1129 (156) - счетчики операций «приход» [14:22:57] 1135 (4) - 138 - количество чеков по признаку расчетов [14:22:57] 1201 (3) - 109342.23 - общая итоговая сумма в чеках [14:22:57] 1136 (3) - 91639.00 - итоговая сумма в чеках наличными [14:22:57] 1138 (3) - 17703.23 - итоговая сумма в чеках безналичными [14:22:57] 1024 (123) - суммы налогов [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 0% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1006 (12) - суммы НДС [14:22:57] 1010 (1) - 12% - код ставки НДС [14:22:57] 1011 (3) - 11614.84 - сумма НДС по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (12) - суммы НСП [14:22:57] 1014 (1) - 1% - код ставки НСП [14:22:57] 1015 (3) - 967.95 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 2% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 3% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 5% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1130 (141) - счетчики операций «возврат прихода» [14:22:57] 1135 (4) - 0 - количество чеков по признаку расчетов [14:22:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:22:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:22:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:22:57] 1024 (117) - суммы налогов [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 0% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 12% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 2% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 3% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 5% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1131 (141) - счетчики операций «расход» [14:22:57] 1135 (4) - 0 - количество чеков по признаку расчетов [14:22:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:22:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:22:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:22:57] 1024 (117) - суммы налогов [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 0% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 12% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 2% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 3% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 5% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1132 (141) - счетчики операций «возврат расхода» [14:22:57] 1135 (4) - 0 - количество чеков по признаку расчетов [14:22:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:22:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:22:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:22:57] 1024 (117) - суммы налогов [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 0% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1006 (9) - суммы НДС [14:22:57] 1010 (1) - 12% - код ставки НДС [14:22:57] 1011 (0) - 0.00 - сумма НДС по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 2% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 3% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 5% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 0,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1007 (9) - суммы НСП [14:22:57] 1014 (1) - 1,50% - код ставки НСП [14:22:57] 1015 (0) - 0.00 - сумма НСП по ставке [14:22:57] 1133 (588) - - счетчики коррекции - не используются [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1194 (04AA) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1134 (046E) [14:22:57]Malloc new data [14:22:57]Processing tag 1129 (0469) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1135 (046F) [14:22:57]Malloc new data [14:22:57]Processing tag 1201 (04B1) [14:22:57]Malloc new data [14:22:57]Processing tag 1136 (0470) [14:22:57]Malloc new data [14:22:57]Processing tag 1138 (0472) [14:22:57]Malloc new data [14:22:57]Processing tag 1024 (0400) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1006 (03EE) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1010 (03F2) [14:22:57]Malloc new data [14:22:57]Processing tag 1011 (03F3) [14:22:57]Malloc new data [14:22:57]SetTLVBufToDocument err=0 [14:22:57]Processing tag 1006 (03EE) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1010 (03F2) [14:22:57]Malloc new data [14:22:57]Processing tag 1011 (03F3) [14:22:57]Malloc new data [14:22:57]SetTLVBufToDocument err=0 [14:22:57]Processing tag 1007 (03EF) [14:22:57]Load OK [14:22:57]SetTLVBufToDocument [14:22:57]Processing tag 1014 (03F6) [14:22:57]Malloc new data [14:22:57]Processing tag 1015 (03F7) [14:22:57]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1130 (046A) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1135 (046F) [14:22:58]Malloc new data [14:22:58]Processing tag 1201 (04B1) [14:22:58]Malloc new data [14:22:58]Processing tag 1136 (0470) [14:22:58]Malloc new data [14:22:58]Processing tag 1138 (0472) [14:22:58]Malloc new data [14:22:58]Processing tag 1024 (0400) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1131 (046B) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1135 (046F) [14:22:58]Malloc new data [14:22:58]Processing tag 1201 (04B1) [14:22:58]Malloc new data [14:22:58]Processing tag 1136 (0470) [14:22:58]Malloc new data [14:22:58]Processing tag 1138 (0472) [14:22:58]Malloc new data [14:22:58]Processing tag 1024 (0400) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1132 (046C) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1135 (046F) [14:22:58]Malloc new data [14:22:58]Processing tag 1201 (04B1) [14:22:58]Malloc new data [14:22:58]Processing tag 1136 (0470) [14:22:58]Malloc new data [14:22:58]Processing tag 1138 (0472) [14:22:58]Malloc new data [14:22:58]Processing tag 1024 (0400) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1006 (03EE) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1010 (03F2) [14:22:58]Malloc new data [14:22:58]Processing tag 1011 (03F3) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1007 (03EF) [14:22:58]Load OK [14:22:58]SetTLVBufToDocument [14:22:58]Processing tag 1014 (03F6) [14:22:58]Malloc new data [14:22:58]Processing tag 1015 (03F7) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Processing tag 1133 (046D) [14:22:58]Malloc new data [14:22:58]SetTLVBufToDocument err=0 [14:22:58]SetTLVBufToDocument err=0 [14:22:58]Malloc new data [14:22:58]SAM_PROTO_GetFMData [14:22:58]wFMCommunicate request_size=4 [14:22:58]MH_SAM_APDU [14:22:58]CAPDU: 80 13 03 00 [14:22:58]Write to MH i2c: E2 08 00 8D 29 80 13 03 00 00 00 00 00 35 [14:22:58]Write i2c OK [14:22:58]MH_I2C_Read... [14:22:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:22:58]Read from MH i2c: E2 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 FD 00 [14:22:58]MH_I2C_Read... [14:22:58]Read from MH i2c: E2 FD 00 8D 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 E7 [14:22:59]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:22:59]wFMCommunicate OK [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 17 00 00 [14:22:59]Write to MH i2c: E2 08 00 8E 29 80 17 00 00 00 00 00 00 37 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 FD 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 FD 00 8E 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 A6 [14:22:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:22:59]wFMCommunicate OK [14:22:59]wFMCommunicate request_size=4 [14:22:59]MH_SAM_APDU [14:22:59]CAPDU: 80 17 00 00 [14:22:59]Write to MH i2c: E2 08 00 8F 29 80 17 00 00 00 00 00 00 38 [14:22:59]Write i2c OK [14:22:59]MH_I2C_Read... [14:22:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:22:59]Read from MH i2c: E2 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 FD 00 [14:22:59]MH_I2C_Read... [14:22:59]Read from MH i2c: E2 FD 00 8F 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 E6 [14:23:00]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:23:00]wFMCommunicate OK [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 17 00 00 [14:23:00]Write to MH i2c: E2 08 00 90 29 80 17 00 00 00 00 00 00 39 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:00]Read from MH i2c: E2 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 FD 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: E2 FD 00 90 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B4 [14:23:00]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:23:00]wFMCommunicate OK [14:23:00]wFMCommunicate request_size=4 [14:23:00]MH_SAM_APDU [14:23:00]CAPDU: 80 17 00 00 [14:23:00]Write to MH i2c: E2 08 00 91 29 80 17 00 00 00 00 00 00 3A [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:23:01]Read from MH i2c: E2 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 DF 00 [14:23:01]MH_I2C_Read... [14:23:01]Read from MH i2c: E2 DF 00 91 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1A [14:23:01]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:01]wFMCommunicate OK [14:23:01]SAM_PROTO_GetFMData done [14:23:01]FM_GetFMData:85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 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 A3 9E 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 [14:23:02]oper:6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:23:02]total:E2 4E 7E 73 02 [14:23:02]Malloc new data [14:23:02]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 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 A3 9E 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 [14:23:02]total:20 05 B7 [14:23:02]Malloc new data [14:23:02]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 OFD Sender: No OFD packet to send [14:23:02]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [14:23:02]total: [14:23:02]Malloc new data [14:23:02]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 [14:23:02]total: [14:23:02]Malloc new data [14:23:02]KKMPrepareXReportFMData err=0 [14:23:02]Х отчет ИНН: 02508201610067 Кассир: Кадырбеков Б. 28.10.2024 14:22 Смена: 522 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Всего чеков: 138 ИТОГИ ПРИХОД Чеков: 138 Общий итог: 109342.23 Итого наличными: 91639.00 Итого безнал.: 17703.23 НДС 0% : 0.00 НДС 12% : 11614.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 967.95 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 91639.00 НС Приход: 105275921.62 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871792 [14:23:02]StoreToDocumentArchive [14:23:02]MH_GetDate [14:23:02]Write to MH i2c: F0 00 00 92 29 AA [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 09 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: F0 09 00 92 29 00 49 9E 1F 67 50 D1 6C 64 11 [14:23:02]shift 522 fd 1730125385 [14:23:02]Create dir for shift 0522 [14:23:02]save to /storage/0522/doc_1730125385 [14:23:02]save last doc name /storage/0522/doc_1730125385 to /storage/kkm_last_doc_name [14:23:02]save OK [14:23:02]Clear old archive folders... [14:23:02]NVStorageSaveData kkm_last_timestamp [14:23:02]File name is /storage/kkm_last_timestamp [14:23:02]Write 4 bytes [14:23:02]NVStorageSaveData done [14:23:02]ExternCall_PrintAddStr [14:23:02]wPrintStart [14:23:02]Write to MH i2c: 01 00 00 93 29 BC [14:23:02]Write i2c OK [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 07 00 [14:23:02]MH_I2C_Read... [14:23:02]Read from MH i2c: 01 07 00 93 29 00 00 00 00 00 FF 0F D1 [14:23:02]RasterBufferAndPrint [14:23:02]line Х отчет [14:23:02]line ИНН: 02508201610067 [14:23:02]line Кассир: Кадырбеков Б. [14:23:02]line 28.10.2024 14:22 [14:23:02]line Смена: 522 [14:23:02]line РНМ: 0000000000091693 [14:23:02]line ЗНМ: 0300000096 [14:23:02]line СНО: Общий режим [14:23:02]line Всего чеков: 138 [14:23:02]line ИТОГИ ПРИХОД [14:23:02]line Чеков: 138 [14:23:02]line Общий итог: 109342.23 [14:23:02]line Итого наличными: 91639.00 [14:23:02]line Итого безнал.: 17703.23 [14:23:02]line НДС 0% : 0.00 [14:23:02]line НДС 12% : 11614.84 [14:23:02]line НСП 0% : 0.00 [14:23:02]line НСП 1,50% : 0.00 [14:23:02]line НСП 0,50% : 0.00 [14:23:02]line НСП 5% : 0.00 [14:23:02]line НСП 3% : 0.00 [14:23:02]line НСП 2% : 0.00 [14:23:02]line НСП 1% : 967.95 [14:23:02]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:23:02]line Чеков: 0 [14:23:02]line Общий итог: 0.00 [14:23:02]line Итого наличными: 0.00 [14:23:02]line Итого безнал.: 0.00 [14:23:02]line НДС 0% : 0.00 [14:23:02]line НДС 12% : 0.00 [14:23:02]line НСП 0% : 0.00 [14:23:02]line НСП 1,50% : 0.00 [14:23:02]line НСП 0,50% : 0.00 [14:23:02]line НСП 5% : 0.00 [14:23:02]line НСП 3% : 0.00 [14:23:02]line НСП 2% : 0.00 [14:23:02]line НСП 1% : 0.00 [14:23:02]line ИТОГИ РАСХОД [14:23:02]line Чеков: 0 [14:23:02]line Общий итог: 0.00 [14:23:02]line Итого наличными: 0.00 [14:23:02]line Итого безнал.: 0.00 [14:23:02]line НДС 0% : 0.00 [14:23:02]line НДС 12% : 0.00 [14:23:02]line НСП 0% : 0.00 [14:23:02]line НСП 1,50% : 0.00 [14:23:02]line НСП 0,50% : 0.00 [14:23:02]line НСП 5% : 0.00 [14:23:02]line НСП 3% : 0.00 [14:23:02]line НСП 2% : 0.00 [14:23:02]line НСП 1% : 0.00 [14:23:02]line ИТОГИ ВОЗВРАТ РАСХОДА [14:23:02]line Чеков: 0 [14:23:02]line Общий итог: 0.00 [14:23:02]line Итого наличными: 0.00 [14:23:02]line Итого безнал.: 0.00 [14:23:02]line НДС 0% : 0.00 [14:23:02]line НДС 12% : 0.00 [14:23:02]line НСП 0% : 0.00 [14:23:02]line НСП 1,50% : 0.00 [14:23:02]line НСП 0,50% : 0.00 [14:23:02]line НСП 5% : 0.00 [14:23:02]line НСП 3% : 0.00 [14:23:02]line НСП 2% : 0.00 [14:23:02]line НСП 1% : 0.00 [14:23:02]line Сумма внесений: 0.00 [14:23:02]line Сумма выплат: 0.00 [14:23:02]line Нал. в кассе: 91639.00 [14:23:02]line НС Приход: 105275921.62 [14:23:02]line НС Возвр.Прихода: 119944.00 [14:23:02]line НС Расход: 0.00 [14:23:02]line НС Возвр.Расхода: 0.00 [14:23:02]line ФМ: 0000000000871792 [14:23:02]written 0, free lines is 4095 [14:23:03]Write to MH i2c: 01 00 00 DE 29 07 [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: 01 07 00 DE 29 00 00 00 00 00 A1 0A B9 [14:23:03]RasterBufferAndPrint [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]line [14:23:03]written 0, free lines is 2753 [14:23:03]process_action x_report done [14:23:03]requested_data is exist [14:23:03]produce_requested_data [14:23:03]requested_item fd.num is exist - process it [14:23:03]SAM_PROTO_GetFieldsCounters [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 13 00 00 [14:23:03]Write to MH i2c: E2 08 00 E5 29 80 13 00 00 00 00 00 00 8A [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 62 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 62 00 E5 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 CA [14:23: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_GetFieldsCounters done [14:23:03]requested_item shift.num is exist - process it [14:23:03]requested_item shift.opened is exist - process it [14:23:03]req_shift_opened [14:23:03]FM_GetShiftState [14:23:03]SAM_PROTO_GetShiftState [14:23:03]wFMCommunicate request_size=4 [14:23:03]MH_SAM_APDU [14:23:03]CAPDU: 80 13 01 00 [14:23:03]Write to MH i2c: E2 08 00 E6 29 80 13 01 00 00 00 00 00 8C [14:23:03]Write i2c OK [14:23:03]MH_I2C_Read... [14:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:03]Read from MH i2c: E2 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0E 00 [14:23:03]MH_I2C_Read... [14:23:03]Read from MH i2c: E2 0E 00 E6 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 7E [14:23:03]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:23:03]wFMCommunicate OK [14:23:03]SAM_PROTO_GetShiftState done [14:23:03]FM_GetShiftState done [14:23:03]req_shift_opened done [14:23:03]requested_item shift.open_date is exist - process it [14:23:03]req_shift_open_date [14:23:03]req_shift_open_date done [14:23:03]produce_requested_data done [14:23:03]produce_requested_data return {"fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:23:03]process_action_free x_report [14:23:03]json_value_free [14:23:03]json_value_free done [14:23:03]process_json_proto returns [14:23:03]Send response to host [14:23:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:23:03]free response buf [14:23:03]execute_script done [14:23:03]execute_script returns [14:23:03]free content buf [14:23:03]Sock 7.Close socket [14:23:03]Sock 7.Thread stoped [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:15]accept exits with 9 [14:23:15]New connection [14:23:15]New thread 3066748260 created [14:23:15]Thread 3066604900 joined [14:23:15]Waiting for new connection... [14:23:15] Sock 9.Parse request [14:23:15]Sock 9.Check first char [14:23:15]Sock 9.First char is OK [14:23:15]request: POST /json_proto HTTP/1.0 [14:23:15]Method: POST [14:23:15]URL: /json_proto [14:23:15]Method is POST - this is cgi request [14:23:15]url: /json_proto [14:23:15]query_string will be loaded in cgi processing [14:23:15]execute_cgi json_proto POST (null) [14:23:15]execute_cgi path=json_proto method=POST [14:23:15]POST find Content-Length [14:23:15]Host: 172.17.63.3:8080 [14:23:15]Content-Length: 215 [14:23:15]Content-Type: application/json [14:23:15] [14:23:15]POST finish read [14:23:15]Found Content-Length = 215 [14:23:15]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" ] } } [14:23:15]execute_script... [14:23:15]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" ] } } [14:23:15]POST & json_proto [14:23:15]process_json_proto [14:23:15]json parsed OK: [14:23:15]protocol is kg_v1.0 [14:23:15]action value=get_value [14:23:15]process_action get_value [14:23:15]cmd_get_value [14:23:15]process_action get_value done [14:23:15]requested_data is exist [14:23:15]produce_requested_data [14:23:15]requested_item kkm.sn is exist - process it [14:23:15]requested_item kkm.ver is exist - process it [14:23:15]requested_item fm.sn is exist - process it [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 11 00 00 [14:23:15]Write to MH i2c: E2 08 00 E7 29 80 11 00 00 00 00 00 00 8A [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 17 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 17 00 E7 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [14:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:15]wFMCommunicate OK [14:23:15]requested_item fd.num is exist - process it [14:23:15]SAM_PROTO_GetFieldsCounters [14:23:15]wFMCommunicate request_size=4 [14:23:15]MH_SAM_APDU [14:23:15]CAPDU: 80 13 00 00 [14:23:15]Write to MH i2c: E2 08 00 E8 29 80 13 00 00 00 00 00 00 8D [14:23:15]Write i2c OK [14:23:15]MH_I2C_Read... [14:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:15]Read from MH i2c: E2 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 62 00 [14:23:15]MH_I2C_Read... [14:23:15]Read from MH i2c: E2 62 00 E8 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 CD [14: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 64 02 00 0E 04 04 00 1A 02 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 [14:23:16]wFMCommunicate OK [14:23:16]SAM_PROTO_GetFieldsCounters done [14:23:16]requested_item shift.num is exist - process it [14:23:16]requested_item shift.opened is exist - process it [14:23:16]req_shift_opened [14:23:16]FM_GetShiftState [14:23:16]SAM_PROTO_GetShiftState [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 13 01 00 [14:23:16]Write to MH i2c: E2 08 00 E9 29 80 13 01 00 00 00 00 00 8F [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:16]Read from MH i2c: E2 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 0E 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 0E 00 E9 29 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 81 [14:23:16]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:23:16]wFMCommunicate OK [14:23:16]SAM_PROTO_GetShiftState done [14:23:16]FM_GetShiftState done [14:23:16]req_shift_opened done [14:23:16]requested_item shift.open_date is exist - process it [14:23:16]req_shift_open_date [14:23:16]req_shift_open_date done [14:23:16]produce_requested_data done [14:23:16]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [14:23:16]process_action_free get_value [14:23:16]json_value_free [14:23:16]json_value_free done [14:23:16]process_json_proto returns [14:23:16]Send response to host [14:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156922,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [14:23:16]free response buf [14:23:16]execute_script done [14:23:16]execute_script returns [14:23:16]free content buf [14:23:16]Sock 9.Close socket [14:23:16]Sock 9.Thread stoped [14:23:16]accept exits with 7 [14:23:16]New connection [14:23:16]New thread 3066604900 created [14:23:16]Thread 3066748260 joined [14:23:16]Waiting for new connection... [14:23:16] Sock 7.Parse request [14:23:16]Sock 7.Check first char [14:23:16]Sock 7.First char is OK [14:23:16]request: POST /json_proto HTTP/1.0 [14:23:16]Method: POST [14:23:16]URL: /json_proto [14:23:16]Method is POST - this is cgi request [14:23:16]url: /json_proto [14:23:16]query_string will be loaded in cgi processing [14:23:16]execute_cgi json_proto POST (null) [14:23:16]execute_cgi path=json_proto method=POST [14:23:16]POST find Content-Length [14:23:16]Host: 172.17.63.3:8080 [14:23:16]Content-Length: 331 [14:23:16]Content-Type: application/json [14:23:16] [14:23:16]POST finish read [14:23:16]Found Content-Length = 331 [14:23:16]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" ] } } [14:23:16]execute_script... [14:23:16]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" ] } } [14:23:16]POST & json_proto [14:23:16]process_json_proto [14:23:16]json parsed OK: [14:23:16]protocol is kg_v1.0 [14:23:16]action value=get_value [14:23:16]process_action get_value [14:23:16]cmd_get_value [14:23:16]process_action get_value done [14:23:16]requested_data is exist [14:23:16]produce_requested_data [14:23:16]requested_item fm.sale.total is exist - process it [14:23:16]SAM_PROTO_GetFMData [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 13 03 00 [14:23:16]Write to MH i2c: E2 08 00 EA 29 80 13 03 00 00 00 00 00 92 [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:23:16]Read from MH i2c: E2 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 FD 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: E2 FD 00 EA 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 44 [14:23:16]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:23:16]wFMCommunicate OK [14:23:16]wFMCommunicate request_size=4 [14:23:16]MH_SAM_APDU [14:23:16]CAPDU: 80 17 00 00 [14:23:16]Write to MH i2c: E2 08 00 EB 29 80 17 00 00 00 00 00 00 94 [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 FD 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 FD 00 EB 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 03 [14:23:17]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 *** FLAG_PRN_KEY set [14:23:17]00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 int [14:23:17]04 Write to MH i2c: 8D 00 *** FLAG_PRN_KEY reset [14:23:17]6F 01 04 04 00 00 00 00 00 B1 04 00 00 70 00 90 00 00 EC [14:23:17]29 wFMCommunicate OK [14:23:17]15 wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 17 00 00 [14:23:17] [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: 01 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: 01 07 00 [14:23:17]MH_I2C_Read... [14:23:17]OFD Sender: No OFD packet to send [14:23:17]Read from MH i2c: 01 07 00 EC 29 00 00 00 00 00 FF 0F 2A [14:23:17]Write to MH i2c: state=0 [14:23:17]E2 08 00 ED 29 80 17 00 00 00 00 00 00 96 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 FD 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 FD 00 ED 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 44 [14:23:17]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:23:18]wFMCommunicate OK [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 17 00 00 [14:23:18]Write to MH i2c: E2 08 00 EE 29 80 17 00 00 00 00 00 00 97 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 FD 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 FD 00 EE 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [14:23:18]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:23:18]wFMCommunicate OK [14:23:18]wFMCommunicate request_size=4 [14:23:18]MH_SAM_APDU [14:23:18]CAPDU: 80 17 00 00 [14:23:18]Write to MH i2c: E2 08 00 EF 29 80 17 00 00 00 00 00 00 98 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:23:18]Read from MH i2c: E2 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 DF 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: E2 DF 00 EF 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 78 [14:23:18]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:19]wFMCommunicate OK [14:23:19]SAM_PROTO_GetFMData done [14:23:19]requested_item fm.sale_refund.total is exist - process it [14:23:19]requested_item fm.buy.total is exist - process it [14:23:19]requested_item shift.sale.total is exist - process it [14:23:19]SAM_PROTO_GetShiftData [14:23:19]wFMCommunicate request_size=4 [14:23:19]MH_SAM_APDU [14:23:19]CAPDU: 80 13 02 00 [14:23:19]Write to MH i2c: E2 08 00 F0 29 80 13 02 00 00 00 00 00 97 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:23:19]Read from MH i2c: E2 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 FD 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 FD 00 F0 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 7F [14:23:19]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:23:19]wFMCommunicate OK [14:23:19]wFMCommunicate request_size=4 [14:23:19]MH_SAM_APDU [14:23:19]CAPDU: 80 17 00 00 [14:23:19]Write to MH i2c: E2 08 00 F1 29 80 17 00 00 00 00 00 00 9A [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 FD 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 FD 00 F1 29 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 B3 [14:23:20]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 [14:23:20]wFMCommunicate OK [14:23:20]wFMCommunicate request_size=4 [14:23:20]MH_SAM_APDU [14:23:20]CAPDU: 80 17 00 00 [14:23:20]Write to MH i2c: E2 08 00 F2 29 80 17 00 00 00 00 00 00 9B [14:23:20]Write i2c OK [14:23:20]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 FD 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 FD 00 F2 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 4F [14:23:20]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [14:23:20]wFMCommunicate OK [14:23:20]wFMCommunicate request_size=4 [14:23:20]MH_SAM_APDU [14:23:20]CAPDU: 80 17 00 00 [14:23:20]Write to MH i2c: E2 08 00 F3 29 80 17 00 00 00 00 00 00 9C [14:23:20]Write i2c OK [14:23:20]MH_I2C_Read... [14:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:21]Read from MH i2c: E2 [14:23:21]MH_I2C_Read... [14:23:21]Read from MH i2c: E2 FD 00 [14:23:21]MH_I2C_Read... [14:23:21]Read from MH i2c: E2 FD 00 F3 29 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 1A [14:23:21]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 [14:23:21]wFMCommunicate OK [14:23:21]wFMCommunicate request_size=4 [14:23:21]MH_SAM_APDU [14:23:21]CAPDU: 80 17 00 00 [14:23:21]Write to MH i2c: E2 08 00 F4 29 80 17 00 00 00 00 00 00 9D [14:23:21]Write i2c OK [14:23:21]MH_I2C_Read... [14:23:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:23:21]Read from MH i2c: E2 [14:23:21]MH_I2C_Read... [14:23:21]Read from MH i2c: E2 CC 00 [14:23:21]MH_I2C_Read... [14:23:21]Read from MH i2c: E2 CC 00 F4 29 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 7E [14:23:21]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 [14:23:21]wFMCommunicate OK [14:23:21]SAM_PROTO_GetShiftData done [14:23:21]requested_item shift.sale.total_cash is exist - process it [14:23:21]requested_item shift.sale_refund.total is exist - process it [14:23:21]requested_item shift.sale_refund.total_cash is exist - process it [14:23:21]requested_item shift.buy.total is exist - process it [14:23:21]requested_item shift.buy.total_cash is exist - process it [14:23:21]produce_requested_data done [14:23:21]produce_requested_data return {"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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} [14:23:21]process_action_free get_value [14:23:21]json_value_free [14:23:21]json_value_free done [14:23:21]process_json_proto returns [14:23:21]Send response to host [14:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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}}} [14:23:21]free response buf [14:23:21]execute_script done [14:23:21]execute_script returns [14:23:21]free content buf [14:23:21]Sock 7.Close socket [14:23:21]Sock 7.Thread stoped [14:23:21]accept exits with 9 [14:23:21]New connection [14:23:21]New thread 3066748260 created [14:23:21]Thread 3066604900 joined [14:23:21]Waiting for new connection... [14:23:21] Sock 9.Parse request [14:23:21]Sock 9.Check first char [14:23:22]Sock 9.First char is OK [14:23:22]request: POST /json_proto HTTP/1.0 [14:23:22]Method: POST [14:23:22]URL: /json_proto [14:23:22]Method is POST - this is cgi request [14:23:22]url: /json_proto [14:23:22]query_string will be loaded in cgi processing [14:23:22]execute_cgi json_proto POST (null) [14:23:22]execute_cgi path=json_proto method=POST [14:23:22]POST find Content-Length [14:23:22]Host: 172.17.63.3:8080 [14:23:22]Content-Length: 331 [14:23:22]Content-Type: application/json [14:23:22] [14:23:22]POST finish read [14:23:22]Found Content-Length = 331 [14:23:22]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" ] } } [14:23:22]execute_script... [14:23:22]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" ] } } [14:23:22]POST & json_proto [14:23:22]process_json_proto [14:23:22]json parsed OK: [14:23:22]protocol is kg_v1.0 [14:23:22]action value=get_value [14:23:22]process_action get_value [14:23:22]cmd_get_value [14:23:22]process_action get_value done [14:23:22]requested_data is exist [14:23:22]produce_requested_data [14:23:22]requested_item fm.sale.total is exist - process it [14:23:22]SAM_PROTO_GetFMData [14:23:22]wFMCommunicate request_size=4 [14:23:22]MH_SAM_APDU [14:23:22]CAPDU: 80 13 03 00 [14:23:22]Write to MH i2c: E2 08 00 F5 29 80 13 03 00 00 00 00 00 9D [14:23:22]Write i2c OK [14:23:22]MH_I2C_Read... [14:23:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:23:22]Read from MH i2c: E2 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: E2 FD 00 [14:23:22]MH_I2C_Read... [14:23:22]Read from MH i2c: E2 FD 00 F5 29 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 4F [14:23:22]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 OFD Sender: No OFD packet to send [14:23:22]EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:23:22]wFMCommunicate OK [14:23:22]wFMCommunicate request_size=4 [14:23:22]MH_SAM_APDU [14:23:22]CAPDU: 80 17 00 00 [14:23:22]Write to MH i2c: E2 08 00 F6 29 80 17 00 00 00 00 00 00 9F [14:23:22]Write i2c OK [14:23:22]MH_I2C_Read... [14:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:23]Read from MH i2c: E2 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 FD 00 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 FD 00 F6 29 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 0E [14:23:23]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:23:23]wFMCommunicate OK [14:23:23]wFMCommunicate request_size=4 [14:23:23]MH_SAM_APDU [14:23:23]CAPDU: 80 17 00 00 [14:23:23]Write to MH i2c: E2 08 00 F7 29 80 17 00 00 00 00 00 00 A0 [14:23:23]Write i2c OK [14:23:23]MH_I2C_Read... [14:23:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:23]Read from MH i2c: E2 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 FD 00 [14:23:23]MH_I2C_Read... [14:23:23]Read from MH i2c: E2 FD 00 F7 29 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 4E [14:23:23]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 17 00 00 [14:23:24]Write to MH i2c: E2 08 00 F8 29 80 17 00 00 00 00 00 00 A1 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 FD 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 FD 00 F8 29 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1C [14:23:24]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:23:24]wFMCommunicate OK [14:23:24]wFMCommunicate request_size=4 [14:23:24]MH_SAM_APDU [14:23:24]CAPDU: 80 17 00 00 [14:23:24]Write to MH i2c: E2 08 00 F9 29 80 17 00 00 00 00 00 00 A2 [14:23:24]Write i2c OK [14:23:24]MH_I2C_Read... [14:23:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:23:24]Read from MH i2c: E2 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 DF 00 [14:23:24]MH_I2C_Read... [14:23:24]Read from MH i2c: E2 DF 00 F9 29 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 82 [14:23:25]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:25]wFMCommunicate OK [14:23:25]SAM_PROTO_GetFMData done [14:23:25]requested_item fm.sale_refund.total is exist - process it [14:23:25]requested_item fm.buy.total is exist - process it [14:23:25]requested_item shift.sale.total is exist - process it [14:23:25]SAM_PROTO_GetShiftData [14:23:25]wFMCommunicate request_size=4 [14:23:25]MH_SAM_APDU [14:23:25]CAPDU: 80 13 02 00 [14:23:25]Write to MH i2c: E2 08 00 FA 29 80 13 02 00 00 00 00 00 A1 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:23:25]Read from MH i2c: E2 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 FD 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 FD 00 FA 29 00 AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 89 [14:23:25]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [14:23:25]wFMCommunicate OK [14:23:25]wFMCommunicate request_size=4 [14:23:25]MH_SAM_APDU [14:23:25]CAPDU: 80 17 00 00 [14:23:25]Write to MH i2c: E2 08 00 FB 29 80 17 00 00 00 00 00 00 A4 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 FD 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 FD 00 FB 29 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 BD [14:23:26]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 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 17 00 00 [14:23:26]Write to MH i2c: E2 08 00 FC 29 80 17 00 00 00 00 00 00 A5 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 FD 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 FD 00 FC 29 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 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 59 [14:23:26]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 [14:23:27]wFMCommunicate OK [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 17 00 00 [14:23:27]Write to MH i2c: E2 08 00 FD 29 80 17 00 00 00 00 00 00 A6 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 FD 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 FD 00 FD 29 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 24 [14:23:27]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 [14:23:27]wFMCommunicate OK [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 17 00 00 [14:23:27]Write to MH i2c: E2 08 00 FE 29 80 17 00 00 00 00 00 00 A7 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]OFD Sender: No OFD packet to send [14:23:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 CC 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 CC 00 FE 29 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 88 [14:23:28]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 [14:23:28]wFMCommunicate OK [14:23:28]SAM_PROTO_GetShiftData done [14:23:28]requested_item shift.sale.total_cash is exist - process it [14:23:28]requested_item shift.sale_refund.total is exist - process it [14:23:28]requested_item shift.sale_refund.total_cash is exist - process it [14:23:28]requested_item shift.buy.total is exist - process it [14:23:28]requested_item shift.buy.total_cash is exist - process it [14:23:28]produce_requested_data done [14:23:28]produce_requested_data return {"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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} [14:23:28]process_action_free get_value [14:23:28]json_value_free [14:23:28]json_value_free done [14:23:28]process_json_proto returns [14:23:28]Send response to host [14:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105275921.62,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":109342.23,"shift.sale.total_cash":91639.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}}} [14:23:28]free response buf [14:23:28]execute_script done [14:23:28]execute_script returns [14:23:28]free content buf [14:23:28]Sock 9.Close socket [14:23:28]Sock 9.Thread stoped [14:23:28]accept exits with 7 [14:23:28]New connection [14:23:28]New thread 3066604900 created [14:23:28]Thread 3066748260 joined [14:23:28]Waiting for new connection... [14:23:28] Sock 7.Parse request [14:23:28]Sock 7.Check first char [14:23:28]Sock 7.First char is OK [14:23:28]request: POST /json_proto HTTP/1.0 [14:23:28]Method: POST [14:23:28]URL: /json_proto [14:23:28]Method is POST - this is cgi request [14:23:28]url: /json_proto [14:23:28]query_string will be loaded in cgi processing [14:23:28]execute_cgi json_proto POST (null) [14:23:28]execute_cgi path=json_proto method=POST [14:23:28]POST find Content-Length [14:23:28]Host: 172.17.63.3:8080 [14:23:28]Content-Length: 272 [14:23:28]Content-Type: application/json [14:23:28] [14:23:28]POST finish read [14:23:28]Found Content-Length = 272 [14:23:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:28]execute_script... [14:23:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:28]POST & json_proto [14:23:28]process_json_proto [14:23:28]json parsed OK: [14:23:28]protocol is kg_v1.0 [14:23:28]action value=close_shift [14:23:28]process_action close_shift [14:23:28]cmd_close_shift [14:23:28]MH_GetDate [14:23:28]Write to MH i2c: F0 00 00 FF 29 17 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 09 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 09 00 FF 29 00 63 9E 1F 67 50 D1 6C 64 98 [14:23:28]GetLastDocTimeStamp 1730125377 [14:23:28]current date 1730125411 [14:23:28]FM_GetShiftState [14:23:28]SAM_PROTO_GetShiftState [14:23:28]wFMCommunicate request_size=4 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 13 01 00 [14:23:28]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 0E 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 99 [14:23:28]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [14:23:28]wFMCommunicate OK [14:23:28]SAM_PROTO_GetShiftState done [14:23:28]FM_GetShiftState done [14:23:28]KKMCreateCloseShiftDocument [14:23:28]Load OK [14:23:28]Malloc new data [14:23:28]MH_GetDate [14:23:28]Write to MH i2c: F0 00 00 01 2A 1A [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 09 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: F0 09 00 01 2A 00 63 9E 1F 67 50 D1 6C 64 9B [14:23:28]Malloc new data [14:23:28]Malloc new data [14:23:28]Malloc new data [14:23:28]Malloc new data [14:23:28]KKMCreateCloseShiftDocument OK [14:23:28]KKMSetCloseShiftData OK [14:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=75 [14:23:28]tlvbuf is 01B84280 [14:23:28]KKMLoadAndSignCloseShiftData [14:23:28]SAM_PROTO_ProcessDocument [14:23:28]wFMCommunicate request_size=9 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 15 01 00 04 05 00 4B 00 [14:23:28]Write to MH i2c: E2 0C 00 02 2A 80 15 01 00 04 00 05 00 4B 00 00 00 03 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=23 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [14:23:28]Write to MH i2c: E2 1A 00 03 2A 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 A2 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=34 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 [14:23:28]Write to MH i2c: E2 25 00 04 2A 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 00 00 8B [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:23:28]Read from MH i2c: E2 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [14:23:28]RAPDU: 90 00 [14:23:28]wFMCommunicate OK [14:23:28]wFMCommunicate request_size=13 [14:23:28]MH_SAM_APDU [14:23:28]CAPDU: 80 15 02 00 08 F4 03 04 00 63 9E 1F 67 [14:23:28]Write to MH i2c: E2 10 00 05 2A 80 15 02 00 08 00 F4 03 04 00 63 9E 1F 67 00 00 41 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [14:23:29]RAPDU: 90 00 [14:23:29]wFMCommunicate OK [14:23:29]wFMCommunicate request_size=25 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [14:23:29]Write to MH i2c: E2 1C 00 06 2A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 15 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 03 00 06 2A 00 90 00 A4 [14:23:29]RAPDU: 90 00 [14:23:29]wFMCommunicate OK [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 15 03 00 [14:23:29]Write to MH i2c: E2 08 00 07 2A 80 15 03 00 00 00 00 00 B2 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [14:23:29]Read from MH i2c: E2 FD 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 FD 00 07 2A 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 64 02 00 0E 04 04 00 1A 02 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 C5 [14:23:29]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 64 02 00 0E 04 04 00 1A 02 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 AB 04 6E 04 04 00 8A 00 00 00 69 04 9C 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 1B 7A 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [14:23:30]wFMCommunicate OK [14:23:30]SAM_PROTO_ProcessDocument answer len = 1266 [14:23:30]SAM_PROTO_ProcessDocument remain to read = 1018 [14:23:30]wFMCommunicate request_size=4 [14:23:30]MH_SAM_APDU [14:23:30]CAPDU: 80 17 00 00 [14:23:30]Write to MH i2c: E2 08 00 08 2A 80 17 00 00 00 00 00 00 B2 [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:30]Read from MH i2c: E2 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 FD 00 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 FD 00 08 2A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 F8 [14:23:30]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [14:23:30]wFMCommunicate OK [14:23:30]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:23:30]SAM_PROTO_ProcessDocument remain to read = 768 [14:23:30]wFMCommunicate request_size=4 [14:23:30]MH_SAM_APDU [14:23:30]CAPDU: 80 17 00 00 [14:23:30]Write to MH i2c: E2 08 00 09 2A 80 17 00 00 00 00 00 00 B3 [14:23:30]Write i2c OK [14:23:30]MH_I2C_Read... [14:23:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:30]Read from MH i2c: E2 [14:23:30]MH_I2C_Read... [14:23:30]Read from MH i2c: E2 FD 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 FD 00 09 2A 00 03 01 00 05 F7 03 00 00 EF 03 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 90 00 15 [14:23:31]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [14:23:31]wFMCommunicate OK [14:23:31]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:23:31]SAM_PROTO_ProcessDocument remain to read = 518 [14:23:31]wFMCommunicate request_size=4 [14:23:31]MH_SAM_APDU [14:23:31]CAPDU: 80 17 00 00 [14:23:31]Write to MH i2c: E2 08 00 0A 2A 80 17 00 00 00 00 00 00 B4 [14:23:31]Write i2c OK [14:23:31]MH_I2C_Read... [14:23:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:31]Read from MH i2c: E2 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 FD 00 [14:23:31]MH_I2C_Read... [14:23:31]Read from MH i2c: E2 FD 00 0A 2A 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [14:23:31]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:23:32]wFMCommunicate OK [14:23:32]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:23:32]SAM_PROTO_ProcessDocument remain to read = 268 [14:23:32]wFMCommunicate request_size=4 [14:23:32]MH_SAM_APDU [14:23:32]CAPDU: 80 17 00 00 [14:23:32]Write to MH i2c: E2 08 00 0B 2A 80 17 00 00 00 00 00 00 B5 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:32]Read from MH i2c: E2 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 FD 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 FD 00 0B 2A 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 6C [14:23:32]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [14:23:32]wFMCommunicate OK [14:23:32]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [14:23:32]SAM_PROTO_ProcessDocument remain to read = 18 [14:23:32]wFMCommunicate request_size=4 [14:23:32]MH_SAM_APDU [14:23:32]CAPDU: 80 17 00 00 [14:23:32]Write to MH i2c: E2 08 00 0C 2A 80 17 00 00 00 00 00 00 B6 [14:23:32]Write i2c OK [14:23:32]MH_I2C_Read... [14:23:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [14:23:32]Read from MH i2c: E2 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 15 00 [14:23:32]MH_I2C_Read... [14:23:32]Read from MH i2c: E2 15 00 0C 2A 00 03 01 00 06 F7 03 00 00 35 04 06 00 73 45 31 2D 99 3B 90 00 E9 [14:23:32]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 73 45 31 2D 99 3B 90 00 [14:23:32]wFMCommunicate OK [14:23:32]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [14:23:32]SAM_PROTO_ProcessDocument done [14:23:32]1209 (1) - 1.0 - номер версии ФФД [14:23:32]1041 (16) - 0000000000871792 - номер ФМ [14:23:32]1040 (4) - 156923 - номер ФД [14:23:32]1038 (4) - 538 - номер смены [14:23:32]1118 (4) - 138 - количество кассовых чеков за смену [14:23:32]1111 (4) - 140 - общее количество ФД за смену [14:23:32]1194 (1195) - счетчики итогов смены [14:23:32] 1134 (4) - 138 - количество чеков со всеми признаками расчетов [14:23:32] 1129 (156) - счетчики операций «приход» [14:23:32] 1135 (4) - 138 - количество чеков по признаку расчетов [14:23:32] 1201 (3) - 109342.23 - общая итоговая сумма в чеках [14:23:32] 1136 (3) - 91639.00 - итоговая сумма в чеках наличными [14:23:32] 1138 (3) - 17703.23 - итоговая сумма в чеках безналичными [14:23:32] 1024 (123) - суммы налогов [14:23:32] 1006 (9) - суммы НДС [14:23:32] 1010 (1) - 0% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1006 (12) - суммы НДС [14:23:33] 1010 (1) - 12% - код ставки НДС [14:23:33] OFD Sender: No OFD packet to send [14:23:33] 1011 (3) - 11614.84 - сумма НДС по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (12) - суммы НСП [14:23:33] 1014 (1) - 1% - код ставки НСП [14:23:33] 1015 (3) - 967.95 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 2% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 3% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 5% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1130 (141) - счетчики операций «возврат прихода» [14:23:33] 1135 (4) - 0 - количество чеков по признаку расчетов [14:23:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:23:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:23:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:23:33] 1024 (117) - суммы налогов [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 0% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 12% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 2% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 3% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 5% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1131 (141) - счетчики операций «расход» [14:23:33] 1135 (4) - 0 - количество чеков по признаку расчетов [14:23:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:23:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:23:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:23:33] 1024 (117) - суммы налогов [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 0% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 12% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 2% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 3% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 5% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1132 (141) - счетчики операций «возврат расхода» [14:23:33] 1135 (4) - 0 - количество чеков по признаку расчетов [14:23:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [14:23:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [14:23:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [14:23:33] 1024 (117) - суммы налогов [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 0% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1006 (9) - суммы НДС [14:23:33] 1010 (1) - 12% - код ставки НДС [14:23:33] 1011 (0) - 0.00 - сумма НДС по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 2% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 3% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 5% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 0,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1007 (9) - суммы НСП [14:23:33] 1014 (1) - 1,50% - код ставки НСП [14:23:33] 1015 (0) - 0.00 - сумма НСП по ставке [14:23:33] 1133 (588) - - счетчики коррекции - не используются [14:23:33]1077 (6) - 126741015009595 - ФПД [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1209 (04B9) [14:23:33]Malloc new data [14:23:33]Processing tag 1041 (0411) [14:23:33]Processing tag 1040 (0410) [14:23:33]Malloc new data [14:23:33]Processing tag 1038 (040E) [14:23:33]Malloc new data [14:23:33]Processing tag 1118 (045E) [14:23:33]Malloc new data [14:23:33]Processing tag 1111 (0457) [14:23:33]Malloc new data [14:23:33]Processing tag 1194 (04AA) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1134 (046E) [14:23:33]Malloc new data [14:23:33]Processing tag 1129 (0469) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1135 (046F) [14:23:33]Malloc new data [14:23:33]Processing tag 1201 (04B1) [14:23:33]Malloc new data [14:23:33]Processing tag 1136 (0470) [14:23:33]Malloc new data [14:23:33]Processing tag 1138 (0472) [14:23:33]Malloc new data [14:23:33]Processing tag 1024 (0400) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1130 (046A) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1135 (046F) [14:23:33]Malloc new data [14:23:33]Processing tag 1201 (04B1) [14:23:33]Malloc new data [14:23:33]Processing tag 1136 (0470) [14:23:33]Malloc new data [14:23:33]Processing tag 1138 (0472) [14:23:33]Malloc new data [14:23:33]Processing tag 1024 (0400) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1131 (046B) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1135 (046F) [14:23:33]Malloc new data [14:23:33]Processing tag 1201 (04B1) [14:23:33]Malloc new data [14:23:33]Processing tag 1136 (0470) [14:23:33]Malloc new data [14:23:33]Processing tag 1138 (0472) [14:23:33]Malloc new data [14:23:33]Processing tag 1024 (0400) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1132 (046C) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1135 (046F) [14:23:33]Malloc new data [14:23:33]Processing tag 1201 (04B1) [14:23:33]Malloc new data [14:23:33]Processing tag 1136 (0470) [14:23:33]Malloc new data [14:23:33]Processing tag 1138 (0472) [14:23:33]Malloc new data [14:23:33]Processing tag 1024 (0400) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1006 (03EE) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1010 (03F2) [14:23:33]Malloc new data [14:23:33]Processing tag 1011 (03F3) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1007 (03EF) [14:23:33]Load OK [14:23:33]SetTLVBufToDocument [14:23:33]Processing tag 1014 (03F6) [14:23:33]Malloc new data [14:23:33]Processing tag 1015 (03F7) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1133 (046D) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Processing tag 1077 (0435) [14:23:33]Malloc new data [14:23:33]SetTLVBufToDocument err=0 [14:23:33]Malloc new data [14:23:33]SAM_PROTO_GetFMData [14:23:33]wFMCommunicate request_size=4 [14:23:33]MH_SAM_APDU [14:23:33]CAPDU: 80 13 03 00 [14:23:33]Write to MH i2c: E2 08 00 0D 2A 80 13 03 00 00 00 00 00 B6 [14:23:33]Write i2c OK [14:23:33]MH_I2C_Read... [14:23:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:23:34]Read from MH i2c: E2 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 FD 00 [14:23:34]MH_I2C_Read... [14:23:34]Read from MH i2c: E2 FD 00 0D 2A 00 C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 68 [14:23:34]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 C6 60 02 00 69 04 A3 00 6F 04 04 00 B7 60 02 00 B1 04 05 00 E2 4E 7E 73 02 70 04 05 00 2C 24 12 32 02 72 04 04 00 B6 2A 6C 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 1D 5A AA 42 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 17 16 8E 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [14:23:34]wFMCommunicate OK [14:23:34]wFMCommunicate request_size=4 [14:23:34]MH_SAM_APDU [14:23:34]CAPDU: 80 17 00 00 [14:23:34]Write to MH i2c: E2 08 00 0E 2A 80 17 00 00 00 00 00 00 B8 [14:23:34]Write i2c OK [14:23:34]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 FD 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 FD 00 0E 2A 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 27 [14:23:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 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 90 00 [14:23:35]wFMCommunicate OK [14:23:35]wFMCommunicate request_size=4 [14:23:35]MH_SAM_APDU [14:23:35]CAPDU: 80 17 00 00 [14:23:35]Write to MH i2c: E2 08 00 0F 2A 80 17 00 00 00 00 00 00 B9 [14:23:35]Write i2c OK [14:23:35]MH_I2C_Read... [14:23:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:35]Read from MH i2c: E2 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 FD 00 [14:23:35]MH_I2C_Read... [14:23:35]Read from MH i2c: E2 FD 00 0F 2A 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 67 [14:23:36]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [14:23:36]wFMCommunicate OK [14:23:36]wFMCommunicate request_size=4 [14:23:36]MH_SAM_APDU [14:23:36]CAPDU: 80 17 00 00 [14:23:36]Write to MH i2c: E2 08 00 10 2A 80 17 00 00 00 00 00 00 BA [14:23:36]Write i2c OK [14:23:36]MH_I2C_Read... [14:23:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:23:36]Read from MH i2c: E2 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 FD 00 [14:23:36]MH_I2C_Read... [14:23:36]Read from MH i2c: E2 FD 00 10 2A 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 35 [14:23:36]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:23:37]wFMCommunicate OK [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 17 00 00 [14:23:37]Write to MH i2c: E2 08 00 11 2A 80 17 00 00 00 00 00 00 BB [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 DF 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 DF 00 11 2A 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:37]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_GetFMData done [14:23:37]Malloc new data [14:23:37]Malloc new data [14:23:37]Malloc new data [14:23:37]Malloc new data [14:23:37]KKMLoadAndSignCloseShiftData err=0 [14:23:37]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кадырбеков Б. 28.10.2024 14:23 Смена: 538 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Чеков за смену: 138 ФД за смену: 140 Всего чеков: 138 ИТОГИ ПРИХОД Чеков: 138 Общий итог: 109342.23 Итого наличными: 91639.00 Итого безнал.: 17703.23 НДС 0% : 0.00 НДС 12% : 11614.84 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 967.95 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 91639.00 НС Приход: 105275921.62 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 156923 ФМ: 0000000000871792 ФПД: 126741015009595 [14:23:37]StoreToDocumentArchive [14:23:37]shift 538 fd 156923 [14:23:37]save to /storage/0538/doc_00156923 [14:23:37]save last doc name /storage/0538/doc_00156923 to /storage/kkm_last_doc_name [14:23:37]save OK [14:23:37]Clear old archive folders... [14:23:37]Remove dir /storage/0522 [14:23:37]opendir ok [14:23:37]file . [14:23:37]file .. [14:23:37]file doc_1730125385 [14:23:37]remove file /storage/0522/doc_1730125385 [14:23:37]remove dir /storage/0522 [14:23:37]NVStorageSaveData kkm_registers [14:23:37]File name is /storage/kkm_registers [14:23:37]Write 24 bytes [14:23:37]NVStorageSaveData done [14:23:37]NVStorageSaveData kkm_registers [14:23:37]File name is /storage/kkm_registers [14:23:37]Write 24 bytes [14:23:37]NVStorageSaveData done [14:23:37]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [14:23:37]tlvbuf is 01C503A0 [14:23:37]SAM_PROTO_ClearQueue [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 09 00 00 [14:23:37]Write to MH i2c: E2 08 00 12 2A 80 09 00 00 00 00 00 00 AE [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 03 00 12 2A 00 90 00 B0 [14:23:37]RAPDU: 90 00 [14:23:37]wFMCommunicate OK [14:23:37]SAM_PROTO_ClearQueue done [14:23:37]KKMCreateOFDPacket [14:23:37]OFDProtocolAddRootSTLVToBuf [14:23:37]FM_MakeSignedData [14:23:37]FM_MakeSignedData [14:23:37]SAM_PROTO_SignData [14:23:37]wFMCommunicate request_size=4 [14:23:37]MH_SAM_APDU [14:23:37]CAPDU: 80 0D 01 02 [14:23:37]Write to MH i2c: E2 08 00 13 2A 80 0D 01 02 00 00 00 00 B6 [14:23:37]Write i2c OK [14:23:37]MH_I2C_Read... [14:23:37]Read from MH i2c: E2 [14:23:37]MH_I2C_Read... [14:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:37]Read from MH i2c: E2 03 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 03 00 13 2A 00 90 00 B1 [14:23:38]RAPDU: 90 00 [14:23:38]wFMCommunicate OK [14:23:38]wFMCommunicate request_size=255 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 0D 02 02 FA 05 00 68 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 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F4 03 04 00 63 9E 1F 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 D6 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 8A 00 00 00 OFD Sender: No OFD packet to send [14:23:38]B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 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 [14:23:38]Write to MH i2c: E2 02 01 14 2A 80 0D 02 02 FA 00 05 00 68 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 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F4 03 04 00 63 9E 1F 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 D6 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 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 00 F1 [14:23:38]Write i2c OK [14:23:38]MH_I2C_Read... [14:23:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:38]Read from MH i2c: E2 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 03 00 [14:23:38]MH_I2C_Read... [14:23:38]Read from MH i2c: E2 03 00 14 2A 00 90 00 B2 [14:23:38]RAPDU: 90 00 [14:23:38]wFMCommunicate OK [14:23:38]wFMCommunicate request_size=255 [14:23:38]MH_SAM_APDU [14:23:38]CAPDU: 80 0D 02 02 FA 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 1B 7A 01 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 [14:23:39]Write to MH i2c: E2 02 01 15 2A 80 0D 02 02 FA 00 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 1B 7A 01 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 00 00 BD [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:39]Read from MH i2c: E2 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 03 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 03 00 15 2A 00 90 00 B3 [14:23:39]RAPDU: 90 00 [14:23:39]wFMCommunicate OK [14:23:39]wFMCommunicate request_size=255 [14:23:39]MH_SAM_APDU [14:23:39]CAPDU: 80 0D 02 02 FA 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 [14:23:39]Write to MH i2c: E2 02 01 16 2A 80 0D 02 02 FA 00 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 00 00 80 [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:40]Read from MH i2c: E2 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 [14:23:40]MH_I2C_Read... [14:23:40]Read from MH i2c: E2 03 00 16 2A 00 90 00 B4 [14:23:40]RAPDU: 90 00 [14:23:40]wFMCommunicate OK [14:23:40]wFMCommunicate request_size=255 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 0D 02 02 FA 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 [14:23:40]Write to MH i2c: E2 02 01 17 2A 80 0D 02 02 FA 00 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 00 00 7D [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 17 2A 00 90 00 B5 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=255 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [14:23:41]Write to MH i2c: E2 02 01 18 2A 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 55 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 03 00 18 2A 00 90 00 B6 [14:23:42]RAPDU: 90 00 [14:23:42]wFMCommunicate OK [14:23:42]wFMCommunicate request_size=143 [14:23:42]MH_SAM_APDU [14:23:42]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FB 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 73 45 31 2D 99 3B [14:23:42]Write to MH i2c: E2 92 00 19 2A 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FB 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 73 45 31 2D 99 3B 00 00 45 [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:42]Read from MH i2c: E2 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 03 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [14:23:42]RAPDU: 90 00 [14:23:42]wFMCommunicate OK [14:23:42]wFMCommunicate request_size=4 [14:23:42]MH_SAM_APDU [14:23:42]CAPDU: 80 0D 03 02 [14:23:42]Write to MH i2c: E2 08 00 1A 2A 80 0D 03 02 00 00 00 00 BF [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:42]Read from MH i2c: E2 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 0B 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 0B 00 1A 2A 00 81 77 1D 4D EA A3 93 2A 90 00 6C [14:23:42]RAPDU: 81 77 1D 4D EA A3 93 2A 90 00 [14:23:42]wFMCommunicate OK [14:23:42]SAM_PROTO_SignData done [14:23:42]FM_MakeSignedData done [14:23:42]CreateOFDProtocolMessage [14:23:42]wFMCommunicate request_size=4 [14:23:42]MH_SAM_APDU [14:23:42]CAPDU: 80 11 00 00 [14:23:42]Write to MH i2c: E2 08 00 1B 2A 80 11 00 00 00 00 00 00 BF [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:42]Read from MH i2c: E2 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: E2 17 00 [14:23:42]MH_I2C_Read... [14:23:42]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 37 39 32 90 00 14 [14:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:23:42]wFMCommunicate OK [14:23:42]CreateOFDProtocolMessage done [14:23:42]OFDSenderStorePacket 156923 [14:23:42]StoreOFDPacket docnum=156923 [14:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 7C 05 00 00 86 35 74 05 4F 0B 5A 05 01 00 05 00 68 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 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F4 03 04 00 63 9E 1F 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 D6 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 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 1B 7A 01 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 FB 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 73 45 31 2D 99 3B 81 77 1D 4D EA A3 93 2A [14:23:43]CheckFolder [14:23:43]dirname=/storage/ofd_packets [14:23:43]CheckFolder done [14:23:43]ProducePacketName [14:23:43]name=ofd_packets/00156923 [14:23:43]NVStorageSaveData ofd_packets/00156923 [14:23:43]File name is /storage/ofd_packets/00156923 [14:23:43]Write 1434 bytes [14:23:43]NVStorageSaveData done [14:23:43]OFDSenderStorePacket done [14:23:43]KKMCreateOFDPacket done [14:23:43]NVStorageSaveData kkm_last_timestamp [14:23:43]File name is /storage/kkm_last_timestamp [14:23:43]Write 4 bytes [14:23:43]NVStorageSaveData done [14:23:43]ExternCall_PrintAddStr [14:23:43]wPrintStart [14:23:43]Write to MH i2c: 01 00 00 1C 2A 46 [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: 01 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: 01 07 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: 01 07 00 1C 2A 00 00 00 00 00 FF 0F 5B [14:23:43]RasterBufferAndPrint [14:23:43]line Отчет о закрытии смены [14:23:43]line ФФД: 1.0 [14:23:43]line ИНН: 02508201610067 [14:23:43]line Кассир: Кадырбеков Б. [14:23:43]line 28.10.2024 14:23 [14:23:43]line Смена: 538 [14:23:43]line РНМ: 0000000000091693 [14:23:43]line ЗНМ: 0300000096 [14:23:43]line СНО: Общий режим [14:23:43]line Чеков за смену: 138 [14:23:43]line ФД за смену: 140 [14:23:43]line Всего чеков: 138 [14:23:43]line ИТОГИ ПРИХОД [14:23:43]line Чеков: 138 [14:23:43]line Общий итог: 109342.23 [14:23:43]line Итого наличными: 91639.00 [14:23:43]line Итого безнал.: 17703.23 [14:23:43]line НДС 0% : 0.00 [14:23:43]line НДС 12% : 11614.84 [14:23:43]line НСП 0% : 0.00 [14:23:43]line НСП 1,50% : 0.00 [14:23:43]line НСП 0,50% : 0.00 [14:23:43]line НСП 5% : 0.00 [14:23:43]line НСП 3% : 0.00 [14:23:43]line НСП 2% : 0.00 [14:23:43]line НСП 1% : 967.95 [14:23:43]line ИТОГИ ВОЗВРАТ ПРИХОДА [14:23:43]line Чеков: 0 [14:23:43]line Общий итог: 0.00 [14:23:43]line Итого наличными: 0.00 [14:23:43]line Итого безнал.: 0.00 [14:23:43]line НДС 0% : 0.00 [14:23:43]line НДС 12% : 0.00 [14:23:43]line НСП 0% : 0.00 [14:23:43]line НСП 1,50% : 0.00 [14:23:43]line НСП 0,50% : 0.00 [14:23:43]line НСП 5% : 0.00 [14:23:43]line НСП 3% : 0.00 [14:23:43]line НСП 2% : 0.00 [14:23:43]line НСП 1% : 0.00 [14:23:43]line ИТОГИ РАСХОД [14:23:43]line Чеков: 0 [14:23:43]line Общий итог: 0.00 [14:23:43]line Итого наличными: 0.00 [14:23:43]line Итого безнал.: 0.00 [14:23:43]line НДС 0% : 0.00 [14:23:43]line НДС 12% : 0.00 [14:23:43]line НСП 0% : 0.00 [14:23:43]line НСП 1,50% : 0.00 [14:23:43]line НСП 0,50% : 0.00 [14:23:43]line НСП 5% : 0.00 [14:23:43]line НСП 3% : 0.00 [14:23:43]line НСП 2% : 0.00 [14:23:43]line НСП 1% : 0.00 [14:23:43]line ИТОГИ ВОЗВРАТ РАСХОДА [14:23:43]line Чеков: 0 [14:23:43]line Общий итог: 0.00 [14:23:43]line Итого наличными: 0.00 [14:23:43]line Итого безнал.: 0.00 [14:23:43]line НДС 0% : 0.00 [14:23:43]line НДС 12% : 0.00 [14:23:43]line НСП 0% : 0.00 [14:23:43]line НСП 1,50% : 0.00 [14:23:43]OFD Sender: Processing packet 156923 [packets to send 31, broken 30] [14:23:43]line НСП 0,50% : 0.00 [14:23:43]ProducePacketName [14:23:43]line НСП 5% : 0.00 [14:23:43]name=ofd_packets/00156923 [14:23:43]line НСП 3% : 0.00 [14:23:43]OFD Sender: To server: pG, [14:23:43]line НСП 2% : 0.00 [14:23:43]CommunicateWithHost lk.salyk.kg:30040 [14:23:43]line НСП 1% : 0.00 [14:23:43]ConnectInit lk.salyk.kg [14:23:43]line Сумма внесений: 0.00 [14:23:43]line Сумма выплат: 0.00 [14:23:43]line Нал. в кассе: 91639.00 [14:23:43]line НС Приход: 105275921.62 [14:23:43]line НС Возвр.Прихода: 119944.00 [14:23:43]line НС Расход: 0.00 [14:23:43]line НС Возвр.Расхода: 0.00 [14:23:43]line ФД: 156923 [14:23:43]line ФМ: 0000000000871792 [14:23:43]line ФПД: 126741015009595 [14:23:43]written 0, free lines is 4095 [14:23:43]Connected sock=10 [14:23: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 37 39 32 7C 05 00 00 86 35 74 05 4F 0B 5A 05 01 00 05 00 68 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 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F4 03 04 00 63 9E 1F 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 AA 04 D6 04 6E 04 04 00 8A 00 00 00 69 04 A3 00 6F 04 04 00 8A 00 00 00 B1 04 03 00 CF D7 A6 70 04 03 00 7C D4 8B 72 04 03 00 53 03 1B 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 0C B9 11 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 1B 7A 01 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 Write to MH i2c: F3 01 03 00 01 00 00 6C 00 EE 03 0A 00 F2 03 01 00 01 F3 2A 03 96 01 [14:23:44]00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 Write i2c OK [14:23:44]EF MH_I2C_Read... [14:23:44]03 Read from MH i2c: 0A 01 00 [14:23:44]F6 MH_I2C_Read... [14:23:44]03 01 00 06 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 [14:23:44]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 MH_I2C_Read... [14:23:44]00 Read from MH i2c: F6 01 03 07 01 00 6C 00 2A 01 00 F7 00 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 00 00 16 00 0C 79 04 8D 00 6F 04 04 00 00 00 00 BF 00 [14:23:44]B1 RasterBufferAndPrint [14:23:44]04 line [14:23:44]00 line [14:23:44]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 line [14:23:44]03 line [14:23:44]01 line [14:23:44]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 written 0, free lines is 3672 [14:23:44]F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 process_action close_shift done [14:23:44]03 requested_data is exist [14:23:44]00 produce_requested_data [14:23:44]00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 requested_item fd.num is exist - process it [14:23:44]6F SAM_PROTO_GetFieldsCounters [14:23:44]04 wFMCommunicate request_size=4 [14:23:44]04 MH_SAM_APDU [14:23:44]00 CAPDU: 00 80 13 00 00 [14:23:44]Write to MH i2c: E2 08 00 73 2A 80 13 00 00 00 00 00 00 19 [14:23:44]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:44]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FB 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 Write i2c OK [14:23:45]39 MH_I2C_Read... [14:23:45]32 Read from MH i2c: 35 E2 04 [14:23:45]06 MH_I2C_Read... [14:23:45]00 Read from MH i2c: 73 E2 45 62 31 00 2D 99 3B 81 77 1D 4D EA A3 93 2A [14:23:45] [14:23:45]MH_I2C_Read... [14:23:45]Read from MH i2c: E2 62 00 73 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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [14:23: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 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 Received data: 90 87 00 95 [14:23:46]F6 wFMCommunicate OK [14:23:46]70 SAM_PROTO_GetFieldsCounters done [14:23:46]47 requested_item shift.num is exist - process it [14:23:46]2C requested_item shift.opened is exist - process it [14:23:46]01 req_shift_opened [14:23:46]00 FM_GetShiftState [14:23:46]30 SAM_PROTO_GetShiftState [14:23:46]30 wFMCommunicate request_size=4 [14:23:46]30 MH_SAM_APDU [14:23:46]30 CAPDU: 30 80 13 01 00 [14:23:46]Write to MH i2c: E2 08 00 74 2A 30 80 30 13 30 01 30 00 30 00 00 00 00 1B [14:23:46]38 37 31 37 39 32 4F 00 00 00 8B FE 47 00 94 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:46]39 Write i2c OK [14:23:46]33 MH_I2C_Read... [14:23:46]36 34 33 34 36 31 Read from MH i2c: 32 E2 33 [14:23:46]34 MH_I2C_Read... [14:23:46]11 04 10 00 30 30 30 30 30 30 30 30 Read from MH i2c: 30 E2 30 0E 38 00 37 [14:23:46]31 37 39 32 10 04 04 00 FB 64 MH_I2C_Read... [14:23:46]02 Read from MH i2c: 00 E2 F4 0E 03 00 04 00 DF 43 1F 67 B6 04 01 00 00 74 32 2A 80 00 DA 09 39 00 06 06 EC 6D [14:23:46]CommunicateWithHost err = 0 [14:23:46]CheckOFDResponse [14:23:46]1017 (14) - 77093643461234 [14:23:46]1041 (16) - 0000000000871792 [14:23:46]1040 (4) - 156923 [14:23:46]00 1012 (4) - 28.10.2024 07:57 [14:23:46]1206 (1) - 0 [14:23:46]00 OFD Sender: Remove packet 156923 [14:23:46]00 ProducePacketName [14:23:46]00 name=ofd_packets/00156923 [14:23:46]NVStorageDeleteData [14:23:46]00 00 00 00 00 90 00 26 [14:23:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:23:46]wFMCommunicate OK [14:23:46]SAM_PROTO_GetShiftState done [14:23:46]FM_GetShiftState done [14:23:46]req_shift_opened done [14:23:46]requested_item shift.open_date is exist - process it [14:23:46]req_shift_open_date [14:23:46]FM_GetShiftState [14:23:46]SAM_PROTO_GetShiftState [14:23:46]wFMCommunicate request_size=4 [14:23:46]MH_SAM_APDU [14:23:46]CAPDU: 80 13 01 00 [14:23:46]Write to MH i2c: E2 08 00 75 2A 80 13 01 00 00 00 00 00 1C [14:23:46]Write i2c OK [14:23:46]MH_I2C_Read... [14:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:46]Read from MH i2c: E2 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 [14:23:46]MH_I2C_Read... [14:23:46]Read from MH i2c: E2 0E 00 75 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 27 [14:23:46]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [14:23:46]wFMCommunicate OK [14:23:46]SAM_PROTO_GetShiftState done [14:23:46]FM_GetShiftState done [14:23:46]req_shift_open_date done [14:23:46]produce_requested_data done [14:23:46]produce_requested_data return {"fd.num":156923,"shift.num":538,"shift.opened":0,"shift.open_date":0} [14:23:46]process_action_free close_shift [14:23:46]json_value_free [14:23:46]json_value_free done [14:23:46]process_json_proto returns [14:23:46]Send response to host [14:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156923,"shift.num":538,"shift.opened":0,"shift.open_date":0}}} [14:23:46]free response buf [14:23:46]execute_script done [14:23:46]execute_script returns [14:23:46]free content buf [14:23:46]Sock 7.Close socket [14:23:46]Sock 7.Thread stoped [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:14]int [14:27:14]Write to MH i2c: 01 00 00 76 2A A0 [14:27:14]*** FLAG_PRN_KEY set [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 76 2A 00 08 00 00 00 FF 0F BD [14:27:14]state=0 [14:27:14]Key pressed [14:27:14]Feed [14:27:14]Write to MH i2c: D8 00 00 77 2A 78 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D8 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D8 01 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: D8 01 00 77 2A 00 79 [14:27:14]int [14:27:14]Write to MH i2c: 01 00 00 78 2A A2 [14:27:14]Write i2c OK [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 [14:27:14]MH_I2C_Read... [14:27:14]Read from MH i2c: 01 07 00 78 2A 00 48 00 00 00 3D 00 2E [14:27:14]state=2 [14:27:14]Key pressed [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 79 2A A3 [14:27:15]*** FLAG_PRN_KEY reset [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 79 2A 00 00 00 00 00 F5 0F AE [14:27:15]state=2 [14:27:15]Stop feed [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 7A 2A A4 [14:27:15]*** FLAG_PRN_KEY set [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 7A 2A 00 08 00 00 00 FF 0F C1 [14:27:15]state=0 [14:27:15]Key pressed [14:27:15]Feed [14:27:15]Write to MH i2c: D8 00 00 7B 2A 7C [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 01 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 01 00 7B 2A 00 7D [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 7C 2A A6 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 7C 2A 00 48 00 00 00 3C 00 31 [14:27:15]state=2 [14:27:15]Key pressed [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 7D 2A A7 [14:27:15]*** FLAG_PRN_KEY reset [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 7D 2A 00 00 00 00 00 F5 0F B2 [14:27:15]state=2 [14:27:15]Stop feed [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 7E 2A A8 [14:27:15]*** FLAG_PRN_KEY set [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 7E 2A 00 08 00 00 00 FF 0F C5 [14:27:15]state=0 [14:27:15]Key pressed [14:27:15]Feed [14:27:15]Write to MH i2c: D8 00 00 7F 2A 80 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 01 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: D8 01 00 7F 2A 00 81 [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 80 2A AA [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 80 2A 00 48 00 00 00 3C 00 35 [14:27:15]state=2 [14:27:15]Key pressed [14:27:15]int [14:27:15]Write to MH i2c: 01 00 00 81 2A AB [14:27:15]*** FLAG_PRN_KEY reset [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 81 2A 00 00 00 00 00 F5 0F B6 [14:27:15]state=2 [14:27:15]Stop feed [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [14:30:02]OFD Sender: No OFD packet to send [14:30:07]OFD Sender: No OFD packet to send [14:30:12]OFD Sender: No OFD packet to send [14:30:17]OFD Sender: No OFD packet to send [14:30:22]OFD Sender: No OFD packet to send [14:30:27]OFD Sender: No OFD packet to send [14:30:32]OFD Sender: No OFD packet to send [14:30:37]OFD Sender: No OFD packet to send [14:30:42]OFD Sender: No OFD packet to send [14:30:47]OFD Sender: No OFD packet to send [14:30:52]OFD Sender: No OFD packet to send [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]OFD Sender: No OFD packet to send [14:32:52]OFD Sender: No OFD packet to send [14:32:57]OFD Sender: No OFD packet to send [14:33:02]OFD Sender: No OFD packet to send [14:33:07]OFD Sender: No OFD packet to send [14:33:12]OFD Sender: No OFD packet to send [14:33:17]OFD Sender: No OFD packet to send [14:33:22]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send