[02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:58]accept exits with 7 [03:10:58]New connection [03:10:58]New thread 3066670436 created [03:10:58]Thread 3066813796 joined [03:10:58]Waiting for new connection... [03:10:58] Sock 7.Parse request [03:10:58]Sock 7.Check first char [03:10:58]Sock 7.First char is OK [03:10:58]request: POST /json_proto HTTP/1.0 [03:10:58]Method: POST [03:10:58]URL: /json_proto [03:10:58]Method is POST - this is cgi request [03:10:58]url: /json_proto [03:10:58]query_string will be loaded in cgi processing [03:10:58]execute_cgi json_proto POST (null) [03:10:58]execute_cgi path=json_proto method=POST [03:10:58]POST find Content-Length [03:10:58]Host: 172.17.56.67:8080 [03:10:58]Content-Length: 679 [03:10:58]Content-Type: application/json [03:10:58] [03:10:58]POST finish read [03:10:58]Found Content-Length = 679 [03:10:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [03:10:58]execute_script... [03:10:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [03:10:58]POST & json_proto [03:10:58]process_json_proto [03:10:58]json parsed OK: [03:10:58]protocol is kg_v1.0 [03:10:58]action value=close_receipt [03:10:58]process_action close_receipt [03:10:58]cmd_close_receipt [03:10:58]MH_GetDate [03:10:58]Write to MH i2c: F0 00 00 53 02 44 [03:10:58]Write i2c OK [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: F0 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: F0 09 00 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: F0 09 00 53 02 00 43 74 B4 65 26 5D 9E 65 A3 [03:10:58]GetLastDocTimeStamp 1706320854 [03:10:58]current date 1706325059 [03:10:58]FM_GetShiftState [03:10:58]SAM_PROTO_GetShiftState [03:10:58]wFMCommunicate request_size=4 [03:10:58]MH_SAM_APDU [03:10:58]CAPDU: 80 13 01 00 [03:10:58]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [03:10:58]Write i2c OK [03:10:58]MH_I2C_Read... [03:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:58]Read from MH i2c: E2 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: E2 0E 00 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: E2 0E 00 54 02 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 6A [03:10:58]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [03:10:58]wFMCommunicate OK [03:10:58]SAM_PROTO_GetShiftState done [03:10:58]FM_GetShiftState done [03:10:58]opened in 1706313770 [03:10:58]opened+sec_in_day 1706400170 [03:10:58]quantity*price = 150005 [03:10:58]sum+1 = 150006 [03:10:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 4 27.01.2024 03:11 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48824 ФПД: 240834202915530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T031100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48824&fm=240834202915530&tin=02508201610067®Number=0000000000092723&sum=150000 [03:10:59]StoreToDocumentArchive [03:10:59]shift 243 fd 48824 [03:10:59]save to /storage/0243/doc_00048824 [03:10:59]save last doc name /storage/0243/doc_00048824 to /storage/kkm_last_doc_name [03:10:59]save OK [03:10:59]Clear old archive folders... [03:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:10:59]tlvbuf is 013516C0 [03:10:59]SAM_PROTO_ClearQueue [03:10:59]wFMCommunicate request_size=4 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 09 00 00 [03:10:59]Write to MH i2c: E2 08 00 61 02 80 09 00 00 00 00 00 00 D5 [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 61 02 00 90 00 D7 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]SAM_PROTO_ClearQueue done [03:10:59]KKMCreateOFDPacket [03:10:59]OFDProtocolAddRootSTLVToBuf [03:10:59]FM_MakeSignedData [03:10:59]FM_MakeSignedData [03:10:59]SAM_PROTO_SignData [03:10:59]wFMCommunicate request_size=4 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 01 02 [03:10:59]Write to MH i2c: E2 08 00 62 02 80 0D 01 02 00 00 00 00 DD [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 62 02 00 90 00 D8 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]wFMCommunicate request_size=255 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 04 00 00 00 F4 03 04 00 44 74 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 BE 00 00 35 04 06 00 DB 09 95 1D [03:10:59]Write to MH i2c: E2 02 01 63 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 04 00 00 00 F4 03 04 00 44 74 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 BE 00 00 35 04 06 00 DB 09 95 1D 00 00 F8 [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:00]Read from MH i2c: E2 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 03 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [03:11:00]RAPDU: 90 00 [03:11:00]wFMCommunicate OK [03:11:00]wFMCommunicate request_size=7 [03:11:00]MH_SAM_APDU [03:11:00]CAPDU: 80 0D 02 02 02 52 CA [03:11:00]Write to MH i2c: E2 0A 00 64 02 80 0D 02 02 02 00 52 CA 00 00 00 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:00]Read from MH i2c: E2 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 03 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [03:11:00]RAPDU: 90 00 [03:11:00]wFMCommunicate OK [03:11:00]wFMCommunicate request_size=4 [03:11:00]MH_SAM_APDU [03:11:00]CAPDU: 80 0D 03 02 [03:11:00]Write to MH i2c: E2 08 00 65 02 80 0D 03 02 00 00 00 00 E2 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:00]Read from MH i2c: E2 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 0B 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 0B 00 65 02 00 D0 5D D5 A1 AF 41 78 DC 90 00 CA [03:11:00]RAPDU: D0 5D D5 A1 AF 41 78 DC 90 00 [03:11:00]wFMCommunicate OK [03:11:00]SAM_PROTO_SignData done [03:11:00]FM_MakeSignedData done [03:11:00]CreateOFDProtocolMessage [03:11:00]wFMCommunicate request_size=4 [03:11:00]MH_SAM_APDU [03:11:00]CAPDU: 80 11 00 00 [03:11:00]Write to MH i2c: E2 08 00 66 02 80 11 00 00 00 00 00 00 E2 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:00]Read from MH i2c: E2 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 17 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: E2 17 00 66 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2F [03:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [03:11:00]wFMCommunicate OK [03:11:00]CreateOFDProtocolMessage done [03:11:00]OFDSenderStorePacket 48824 [03:11:00]StoreOFDPacket docnum=48824 [03:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 45 B5 04 01 81 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 04 00 00 00 F4 03 04 00 44 74 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 BE 00 00 35 04 06 00 DB 09 95 1D 52 CA D0 5D D5 A1 AF 41 78 DC [03:11:00]CheckFolder [03:11:00]dirname=/storage/ofd_packets [03:11:00]CheckFolder done [03:11:00]ProducePacketName [03:11:00]name=ofd_packets/00048824 [03:11:00]NVStorageSaveData ofd_packets/00048824 [03:11:00]File name is /storage/ofd_packets/00048824 [03:11:00]Write 298 bytes [03:11:00]NVStorageSaveData done [03:11:00]OFDSenderStorePacket done [03:11:00]KKMCreateOFDPacket done [03:11:00]NVStorageSaveData kkm_last_timestamp [03:11:00]File name is /storage/kkm_last_timestamp [03:11:00]Write 4 bytes [03:11:00]NVStorageSaveData done [03:11:00]ExternCall_PrintAddStr [03:11:00]wPrintStart [03:11:00]Write to MH i2c: 01 00 00 67 02 69 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 FF 0F 7E [03:11:00]RasterBufferAndPrint [03:11:00]line Счет N : (1)215920 [03:11:00]line ИНН: 02508201610067 [03:11:00]line Контрольно-Кассовый Чек [03:11:00]line ПРОДАЖА [03:11:00]line ТРК (МРК, ГНК) : 11 [03:11:00]line Товар: 2710194210 [03:11:00]line ДТ-К-5 [03:11:00]line 21.460 * 69.90 [03:11:00]line = 1500.05 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line ОКРУГЛЕНИЕ: -0.05 [03:11:00]line ИТОГО: 1500.00 [03:11:00]line Внесено: 1500.00 [03:11:00]line СДАЧА: 0.00 [03:11:00]line НСП 1% : 13.27 [03:11:00]line НДС 12% : 159.30 [03:11:00]line Наличными: 1500.00 [03:11:00]line Безнал.: 0.00 [03:11:00]line Место: АЗС № 102 "Партнер Нефть" [03:11:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [03:11:00]line СНО: Общий режим [03:11:00]line Чек 4 27.01.2024 03:11 [03:11:00]line Смена: 243 ФФД: 1.0 [03:11:00]line ЗНМ: 0300000040 [03:11:00]line РНМ: 0000000000092723 [03:11:00]line Версия ККМ: 001 [03:11:00]line ФМ: 0000000000875060 [03:11:00]line ФД: 48824 [03:11:00]line ФПД: 240834202915530 [03:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T031100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48824&fm=240834202915530&tin=02508201610067®Number=0000000000092723&sum=150000 [03:11:00]OFD Sender: Processing packet 48824 [packets to send 12, broken 11] [03:11:00]ProducePacketName [03:11:00]name=ofd_packets/00048824 [03:11:00]OFD Sender: To server: pG, [03:11:00]CommunicateWithHost lk.salyk.kg:30040 [03:11:00]ConnectInit lk.salyk.kg [03:11:00]written 0, free lines is 4095 [03:11:00]Connected sock=9 [03:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 45 B5 04 01 81 B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 04 00 00 00 F4 03 04 00 44 74 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 BE 00 00 35 04 06 00 DB 09 95 1D 52 CA D0 5D D5 A1 AF 41 78 DC [03:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 AA 6C 47 00 B4 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 35 30 36 30 10 04 04 00 B8 BE 00 00 F4 03 04 00 43 20 B4 65 B6 04 01 00 00 46 AA EB 1D 13 F0 96 AE [03:11:00]CommunicateWithHost err = 0 [03:11:00]CheckOFDResponse [03:11:00]1017 (14) - 77093643461234 [03:11:00]1041 (16) - 0000000000875060 [03:11:00]1040 (4) - 48824 [03:11:00]1012 (4) - 26.01.2024 21:12 [03:11:01]1206 (1) - 0 [03:11:01]OFD Sender: Remove packet 48824 [03:11:01]ProducePacketName [03:11:01]name=ofd_packets/00048824 [03:11:01]NVStorageDeleteData [03:11:01]Write to MH i2c: 01 00 00 92 02 94 [03:11:01]Write i2c OK [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: 01 [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: 01 07 00 [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: 01 07 00 92 02 00 00 00 00 00 EC 0C 93 [03:11:01]RasterBufferAndPrint [03:11:01]line [03:11:01]line [03:11:01]line [03:11:01]line [03:11:01]line [03:11:01]written 0, free lines is 3314 [03:11:01]MH_Cut [03:11:01]Write to MH i2c: D1 01 00 99 02 01 6D [03:11:01]Write i2c OK [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: D1 [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: D1 01 00 [03:11:01]MH_I2C_Read... [03:11:01]Read from MH i2c: D1 01 00 99 02 00 6C [03:11:01]Write to MH i2c: 01 00 00 9A 02 9C [03:11:01]Write i2c OK [03:11:01]MH_I2C_Read... [03:11:01]OFD Sender: No OFD packet to send [03:11:01]*** Cut start [03:11:01]*** Partial cut [03:11:01]*** CUTSNS_PIN = 1 [03:11:01]*** CUTSNS_PIN = 0 [03:11:02]*** Brake cut motor [03:11:02]Read from MH i2c: 01 [03:11:02]MH_I2C_Read... [03:11:02]*** Stop cut motor [03:11:02]*** Cut end [03:11:02]Read from MH i2c: 01 07 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 FF 0F B1 [03:11:02]process_action close_receipt done [03:11:02]requested_data is exist [03:11:02]produce_requested_data [03:11:02]requested_item fm.sn is exist - process it [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 11 00 00 [03:11:02]Write to MH i2c: E2 08 00 9B 02 80 11 00 00 00 00 00 00 17 [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 17 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 17 00 9B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [03:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [03:11:02]wFMCommunicate OK [03:11:02]requested_item fd.num is exist - process it [03:11:02]SAM_PROTO_GetFieldsCounters [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 13 00 00 [03:11:02]Write to MH i2c: E2 08 00 9C 02 80 13 00 00 00 00 00 00 1A [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 62 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 62 00 9C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B8 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [03:11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B8 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:02]wFMCommunicate OK [03:11:02]SAM_PROTO_GetFieldsCounters done [03:11:02]requested_item shift.num is exist - process it [03:11:02]requested_item shift.opened is exist - process it [03:11:02]req_shift_opened [03:11:02]FM_GetShiftState [03:11:02]SAM_PROTO_GetShiftState [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 13 01 00 [03:11:02]Write to MH i2c: E2 08 00 9D 02 80 13 01 00 00 00 00 00 1C [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:02]Read from MH i2c: E2 0E 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 0E 00 9D 02 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B3 [03:11:02]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [03:11:02]wFMCommunicate OK [03:11:02]SAM_PROTO_GetShiftState done [03:11:02]FM_GetShiftState done [03:11:02]req_shift_opened done [03:11:02]requested_item shift.open_date is exist - process it [03:11:02]req_shift_open_date [03:11:02]req_shift_open_date done [03:11:02]produce_requested_data done [03:11:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48824,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [03:11:02]process_action_free close_receipt [03:11:02]json_value_free [03:11:02]json_value_free done [03:11:02]process_json_proto returns [03:11:02]Send response to host [03:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48824,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [03:11:02]free response buf [03:11:02]execute_script done [03:11:02]execute_script returns [03:11:02]free content buf [03:11:02]Sock 7.Close socket [03:11:02]Sock 7.Thread stoped [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:12]OFD Sender: No OFD packet to send [03:21:17]OFD Sender: No OFD packet to send [03:21:22]OFD Sender: No OFD packet to send [03:21:27]OFD Sender: No OFD packet to send [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send [03:21:52]OFD Sender: No OFD packet to send [03:21:57]OFD Sender: No OFD packet to send [03:22:02]OFD Sender: No OFD packet to send [03:22:07]OFD Sender: No OFD packet to send [03:22:12]OFD Sender: No OFD packet to send [03:22:17]OFD Sender: No OFD packet to send [03:22:22]OFD Sender: No OFD packet to send [03:22:27]OFD Sender: No OFD packet to send [03:22:32]OFD Sender: No OFD packet to send [03:22:37]OFD Sender: No OFD packet to send [03:22:42]OFD Sender: No OFD packet to send [03:22:47]OFD Sender: No OFD packet to send [03:22:52]OFD Sender: No OFD packet to send [03:22:57]OFD Sender: No OFD packet to send [03:23:02]OFD Sender: No OFD packet to send [03:23:07]OFD Sender: No OFD packet to send [03:23:12]OFD Sender: No OFD packet to send [03:23:17]OFD Sender: No OFD packet to send [03:23:22]OFD Sender: No OFD packet to send [03:23:27]OFD Sender: No OFD packet to send [03:23:32]OFD Sender: No OFD packet to send [03:23:37]OFD Sender: No OFD packet to send [03:23:42]OFD Sender: No OFD packet to send [03:23:47]OFD Sender: No OFD packet to send [03:23:52]OFD Sender: No OFD packet to send [03:23:57]OFD Sender: No OFD packet to send [03:24:02]OFD Sender: No OFD packet to send [03:24:07]OFD Sender: No OFD packet to send [03:24:12]OFD Sender: No OFD packet to send [03:24:17]OFD Sender: No OFD packet to send [03:24:22]OFD Sender: No OFD packet to send [03:24:27]OFD Sender: No OFD packet to send [03:24:32]OFD Sender: No OFD packet to send [03:24:37]OFD Sender: No OFD packet to send [03:24:42]OFD Sender: No OFD packet to send [03:24:47]OFD Sender: No OFD packet to send [03:24:52]OFD Sender: No OFD packet to send [03:24:57]OFD Sender: No OFD packet to send [03:25:02]OFD Sender: No OFD packet to send [03:25:07]OFD Sender: No OFD packet to send [03:25:12]OFD Sender: No OFD packet to send [03:25:17]OFD Sender: No OFD packet to send [03:25:22]OFD Sender: No OFD packet to send [03:25:27]OFD Sender: No OFD packet to send [03:25:32]OFD Sender: No OFD packet to send [03:25:37]OFD Sender: No OFD packet to send [03:25:42]OFD Sender: No OFD packet to send [03:25:47]OFD Sender: No OFD packet to send [03:25:52]OFD Sender: No OFD packet to send [03:25:57]OFD Sender: No OFD packet to send [03:26:02]OFD Sender: No OFD packet to send [03:26:07]OFD Sender: No OFD packet to send [03:26:12]OFD Sender: No OFD packet to send [03:26:17]OFD Sender: No OFD packet to send [03:26:22]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:23]OFD Sender: No OFD packet to send [03:53:28]OFD Sender: No OFD packet to send [03:53:33]OFD Sender: No OFD packet to send [03:53:38]OFD Sender: No OFD packet to send [03:53:43]OFD Sender: No OFD packet to send [03:53:48]OFD Sender: No OFD packet to send [03:53:53]OFD Sender: No OFD packet to send [03:53:58]OFD Sender: No OFD packet to send [03:54:03]OFD Sender: No OFD packet to send [03:54:08]OFD Sender: No OFD packet to send [03:54:13]OFD Sender: No OFD packet to send [03:54:18]OFD Sender: No OFD packet to send [03:54:23]OFD Sender: No OFD packet to send [03:54:28]OFD Sender: No OFD packet to send [03:54:33]OFD Sender: No OFD packet to send [03:54:38]OFD Sender: No OFD packet to send [03:54:43]OFD Sender: No OFD packet to send [03:54:48]OFD Sender: No OFD packet to send [03:54:53]OFD Sender: No OFD packet to send [03:54:58]OFD Sender: No OFD packet to send [03:55:03]OFD Sender: No OFD packet to send [03:55:08]OFD Sender: No OFD packet to send [03:55:13]OFD Sender: No OFD packet to send [03:55:18]OFD Sender: No OFD packet to send [03:55:23]OFD Sender: No OFD packet to send [03:55:28]OFD Sender: No OFD packet to send [03:55:33]OFD Sender: No OFD packet to send [03:55:38]OFD Sender: No OFD packet to send [03:55:43]OFD Sender: No OFD packet to send [03:55:48]OFD Sender: No OFD packet to send [03:55:53]OFD Sender: No OFD packet to send [03:55:58]OFD Sender: No OFD packet to send [03:56:03]OFD Sender: No OFD packet to send [03:56:08]OFD Sender: No OFD packet to send [03:56:13]OFD Sender: No OFD packet to send [03:56:18]OFD Sender: No OFD packet to send [03:56:23]OFD Sender: No OFD packet to send [03:56:28]OFD Sender: No OFD packet to send [03:56:33]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:29]OFD Sender: No OFD packet to send [04:02:34]OFD Sender: No OFD packet to send [04:02:39]OFD Sender: No OFD packet to send [04:02:44]OFD Sender: No OFD packet to send [04:02:49]OFD Sender: No OFD packet to send [04:02:54]OFD Sender: No OFD packet to send [04:02:59]OFD Sender: No OFD packet to send [04:03:04]OFD Sender: No OFD packet to send [04:03:09]OFD Sender: No OFD packet to send [04:03:14]OFD Sender: No OFD packet to send [04:03:19]OFD Sender: No OFD packet to send [04:03:24]OFD Sender: No OFD packet to send [04:03:29]OFD Sender: No OFD packet to send [04:03:34]OFD Sender: No OFD packet to send [04:03:39]OFD Sender: No OFD packet to send [04:03:44]OFD Sender: No OFD packet to send [04:03:49]OFD Sender: No OFD packet to send [04:03:54]OFD Sender: No OFD packet to send [04:03:59]OFD Sender: No OFD packet to send [04:04:04]OFD Sender: No OFD packet to send [04:04:09]OFD Sender: No OFD packet to send [04:04:14]OFD Sender: No OFD packet to send [04:04:19]OFD Sender: No OFD packet to send [04:04:24]OFD Sender: No OFD packet to send [04:04:29]OFD Sender: No OFD packet to send [04:04:34]OFD Sender: No OFD packet to send [04:04:39]OFD Sender: No OFD packet to send [04:04:44]OFD Sender: No OFD packet to send [04:04:49]OFD Sender: No OFD packet to send [04:04:54]OFD Sender: No OFD packet to send [04:04:59]OFD Sender: No OFD packet to send [04:05:04]OFD Sender: No OFD packet to send [04:05:09]OFD Sender: No OFD packet to send [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:24]OFD Sender: No OFD packet to send [04:06:29]OFD Sender: No OFD packet to send [04:06:34]OFD Sender: No OFD packet to send [04:06:39]OFD Sender: No OFD packet to send [04:06:44]OFD Sender: No OFD packet to send [04:06:49]OFD Sender: No OFD packet to send [04:06:54]OFD Sender: No OFD packet to send [04:06:59]OFD Sender: No OFD packet to send [04:07:04]OFD Sender: No OFD packet to send [04:07:09]OFD Sender: No OFD packet to send [04:07:14]OFD Sender: No OFD packet to send [04:07:19]OFD Sender: No OFD packet to send [04:07:24]OFD Sender: No OFD packet to send [04:07:29]OFD Sender: No OFD packet to send [04:07:34]OFD Sender: No OFD packet to send [04:07:39]OFD Sender: No OFD packet to send [04:07:44]OFD Sender: No OFD packet to send [04:07:49]OFD Sender: No OFD packet to send [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:53:01]OFD Sender: No OFD packet to send [04:53:06]OFD Sender: No OFD packet to send [04:53:11]OFD Sender: No OFD packet to send [04:53:16]OFD Sender: No OFD packet to send [04:53:21]OFD Sender: No OFD packet to send [04:53:26]OFD Sender: No OFD packet to send [04:53:31]OFD Sender: No OFD packet to send [04:53:36]OFD Sender: No OFD packet to send [04:53:41]OFD Sender: No OFD packet to send [04:53:46]OFD Sender: No OFD packet to send [04:53:51]OFD Sender: No OFD packet to send [04:53:56]OFD Sender: No OFD packet to send [04:54:01]OFD Sender: No OFD packet to send [04:54:06]OFD Sender: No OFD packet to send [04:54:11]OFD Sender: No OFD packet to send [04:54:16]OFD Sender: No OFD packet to send [04:54:21]OFD Sender: No OFD packet to send [04:54:26]OFD Sender: No OFD packet to send [04:54:31]OFD Sender: No OFD packet to send [04:54:36]OFD Sender: No OFD packet to send [04:54:41]OFD Sender: No OFD packet to send [04:54:46]OFD Sender: No OFD packet to send [04:54:51]OFD Sender: No OFD packet to send [04:54:56]OFD Sender: No OFD packet to send [04:55:01]OFD Sender: No OFD packet to send [04:55:06]OFD Sender: No OFD packet to send [04:55:11]OFD Sender: No OFD packet to send [04:55:16]OFD Sender: No OFD packet to send [04:55:21]OFD Sender: No OFD packet to send [04:55:26]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:09]OFD Sender: No OFD packet to send [05:49:14]OFD Sender: No OFD packet to send [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]OFD Sender: No OFD packet to send [05:49:44]OFD Sender: No OFD packet to send [05:49:49]OFD Sender: No OFD packet to send [05:49:54]OFD Sender: No OFD packet to send [05:49:59]OFD Sender: No OFD packet to send [05:50:04]OFD Sender: No OFD packet to send [05:50:09]OFD Sender: No OFD packet to send [05:50:14]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:15]OFD Sender: No OFD packet to send [06:07:20]OFD Sender: No OFD packet to send [06:07:25]OFD Sender: No OFD packet to send [06:07:30]OFD Sender: No OFD packet to send [06:07:35]OFD Sender: No OFD packet to send [06:07:40]OFD Sender: No OFD packet to send [06:07:45]OFD Sender: No OFD packet to send [06:07:50]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:10]OFD Sender: No OFD packet to send [06:08:15]OFD Sender: No OFD packet to send [06:08:20]OFD Sender: No OFD packet to send [06:08:25]OFD Sender: No OFD packet to send [06:08:30]OFD Sender: No OFD packet to send [06:08:35]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:35:59]accept exits with 10 [07:35:59]New connection [07:35:59]New thread 3066813796 created [07:35:59]Thread 3066670436 joined [07:35:59]Waiting for new connection... [07:35:59] Sock 10.Parse request [07:35:59]Sock 10.Check first char [07:35:59]Sock 10.First char is OK [07:35:59]request: POST /json_proto HTTP/1.0 [07:35:59]Method: POST [07:35:59]URL: /json_proto [07:35:59]Method is POST - this is cgi request [07:35:59]url: /json_proto [07:35:59]query_string will be loaded in cgi processing [07:35:59]execute_cgi json_proto POST (null) [07:35:59]execute_cgi path=json_proto method=POST [07:35:59]POST find Content-Length [07:35:59]Host: 172.17.56.67:8080 [07:35:59]Content-Length: 682 [07:35:59]Content-Type: application/json [07:35:59] [07:35:59]POST finish read [07:35:59]Found Content-Length = 682 [07:35:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:59]execute_script... [07:35:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:59]POST & json_proto [07:35:59]process_json_proto [07:35:59]json parsed OK: [07:35:59]protocol is kg_v1.0 [07:35:59]action value=close_receipt [07:35:59]process_action close_receipt [07:35:59]cmd_close_receipt [07:35:59]MH_GetDate [07:35:59]Write to MH i2c: F0 00 00 9E 02 8F [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 09 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: F0 09 00 9E 02 00 62 B2 B4 65 26 5D 9E 65 4B [07:35:59]GetLastDocTimeStamp 1706325060 [07:35:59]current date 1706340962 [07:35:59]FM_GetShiftState [07:35:59]SAM_PROTO_GetShiftState [07:35:59]wFMCommunicate request_size=4 [07:35:59]MH_SAM_APDU [07:35:59]CAPDU: 80 13 01 00 [07:35:59]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0E 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B5 [07:35:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:35:59]wFMCommunicate OK [07:35:59]SAM_PROTO_GetShiftState done [07:35:59]FM_GetShiftState done [07:35:59]opened in 1706313770 [07:35:59]opened+sec_in_day 1706400170 [07:35:59]quantity*price = 100037 [07:35:59]sum+1 = 100039 [07:35:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 5 27.01.2024 07:36 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48825 ФПД: 1284951591188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T073602&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48825&fm=1284951591188&tin=02508201610067®Number=0000000000092723&sum=100000 [07:36:00]StoreToDocumentArchive [07:36:00]shift 243 fd 48825 [07:36:00]save to /storage/0243/doc_00048825 [07:36:00]save last doc name /storage/0243/doc_00048825 to /storage/kkm_last_doc_name [07:36:00]save OK [07:36:00]Clear old archive folders... [07:36:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:36:00]tlvbuf is 0119B600 [07:36:00]SAM_PROTO_ClearQueue [07:36:00]wFMCommunicate request_size=4 [07:36:00]MH_SAM_APDU [07:36:00]CAPDU: 80 09 00 00 [07:36:00]Write to MH i2c: E2 08 00 AC 02 80 09 00 00 00 00 00 00 20 [07:36:00]Write i2c OK [07:36:00]MH_I2C_Read... [07:36:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:36:00]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 AC 02 00 90 00 22 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_ClearQueue done [07:36:01]KKMCreateOFDPacket [07:36:01]OFDProtocolAddRootSTLVToBuf [07:36:01]FM_MakeSignedData [07:36:01]FM_MakeSignedData [07:36:01]SAM_PROTO_SignData [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 01 02 [07:36:01]Write to MH i2c: E2 08 00 AD 02 80 0D 01 02 00 00 00 00 28 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 AD 02 00 90 00 23 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=255 [07:36:01]MH_SAM_APDU [07:36: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 62 B2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 BE 00 00 35 04 06 00 01 [07:36:01]Write to MH i2c: E2 02 01 AE 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 62 B2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 BE 00 00 35 04 06 00 01 00 00 35 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=10 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 02 02 05 2B 2D 15 49 14 [07:36:01]Write to MH i2c: E2 0D 00 AF 02 80 0D 02 02 05 00 2B 2D 15 49 14 00 00 FF [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [07:36:01]RAPDU: 90 00 [07:36:01]wFMCommunicate OK [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 0D 03 02 [07:36:01]Write to MH i2c: E2 08 00 B0 02 80 0D 03 02 00 00 00 00 2D [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 0B 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 0B 00 B0 02 00 69 4D 5D F9 20 34 B0 A7 90 00 E5 [07:36:01]RAPDU: 69 4D 5D F9 20 34 B0 A7 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_SignData done [07:36:01]FM_MakeSignedData done [07:36:01]CreateOFDProtocolMessage [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 11 00 00 [07:36:01]Write to MH i2c: E2 08 00 B1 02 80 11 00 00 00 00 00 00 2D [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 B1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [07:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:36:01]wFMCommunicate OK [07:36:01]CreateOFDProtocolMessage done [07:36:01]OFDSenderStorePacket 48825 [07:36:01]StoreOFDPacket docnum=48825 [07:36:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 76 73 07 01 0D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 62 B2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 BE 00 00 35 04 06 00 01 2B 2D 15 49 14 69 4D 5D F9 20 34 B0 A7 [07:36:01]CheckFolder [07:36:01]dirname=/storage/ofd_packets [07:36:01]CheckFolder done [07:36:01]ProducePacketName [07:36:01]name=ofd_packets/00048825 [07:36:01]NVStorageSaveData ofd_packets/00048825 [07:36:01]File name is /storage/ofd_packets/00048825 [07:36:01]Write 301 bytes [07:36:01]NVStorageSaveData done [07:36:01]OFDSenderStorePacket done [07:36:01]KKMCreateOFDPacket done [07:36:01]NVStorageSaveData kkm_last_timestamp [07:36:01]File name is /storage/kkm_last_timestamp [07:36:01]Write 4 bytes [07:36:01]NVStorageSaveData done [07:36:01]ExternCall_PrintAddStr [07:36:01]wPrintStart [07:36:01]Write to MH i2c: 01 00 00 B2 02 B4 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 [07:36:01]MH_I2C_Read... [07:36:01]OFD Sender: Processing packet 48825 [packets to send 12, broken 11] [07:36:01]ProducePacketName [07:36:01]name=ofd_packets/00048825 [07:36:01]OFD Sender: To server: pG, [07:36:01]CommunicateWithHost lk.salyk.kg:30040 [07:36:01]ConnectInit lk.salyk.kg [07:36:01]Read from MH i2c: 01 07 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [07:36:01]RasterBufferAndPrint [07:36:01]line Счет N : (1)215921 [07:36:01]line ИНН: 02508201610067 [07:36:01]line Контрольно-Кассовый Чек [07:36:01]line ПРОДАЖА [07:36:01]line ТРК (МРК, ГНК) : 12 [07:36:01]line Товар: 2710124130 [07:36:01]line Аи-92-К-5 [07:36:01]line 16.590 * 60.30 [07:36:01]line = 1000.38 [07:36:01]line НДС 12% НСП 1% [07:36:01]line > о реализуемом товаре [07:36:01]line ОКРУГЛЕНИЕ: -0.38 [07:36:01]line ИТОГО: 1000.00 [07:36:01]line Внесено: 1000.00 [07:36:01]line СДАЧА: 0.00 [07:36:01]line НСП 1% : 8.85 [07:36:01]line НДС 12% : 106.23 [07:36:01]line Наличными: 1000.00 [07:36:01]line Безнал.: 0.00 [07:36:01]line Место: АЗС № 102 "Партнер Нефть" [07:36:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [07:36:01]line СНО: Общий режим [07:36:01]line Чек 5 27.01.2024 07:36 [07:36:01]line Смена: 243 ФФД: 1.0 [07:36:01]line ЗНМ: 0300000040 [07:36:01]line РНМ: 0000000000092723 [07:36:01]line Версия ККМ: 001 [07:36:01]line ФМ: 0000000000875060 [07:36:01]line ФД: 48825 [07:36:01]line ФПД: 1284951591188 [07:36:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T073602&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48825&fm=1284951591188&tin=02508201610067®Number=0000000000092723&sum=100000 [07:36:01]Connected sock=9 [07:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 76 73 07 01 0D D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 62 B2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 BE 00 00 35 04 06 00 01 2B 2D 15 49 14 69 4D 5D F9 20 34 B0 A7 [07:36:01]written 0, free lines is 4095 [07:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 2F 70 47 00 2B 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 35 30 36 30 10 04 04 00 B9 BE 00 00 F4 03 04 00 61 5E B4 65 B6 04 01 00 00 F8 95 8A 7E CF 14 9D C9 [07:36:02]CommunicateWithHost err = 0 [07:36:02]CheckOFDResponse [07:36:02]1017 (14) - 77093643461234 [07:36:02]1041 (16) - 0000000000875060 [07:36:02]1040 (4) - 48825 [07:36:02]1012 (4) - 27.01.2024 01:37 [07:36:02]1206 (1) - 0 [07:36:02]OFD Sender: Remove packet 48825 [07:36:02]ProducePacketName [07:36:02]name=ofd_packets/00048825 [07:36:02]NVStorageDeleteData [07:36:02]Write to MH i2c: 01 00 00 DD 02 DF [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 07 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: 01 07 00 DD 02 00 00 00 00 00 F1 0C E3 [07:36:02]RasterBufferAndPrint [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]line [07:36:02]written 0, free lines is 3319 [07:36:02]MH_Cut [07:36:02]Write to MH i2c: D1 01 00 E4 02 01 B8 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 01 00 [07:36:02]MH_I2C_Read... [07:36:02]Read from MH i2c: D1 01 00 E4 02 00 B7 [07:36:02]Write to MH i2c: 01 00 00 E5 02 E7 [07:36:02]Write i2c OK [07:36:02]MH_I2C_Read... [07:36:02]OFD Sender: No OFD packet to send [07:36:02]*** Cut start [07:36:02]*** Partial cut [07:36:02]*** CUTSNS_PIN = 1 [07:36:03]*** CUTSNS_PIN = 0 [07:36:03]*** Brake cut motor [07:36:03]Read from MH i2c: 01 [07:36:03]MH_I2C_Read... [07:36:03]*** Stop cut motor [07:36:03]*** Cut end [07:36:03]Read from MH i2c: 01 07 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 FF 0F FC [07:36:03]process_action close_receipt done [07:36:03]requested_data is exist [07:36:03]produce_requested_data [07:36:03]requested_item fm.sn is exist - process it [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 11 00 00 [07:36:03]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 17 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AF [07:36:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:36:03]wFMCommunicate OK [07:36:03]requested_item fd.num is exist - process it [07:36:03]SAM_PROTO_GetFieldsCounters [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 13 00 00 [07:36:03]Write to MH i2c: E2 08 00 E7 02 80 13 00 00 00 00 00 00 65 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 62 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 62 00 E7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [07:36: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:03]wFMCommunicate OK [07:36:03]SAM_PROTO_GetFieldsCounters done [07:36:03]requested_item shift.num is exist - process it [07:36:03]requested_item shift.opened is exist - process it [07:36:03]req_shift_opened [07:36:03]FM_GetShiftState [07:36:03]SAM_PROTO_GetShiftState [07:36:03]wFMCommunicate request_size=4 [07:36:03]MH_SAM_APDU [07:36:03]CAPDU: 80 13 01 00 [07:36:03]Write to MH i2c: E2 08 00 E8 02 80 13 01 00 00 00 00 00 67 [07:36:03]Write i2c OK [07:36:03]MH_I2C_Read... [07:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:03]Read from MH i2c: E2 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 0E 00 [07:36:03]MH_I2C_Read... [07:36:03]Read from MH i2c: E2 0E 00 E8 02 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 FE [07:36:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:36:03]wFMCommunicate OK [07:36:03]SAM_PROTO_GetShiftState done [07:36:03]FM_GetShiftState done [07:36:03]req_shift_opened done [07:36:03]requested_item shift.open_date is exist - process it [07:36:03]req_shift_open_date [07:36:03]req_shift_open_date done [07:36:03]produce_requested_data done [07:36:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48825,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [07:36:03]process_action_free close_receipt [07:36:03]json_value_free [07:36:03]json_value_free done [07:36:03]process_json_proto returns [07:36:03]Send response to host [07:36:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48825,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [07:36:03]free response buf [07:36:03]execute_script done [07:36:03]execute_script returns [07:36:03]free content buf [07:36:03]Sock 10.Close socket [07:36:03]Sock 10.Thread stoped [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:53]accept exits with 7 [07:40:53]New connection [07:40:53]New thread 3066670436 created [07:40:53]Thread 3066813796 joined [07:40:53]Waiting for new connection... [07:40:53] Sock 7.Parse request [07:40:53]Sock 7.Check first char [07:40:53]Sock 7.First char is OK [07:40:53]request: POST /json_proto HTTP/1.0 [07:40:53]Method: POST [07:40:53]URL: /json_proto [07:40:53]Method is POST - this is cgi request [07:40:53]url: /json_proto [07:40:53]query_string will be loaded in cgi processing [07:40:53]execute_cgi json_proto POST (null) [07:40:53]execute_cgi path=json_proto method=POST [07:40:53]POST find Content-Length [07:40:53]Host: 172.17.56.67:8080 [07:40:53]Content-Length: 677 [07:40:53]Content-Type: application/json [07:40:53] [07:40:53]POST finish read [07:40:53]Found Content-Length = 677 [07:40:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.900, "sum" : 114.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 114.00, "total" : 114.00, "payments": [ { "type": 0, "sum" : 114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:53]execute_script... [07:40: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)215922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.900, "sum" : 114.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 114.00, "total" : 114.00, "payments": [ { "type": 0, "sum" : 114.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:53]POST & json_proto [07:40:53]process_json_proto [07:40:53]json parsed OK: [07:40:53]protocol is kg_v1.0 [07:40:53]action value=close_receipt [07:40:53]process_action close_receipt [07:40:53]cmd_close_receipt [07:40:53]MH_GetDate [07:40:53]Write to MH i2c: F0 00 00 E9 02 DA [07:40:53]Write i2c OK [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: F0 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: F0 09 00 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: F0 09 00 E9 02 00 87 B3 B4 65 26 5D 9E 65 BC [07:40:53]GetLastDocTimeStamp 1706340962 [07:40:53]current date 1706341255 [07:40:53]FM_GetShiftState [07:40:53]SAM_PROTO_GetShiftState [07:40:53]wFMCommunicate request_size=4 [07:40:53]MH_SAM_APDU [07:40:53]CAPDU: 80 13 01 00 [07:40:53]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [07:40:53]Write i2c OK [07:40:53]MH_I2C_Read... [07:40:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:53]Read from MH i2c: E2 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: E2 0E 00 [07:40:53]MH_I2C_Read... [07:40:53]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 00 [07:40:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:40:53]wFMCommunicate OK [07:40:53]SAM_PROTO_GetShiftState done [07:40:53]FM_GetShiftState done [07:40:53]opened in 1706313770 [07:40:53]opened+sec_in_day 1706400170 [07:40:53]quantity*price = 11457 [07:40:53]sum+1 = 11458 [07:40:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 114.00 Внесено: 114.00 СДАЧА: 0.00 НСП 1% : 1.01 НДС 12% : 12.17 Наличными: 114.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 6 27.01.2024 07:40 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48826 ФПД: 201011585671173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074055&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48826&fm=201011585671173&tin=02508201610067®Number=0000000000092723&sum=11400 [07:40:54]StoreToDocumentArchive [07:40:54]shift 243 fd 48826 [07:40:54]save to /storage/0243/doc_00048826 [07:40:54]save last doc name /storage/0243/doc_00048826 to /storage/kkm_last_doc_name [07:40:54]save OK [07:40:54]Clear old archive folders... [07:40:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:54]tlvbuf is 01346120 [07:40:54]SAM_PROTO_ClearQueue [07:40:54]wFMCommunicate request_size=4 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 09 00 00 [07:40:54]Write to MH i2c: E2 08 00 F7 02 80 09 00 00 00 00 00 00 6B [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 F7 02 00 90 00 6D [07:40:54]RAPDU: 90 00 [07:40:54]wFMCommunicate OK [07:40:54]SAM_PROTO_ClearQueue done [07:40:54]KKMCreateOFDPacket [07:40:54]OFDProtocolAddRootSTLVToBuf [07:40:54]FM_MakeSignedData [07:40:54]FM_MakeSignedData [07:40:54]SAM_PROTO_SignData [07:40:54]wFMCommunicate request_size=4 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 0D 01 02 [07:40:54]Write to MH i2c: E2 08 00 F8 02 80 0D 01 02 00 00 00 00 73 [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 F8 02 00 90 00 6E [07:40:54]RAPDU: 90 00 [07:40:54]wFMCommunicate OK [07:40:54]wFMCommunicate request_size=255 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 87 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA BE 00 00 35 04 06 00 B6 [07:40:54]Write to MH i2c: E2 02 01 F9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 87 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA BE 00 00 35 04 06 00 B6 00 00 86 [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [07:40:54]RAPDU: 90 00 [07:40:54]wFMCommunicate OK [07:40:54]wFMCommunicate request_size=10 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 0D 02 02 05 D1 A8 28 E0 05 [07:40:54]Write to MH i2c: E2 0D 00 FA 02 80 0D 02 02 05 00 D1 A8 28 E0 05 00 00 06 [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [07:40:54]RAPDU: 90 00 [07:40:54]wFMCommunicate OK [07:40:54]wFMCommunicate request_size=4 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 0D 03 02 [07:40:54]Write to MH i2c: E2 08 00 FB 02 80 0D 03 02 00 00 00 00 78 [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 0B 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 0B 00 FB 02 00 A1 1A 2A D1 62 1B 16 07 90 00 C9 [07:40:54]RAPDU: A1 1A 2A D1 62 1B 16 07 90 00 [07:40:54]wFMCommunicate OK [07:40:54]SAM_PROTO_SignData done [07:40:54]FM_MakeSignedData done [07:40:54]CreateOFDProtocolMessage [07:40:54]wFMCommunicate request_size=4 [07:40:54]MH_SAM_APDU [07:40:54]CAPDU: 80 11 00 00 [07:40:54]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:54]Read from MH i2c: E2 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 17 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [07:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:40:54]wFMCommunicate OK [07:40:54]CreateOFDProtocolMessage done [07:40:54]OFDSenderStorePacket 48826 [07:40:54]StoreOFDPacket docnum=48826 [07:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 18 CF 07 01 6C 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 6C 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 87 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA BE 00 00 35 04 06 00 B6 D1 A8 28 E0 05 A1 1A 2A D1 62 1B 16 07 [07:40:54]CheckFolder [07:40:54]dirname=/storage/ofd_packets [07:40:54]CheckFolder done [07:40:54]ProducePacketName [07:40:54]name=ofd_packets/00048826 [07:40:54]NVStorageSaveData ofd_packets/00048826 [07:40:54]File name is /storage/ofd_packets/00048826 [07:40:54]Write 301 bytes [07:40:54]NVStorageSaveData done [07:40:54]OFDSenderStorePacket done [07:40:54]KKMCreateOFDPacket done [07:40:54]NVStorageSaveData kkm_last_timestamp [07:40:54]File name is /storage/kkm_last_timestamp [07:40:54]Write 4 bytes [07:40:54]NVStorageSaveData done [07:40:54]ExternCall_PrintAddStr [07:40:54]wPrintStart [07:40:54]Write to MH i2c: 01 00 00 FD 02 FF [07:40:54]Write i2c OK [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: 01 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: 01 07 00 [07:40:54]MH_I2C_Read... [07:40:54]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 FF 0F 14 [07:40:54]RasterBufferAndPrint [07:40:54]line Счет N : (1)215922 [07:40:54]line ИНН: 02508201610067 [07:40:54]line Контрольно-Кассовый Чек [07:40:54]line ПРОДАЖА [07:40:54]line ТРК (МРК, ГНК) : 22 [07:40:54]line Товар: 2710124130 [07:40:54]line Аи-92-К-5 [07:40:54]line 1.900 * 60.30 [07:40:54]line = 114.57 [07:40:54]line НДС 12% НСП 1% [07:40:54]line > о реализуемом товаре [07:40:54]line ОКРУГЛЕНИЕ: -0.57 [07:40:54]line ИТОГО: 114.00 [07:40:54]line Внесено: 114.00 [07:40:54]line СДАЧА: 0.00 [07:40:54]line НСП 1% : 1.01 [07:40:54]line НДС 12% : 12.17 [07:40:54]line Наличными: 114.00 [07:40:54]line Безнал.: 0.00 [07:40:54]line Место: АЗС № 102 "Партнер Нефть" [07:40:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [07:40:54]line СНО: Общий режим [07:40:54]line Чек 6 27.01.2024 07:40 [07:40:54]line Смена: 243 ФФД: 1.0 [07:40:54]line ЗНМ: 0300000040 [07:40:54]line РНМ: 0000000000092723 [07:40:54]line Версия ККМ: 001 [07:40:54]line ФМ: 0000000000875060 [07:40:54]line ФД: 48826 [07:40:54]line ФПД: 201011585671173 [07:40:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074055&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48826&fm=201011585671173&tin=02508201610067®Number=0000000000092723&sum=11400 [07:40:55]OFD Sender: Processing packet 48826 [packets to send 12, broken 11] [07:40:55]ProducePacketName [07:40:55]name=ofd_packets/00048826 [07:40:55]OFD Sender: To server: pG, [07:40:55]CommunicateWithHost lk.salyk.kg:30040 [07:40:55]ConnectInit lk.salyk.kg [07:40:55]written 0, free lines is 4095 [07:40:55]Connected sock=10 [07:40:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 18 CF 07 01 6C 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 6C 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 04 00 00 00 00 07 04 06 00 88 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 87 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA BE 00 00 35 04 06 00 B6 D1 A8 28 E0 05 A1 1A 2A D1 62 1B 16 07 [07:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F0 03 47 00 9A 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 35 30 36 30 10 04 04 00 BA BE 00 00 F4 03 04 00 86 5F B4 65 B6 04 01 00 00 ED A5 4B AC D6 88 4C EA [07:40:55]CommunicateWithHost err = 0 [07:40:55]CheckOFDResponse [07:40:55]1017 (14) - 77093643461234 [07:40:55]1041 (16) - 0000000000875060 [07:40:55]1040 (4) - 48826 [07:40:55]1012 (4) - 27.01.2024 01:42 [07:40:55]1206 (1) - 0 [07:40:55]OFD Sender: Remove packet 48826 [07:40:55]ProducePacketName [07:40:55]name=ofd_packets/00048826 [07:40:55]NVStorageDeleteData [07:40:55]Write to MH i2c: 01 00 00 28 03 2B [07:40:55]Write i2c OK [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: 01 [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: 01 07 00 [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: 01 07 00 28 03 00 00 00 00 00 E1 0C 1F [07:40:55]RasterBufferAndPrint [07:40:55]line [07:40:55]line [07:40:55]line [07:40:55]line [07:40:55]line [07:40:55]written 0, free lines is 3303 [07:40:55]MH_Cut [07:40:55]Write to MH i2c: D1 01 00 2F 03 01 04 [07:40:55]Write i2c OK [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: D1 [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: D1 01 00 [07:40:55]MH_I2C_Read... [07:40:55]Read from MH i2c: D1 01 00 2F 03 00 03 [07:40:55]Write to MH i2c: 01 00 00 30 03 33 [07:40:55]Write i2c OK [07:40:55]MH_I2C_Read... [07:40:55]OFD Sender: No OFD packet to send [07:40:56]*** Cut start [07:40:56]*** Partial cut [07:40:56]*** CUTSNS_PIN = 1 [07:40:56]*** CUTSNS_PIN = 0 [07:40:56]*** Brake cut motor [07:40:56]Read from MH i2c: 01 [07:40:56]MH_I2C_Read... [07:40:56]*** Stop cut motor [07:40:56]*** Cut end [07:40:56]Read from MH i2c: 01 07 00 [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: 01 07 00 30 03 00 00 00 00 00 FF 0F 48 [07:40:56]process_action close_receipt done [07:40:56]requested_data is exist [07:40:56]produce_requested_data [07:40:56]requested_item fm.sn is exist - process it [07:40:56]wFMCommunicate request_size=4 [07:40:56]MH_SAM_APDU [07:40:56]CAPDU: 80 11 00 00 [07:40:56]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [07:40:56]Write i2c OK [07:40:56]MH_I2C_Read... [07:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:56]Read from MH i2c: E2 [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: E2 17 00 [07:40:56]MH_I2C_Read... [07:40:56]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FB [07:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:40:56]wFMCommunicate OK [07:40:56]requested_item fd.num is exist - process it [07:40:56]SAM_PROTO_GetFieldsCounters [07:40:56]wFMCommunicate request_size=4 [07:40:56]MH_SAM_APDU [07:40:56]CAPDU: 80 13 00 00 [07:40:56]Write to MH i2c: E2 08 00 32 03 80 13 00 00 00 00 00 00 B1 [07:40:56]Write i2c OK [07:40:56]MH_I2C_Read... [07:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:57]Read from MH i2c: E2 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: E2 62 00 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: E2 62 00 32 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [07:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:57]wFMCommunicate OK [07:40:57]SAM_PROTO_GetFieldsCounters done [07:40:57]requested_item shift.num is exist - process it [07:40:57]requested_item shift.opened is exist - process it [07:40:57]req_shift_opened [07:40:57]FM_GetShiftState [07:40:57]SAM_PROTO_GetShiftState [07:40:57]wFMCommunicate request_size=4 [07:40:57]MH_SAM_APDU [07:40:57]CAPDU: 80 13 01 00 [07:40:57]Write to MH i2c: E2 08 00 33 03 80 13 01 00 00 00 00 00 B3 [07:40:57]Write i2c OK [07:40:57]MH_I2C_Read... [07:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:57]Read from MH i2c: E2 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: E2 0E 00 [07:40:57]MH_I2C_Read... [07:40:57]Read from MH i2c: E2 0E 00 33 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 4A [07:40:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:40:57]wFMCommunicate OK [07:40:57]SAM_PROTO_GetShiftState done [07:40:57]FM_GetShiftState done [07:40:57]req_shift_opened done [07:40:57]requested_item shift.open_date is exist - process it [07:40:57]req_shift_open_date [07:40:57]req_shift_open_date done [07:40:57]produce_requested_data done [07:40:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48826,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [07:40:57]process_action_free close_receipt [07:40:57]json_value_free [07:40:57]json_value_free done [07:40:57]process_json_proto returns [07:40:57]Send response to host [07:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48826,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [07:40:57]free response buf [07:40:57]execute_script done [07:40:57]execute_script returns [07:40:57]free content buf [07:40:57]Sock 7.Close socket [07:40:57]Sock 7.Thread stoped [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:34]accept exits with 9 [07:41:34]New connection [07:41:34]New thread 3066813796 created [07:41:34]Thread 3066670436 joined [07:41:34]Waiting for new connection... [07:41:34] Sock 9.Parse request [07:41:34]Sock 9.Check first char [07:41:34]Sock 9.First char is OK [07:41:34]request: POST /json_proto HTTP/1.0 [07:41:34]Method: POST [07:41:34]URL: /json_proto [07:41:34]Method is POST - this is cgi request [07:41:34]url: /json_proto [07:41:34]query_string will be loaded in cgi processing [07:41:34]execute_cgi json_proto POST (null) [07:41:34]execute_cgi path=json_proto method=POST [07:41:34]POST find Content-Length [07:41:34]Host: 172.17.56.67:8080 [07:41:34]Content-Length: 677 [07:41:34]Content-Type: application/json [07:41:34] [07:41:34]POST finish read [07:41:34]Found Content-Length = 677 [07:41:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [07:41:34]execute_script... [07: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)215923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [07:41:34]POST & json_proto [07:41:34]process_json_proto [07:41:34]json parsed OK: [07:41:34]protocol is kg_v1.0 [07:41:34]action value=close_receipt [07:41:34]process_action close_receipt [07:41:34]cmd_close_receipt [07:41:34]MH_GetDate [07:41:34]Write to MH i2c: F0 00 00 34 03 26 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: F0 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: F0 09 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: F0 09 00 34 03 00 B0 B3 B4 65 26 5D 9E 65 31 [07:41:34]GetLastDocTimeStamp 1706341255 [07:41:34]current date 1706341296 [07:41:34]FM_GetShiftState [07:41:34]SAM_PROTO_GetShiftState [07:41:34]wFMCommunicate request_size=4 [07:41:34]MH_SAM_APDU [07:41:34]CAPDU: 80 13 01 00 [07:41:34]Write to MH i2c: E2 08 00 35 03 80 13 01 00 00 00 00 00 B5 [07:41:34]Write i2c OK [07:41:34]MH_I2C_Read... [07:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:34]Read from MH i2c: E2 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 0E 00 [07:41:34]MH_I2C_Read... [07:41:34]Read from MH i2c: E2 0E 00 35 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 4C [07:41:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:41:34]wFMCommunicate OK [07:41:34]SAM_PROTO_GetShiftState done [07:41:34]FM_GetShiftState done [07:41:34]opened in 1706313770 [07:41:34]opened+sec_in_day 1706400170 [07:41:34]quantity*price = 10009 [07:41:34]sum+1 = 10011 [07:41:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.63 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 7 27.01.2024 07:41 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48827 ФПД: 4476742501739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074136&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48827&fm=4476742501739&tin=02508201610067®Number=0000000000092723&sum=10000 [07:41:35]StoreToDocumentArchive [07:41:35]shift 243 fd 48827 [07:41:35]save to /storage/0243/doc_00048827 [07:41:35]save last doc name /storage/0243/doc_00048827 to /storage/kkm_last_doc_name [07:41:35]save OK [07:41:35]Clear old archive folders... [07:41:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:35]tlvbuf is 01347A50 [07:41:35]SAM_PROTO_ClearQueue [07:41:35]wFMCommunicate request_size=4 [07:41:35]MH_SAM_APDU [07:41:35]CAPDU: 80 09 00 00 [07:41:35]Write to MH i2c: E2 08 00 42 03 80 09 00 00 00 00 00 00 B7 [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 42 03 00 90 00 B9 [07:41:35]RAPDU: 90 00 [07:41:35]wFMCommunicate OK [07:41:35]SAM_PROTO_ClearQueue done [07:41:35]KKMCreateOFDPacket [07:41:35]OFDProtocolAddRootSTLVToBuf [07:41:35]FM_MakeSignedData [07:41:35]FM_MakeSignedData [07:41:35]SAM_PROTO_SignData [07:41:35]wFMCommunicate request_size=4 [07:41:35]MH_SAM_APDU [07:41:35]CAPDU: 80 0D 01 02 [07:41:35]Write to MH i2c: E2 08 00 43 03 80 0D 01 02 00 00 00 00 BF [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:35]Read from MH i2c: E2 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 [07:41:35]MH_I2C_Read... [07:41:35]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [07:41:35]RAPDU: 90 00 [07:41:35]wFMCommunicate OK [07:41:35]wFMCommunicate request_size=255 [07:41:35]MH_SAM_APDU [07:41: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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 07 00 00 00 F4 03 04 00 B0 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB BE 00 00 35 04 06 00 04 [07:41:35]Write to MH i2c: E2 02 01 44 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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 07 00 00 00 F4 03 04 00 B0 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB BE 00 00 35 04 06 00 04 00 00 0E [07:41:35]Write i2c OK [07:41:35]MH_I2C_Read... [07:41:36]OFD Sender: No OFD packet to send [07:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:36]Read from MH i2c: E2 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 03 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [07:41:36]RAPDU: 90 00 [07:41:36]wFMCommunicate OK [07:41:36]wFMCommunicate request_size=10 [07:41:36]MH_SAM_APDU [07:41:36]CAPDU: 80 0D 02 02 05 12 52 A5 85 6B [07:41:36]Write to MH i2c: E2 0D 00 45 03 80 0D 02 02 05 00 12 52 A5 85 6B 00 00 C5 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:36]Read from MH i2c: E2 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 03 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [07:41:36]RAPDU: 90 00 [07:41:36]wFMCommunicate OK [07:41:36]wFMCommunicate request_size=4 [07:41:36]MH_SAM_APDU [07:41:36]CAPDU: 80 0D 03 02 [07:41:36]Write to MH i2c: E2 08 00 46 03 80 0D 03 02 00 00 00 00 C4 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:36]Read from MH i2c: E2 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 0B 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 0B 00 46 03 00 F6 91 CF 8E 9E 2F E1 52 90 00 A9 [07:41:36]RAPDU: F6 91 CF 8E 9E 2F E1 52 90 00 [07:41:36]wFMCommunicate OK [07:41:36]SAM_PROTO_SignData done [07:41:36]FM_MakeSignedData done [07:41:36]CreateOFDProtocolMessage [07:41:36]wFMCommunicate request_size=4 [07:41:36]MH_SAM_APDU [07:41:36]CAPDU: 80 11 00 00 [07:41:36]Write to MH i2c: E2 08 00 47 03 80 11 00 00 00 00 00 00 C4 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:36]Read from MH i2c: E2 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 17 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: E2 17 00 47 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 11 [07:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:41:36]wFMCommunicate OK [07:41:36]CreateOFDProtocolMessage done [07:41:36]OFDSenderStorePacket 48827 [07:41:36]StoreOFDPacket docnum=48827 [07:41:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 97 DA 07 01 1D E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 07 00 00 00 F4 03 04 00 B0 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB BE 00 00 35 04 06 00 04 12 52 A5 85 6B F6 91 CF 8E 9E 2F E1 52 [07:41:36]CheckFolder [07:41:36]dirname=/storage/ofd_packets [07:41:36]CheckFolder done [07:41:36]ProducePacketName [07:41:36]name=ofd_packets/00048827 [07:41:36]NVStorageSaveData ofd_packets/00048827 [07:41:36]File name is /storage/ofd_packets/00048827 [07:41:36]Write 301 bytes [07:41:36]NVStorageSaveData done [07:41:36]OFDSenderStorePacket done [07:41:36]KKMCreateOFDPacket done [07:41:36]NVStorageSaveData kkm_last_timestamp [07:41:36]File name is /storage/kkm_last_timestamp [07:41:36]Write 4 bytes [07:41:36]NVStorageSaveData done [07:41:36]ExternCall_PrintAddStr [07:41:36]wPrintStart [07:41:36]Write to MH i2c: 01 00 00 48 03 4B [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 FF 0F 60 [07:41:36]RasterBufferAndPrint [07:41:36]line Счет N : (1)215923 [07:41:36]line ИНН: 02508201610067 [07:41:36]line Контрольно-Кассовый Чек [07:41:36]line ПРОДАЖА [07:41:36]line ТРК (МРК, ГНК) : 22 [07:41:36]line Товар: 2710124130 [07:41:36]line Аи-92-К-5 [07:41:36]line 1.660 * 60.30 [07:41:36]line = 100.10 [07:41:36]line НДС 12% НСП 1% [07:41:36]line > о реализуемом товаре [07:41:36]line ОКРУГЛЕНИЕ: -0.10 [07:41:36]line ИТОГО: 100.00 [07:41:36]line Внесено: 100.00 [07:41:36]line СДАЧА: 0.00 [07:41:36]line НСП 1% : 0.89 [07:41:36]line НДС 12% : 10.63 [07:41:36]line Наличными: 100.00 [07:41:36]line Безнал.: 0.00 [07:41:36]line Место: АЗС № 102 "Партнер Нефть" [07:41:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [07:41:36]line СНО: Общий режим [07:41:36]line Чек 7 27.01.2024 07:41 [07:41:36]line Смена: 243 ФФД: 1.0 [07:41:36]line ЗНМ: 0300000040 [07:41:36]line РНМ: 0000000000092723 [07:41:36]line Версия ККМ: 001 [07:41:36]line ФМ: 0000000000875060 [07:41:36]line ФД: 48827 [07:41:36]line ФПД: 4476742501739 [07:41:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074136&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48827&fm=4476742501739&tin=02508201610067®Number=0000000000092723&sum=10000 [07:41:36]OFD Sender: Processing packet 48827 [packets to send 12, broken 11] [07:41:36]ProducePacketName [07:41:36]name=ofd_packets/00048827 [07:41:36]OFD Sender: To server: pG, [07:41:36]CommunicateWithHost lk.salyk.kg:30040 [07:41:36]ConnectInit lk.salyk.kg [07:41:36]written 0, free lines is 4095 [07:41:36]Connected sock=10 [07: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 35 30 36 30 0F 01 00 00 97 DA 07 01 1D E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 07 00 00 00 F4 03 04 00 B0 B3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB BE 00 00 35 04 06 00 04 12 52 A5 85 6B F6 91 CF 8E 9E 2F E1 52 [07:41:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 79 8F 47 00 D6 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB BE 00 00 F4 03 04 00 AF 5F B4 65 B6 04 01 00 00 AF 4A 70 34 A0 E8 37 1C [07:41:36]CommunicateWithHost err = 0 [07:41:36]CheckOFDResponse [07:41:36]1017 (14) - 77093643461234 [07:41:36]1041 (16) - 0000000000875060 [07:41:36]1040 (4) - 48827 [07:41:36]1012 (4) - 27.01.2024 01:43 [07:41:36]1206 (1) - 0 [07:41:36]OFD Sender: Remove packet 48827 [07:41:36]ProducePacketName [07:41:36]name=ofd_packets/00048827 [07:41:36]NVStorageDeleteData [07:41:36]Write to MH i2c: 01 00 00 73 03 76 [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: 01 07 00 73 03 00 00 00 00 00 E4 0C 6D [07:41:36]RasterBufferAndPrint [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]line [07:41:36]written 0, free lines is 3306 [07:41:36]MH_Cut [07:41:36]Write to MH i2c: D1 01 00 7A 03 01 4F [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 01 00 [07:41:36]MH_I2C_Read... [07:41:36]Read from MH i2c: D1 01 00 7A 03 00 4E [07:41:36]Write to MH i2c: 01 00 00 7B 03 7E [07:41:36]Write i2c OK [07:41:36]MH_I2C_Read... [07:41:37]OFD Sender: No OFD packet to send [07:41:37]*** Cut start [07:41:37]*** Partial cut [07:41:37]*** CUTSNS_PIN = 1 [07:41:37]*** CUTSNS_PIN = 0 [07:41:37]*** Brake cut motor [07:41:38]Read from MH i2c: 01 [07:41:38]MH_I2C_Read... [07:41:38]*** Stop cut motor [07:41:38]*** Cut end [07:41:38]Read from MH i2c: 01 07 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: 01 07 00 7B 03 00 00 00 00 00 FF 0F 93 [07:41:38]process_action close_receipt done [07:41:38]requested_data is exist [07:41:38]produce_requested_data [07:41:38]requested_item fm.sn is exist - process it [07:41:38]wFMCommunicate request_size=4 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 11 00 00 [07:41:38]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 46 [07:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:41:38]wFMCommunicate OK [07:41:38]requested_item fd.num is exist - process it [07:41:38]SAM_PROTO_GetFieldsCounters [07:41:38]wFMCommunicate request_size=4 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 13 00 00 [07:41:38]Write to MH i2c: E2 08 00 7D 03 80 13 00 00 00 00 00 00 FC [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 62 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 62 00 7D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [07:41:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:38]wFMCommunicate OK [07:41:38]SAM_PROTO_GetFieldsCounters done [07:41:38]requested_item shift.num is exist - process it [07:41:38]requested_item shift.opened is exist - process it [07:41:38]req_shift_opened [07:41:38]FM_GetShiftState [07:41:38]SAM_PROTO_GetShiftState [07:41:38]wFMCommunicate request_size=4 [07:41:38]MH_SAM_APDU [07:41:38]CAPDU: 80 13 01 00 [07:41:38]Write to MH i2c: E2 08 00 7E 03 80 13 01 00 00 00 00 00 FE [07:41:38]Write i2c OK [07:41:38]MH_I2C_Read... [07:41:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:38]Read from MH i2c: E2 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 0E 00 [07:41:38]MH_I2C_Read... [07:41:38]Read from MH i2c: E2 0E 00 7E 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 95 [07:41:38]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:41:38]wFMCommunicate OK [07:41:38]SAM_PROTO_GetShiftState done [07:41:38]FM_GetShiftState done [07:41:38]req_shift_opened done [07:41:38]requested_item shift.open_date is exist - process it [07:41:38]req_shift_open_date [07:41:38]req_shift_open_date done [07:41:38]produce_requested_data done [07:41:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48827,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [07:41:38]process_action_free close_receipt [07:41:38]json_value_free [07:41:38]json_value_free done [07:41:38]process_json_proto returns [07:41:38]Send response to host [07:41:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48827,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [07:41:38]free response buf [07:41:38]execute_script done [07:41:38]execute_script returns [07:41:38]free content buf [07:41:38]Sock 9.Close socket [07:41:38]Sock 9.Thread stoped [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:57]OFD Sender: No OFD packet to send [07:43:02]OFD Sender: No OFD packet to send [07:43:07]OFD Sender: No OFD packet to send [07:43:12]OFD Sender: No OFD packet to send [07:43:17]OFD Sender: No OFD packet to send [07:43:22]OFD Sender: No OFD packet to send [07:43:27]OFD Sender: No OFD packet to send [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]OFD Sender: No OFD packet to send [07:45:02]OFD Sender: No OFD packet to send [07:45:07]OFD Sender: No OFD packet to send [07:45:12]OFD Sender: No OFD packet to send [07:45:17]OFD Sender: No OFD packet to send [07:45:22]OFD Sender: No OFD packet to send [07:45:27]OFD Sender: No OFD packet to send [07:45:32]OFD Sender: No OFD packet to send [07:45:37]OFD Sender: No OFD packet to send [07:45:42]OFD Sender: No OFD packet to send [07:45:44]accept exits with 7 [07:45:44]New connection [07:45:44]New thread 3066670436 created [07:45:44]Thread 3066813796 joined [07:45:44]Waiting for new connection... [07:45:44] Sock 7.Parse request [07:45:44]Sock 7.Check first char [07:45:44]Sock 7.First char is OK [07:45:44]request: POST /json_proto HTTP/1.0 [07:45:44]Method: POST [07:45:44]URL: /json_proto [07:45:44]Method is POST - this is cgi request [07:45:44]url: /json_proto [07:45:44]query_string will be loaded in cgi processing [07:45:44]execute_cgi json_proto POST (null) [07:45:44]execute_cgi path=json_proto method=POST [07:45:44]POST find Content-Length [07:45:44]Host: 172.17.56.67:8080 [07:45:44]Content-Length: 677 [07:45:44]Content-Type: application/json [07:45:44] [07:45:44]POST finish read [07:45:44]Found Content-Length = 677 [07:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]execute_script... [07:45:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:45:44]POST & json_proto [07:45:44]process_json_proto [07:45:44]json parsed OK: [07:45:44]protocol is kg_v1.0 [07:45:44]action value=close_receipt [07:45:44]process_action close_receipt [07:45:44]cmd_close_receipt [07:45:44]MH_GetDate [07:45:44]Write to MH i2c: F0 00 00 7F 03 71 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: F0 09 00 7F 03 00 AA B4 B4 65 26 5D 9E 65 77 [07:45:44]GetLastDocTimeStamp 1706341296 [07:45:44]current date 1706341546 [07:45:44]FM_GetShiftState [07:45:44]SAM_PROTO_GetShiftState [07:45:44]wFMCommunicate request_size=4 [07:45:44]MH_SAM_APDU [07:45:44]CAPDU: 80 13 01 00 [07:45:44]Write to MH i2c: E2 08 00 80 03 80 13 01 00 00 00 00 00 00 [07:45:44]Write i2c OK [07:45:44]MH_I2C_Read... [07:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:44]Read from MH i2c: E2 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 [07:45:44]MH_I2C_Read... [07:45:44]Read from MH i2c: E2 0E 00 80 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 97 [07:45:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:45:44]wFMCommunicate OK [07:45:44]SAM_PROTO_GetShiftState done [07:45:44]FM_GetShiftState done [07:45:44]opened in 1706313770 [07:45:44]opened+sec_in_day 1706400170 [07:45:44]quantity*price = 40039 [07:45:44]sum+1 = 40040 [07:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 8 27.01.2024 07:45 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48828 ФПД: 176651523665156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074546&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48828&fm=176651523665156&tin=02508201610067®Number=0000000000092723&sum=40000 [07:45:45]StoreToDocumentArchive [07:45:45]shift 243 fd 48828 [07:45:45]save to /storage/0243/doc_00048828 [07:45:45]save last doc name /storage/0243/doc_00048828 to /storage/kkm_last_doc_name [07:45:45]save OK [07:45:45]Clear old archive folders... [07:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:45:45]tlvbuf is 0134DB60 [07:45:45]SAM_PROTO_ClearQueue [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 09 00 00 [07:45:45]Write to MH i2c: E2 08 00 8D 03 80 09 00 00 00 00 00 00 02 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 8D 03 00 90 00 04 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_ClearQueue done [07:45:45]KKMCreateOFDPacket [07:45:45]OFDProtocolAddRootSTLVToBuf [07:45:45]FM_MakeSignedData [07:45:45]FM_MakeSignedData [07:45:45]SAM_PROTO_SignData [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 01 02 [07:45:45]Write to MH i2c: E2 08 00 8E 03 80 0D 01 02 00 00 00 00 0A [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=255 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AA B4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC BE 00 00 35 04 06 00 A0 [07:45:45]Write to MH i2c: E2 02 01 8F 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AA B4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC BE 00 00 35 04 06 00 A0 00 00 10 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=10 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 02 02 05 A9 E3 51 2D 04 [07:45:45]Write to MH i2c: E2 0D 00 90 03 80 0D 02 02 05 00 A9 E3 51 2D 04 00 00 25 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [07:45:45]RAPDU: 90 00 [07:45:45]wFMCommunicate OK [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 0D 03 02 [07:45:45]Write to MH i2c: E2 08 00 91 03 80 0D 03 02 00 00 00 00 0F [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0B 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 0B 00 91 03 00 6A F8 E4 BC 6A D6 68 3D 90 00 F7 [07:45:45]RAPDU: 6A F8 E4 BC 6A D6 68 3D 90 00 [07:45:45]wFMCommunicate OK [07:45:45]SAM_PROTO_SignData done [07:45:45]FM_MakeSignedData done [07:45:45]CreateOFDProtocolMessage [07:45:45]wFMCommunicate request_size=4 [07:45:45]MH_SAM_APDU [07:45:45]CAPDU: 80 11 00 00 [07:45:45]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:45]Read from MH i2c: E2 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 17 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5C [07:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:45:45]wFMCommunicate OK [07:45:45]CreateOFDProtocolMessage done [07:45:45]OFDSenderStorePacket 48828 [07:45:45]StoreOFDPacket docnum=48828 [07:45:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C3 DB 07 01 CB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AA B4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC BE 00 00 35 04 06 00 A0 A9 E3 51 2D 04 6A F8 E4 BC 6A D6 68 3D [07:45:45]CheckFolder [07:45:45]dirname=/storage/ofd_packets [07:45:45]CheckFolder done [07:45:45]ProducePacketName [07:45:45]name=ofd_packets/00048828 [07:45:45]NVStorageSaveData ofd_packets/00048828 [07:45:45]File name is /storage/ofd_packets/00048828 [07:45:45]Write 301 bytes [07:45:45]NVStorageSaveData done [07:45:45]OFDSenderStorePacket done [07:45:45]KKMCreateOFDPacket done [07:45:45]NVStorageSaveData kkm_last_timestamp [07:45:45]File name is /storage/kkm_last_timestamp [07:45:45]Write 4 bytes [07:45:45]NVStorageSaveData done [07:45:45]ExternCall_PrintAddStr [07:45:45]wPrintStart [07:45:45]Write to MH i2c: 01 00 00 93 03 96 [07:45:45]Write i2c OK [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 07 00 [07:45:45]MH_I2C_Read... [07:45:45]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [07:45:45]RasterBufferAndPrint [07:45:45]line Счет N : (1)215924 [07:45:45]line ИНН: 02508201610067 [07:45:45]line Контрольно-Кассовый Чек [07:45:45]line ПРОДАЖА [07:45:45]line ТРК (МРК, ГНК) : 22 [07:45:45]line Товар: 2710124130 [07:45:45]line Аи-92-К-5 [07:45:45]line 6.640 * 60.30 [07:45:45]line = 400.39 [07:45:45]line НДС 12% НСП 1% [07:45:45]line > о реализуемом товаре [07:45:45]line ОКРУГЛЕНИЕ: -0.39 [07:45:45]line ИТОГО: 400.00 [07:45:45]line Внесено: 400.00 [07:45:45]line СДАЧА: 0.00 [07:45:45]line НСП 1% : 3.54 [07:45:45]line НДС 12% : 42.52 [07:45:45]line Наличными: 400.00 [07:45:45]line Безнал.: 0.00 [07:45:45]line Место: АЗС № 102 "Партнер Нефть" [07:45:45]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [07:45:45]line СНО: Общий режим [07:45:45]line Чек 8 27.01.2024 07:45 [07:45:45]line Смена: 243 ФФД: 1.0 [07:45:45]line ЗНМ: 0300000040 [07:45:45]line РНМ: 0000000000092723 [07:45:45]line Версия ККМ: 001 [07:45:45]line ФМ: 0000000000875060 [07:45:45]line ФД: 48828 [07:45:45]line ФПД: 176651523665156 [07:45:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T074546&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48828&fm=176651523665156&tin=02508201610067®Number=0000000000092723&sum=40000 [07:45:46]written 0, free lines is 4095 [07:45:46]OFD Sender: Processing packet 48828 [packets to send 12, broken 11] [07:45:46]ProducePacketName [07:45:46]name=ofd_packets/00048828 [07:45:46]OFD Sender: To server: pG, [07:45:46]CommunicateWithHost lk.salyk.kg:30040 [07:45:46]ConnectInit lk.salyk.kg [07:45:46]Write to MH i2c: 01 00 00 BE 03 C1 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: 01 07 00 BE 03 00 00 00 00 00 E7 0C BB [07:45:46]RasterBufferAndPrint [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]line [07:45:46]written 0, free lines is 3309 [07:45:46]MH_Cut [07:45:46]Write to MH i2c: D1 01 00 C5 03 01 9A [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 01 00 [07:45:46]MH_I2C_Read... [07:45:46]Read from MH i2c: D1 01 00 C5 03 00 99 [07:45:46]Write to MH i2c: 01 00 00 C6 03 C9 [07:45:46]Write i2c OK [07:45:46]MH_I2C_Read... [07:45:47]*** Cut start [07:45:47]*** Partial cut [07:45:47]*** CUTSNS_PIN = 1 [07:45:47]*** CUTSNS_PIN = 0 [07:45:47]*** Brake cut motor [07:45:47]Read from MH i2c: 01 [07:45:47]MH_I2C_Read... [07:45:47]*** Stop cut motor [07:45:47]*** Cut end [07:45:47]Read from MH i2c: 01 07 00 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [07:45:47]process_action close_receipt done [07:45:47]requested_data is exist [07:45:47]produce_requested_data [07:45:47]requested_item fm.sn is exist - process it [07:45:47]wFMCommunicate request_size=4 [07:45:47]MH_SAM_APDU [07:45:47]CAPDU: 80 11 00 00 [07:45:47]Write to MH i2c: E2 08 00 C7 03 80 11 00 00 00 00 00 00 44 [07:45:47]Write i2c OK [07:45:47]MH_I2C_Read... [07:45:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:45:47]Read from MH i2c: E2 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: E2 17 00 [07:45:47]MH_I2C_Read... [07:45:47]Read from MH i2c: E2 17 00 C7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 91 [07:45:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [07:45:47]wFMCommunicate OK [07:45:47]requested_item fd.num is exist - process it [07:45:47]SAM_PROTO_GetFieldsCounters [07:45:47]wFMCommunicate request_size=4 [07:45:47]MH_SAM_APDU [07:45:47]CAPDU: 80 13 00 00 [07:45:47]Write to MH i2c: E2 08 00 C8 03 80 13 00 00 00 00 00 00 47 [07:45:47]Write i2c OK [07:45:47]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 62 00 C8 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BC BE 00 00 0E 04 04 00 F3 00 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 E5 [07:45: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BC BE 00 00 0E 04 04 00 F3 00 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 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetFieldsCounters done [07:45:48]requested_item shift.num is exist - process it [07:45:48]requested_item shift.opened is exist - process it [07:45:48]req_shift_opened [07:45:48]FM_GetShiftState [07:45:48]SAM_PROTO_GetShiftState [07:45:48]wFMCommunicate request_size=4 [07:45:48]MH_SAM_APDU [07:45:48]CAPDU: 80 13 01 00 [07:45:48]Write to MH i2c: E2 08 00 C9 03 80 13 01 00 00 00 00 00 49 [07:45:48]Write i2c OK [07:45:48]MH_I2C_Read... [07:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:45:48]Read from MH i2c: E2 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 [07:45:48]MH_I2C_Read... [07:45:48]Read from MH i2c: E2 0E 00 C9 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E0 [07:45:48]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [07:45:48]wFMCommunicate OK [07:45:48]SAM_PROTO_GetShiftState done [07:45:48]FM_GetShiftState done [07:45:48]req_shift_opened done [07:45:48]requested_item shift.open_date is exist - process it [07:45:48]req_shift_open_date [07:45:48]req_shift_open_date done [07:45:48]produce_requested_data done [07:45:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48828,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [07:45:48]process_action_free close_receipt [07:45:48]json_value_free [07:45:48]json_value_free done [07:45:48]process_json_proto returns [07:45:48]Send response to host [07:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48828,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [07:45:48]free response buf [07:45:48]execute_script done [07:45:48]execute_script returns [07:45:48]free content buf [07:45:48]Sock 7.Close socket [07:45:48]Sock 7.Thread stoped [07:47:56]ConnectInit Can't connect to host [07:47:56]CommunicateWithHost connect error [07:47:56]CommunicateWithHost err = -1 [07:47:56]OFD Sender: Server communicate error [07:48:01]OFD Sender: Processing packet 48828 [packets to send 12, broken 11] [07:48:01]ProducePacketName [07:48:01]name=ofd_packets/00048828 [07:48:01]OFD Sender: To server: pG, [07:48:01]CommunicateWithHost lk.salyk.kg:30040 [07:48:01]ConnectInit lk.salyk.kg [07:48:01]Connected sock=7 [07:48:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C3 DB 07 01 CB 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AA B4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC BE 00 00 35 04 06 00 A0 A9 E3 51 2D 04 6A F8 E4 BC 6A D6 68 3D [07:48:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 32 CB 47 00 A7 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 35 30 36 30 10 04 04 00 BC BE 00 00 F4 03 04 00 30 61 B4 65 B6 04 01 00 00 65 A9 36 79 5C 12 C8 82 [07:48:01]CommunicateWithHost err = 0 [07:48:01]CheckOFDResponse [07:48:01]1017 (14) - 77093643461234 [07:48:01]1041 (16) - 0000000000875060 [07:48:01]1040 (4) - 48828 [07:48:01]1012 (4) - 27.01.2024 01:49 [07:48:01]1206 (1) - 0 [07:48:01]OFD Sender: Remove packet 48828 [07:48:01]ProducePacketName [07:48:01]name=ofd_packets/00048828 [07:48:01]NVStorageDeleteData [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:32]OFD Sender: No OFD packet to send [07:52:37]OFD Sender: No OFD packet to send [07:52:42]OFD Sender: No OFD packet to send [07:52:47]OFD Sender: No OFD packet to send [07:52:52]OFD Sender: No OFD packet to send [07:52:57]OFD Sender: No OFD packet to send [07:53:02]OFD Sender: No OFD packet to send [07:53:07]OFD Sender: No OFD packet to send [07:53:12]OFD Sender: No OFD packet to send [07:53:17]OFD Sender: No OFD packet to send [07:53:22]OFD Sender: No OFD packet to send [07:53:27]OFD Sender: No OFD packet to send [07:53:32]OFD Sender: No OFD packet to send [07:53:37]OFD Sender: No OFD packet to send [07:53:42]OFD Sender: No OFD packet to send [07:53:47]OFD Sender: No OFD packet to send [07:53:52]OFD Sender: No OFD packet to send [07:53:57]OFD Sender: No OFD packet to send [07:54:02]OFD Sender: No OFD packet to send [07:54:07]OFD Sender: No OFD packet to send [07:54:12]OFD Sender: No OFD packet to send [07:54:17]OFD Sender: No OFD packet to send [07:54:22]OFD Sender: No OFD packet to send [07:54:27]OFD Sender: No OFD packet to send [07:54:32]OFD Sender: No OFD packet to send [07:54:37]OFD Sender: No OFD packet to send [07:54:42]OFD Sender: No OFD packet to send [07:54:47]OFD Sender: No OFD packet to send [07:54:52]OFD Sender: No OFD packet to send [07:54:57]OFD Sender: No OFD packet to send [07:55:02]OFD Sender: No OFD packet to send [07:55:07]OFD Sender: No OFD packet to send [07:55:12]OFD Sender: No OFD packet to send [07:55:17]OFD Sender: No OFD packet to send [07:55:22]OFD Sender: No OFD packet to send [07:55:27]OFD Sender: No OFD packet to send [07:55:32]OFD Sender: No OFD packet to send [07:55:37]OFD Sender: No OFD packet to send [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:19]accept exits with 9 [08:06:19]New connection [08:06:19]New thread 3066813796 created [08:06:19]Thread 3066670436 joined [08:06:19]Waiting for new connection... [08:06:19] Sock 9.Parse request [08:06:19]Sock 9.Check first char [08:06:19]Sock 9.First char is OK [08:06:19]request: POST /json_proto HTTP/1.0 [08:06:19]Method: POST [08:06:19]URL: /json_proto [08:06:19]Method is POST - this is cgi request [08:06:19]url: /json_proto [08:06:19]query_string will be loaded in cgi processing [08:06:19]execute_cgi json_proto POST (null) [08:06:19]execute_cgi path=json_proto method=POST [08:06:19]POST find Content-Length [08:06:19]Host: 172.17.56.67:8080 [08:06:19]Content-Length: 677 [08:06:19]Content-Type: application/json [08:06:19] [08:06:19]POST finish read [08:06:19]Found Content-Length = 677 [08:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:19]execute_script... [08:06: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)215925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:19]POST & json_proto [08:06:19]process_json_proto [08:06:19]json parsed OK: [08:06:19]protocol is kg_v1.0 [08:06:19]action value=close_receipt [08:06:19]process_action close_receipt [08:06:19]cmd_close_receipt [08:06:19]MH_GetDate [08:06:19]Write to MH i2c: F0 00 00 CA 03 BC [08:06:19]Write i2c OK [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: F0 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: F0 09 00 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: F0 09 00 CA 03 00 7E B9 B4 65 26 5D 9E 65 9B [08:06:19]GetLastDocTimeStamp 1706341546 [08:06:19]current date 1706342782 [08:06:19]FM_GetShiftState [08:06:19]SAM_PROTO_GetShiftState [08:06:19]wFMCommunicate request_size=4 [08:06:19]MH_SAM_APDU [08:06:19]CAPDU: 80 13 01 00 [08:06:19]Write to MH i2c: E2 08 00 CB 03 80 13 01 00 00 00 00 00 4B [08:06:19]Write i2c OK [08:06:19]MH_I2C_Read... [08:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:19]Read from MH i2c: E2 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: E2 0E 00 [08:06:19]MH_I2C_Read... [08:06:19]Read from MH i2c: E2 0E 00 CB 03 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E2 [08:06:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:06:19]wFMCommunicate OK [08:06:19]SAM_PROTO_GetShiftState done [08:06:19]FM_GetShiftState done [08:06:19]opened in 1706313770 [08:06:19]opened+sec_in_day 1706400170 [08:06:19]quantity*price = 30029 [08:06:19]sum+1 = 30030 [08:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 9 27.01.2024 08:06 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48829 ФПД: 78038320073111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T080622&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48829&fm=78038320073111&tin=02508201610067®Number=0000000000092723&sum=30000 [08:06:21]StoreToDocumentArchive [08:06:21]shift 243 fd 48829 [08:06:21]save to /storage/0243/doc_00048829 [08:06:21]save last doc name /storage/0243/doc_00048829 to /storage/kkm_last_doc_name [08:06:21]save OK [08:06:21]Clear old archive folders... [08:06:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:21]tlvbuf is 0119B950 [08:06:21]SAM_PROTO_ClearQueue [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 09 00 00 [08:06:21]Write to MH i2c: E2 08 00 D8 03 80 09 00 00 00 00 00 00 4D [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 D8 03 00 90 00 4F [08:06:21]RAPDU: 90 00 [08:06:21]wFMCommunicate OK [08:06:21]SAM_PROTO_ClearQueue done [08:06:21]KKMCreateOFDPacket [08:06:21]OFDProtocolAddRootSTLVToBuf [08:06:21]FM_MakeSignedData [08:06:21]FM_MakeSignedData [08:06:21]SAM_PROTO_SignData [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 0D 01 02 [08:06:21]Write to MH i2c: E2 08 00 D9 03 80 0D 01 02 00 00 00 00 55 [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [08:06:21]RAPDU: 90 00 [08:06:21]wFMCommunicate OK [08:06:21]wFMCommunicate request_size=255 [08:06:21]MH_SAM_APDU [08:06: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7E B9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BE 00 00 35 04 06 00 46 [08:06:21]Write to MH i2c: E2 02 01 DA 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7E B9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BE 00 00 35 04 06 00 46 00 00 28 [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [08:06:21]RAPDU: 90 00 [08:06:21]wFMCommunicate OK [08:06:21]wFMCommunicate request_size=10 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 0D 02 02 05 F9 B6 58 C9 97 [08:06:21]Write to MH i2c: E2 0D 00 DB 03 80 0D 02 02 05 00 F9 B6 58 C9 97 00 00 C9 [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [08:06:21]RAPDU: 90 00 [08:06:21]wFMCommunicate OK [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 0D 03 02 [08:06:21]Write to MH i2c: E2 08 00 DC 03 80 0D 03 02 00 00 00 00 5A [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0B 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 0B 00 DC 03 00 83 13 60 98 7F 04 FE 9E 90 00 08 [08:06:21]RAPDU: 83 13 60 98 7F 04 FE 9E 90 00 [08:06:21]wFMCommunicate OK [08:06:21]SAM_PROTO_SignData done [08:06:21]FM_MakeSignedData done [08:06:21]CreateOFDProtocolMessage [08:06:21]wFMCommunicate request_size=4 [08:06:21]MH_SAM_APDU [08:06:21]CAPDU: 80 11 00 00 [08:06:21]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:21]Read from MH i2c: E2 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 17 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [08:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:06:21]wFMCommunicate OK [08:06:21]CreateOFDProtocolMessage done [08:06:21]OFDSenderStorePacket 48829 [08:06:21]StoreOFDPacket docnum=48829 [08:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 92 B0 07 01 39 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7E B9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BE 00 00 35 04 06 00 46 F9 B6 58 C9 97 83 13 60 98 7F 04 FE 9E [08:06:21]CheckFolder [08:06:21]dirname=/storage/ofd_packets [08:06:21]CheckFolder done [08:06:21]ProducePacketName [08:06:21]name=ofd_packets/00048829 [08:06:21]NVStorageSaveData ofd_packets/00048829 [08:06:21]File name is /storage/ofd_packets/00048829 [08:06:21]Write 301 bytes [08:06:21]NVStorageSaveData done [08:06:21]OFDSenderStorePacket done [08:06:21]KKMCreateOFDPacket done [08:06:21]NVStorageSaveData kkm_last_timestamp [08:06:21]File name is /storage/kkm_last_timestamp [08:06:21]Write 4 bytes [08:06:21]NVStorageSaveData done [08:06:21]ExternCall_PrintAddStr [08:06:21]wPrintStart [08:06:21]Write to MH i2c: 01 00 00 DE 03 E1 [08:06:21]Write i2c OK [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: 01 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: 01 07 00 [08:06:21]MH_I2C_Read... [08:06:21]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 FF 0F F6 [08:06:21]RasterBufferAndPrint [08:06:21]line Счет N : (1)215925 [08:06:21]line ИНН: 02508201610067 [08:06:21]line Контрольно-Кассовый Чек [08:06:21]line ПРОДАЖА [08:06:21]line ТРК (МРК, ГНК) : 12 [08:06:21]line Товар: 2710124130 [08:06:21]line Аи-92-К-5 [08:06:21]line 4.980 * 60.30 [08:06:21]line = 300.29 [08:06:21]line НДС 12% НСП 1% [08:06:21]line > о реализуемом товаре [08:06:21]line ОКРУГЛЕНИЕ: -0.29 [08:06:21]line ИТОГО: 300.00 [08:06:21]line Внесено: 300.00 [08:06:21]line СДАЧА: 0.00 [08:06:21]line НСП 1% : 2.66 [08:06:21]line НДС 12% : 31.89 [08:06:21]line Наличными: 300.00 [08:06:21]line Безнал.: 0.00 [08:06:21]line Место: АЗС № 102 "Партнер Нефть" [08:06:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:06:21]line СНО: Общий режим [08:06:21]line Чек 9 27.01.2024 08:06 [08:06:21]line Смена: 243 ФФД: 1.0 [08:06:21]line ЗНМ: 0300000040 [08:06:21]line РНМ: 0000000000092723 [08:06:21]line Версия ККМ: 001 [08:06:21]line ФМ: 0000000000875060 [08:06:21]line ФД: 48829 [08:06:21]line ФПД: 78038320073111 [08:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T080622&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48829&fm=78038320073111&tin=02508201610067®Number=0000000000092723&sum=30000 [08:06:21]OFD Sender: Processing packet 48829 [packets to send 12, broken 11] [08:06:21]ProducePacketName [08:06:21]name=ofd_packets/00048829 [08:06:21]OFD Sender: To server: pG, [08:06:21]CommunicateWithHost lk.salyk.kg:30040 [08:06:21]ConnectInit lk.salyk.kg [08:06:21]written 0, free lines is 4095 [08:06:21]Connected sock=10 [08:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 92 B0 07 01 39 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7E B9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BE 00 00 35 04 06 00 46 F9 B6 58 C9 97 83 13 60 98 7F 04 FE 9E [08:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 81 36 47 00 C3 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BE 00 00 F4 03 04 00 7D 65 B4 65 B6 04 01 00 00 F1 12 CE 83 32 35 62 D5 [08:06:22]CommunicateWithHost err = 0 [08:06:22]CheckOFDResponse [08:06:22]1017 (14) - 77093643461234 [08:06:22]1041 (16) - 0000000000875060 [08:06:22]1040 (4) - 48829 [08:06:22]1012 (4) - 27.01.2024 02:07 [08:06:22]1206 (1) - 0 [08:06:22]OFD Sender: Remove packet 48829 [08:06:22]ProducePacketName [08:06:22]name=ofd_packets/00048829 [08:06:22]NVStorageDeleteData [08:06:22]Write to MH i2c: 01 00 00 09 04 0D [08:06:22]Write i2c OK [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: 01 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: 01 07 00 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: 01 07 00 09 04 00 00 00 00 00 EC 0C 0C [08:06:22]RasterBufferAndPrint [08:06:22]line [08:06:22]line [08:06:22]line [08:06:22]line [08:06:22]line [08:06:22]written 0, free lines is 3314 [08:06:22]MH_Cut [08:06:22]Write to MH i2c: D1 01 00 10 04 01 E6 [08:06:22]Write i2c OK [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: D1 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: D1 01 00 [08:06:22]MH_I2C_Read... [08:06:22]Read from MH i2c: D1 01 00 10 04 00 E5 [08:06:22]Write to MH i2c: 01 00 00 11 04 15 [08:06:22]Write i2c OK [08:06:22]MH_I2C_Read... [08:06:22]OFD Sender: No OFD packet to send [08:06:23]*** Cut start [08:06:23]*** Partial cut [08:06:23]*** CUTSNS_PIN = 1 [08:06:23]*** CUTSNS_PIN = 0 [08:06:23]*** Brake cut motor [08:06:23]Read from MH i2c: 01 [08:06:23]MH_I2C_Read... [08:06:23]*** Stop cut motor [08:06:23]*** Cut end [08:06:23]Read from MH i2c: 01 07 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: 01 07 00 11 04 00 00 00 00 00 FF 0F 2A [08:06:23]process_action close_receipt done [08:06:23]requested_data is exist [08:06:23]produce_requested_data [08:06:23]requested_item fm.sn is exist - process it [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 11 00 00 [08:06:23]Write to MH i2c: E2 08 00 12 04 80 11 00 00 00 00 00 00 90 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 17 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 17 00 12 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DD [08:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:06:23]wFMCommunicate OK [08:06:23]requested_item fd.num is exist - process it [08:06:23]SAM_PROTO_GetFieldsCounters [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 13 00 00 [08:06:23]Write to MH i2c: E2 08 00 13 04 80 13 00 00 00 00 00 00 93 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 62 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 62 00 13 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BD BE 00 00 0E 04 04 00 F3 00 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 35 [08:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BD BE 00 00 0E 04 04 00 F3 00 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 [08:06:23]wFMCommunicate OK [08:06:23]SAM_PROTO_GetFieldsCounters done [08:06:23]requested_item shift.num is exist - process it [08:06:23]requested_item shift.opened is exist - process it [08:06:23]req_shift_opened [08:06:23]FM_GetShiftState [08:06:23]SAM_PROTO_GetShiftState [08:06:23]wFMCommunicate request_size=4 [08:06:23]MH_SAM_APDU [08:06:23]CAPDU: 80 13 01 00 [08:06:23]Write to MH i2c: E2 08 00 14 04 80 13 01 00 00 00 00 00 95 [08:06:23]Write i2c OK [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 [08:06:23]MH_I2C_Read... [08:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:23]Read from MH i2c: E2 0E 00 [08:06:23]MH_I2C_Read... [08:06:23]Read from MH i2c: E2 0E 00 14 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2C [08:06:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:06:23]wFMCommunicate OK [08:06:23]SAM_PROTO_GetShiftState done [08:06:23]FM_GetShiftState done [08:06:23]req_shift_opened done [08:06:23]requested_item shift.open_date is exist - process it [08:06:23]req_shift_open_date [08:06:23]req_shift_open_date done [08:06:23]produce_requested_data done [08:06:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48829,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:06:23]process_action_free close_receipt [08:06:23]json_value_free [08:06:23]json_value_free done [08:06:23]process_json_proto returns [08:06:23]Send response to host [08:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48829,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:06:23]free response buf [08:06:23]execute_script done [08:06:23]execute_script returns [08:06:23]free content buf [08:06:23]Sock 9.Close socket [08:06:23]Sock 9.Thread stoped [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]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:43]accept exits with 7 [08:22:43]New connection [08:22:43]New thread 3066670436 created [08:22:43]Thread 3066813796 joined [08:22:43]Waiting for new connection... [08:22:43] Sock 7.Parse request [08:22:43]Sock 7.Check first char [08:22:43]Sock 7.First char is OK [08:22:43]request: POST /json_proto HTTP/1.0 [08:22:43]Method: POST [08:22:43]URL: /json_proto [08:22:43]Method is POST - this is cgi request [08:22:43]url: /json_proto [08:22:43]query_string will be loaded in cgi processing [08:22:43]execute_cgi json_proto POST (null) [08:22:43]execute_cgi path=json_proto method=POST [08:22:43]POST find Content-Length [08:22:43]Host: 172.17.56.67:8080 [08:22:43]Content-Length: 682 [08:22:43]Content-Type: application/json [08:22:43] [08:22:43]POST finish read [08:22:43]Found Content-Length = 682 [08:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:43]execute_script... [08:22:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:43]POST & json_proto [08:22:43]process_json_proto [08:22:43]json parsed OK: [08:22:43]protocol is kg_v1.0 [08:22:43]action value=close_receipt [08:22:43]process_action close_receipt [08:22:43]cmd_close_receipt [08:22:43]MH_GetDate [08:22:43]Write to MH i2c: F0 00 00 15 04 08 [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: F0 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: F0 09 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: F0 09 00 15 04 00 56 BD B4 65 26 5D 9E 65 C3 [08:22:43]GetLastDocTimeStamp 1706342782 [08:22:43]current date 1706343766 [08:22:43]FM_GetShiftState [08:22:43]SAM_PROTO_GetShiftState [08:22:43]wFMCommunicate request_size=4 [08:22:43]MH_SAM_APDU [08:22:43]CAPDU: 80 13 01 00 [08:22:43]Write to MH i2c: E2 08 00 16 04 80 13 01 00 00 00 00 00 97 [08:22:43]Write i2c OK [08:22:43]MH_I2C_Read... [08:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:43]Read from MH i2c: E2 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 0E 00 [08:22:43]MH_I2C_Read... [08:22:43]Read from MH i2c: E2 0E 00 16 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2E [08:22:43]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:22:43]wFMCommunicate OK [08:22:43]SAM_PROTO_GetShiftState done [08:22:43]FM_GetShiftState done [08:22:43]opened in 1706313770 [08:22:43]opened+sec_in_day 1706400170 [08:22:43]quantity*price = 100037 [08:22:43]sum+1 = 100039 [08:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 10 27.01.2024 08:22 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48830 ФПД: 83634032053574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T082246&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48830&fm=83634032053574&tin=02508201610067®Number=0000000000092723&sum=100000 [08:22:44]StoreToDocumentArchive [08:22:44]shift 243 fd 48830 [08:22:44]save to /storage/0243/doc_00048830 [08:22:44]save last doc name /storage/0243/doc_00048830 to /storage/kkm_last_doc_name [08:22:44]save OK [08:22:44]Clear old archive folders... [08:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:44]tlvbuf is 01350560 [08:22:44]SAM_PROTO_ClearQueue [08:22:44]wFMCommunicate request_size=4 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 09 00 00 [08:22:44]Write to MH i2c: E2 08 00 23 04 80 09 00 00 00 00 00 00 99 [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:44]Read from MH i2c: E2 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 [08:22:44]MH_I2C_Read... [08:22:44]Read from MH i2c: E2 03 00 23 04 00 90 00 9B [08:22:44]RAPDU: 90 00 [08:22:44]wFMCommunicate OK [08:22:44]SAM_PROTO_ClearQueue done [08:22:44]KKMCreateOFDPacket [08:22:44]OFDProtocolAddRootSTLVToBuf [08:22:44]FM_MakeSignedData [08:22:44]FM_MakeSignedData [08:22:44]SAM_PROTO_SignData [08:22:44]wFMCommunicate request_size=4 [08:22:44]MH_SAM_APDU [08:22:44]CAPDU: 80 0D 01 02 [08:22:44]Write to MH i2c: E2 08 00 24 04 80 0D 01 02 00 00 00 00 A1 [08:22:44]Write i2c OK [08:22:44]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [08:22:45]RAPDU: 90 00 [08:22:45]wFMCommunicate OK [08:22:45]wFMCommunicate request_size=255 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 BD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BE 00 00 35 04 06 00 4C [08:22:45]Write to MH i2c: E2 02 01 25 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 BD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BE 00 00 35 04 06 00 4C 00 00 02 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [08:22:45]RAPDU: 90 00 [08:22:45]wFMCommunicate OK [08:22:45]wFMCommunicate request_size=10 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 0D 02 02 05 10 90 C5 8D 46 [08:22:45]Write to MH i2c: E2 0D 00 26 04 80 0D 02 02 05 00 10 90 C5 8D 46 00 00 E6 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [08:22:45]RAPDU: 90 00 [08:22:45]wFMCommunicate OK [08:22:45]wFMCommunicate request_size=4 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 0D 03 02 [08:22:45]Write to MH i2c: E2 08 00 27 04 80 0D 03 02 00 00 00 00 A6 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 0B 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 0B 00 27 04 00 BA B9 DE C6 BC 6D 88 E3 90 00 52 [08:22:45]RAPDU: BA B9 DE C6 BC 6D 88 E3 90 00 [08:22:45]wFMCommunicate OK [08:22:45]SAM_PROTO_SignData done [08:22:45]FM_MakeSignedData done [08:22:45]CreateOFDProtocolMessage [08:22:45]wFMCommunicate request_size=4 [08:22:45]MH_SAM_APDU [08:22:45]CAPDU: 80 11 00 00 [08:22:45]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:45]Read from MH i2c: E2 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: E2 17 00 [08:22:45]MH_I2C_Read... [08:22:45]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 35 30 36 30 90 00 F3 [08:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:22:45]wFMCommunicate OK [08:22:45]CreateOFDProtocolMessage done [08:22:45]OFDSenderStorePacket 48830 [08:22:45]StoreOFDPacket docnum=48830 [08:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DB 11 07 01 E3 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 BD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BE 00 00 35 04 06 00 4C 10 90 C5 8D 46 BA B9 DE C6 BC 6D 88 E3 [08:22:45]CheckFolder [08:22:45]dirname=/storage/ofd_packets [08:22:45]CheckFolder done [08:22:45]ProducePacketName [08:22:45]name=ofd_packets/00048830 [08:22:45]NVStorageSaveData ofd_packets/00048830 [08:22:45]File name is /storage/ofd_packets/00048830 [08:22:45]Write 301 bytes [08:22:45]NVStorageSaveData done [08:22:45]OFDSenderStorePacket done [08:22:45]KKMCreateOFDPacket done [08:22:45]NVStorageSaveData kkm_last_timestamp [08:22:45]File name is /storage/kkm_last_timestamp [08:22:45]Write 4 bytes [08:22:45]NVStorageSaveData done [08:22:45]ExternCall_PrintAddStr [08:22:45]wPrintStart [08:22:45]Write to MH i2c: 01 00 00 29 04 2D [08:22:45]OFD Sender: Processing packet 48830 [packets to send 12, broken 11] [08:22:45]ProducePacketName [08:22:45]name=ofd_packets/00048830 [08:22:45]OFD Sender: To server: pG, [08:22:45]CommunicateWithHost lk.salyk.kg:30040 [08:22:45]ConnectInit lk.salyk.kg [08:22:45]Write i2c OK [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 [08:22:45]MH_I2C_Read... [08:22:45]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 FF 0F 42 [08:22:45]RasterBufferAndPrint [08:22:45]line Счет N : (1)215926 [08:22:45]line ИНН: 02508201610067 [08:22:45]line Контрольно-Кассовый Чек [08:22:45]line ПРОДАЖА [08:22:45]line ТРК (МРК, ГНК) : 22 [08:22:45]line Товар: 2710124130 [08:22:45]line Аи-92-К-5 [08:22:45]line 16.590 * 60.30 [08:22:45]line = 1000.38 [08:22:45]line НДС 12% НСП 1% [08:22:45]line > о реализуемом товаре [08:22:45]line ОКРУГЛЕНИЕ: -0.38 [08:22:45]line ИТОГО: 1000.00 [08:22:45]line Внесено: 1000.00 [08:22:45]line СДАЧА: 0.00 [08:22:45]line НСП 1% : 8.85 [08:22:45]line НДС 12% : 106.23 [08:22:45]line Наличными: 1000.00 [08:22:45]line Безнал.: 0.00 [08:22:45]line Место: АЗС № 102 "Партнер Нефть" [08:22:45]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:22:45]line СНО: Общий режим [08:22:45]line Чек 10 27.01.2024 08:22 [08:22:45]line Смена: 243 ФФД: 1.0 [08:22:45]line ЗНМ: 0300000040 [08:22:45]line РНМ: 0000000000092723 [08:22:45]line Версия ККМ: 001 [08:22:45]line ФМ: 0000000000875060 [08:22:45]line ФД: 48830 [08:22:45]line ФПД: 83634032053574 [08:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T082246&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48830&fm=83634032053574&tin=02508201610067®Number=0000000000092723&sum=100000 [08:22:45]Connected sock=10 [08:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DB 11 07 01 E3 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 BD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BE 00 00 35 04 06 00 4C 10 90 C5 8D 46 BA B9 DE C6 BC 6D 88 E3 [08:22:45]written 0, free lines is 4095 [08:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A2 C8 47 00 8D 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BE 00 00 F4 03 04 00 55 69 B4 65 B6 04 01 00 00 10 CA 5C 2A CB 7C D8 5F [08:22:46]CommunicateWithHost err = 0 [08:22:46]CheckOFDResponse [08:22:46]1017 (14) - 77093643461234 [08:22:46]1041 (16) - 0000000000875060 [08:22:46]1040 (4) - 48830 [08:22:46]1012 (4) - 27.01.2024 02:24 [08:22:46]1206 (1) - 0 [08:22:46]OFD Sender: Remove packet 48830 [08:22:46]ProducePacketName [08:22:46]name=ofd_packets/00048830 [08:22:46]NVStorageDeleteData [08:22:46]Write to MH i2c: 01 00 00 54 04 58 [08:22:46]Write i2c OK [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: 01 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: 01 07 00 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: 01 07 00 54 04 00 00 00 00 00 F3 0C 5E [08:22:46]RasterBufferAndPrint [08:22:46]line [08:22:46]line [08:22:46]line [08:22:46]line [08:22:46]line [08:22:46]written 0, free lines is 3321 [08:22:46]MH_Cut [08:22:46]Write to MH i2c: D1 01 00 5B 04 01 31 [08:22:46]Write i2c OK [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: D1 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: D1 01 00 [08:22:46]MH_I2C_Read... [08:22:46]Read from MH i2c: D1 01 00 5B 04 00 30 [08:22:46]Write to MH i2c: 01 00 00 5C 04 60 [08:22:46]Write i2c OK [08:22:46]MH_I2C_Read... [08:22:46]OFD Sender: No OFD packet to send [08:22:46]*** Cut start [08:22:46]*** Partial cut [08:22:46]*** CUTSNS_PIN = 1 [08:22:47]*** CUTSNS_PIN = 0 [08:22:47]*** Brake cut motor [08:22:47]Read from MH i2c: 01 [08:22:47]MH_I2C_Read... [08:22:47]*** Stop cut motor [08:22:47]*** Cut end [08:22:47]Read from MH i2c: 01 07 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: 01 07 00 5C 04 00 00 00 00 00 FF 0F 75 [08:22:47]process_action close_receipt done [08:22:47]requested_data is exist [08:22:47]produce_requested_data [08:22:47]requested_item fm.sn is exist - process it [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 11 00 00 [08:22:47]Write to MH i2c: E2 08 00 5D 04 80 11 00 00 00 00 00 00 DB [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:47]Read from MH i2c: E2 17 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 17 00 5D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 28 [08:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:22:47]wFMCommunicate OK [08:22:47]requested_item fd.num is exist - process it [08:22:47]SAM_PROTO_GetFieldsCounters [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 13 00 00 [08:22:47]Write to MH i2c: E2 08 00 5E 04 80 13 00 00 00 00 00 00 DE [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 62 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 62 00 5E 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BE BE 00 00 0E 04 04 00 F3 00 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 84 [08:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BE BE 00 00 0E 04 04 00 F3 00 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 [08:22:47]wFMCommunicate OK [08:22:47]SAM_PROTO_GetFieldsCounters done [08:22:47]requested_item shift.num is exist - process it [08:22:47]requested_item shift.opened is exist - process it [08:22:47]req_shift_opened [08:22:47]FM_GetShiftState [08:22:47]SAM_PROTO_GetShiftState [08:22:47]wFMCommunicate request_size=4 [08:22:47]MH_SAM_APDU [08:22:47]CAPDU: 80 13 01 00 [08:22:47]Write to MH i2c: E2 08 00 5F 04 80 13 01 00 00 00 00 00 E0 [08:22:47]Write i2c OK [08:22:47]MH_I2C_Read... [08:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:47]Read from MH i2c: E2 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 0E 00 [08:22:47]MH_I2C_Read... [08:22:47]Read from MH i2c: E2 0E 00 5F 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 77 [08:22:47]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:22:47]wFMCommunicate OK [08:22:47]SAM_PROTO_GetShiftState done [08:22:47]FM_GetShiftState done [08:22:47]req_shift_opened done [08:22:47]requested_item shift.open_date is exist - process it [08:22:47]req_shift_open_date [08:22:47]req_shift_open_date done [08:22:47]produce_requested_data done [08:22:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48830,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:22:47]process_action_free close_receipt [08:22:47]json_value_free [08:22:47]json_value_free done [08:22:47]process_json_proto returns [08:22:47]Send response to host [08:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48830,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:22:47]free response buf [08:22:47]execute_script done [08:22:47]execute_script returns [08:22:47]free content buf [08:22:47]Sock 7.Close socket [08:22:47]Sock 7.Thread stoped [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:31]OFD Sender: No OFD packet to send [08:23:36]OFD Sender: No OFD packet to send [08:23:41]OFD Sender: No OFD packet to send [08:23:46]OFD Sender: No OFD packet to send [08:23:51]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32: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:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:52]OFD Sender: No OFD packet to send [08:38:53]accept exits with 9 [08:38:53]New connection [08:38:53]New thread 3066813796 created [08:38:53]Thread 3066670436 joined [08:38:53]Waiting for new connection... [08:38:53] Sock 9.Parse request [08:38:53]Sock 9.Check first char [08:38:53]Sock 9.First char is OK [08:38:53]request: POST /json_proto HTTP/1.0 [08:38:53]Method: POST [08:38:53]URL: /json_proto [08:38:53]Method is POST - this is cgi request [08:38:53]url: /json_proto [08:38:53]query_string will be loaded in cgi processing [08:38:53]execute_cgi json_proto POST (null) [08:38:53]execute_cgi path=json_proto method=POST [08:38:53]POST find Content-Length [08:38:53]Host: 172.17.56.67:8080 [08:38:53]Content-Length: 677 [08:38:53]Content-Type: application/json [08:38:53] [08:38:53]POST finish read [08:38:53]Found Content-Length = 677 [08:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:53]execute_script... [08:38: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)215927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:53]POST & json_proto [08:38:53]process_json_proto [08:38:53]json parsed OK: [08:38:53]protocol is kg_v1.0 [08:38:53]action value=close_receipt [08:38:53]process_action close_receipt [08:38:53]cmd_close_receipt [08:38:53]MH_GetDate [08:38:53]Write to MH i2c: F0 00 00 60 04 53 [08:38:53]Write i2c OK [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: F0 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: F0 09 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: F0 09 00 60 04 00 20 C1 B4 65 26 5D 9E 65 DC [08:38:53]GetLastDocTimeStamp 1706343766 [08:38:53]current date 1706344736 [08:38:53]FM_GetShiftState [08:38:53]SAM_PROTO_GetShiftState [08:38:53]wFMCommunicate request_size=4 [08:38:53]MH_SAM_APDU [08:38:53]CAPDU: 80 13 01 00 [08:38:53]Write to MH i2c: E2 08 00 61 04 80 13 01 00 00 00 00 00 E2 [08:38:53]Write i2c OK [08:38:53]MH_I2C_Read... [08:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:53]Read from MH i2c: E2 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 0E 00 [08:38:53]MH_I2C_Read... [08:38:53]Read from MH i2c: E2 0E 00 61 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 79 [08:38:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:38:53]wFMCommunicate OK [08:38:53]SAM_PROTO_GetShiftState done [08:38:53]FM_GetShiftState done [08:38:53]opened in 1706313770 [08:38:53]opened+sec_in_day 1706400170 [08:38:53]quantity*price = 30029 [08:38:53]sum+1 = 30030 [08:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 11 27.01.2024 08:38 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48831 ФПД: 166305562955498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T083856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48831&fm=166305562955498&tin=02508201610067®Number=0000000000092723&sum=30000 [08:38:54]StoreToDocumentArchive [08:38:54]shift 243 fd 48831 [08:38:54]save to /storage/0243/doc_00048831 [08:38:54]save last doc name /storage/0243/doc_00048831 to /storage/kkm_last_doc_name [08:38:54]save OK [08:38:54]Clear old archive folders... [08:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:54]tlvbuf is 0119ADD0 [08:38:54]SAM_PROTO_ClearQueue [08:38:54]wFMCommunicate request_size=4 [08:38:54]MH_SAM_APDU [08:38:54]CAPDU: 80 09 00 00 [08:38:54]Write to MH i2c: E2 08 00 6E 04 80 09 00 00 00 00 00 00 E4 [08:38:54]Write i2c OK [08:38:54]MH_I2C_Read... [08:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:54]Read from MH i2c: E2 [08:38:54]MH_I2C_Read... [08:38:54]Read from MH i2c: E2 03 00 [08:38:54]MH_I2C_Read... [08:38:54]Read from MH i2c: E2 03 00 6E 04 00 90 00 E6 [08:38:54]RAPDU: 90 00 [08:38:54]wFMCommunicate OK [08:38:54]SAM_PROTO_ClearQueue done [08:38:54]KKMCreateOFDPacket [08:38:54]OFDProtocolAddRootSTLVToBuf [08:38:54]FM_MakeSignedData [08:38:54]FM_MakeSignedData [08:38:54]SAM_PROTO_SignData [08:38:54]wFMCommunicate request_size=4 [08:38:54]MH_SAM_APDU [08:38:54]CAPDU: 80 0D 01 02 [08:38:54]Write to MH i2c: E2 08 00 6F 04 80 0D 01 02 00 00 00 00 EC [08:38:54]Write i2c OK [08:38:54]MH_I2C_Read... [08:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:54]Read from MH i2c: E2 [08:38:54]MH_I2C_Read... [08:38:54]Read from MH i2c: E2 03 00 [08:38:54]MH_I2C_Read... [08:38:54]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [08:38:54]RAPDU: 90 00 [08:38:54]wFMCommunicate OK [08:38:54]wFMCommunicate request_size=255 [08:38:54]MH_SAM_APDU [08:38:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 20 C1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF BE 00 00 35 04 06 00 97 [08:38:54]Write to MH i2c: E2 02 01 70 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 20 C1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF BE 00 00 35 04 06 00 97 00 00 BE [08:38:54]Write i2c OK [08:38:54]MH_I2C_Read... [08:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:55]Read from MH i2c: E2 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 03 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [08:38:55]RAPDU: 90 00 [08:38:55]wFMCommunicate OK [08:38:55]wFMCommunicate request_size=10 [08:38:55]MH_SAM_APDU [08:38:55]CAPDU: 80 0D 02 02 05 41 08 01 0E EA [08:38:55]Write to MH i2c: E2 0D 00 71 04 80 0D 02 02 05 00 41 08 01 0E EA 00 00 3B [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:55]Read from MH i2c: E2 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 03 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [08:38:55]RAPDU: 90 00 [08:38:55]wFMCommunicate OK [08:38:55]wFMCommunicate request_size=4 [08:38:55]MH_SAM_APDU [08:38:55]CAPDU: 80 0D 03 02 [08:38:55]Write to MH i2c: E2 08 00 72 04 80 0D 03 02 00 00 00 00 F1 [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:55]Read from MH i2c: E2 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 0B 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 0B 00 72 04 00 94 03 90 8C 40 3F 9D 72 90 00 33 [08:38:55]RAPDU: 94 03 90 8C 40 3F 9D 72 90 00 [08:38:55]wFMCommunicate OK [08:38:55]SAM_PROTO_SignData done [08:38:55]FM_MakeSignedData done [08:38:55]CreateOFDProtocolMessage [08:38:55]wFMCommunicate request_size=4 [08:38:55]MH_SAM_APDU [08:38:55]CAPDU: 80 11 00 00 [08:38:55]Write to MH i2c: E2 08 00 73 04 80 11 00 00 00 00 00 00 F1 [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:55]Read from MH i2c: E2 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 17 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: E2 17 00 73 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [08:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:38:55]wFMCommunicate OK [08:38:55]CreateOFDProtocolMessage done [08:38:55]OFDSenderStorePacket 48831 [08:38:55]StoreOFDPacket docnum=48831 [08:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE D0 07 01 A1 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 20 C1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF BE 00 00 35 04 06 00 97 41 08 01 0E EA 94 03 90 8C 40 3F 9D 72 [08:38:55]CheckFolder [08:38:55]dirname=/storage/ofd_packets [08:38:55]CheckFolder done [08:38:55]ProducePacketName [08:38:55]name=ofd_packets/00048831 [08:38:55]NVStorageSaveData ofd_packets/00048831 [08:38:55]File name is /storage/ofd_packets/00048831 [08:38:55]Write 301 bytes [08:38:55]NVStorageSaveData done [08:38:55]OFDSenderStorePacket done [08:38:55]KKMCreateOFDPacket done [08:38:55]NVStorageSaveData kkm_last_timestamp [08:38:55]File name is /storage/kkm_last_timestamp [08:38:55]Write 4 bytes [08:38:55]NVStorageSaveData done [08:38:55]ExternCall_PrintAddStr [08:38:55]wPrintStart [08:38:55]Write to MH i2c: 01 00 00 74 04 78 [08:38:55]Write i2c OK [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: 01 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: 01 07 00 [08:38:55]MH_I2C_Read... [08:38:55]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 FF 0F 8D [08:38:55]RasterBufferAndPrint [08:38:55]line Счет N : (1)215927 [08:38:55]line ИНН: 02508201610067 [08:38:55]line Контрольно-Кассовый Чек [08:38:55]line ПРОДАЖА [08:38:55]line ТРК (МРК, ГНК) : 22 [08:38:55]line Товар: 2710124130 [08:38:55]line Аи-92-К-5 [08:38:55]line 4.980 * 60.30 [08:38:55]line = 300.29 [08:38:55]line НДС 12% НСП 1% [08:38:55]line > о реализуемом товаре [08:38:55]line ОКРУГЛЕНИЕ: -0.29 [08:38:55]line ИТОГО: 300.00 [08:38:55]line Внесено: 300.00 [08:38:55]line СДАЧА: 0.00 [08:38:55]line НСП 1% : 2.66 [08:38:55]line НДС 12% : 31.89 [08:38:55]line Наличными: 300.00 [08:38:55]line Безнал.: 0.00 [08:38:55]line Место: АЗС № 102 "Партнер Нефть" [08:38:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:38:55]line СНО: Общий режим [08:38:55]line Чек 11 27.01.2024 08:38 [08:38:55]line Смена: 243 ФФД: 1.0 [08:38:55]line ЗНМ: 0300000040 [08:38:55]line РНМ: 0000000000092723 [08:38:55]line Версия ККМ: 001 [08:38:55]line ФМ: 0000000000875060 [08:38:55]line ФД: 48831 [08:38:55]line ФПД: 166305562955498 [08:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T083856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48831&fm=166305562955498&tin=02508201610067®Number=0000000000092723&sum=30000 [08:38:55]OFD Sender: Processing packet 48831 [packets to send 12, broken 11] [08:38:55]ProducePacketName [08:38:55]name=ofd_packets/00048831 [08:38:55]OFD Sender: To server: pG, [08:38:55]CommunicateWithHost lk.salyk.kg:30040 [08:38:55]ConnectInit lk.salyk.kg [08:38:55]written 0, free lines is 4095 [08:38:55]Connected sock=10 [08:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE D0 07 01 A1 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 20 C1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF BE 00 00 35 04 06 00 97 41 08 01 0E EA 94 03 90 8C 40 3F 9D 72 [08:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 45 02 47 00 71 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 35 30 36 30 10 04 04 00 BF BE 00 00 F4 03 04 00 1F 6D B4 65 B6 04 01 00 00 CB 9D 7F 36 D9 1C 5D B2 [08:38:55]CommunicateWithHost err = 0 [08:38:55]CheckOFDResponse [08:38:55]1017 (14) - 77093643461234 [08:38:55]1041 (16) - 0000000000875060 [08:38:55]1040 (4) - 48831 [08:38:55]1012 (4) - 27.01.2024 02:40 [08:38:55]1206 (1) - 0 [08:38:55]OFD Sender: Remove packet 48831 [08:38:55]ProducePacketName [08:38:55]name=ofd_packets/00048831 [08:38:55]NVStorageDeleteData [08:38:56]Write to MH i2c: 01 00 00 9F 04 A3 [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: 01 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: 01 07 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: 01 07 00 9F 04 00 00 00 00 00 F1 0C A7 [08:38:56]RasterBufferAndPrint [08:38:56]line [08:38:56]line [08:38:56]line [08:38:56]line [08:38:56]line [08:38:56]written 0, free lines is 3319 [08:38:56]MH_Cut [08:38:56]Write to MH i2c: D1 01 00 A6 04 01 7C [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: D1 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: D1 01 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: D1 01 00 A6 04 00 7B [08:38:56]Write to MH i2c: 01 00 00 A7 04 AB [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]OFD Sender: No OFD packet to send [08:38:56]*** Cut start [08:38:56]*** Partial cut [08:38:56]*** CUTSNS_PIN = 1 [08:38:56]*** CUTSNS_PIN = 0 [08:38:57]*** Brake cut motor [08:38:57]Read from MH i2c: 01 [08:38:57]MH_I2C_Read... [08:38:57]*** Stop cut motor [08:38:57]*** Cut end [08:38:57]Read from MH i2c: 01 07 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: 01 07 00 A7 04 00 00 00 00 00 FF 0F C0 [08:38:57]process_action close_receipt done [08:38:57]requested_data is exist [08:38:57]produce_requested_data [08:38:57]requested_item fm.sn is exist - process it [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 11 00 00 [08:38:57]Write to MH i2c: E2 08 00 A8 04 80 11 00 00 00 00 00 00 26 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 17 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 17 00 A8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 73 [08:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:38:57]wFMCommunicate OK [08:38:57]requested_item fd.num is exist - process it [08:38:57]SAM_PROTO_GetFieldsCounters [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 13 00 00 [08:38:57]Write to MH i2c: E2 08 00 A9 04 80 13 00 00 00 00 00 00 29 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 62 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 62 00 A9 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BF BE 00 00 0E 04 04 00 F3 00 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 D3 [08:38: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BF BE 00 00 0E 04 04 00 F3 00 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 [08:38:57]wFMCommunicate OK [08:38:57]SAM_PROTO_GetFieldsCounters done [08:38:57]requested_item shift.num is exist - process it [08:38:57]requested_item shift.opened is exist - process it [08:38:57]req_shift_opened [08:38:57]FM_GetShiftState [08:38:57]SAM_PROTO_GetShiftState [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 13 01 00 [08:38:57]Write to MH i2c: E2 08 00 AA 04 80 13 01 00 00 00 00 00 2B [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 0E 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 0E 00 AA 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C2 [08:38:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:38:57]wFMCommunicate OK [08:38:57]SAM_PROTO_GetShiftState done [08:38:57]FM_GetShiftState done [08:38:57]req_shift_opened done [08:38:57]requested_item shift.open_date is exist - process it [08:38:57]req_shift_open_date [08:38:57]req_shift_open_date done [08:38:57]produce_requested_data done [08:38:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48831,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:38:57]process_action_free close_receipt [08:38:57]json_value_free [08:38:57]json_value_free done [08:38:57]process_json_proto returns [08:38:57]Send response to host [08:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48831,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:38:57]free response buf [08:38:57]execute_script done [08:38:57]execute_script returns [08:38:57]free content buf [08:38:57]Sock 9.Close socket [08:38:57]Sock 9.Thread stoped [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:44]accept exits with 7 [08:48:44]New connection [08:48:44]New thread 3066670436 created [08:48:44]Thread 3066813796 joined [08:48:44]Waiting for new connection... [08:48:44] Sock 7.Parse request [08:48:44]Sock 7.Check first char [08:48:44]Sock 7.First char is OK [08:48:44]request: POST /json_proto HTTP/1.0 [08:48:44]Method: POST [08:48:44]URL: /json_proto [08:48:44]Method is POST - this is cgi request [08:48:44]url: /json_proto [08:48:44]query_string will be loaded in cgi processing [08:48:44]execute_cgi json_proto POST (null) [08:48:44]execute_cgi path=json_proto method=POST [08:48:44]POST find Content-Length [08:48:44]Host: 172.17.56.67:8080 [08:48:44]Content-Length: 677 [08:48:44]Content-Type: application/json [08:48:44] [08:48:44]POST finish read [08:48:44]Found Content-Length = 677 [08:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:44]execute_script... [08:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:44]POST & json_proto [08:48:44]process_json_proto [08:48:44]json parsed OK: [08:48:44]protocol is kg_v1.0 [08:48:44]action value=close_receipt [08:48:44]process_action close_receipt [08:48:44]cmd_close_receipt [08:48:44]MH_GetDate [08:48:44]Write to MH i2c: F0 00 00 AB 04 9E [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: F0 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: F0 09 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: F0 09 00 AB 04 00 6F C3 B4 65 26 5D 9E 65 78 [08:48:44]GetLastDocTimeStamp 1706344736 [08:48:44]current date 1706345327 [08:48:44]FM_GetShiftState [08:48:44]SAM_PROTO_GetShiftState [08:48:44]wFMCommunicate request_size=4 [08:48:44]MH_SAM_APDU [08:48:44]CAPDU: 80 13 01 00 [08:48:44]Write to MH i2c: E2 08 00 AC 04 80 13 01 00 00 00 00 00 2D [08:48:44]Write i2c OK [08:48:44]MH_I2C_Read... [08:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:44]Read from MH i2c: E2 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 0E 00 [08:48:44]MH_I2C_Read... [08:48:44]Read from MH i2c: E2 0E 00 AC 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C4 [08:48:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:48:44]wFMCommunicate OK [08:48:44]SAM_PROTO_GetShiftState done [08:48:44]FM_GetShiftState done [08:48:44]opened in 1706313770 [08:48:44]opened+sec_in_day 1706400170 [08:48:44]quantity*price = 30029 [08:48:44]sum+1 = 30030 [08:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 12 27.01.2024 08:48 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48832 ФПД: 154108865393619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T084847&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48832&fm=154108865393619&tin=02508201610067®Number=0000000000092723&sum=30000 [08:48:45]StoreToDocumentArchive [08:48:45]shift 243 fd 48832 [08:48:45]save to /storage/0243/doc_00048832 [08:48:45]save last doc name /storage/0243/doc_00048832 to /storage/kkm_last_doc_name [08:48:45]save OK [08:48:45]Clear old archive folders... [08:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:45]tlvbuf is 01345A80 [08:48:45]SAM_PROTO_ClearQueue [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 09 00 00 [08:48:45]Write to MH i2c: E2 08 00 B9 04 80 09 00 00 00 00 00 00 2F [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 B9 04 00 90 00 31 [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]SAM_PROTO_ClearQueue done [08:48:45]KKMCreateOFDPacket [08:48:45]OFDProtocolAddRootSTLVToBuf [08:48:45]FM_MakeSignedData [08:48:45]FM_MakeSignedData [08:48:45]SAM_PROTO_SignData [08:48:45]wFMCommunicate request_size=4 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 01 02 [08:48:45]Write to MH i2c: E2 08 00 BA 04 80 0D 01 02 00 00 00 00 37 [08:48:45]Write i2c OK [08:48:45]MH_I2C_Read... [08:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:45]Read from MH i2c: E2 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 [08:48:45]MH_I2C_Read... [08:48:45]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [08:48:45]RAPDU: 90 00 [08:48:45]wFMCommunicate OK [08:48:45]wFMCommunicate request_size=255 [08:48:45]MH_SAM_APDU [08:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6F C3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 BE 00 00 35 04 06 00 8C [08:48:45]Write to MH i2c: E2 02 01 BB 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6F C3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 BE 00 00 35 04 06 00 8C 00 00 51 [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:46]Read from MH i2c: E2 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 03 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [08:48:46]RAPDU: 90 00 [08:48:46]wFMCommunicate OK [08:48:46]wFMCommunicate request_size=10 [08:48:46]MH_SAM_APDU [08:48:46]CAPDU: 80 0D 02 02 05 29 44 2D B3 D3 [08:48:46]Write to MH i2c: E2 0D 00 BC 04 80 0D 02 02 05 00 29 44 2D B3 D3 00 00 64 [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:46]Read from MH i2c: E2 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 03 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [08:48:46]RAPDU: 90 00 [08:48:46]wFMCommunicate OK [08:48:46]wFMCommunicate request_size=4 [08:48:46]MH_SAM_APDU [08:48:46]CAPDU: 80 0D 03 02 [08:48:46]Write to MH i2c: E2 08 00 BD 04 80 0D 03 02 00 00 00 00 3C [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:46]Read from MH i2c: E2 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 0B 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 0B 00 BD 04 00 8B 43 F8 42 42 2E 7C 97 90 00 C8 [08:48:46]RAPDU: 8B 43 F8 42 42 2E 7C 97 90 00 [08:48:46]wFMCommunicate OK [08:48:46]SAM_PROTO_SignData done [08:48:46]FM_MakeSignedData done [08:48:46]CreateOFDProtocolMessage [08:48:46]wFMCommunicate request_size=4 [08:48:46]MH_SAM_APDU [08:48:46]CAPDU: 80 11 00 00 [08:48:46]Write to MH i2c: E2 08 00 BE 04 80 11 00 00 00 00 00 00 3C [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:46]Read from MH i2c: E2 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 17 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: E2 17 00 BE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [08:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:48:46]wFMCommunicate OK [08:48:46]CreateOFDProtocolMessage done [08:48:46]OFDSenderStorePacket 48832 [08:48:46]StoreOFDPacket docnum=48832 [08:48:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 86 07 01 EB AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6F C3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 BE 00 00 35 04 06 00 8C 29 44 2D B3 D3 8B 43 F8 42 42 2E 7C 97 [08:48:46]CheckFolder [08:48:46]dirname=/storage/ofd_packets [08:48:46]CheckFolder done [08:48:46]ProducePacketName [08:48:46]name=ofd_packets/00048832 [08:48:46]NVStorageSaveData ofd_packets/00048832 [08:48:46]File name is /storage/ofd_packets/00048832 [08:48:46]Write 301 bytes [08:48:46]NVStorageSaveData done [08:48:46]OFDSenderStorePacket done [08:48:46]KKMCreateOFDPacket done [08:48:46]NVStorageSaveData kkm_last_timestamp [08:48:46]File name is /storage/kkm_last_timestamp [08:48:46]Write 4 bytes [08:48:46]NVStorageSaveData done [08:48:46]ExternCall_PrintAddStr [08:48:46]wPrintStart [08:48:46]Write to MH i2c: 01 00 00 BF 04 C3 [08:48:46]Write i2c OK [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 07 00 [08:48:46]MH_I2C_Read... [08:48:46]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 FF 0F D8 [08:48:46]RasterBufferAndPrint [08:48:46]line Счет N : (1)215928 [08:48:46]line ИНН: 02508201610067 [08:48:46]line Контрольно-Кассовый Чек [08:48:46]line ПРОДАЖА [08:48:46]line ТРК (МРК, ГНК) : 12 [08:48:46]line Товар: 2710124130 [08:48:46]line Аи-92-К-5 [08:48:46]line 4.980 * 60.30 [08:48:46]line = 300.29 [08:48:46]line НДС 12% НСП 1% [08:48:46]line > о реализуемом товаре [08:48:46]line ОКРУГЛЕНИЕ: -0.29 [08:48:46]line ИТОГО: 300.00 [08:48:46]line Внесено: 300.00 [08:48:46]line СДАЧА: 0.00 [08:48:46]line НСП 1% : 2.66 [08:48:46]line НДС 12% : 31.89 [08:48:46]line Наличными: 300.00 [08:48:46]line Безнал.: 0.00 [08:48:46]line Место: АЗС № 102 "Партнер Нефть" [08:48:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:48:46]line СНО: Общий режим [08:48:46]line Чек 12 27.01.2024 08:48 [08:48:46]line Смена: 243 ФФД: 1.0 [08:48:46]line ЗНМ: 0300000040 [08:48:46]line РНМ: 0000000000092723 [08:48:46]line Версия ККМ: 001 [08:48:46]line ФМ: 0000000000875060 [08:48:46]line ФД: 48832 [08:48:46]line ФПД: 154108865393619 [08:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T084847&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48832&fm=154108865393619&tin=02508201610067®Number=0000000000092723&sum=30000 [08:48:46]OFD Sender: Processing packet 48832 [packets to send 12, broken 11] [08:48:46]ProducePacketName [08:48:46]name=ofd_packets/00048832 [08:48:46]OFD Sender: To server: pG, [08:48:46]CommunicateWithHost lk.salyk.kg:30040 [08:48:46]ConnectInit lk.salyk.kg [08:48:46]written 0, free lines is 4095 [08:48:46]Connected sock=10 [08:48:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 86 07 01 EB AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 6F C3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 BE 00 00 35 04 06 00 8C 29 44 2D B3 D3 8B 43 F8 42 42 2E 7C 97 [08:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8F A8 47 00 2D 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 35 30 36 30 10 04 04 00 C0 BE 00 00 F4 03 04 00 6E 6F B4 65 B6 04 01 00 00 0E BD 25 6E F7 A2 39 86 [08:48:47]CommunicateWithHost err = 0 [08:48:47]CheckOFDResponse [08:48:47]1017 (14) - 77093643461234 [08:48:47]1041 (16) - 0000000000875060 [08:48:47]1040 (4) - 48832 [08:48:47]1012 (4) - 27.01.2024 02:50 [08:48:47]1206 (1) - 0 [08:48:47]OFD Sender: Remove packet 48832 [08:48:47]ProducePacketName [08:48:47]name=ofd_packets/00048832 [08:48:47]NVStorageDeleteData [08:48:47]Write to MH i2c: 01 00 00 EA 04 EE [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: 01 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: 01 07 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 F0 0C F1 [08:48:47]RasterBufferAndPrint [08:48:47]line [08:48:47]line [08:48:47]line [08:48:47]line [08:48:47]line [08:48:47]written 0, free lines is 3318 [08:48:47]MH_Cut [08:48:47]Write to MH i2c: D1 01 00 F1 04 01 C7 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: D1 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: D1 01 00 [08:48:47]MH_I2C_Read... [08:48:47]Read from MH i2c: D1 01 00 F1 04 00 C6 [08:48:47]Write to MH i2c: 01 00 00 F2 04 F6 [08:48:47]Write i2c OK [08:48:47]MH_I2C_Read... [08:48:47]OFD Sender: No OFD packet to send [08:48:47]*** Cut start [08:48:47]*** Partial cut [08:48:47]*** CUTSNS_PIN = 1 [08:48:47]*** CUTSNS_PIN = 0 [08:48:48]*** Brake cut motor [08:48:48]Read from MH i2c: 01 [08:48:48]MH_I2C_Read... [08:48:48]*** Stop cut motor [08:48:48]*** Cut end [08:48:48]Read from MH i2c: 01 07 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: 01 07 00 F2 04 00 00 00 00 00 FF 0F 0B [08:48:48]process_action close_receipt done [08:48:48]requested_data is exist [08:48:48]produce_requested_data [08:48:48]requested_item fm.sn is exist - process it [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 11 00 00 [08:48:48]Write to MH i2c: E2 08 00 F3 04 80 11 00 00 00 00 00 00 71 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 17 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 17 00 F3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [08:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:48:48]wFMCommunicate OK [08:48:48]requested_item fd.num is exist - process it [08:48:48]SAM_PROTO_GetFieldsCounters [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 13 00 00 [08:48:48]Write to MH i2c: E2 08 00 F4 04 80 13 00 00 00 00 00 00 74 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 62 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 62 00 F4 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C0 BE 00 00 0E 04 04 00 F3 00 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 22 [08:48: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C0 BE 00 00 0E 04 04 00 F3 00 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 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_GetFieldsCounters done [08:48:48]requested_item shift.num is exist - process it [08:48:48]requested_item shift.opened is exist - process it [08:48:48]req_shift_opened [08:48:48]FM_GetShiftState [08:48:48]SAM_PROTO_GetShiftState [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 13 01 00 [08:48:48]Write to MH i2c: E2 08 00 F5 04 80 13 01 00 00 00 00 00 76 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0E 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0E 00 F5 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 0D [08:48:48]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_GetShiftState done [08:48:48]FM_GetShiftState done [08:48:48]req_shift_opened done [08:48:48]requested_item shift.open_date is exist - process it [08:48:48]req_shift_open_date [08:48:48]req_shift_open_date done [08:48:48]produce_requested_data done [08:48:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48832,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:48:48]process_action_free close_receipt [08:48:48]json_value_free [08:48:48]json_value_free done [08:48:48]process_json_proto returns [08:48:48]Send response to host [08:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48832,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:48:48]free response buf [08:48:48]execute_script done [08:48:48]execute_script returns [08:48:48]free content buf [08:48:48]Sock 7.Close socket [08:48:48]Sock 7.Thread stoped [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]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:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:28]accept exits with 9 [08:54:28]New connection [08:54:28]New thread 3066813796 created [08:54:28]Thread 3066670436 joined [08:54:28]Waiting for new connection... [08:54:28] Sock 9.Parse request [08:54:28]Sock 9.Check first char [08:54:28]Sock 9.First char is OK [08:54:28]request: POST /json_proto HTTP/1.0 [08:54:28]Method: POST [08:54:28]URL: /json_proto [08:54:28]Method is POST - this is cgi request [08:54:28]url: /json_proto [08:54:28]query_string will be loaded in cgi processing [08:54:28]execute_cgi json_proto POST (null) [08:54:28]execute_cgi path=json_proto method=POST [08:54:28]POST find Content-Length [08:54:28]Host: 172.17.56.67:8080 [08:54:28]Content-Length: 682 [08:54:28]Content-Type: application/json [08:54:28] [08:54:28]POST finish read [08:54:28]Found Content-Length = 682 [08:54:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:28]execute_script... [08:54:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:28]POST & json_proto [08:54:28]process_json_proto [08:54:28]json parsed OK: [08:54:28]protocol is kg_v1.0 [08:54:28]action value=close_receipt [08:54:28]process_action close_receipt [08:54:28]cmd_close_receipt [08:54:28]MH_GetDate [08:54:28]Write to MH i2c: F0 00 00 F6 04 E9 [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: F0 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: F0 09 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: F0 09 00 F6 04 00 C7 C4 B4 65 26 5D 9E 65 1C [08:54:28]GetLastDocTimeStamp 1706345327 [08:54:28]current date 1706345671 [08:54:28]FM_GetShiftState [08:54:28]SAM_PROTO_GetShiftState [08:54:28]wFMCommunicate request_size=4 [08:54:28]MH_SAM_APDU [08:54:28]CAPDU: 80 13 01 00 [08:54:28]Write to MH i2c: E2 08 00 F7 04 80 13 01 00 00 00 00 00 78 [08:54:28]Write i2c OK [08:54:28]MH_I2C_Read... [08:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:28]Read from MH i2c: E2 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: E2 0E 00 [08:54:28]MH_I2C_Read... [08:54:28]Read from MH i2c: E2 0E 00 F7 04 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 0F [08:54:28]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:54:28]wFMCommunicate OK [08:54:28]SAM_PROTO_GetShiftState done [08:54:28]FM_GetShiftState done [08:54:28]opened in 1706313770 [08:54:28]opened+sec_in_day 1706400170 [08:54:28]quantity*price = 100037 [08:54:28]sum+1 = 100039 [08:54:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 13 27.01.2024 08:54 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48833 ФПД: 217719123945970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T085431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48833&fm=217719123945970&tin=02508201610067®Number=0000000000092723&sum=100000 [08:54:30]StoreToDocumentArchive [08:54:30]shift 243 fd 48833 [08:54:30]save to /storage/0243/doc_00048833 [08:54:30]save last doc name /storage/0243/doc_00048833 to /storage/kkm_last_doc_name [08:54:30]save OK [08:54:30]Clear old archive folders... [08:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:30]tlvbuf is 01348760 [08:54:30]SAM_PROTO_ClearQueue [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 09 00 00 [08:54:30]Write to MH i2c: E2 08 00 04 05 80 09 00 00 00 00 00 00 7B [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [08:54:30]RAPDU: 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_ClearQueue done [08:54:30]KKMCreateOFDPacket [08:54:30]OFDProtocolAddRootSTLVToBuf [08:54:30]FM_MakeSignedData [08:54:30]FM_MakeSignedData [08:54:30]SAM_PROTO_SignData [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 0D 01 02 [08:54:30]Write to MH i2c: E2 08 00 05 05 80 0D 01 02 00 00 00 00 83 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [08:54:30]RAPDU: 90 00 [08:54:30]wFMCommunicate OK [08:54:30]wFMCommunicate request_size=255 [08:54:30]MH_SAM_APDU [08:54: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 C7 C4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 BE 00 00 35 04 06 00 C6 [08:54:30]Write to MH i2c: E2 02 01 06 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 C7 C4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 BE 00 00 35 04 06 00 C6 00 00 DC [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [08:54:30]RAPDU: 90 00 [08:54:30]wFMCommunicate OK [08:54:30]wFMCommunicate request_size=10 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 0D 02 02 05 03 AF 0B 29 F2 [08:54:30]Write to MH i2c: E2 0D 00 07 05 80 0D 02 02 05 00 03 AF 0B 29 F2 00 00 68 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [08:54:30]RAPDU: 90 00 [08:54:30]wFMCommunicate OK [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 0D 03 02 [08:54:30]Write to MH i2c: E2 08 00 08 05 80 0D 03 02 00 00 00 00 88 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0B 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 0B 00 08 05 00 01 AF 2C D6 5C 47 18 B5 90 00 AB [08:54:30]RAPDU: 01 AF 2C D6 5C 47 18 B5 90 00 [08:54:30]wFMCommunicate OK [08:54:30]SAM_PROTO_SignData done [08:54:30]FM_MakeSignedData done [08:54:30]CreateOFDProtocolMessage [08:54:30]wFMCommunicate request_size=4 [08:54:30]MH_SAM_APDU [08:54:30]CAPDU: 80 11 00 00 [08:54:30]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:30]Read from MH i2c: E2 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 17 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D5 [08:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:54:30]wFMCommunicate OK [08:54:30]CreateOFDProtocolMessage done [08:54:30]OFDSenderStorePacket 48833 [08:54:30]StoreOFDPacket docnum=48833 [08:54:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 33 7E 07 01 07 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 C7 C4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 BE 00 00 35 04 06 00 C6 03 AF 0B 29 F2 01 AF 2C D6 5C 47 18 B5 [08:54:30]CheckFolder [08:54:30]dirname=/storage/ofd_packets [08:54:30]CheckFolder done [08:54:30]ProducePacketName [08:54:30]name=ofd_packets/00048833 [08:54:30]NVStorageSaveData ofd_packets/00048833 [08:54:30]File name is /storage/ofd_packets/00048833 [08:54:30]Write 301 bytes [08:54:30]NVStorageSaveData done [08:54:30]OFDSenderStorePacket done [08:54:30]KKMCreateOFDPacket done [08:54:30]NVStorageSaveData kkm_last_timestamp [08:54:30]File name is /storage/kkm_last_timestamp [08:54:30]Write 4 bytes [08:54:30]NVStorageSaveData done [08:54:30]ExternCall_PrintAddStr [08:54:30]wPrintStart [08:54:30]Write to MH i2c: 01 00 00 0A 05 0F [08:54:30]Write i2c OK [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: 01 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: 01 07 00 [08:54:30]MH_I2C_Read... [08:54:30]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 FF 0F 24 [08:54:30]RasterBufferAndPrint [08:54:30]line Счет N : (1)215929 [08:54:30]line ИНН: 02508201610067 [08:54:30]line Контрольно-Кассовый Чек [08:54:30]line ПРОДАЖА [08:54:30]line ТРК (МРК, ГНК) : 12 [08:54:30]line Товар: 2710124130 [08:54:30]line Аи-92-К-5 [08:54:30]line 16.590 * 60.30 [08:54:30]line = 1000.38 [08:54:30]line НДС 12% НСП 1% [08:54:30]line > о реализуемом товаре [08:54:30]line ОКРУГЛЕНИЕ: -0.38 [08:54:30]line ИТОГО: 1000.00 [08:54:30]line Внесено: 1000.00 [08:54:30]line СДАЧА: 0.00 [08:54:30]line НСП 1% : 8.85 [08:54:30]line НДС 12% : 106.23 [08:54:30]line Наличными: 1000.00 [08:54:30]line Безнал.: 0.00 [08:54:30]line Место: АЗС № 102 "Партнер Нефть" [08:54:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:54:30]line СНО: Общий режим [08:54:30]line Чек 13 27.01.2024 08:54 [08:54:30]line Смена: 243 ФФД: 1.0 [08:54:30]line ЗНМ: 0300000040 [08:54:30]line РНМ: 0000000000092723 [08:54:30]line Версия ККМ: 001 [08:54:30]line ФМ: 0000000000875060 [08:54:30]line ФД: 48833 [08:54:30]line ФПД: 217719123945970 [08:54:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T085431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48833&fm=217719123945970&tin=02508201610067®Number=0000000000092723&sum=100000 [08:54:30]OFD Sender: Processing packet 48833 [packets to send 12, broken 11] [08:54:30]ProducePacketName [08:54:30]name=ofd_packets/00048833 [08:54:30]OFD Sender: To server: pG, [08:54:30]CommunicateWithHost lk.salyk.kg:30040 [08:54:30]ConnectInit lk.salyk.kg [08:54:30]written 0, free lines is 4095 [08:54:30]Connected sock=10 [08:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 33 7E 07 01 07 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 C7 C4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 BE 00 00 35 04 06 00 C6 03 AF 0B 29 F2 01 AF 2C D6 5C 47 18 B5 [08:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 48 71 47 00 A8 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 35 30 36 30 10 04 04 00 C1 BE 00 00 F4 03 04 00 C6 70 B4 65 B6 04 01 00 00 E3 9B AC CF 6A D2 AD 75 [08:54:31]CommunicateWithHost err = 0 [08:54:31]CheckOFDResponse [08:54:31]1017 (14) - 77093643461234 [08:54:31]1041 (16) - 0000000000875060 [08:54:31]1040 (4) - 48833 [08:54:31]1012 (4) - 27.01.2024 02:56 [08:54:31]1206 (1) - 0 [08:54:31]OFD Sender: Remove packet 48833 [08:54:31]ProducePacketName [08:54:31]name=ofd_packets/00048833 [08:54:31]NVStorageDeleteData [08:54:31]Write to MH i2c: 01 00 00 35 05 3A [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 07 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 EF 0C 3C [08:54:31]RasterBufferAndPrint [08:54:31]line [08:54:31]line [08:54:31]line [08:54:31]line [08:54:31]line [08:54:31]written 0, free lines is 3317 [08:54:31]MH_Cut [08:54:31]Write to MH i2c: D1 01 00 3C 05 01 13 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: D1 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: D1 01 00 [08:54:31]MH_I2C_Read... [08:54:31]Read from MH i2c: D1 01 00 3C 05 00 12 [08:54:31]Write to MH i2c: 01 00 00 3D 05 42 [08:54:31]Write i2c OK [08:54:31]MH_I2C_Read... [08:54:31]OFD Sender: No OFD packet to send [08:54:32]*** Cut start [08:54:32]*** Partial cut [08:54:32]*** CUTSNS_PIN = 1 [08:54:32]*** CUTSNS_PIN = 0 [08:54:32]*** Brake cut motor [08:54:32]Read from MH i2c: 01 [08:54:32]MH_I2C_Read... [08:54:32]*** Stop cut motor [08:54:32]*** Cut end [08:54:32]Read from MH i2c: 01 07 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [08:54:32]process_action close_receipt done [08:54:32]requested_data is exist [08:54:32]produce_requested_data [08:54:32]requested_item fm.sn is exist - process it [08:54:32]wFMCommunicate request_size=4 [08:54:32]MH_SAM_APDU [08:54:32]CAPDU: 80 11 00 00 [08:54:32]Write to MH i2c: E2 08 00 3E 05 80 11 00 00 00 00 00 00 BD [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:32]Read from MH i2c: E2 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 17 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 17 00 3E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0A [08:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:54:32]wFMCommunicate OK [08:54:32]requested_item fd.num is exist - process it [08:54:32]SAM_PROTO_GetFieldsCounters [08:54:32]wFMCommunicate request_size=4 [08:54:32]MH_SAM_APDU [08:54:32]CAPDU: 80 13 00 00 [08:54:32]Write to MH i2c: E2 08 00 3F 05 80 13 00 00 00 00 00 00 C0 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:32]Read from MH i2c: E2 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 62 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 62 00 3F 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C1 BE 00 00 0E 04 04 00 F3 00 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 72 [08:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C1 BE 00 00 0E 04 04 00 F3 00 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 [08:54:32]wFMCommunicate OK [08:54:32]SAM_PROTO_GetFieldsCounters done [08:54:32]requested_item shift.num is exist - process it [08:54:32]requested_item shift.opened is exist - process it [08:54:32]req_shift_opened [08:54:32]FM_GetShiftState [08:54:32]SAM_PROTO_GetShiftState [08:54:32]wFMCommunicate request_size=4 [08:54:32]MH_SAM_APDU [08:54:32]CAPDU: 80 13 01 00 [08:54:32]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [08:54:32]Write i2c OK [08:54:32]MH_I2C_Read... [08:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:32]Read from MH i2c: E2 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 0E 00 [08:54:32]MH_I2C_Read... [08:54:32]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 59 [08:54:32]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:54:32]wFMCommunicate OK [08:54:32]SAM_PROTO_GetShiftState done [08:54:32]FM_GetShiftState done [08:54:32]req_shift_opened done [08:54:32]requested_item shift.open_date is exist - process it [08:54:32]req_shift_open_date [08:54:32]req_shift_open_date done [08:54:32]produce_requested_data done [08:54:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48833,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:54:32]process_action_free close_receipt [08:54:32]json_value_free [08:54:32]json_value_free done [08:54:32]process_json_proto returns [08:54:32]Send response to host [08:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48833,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:54:32]free response buf [08:54:32]execute_script done [08:54:32]execute_script returns [08:54:32]free content buf [08:54:32]Sock 9.Close socket [08:54:32]Sock 9.Thread stoped [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:15]accept exits with 7 [08:57:15]New connection [08:57:15]New thread 3066670436 created [08:57:15]Thread 3066813796 joined [08:57:15]Waiting for new connection... [08:57:15] Sock 7.Parse request [08:57:15]Sock 7.Check first char [08:57:15]Sock 7.First char is OK [08:57:15]request: POST /json_proto HTTP/1.0 [08:57:15]Method: POST [08:57:15]URL: /json_proto [08:57:15]Method is POST - this is cgi request [08:57:15]url: /json_proto [08:57:15]query_string will be loaded in cgi processing [08:57:15]execute_cgi json_proto POST (null) [08:57:15]execute_cgi path=json_proto method=POST [08:57:15]POST find Content-Length [08:57:15]Host: 172.17.56.67:8080 [08:57:15]Content-Length: 677 [08:57:15]Content-Type: application/json [08:57:15] [08:57:15]POST finish read [08:57:15]Found Content-Length = 677 [08:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:15]execute_script... [08: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)215930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:15]POST & json_proto [08:57:15]process_json_proto [08:57:15]json parsed OK: [08:57:15]protocol is kg_v1.0 [08:57:15]action value=close_receipt [08:57:15]process_action close_receipt [08:57:15]cmd_close_receipt [08:57:15]MH_GetDate [08:57:15]Write to MH i2c: F0 00 00 41 05 35 [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: F0 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: F0 09 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: F0 09 00 41 05 00 6E C5 B4 65 26 5D 9E 65 10 [08:57:15]GetLastDocTimeStamp 1706345671 [08:57:15]current date 1706345838 [08:57:15]FM_GetShiftState [08:57:15]SAM_PROTO_GetShiftState [08:57:15]wFMCommunicate request_size=4 [08:57:15]MH_SAM_APDU [08:57:15]CAPDU: 80 13 01 00 [08:57:15]Write to MH i2c: E2 08 00 42 05 80 13 01 00 00 00 00 00 C4 [08:57:15]Write i2c OK [08:57:15]MH_I2C_Read... [08:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:15]Read from MH i2c: E2 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: E2 0E 00 [08:57:15]MH_I2C_Read... [08:57:15]Read from MH i2c: E2 0E 00 42 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 5B [08:57:15]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:57:15]wFMCommunicate OK [08:57:15]SAM_PROTO_GetShiftState done [08:57:15]FM_GetShiftState done [08:57:15]opened in 1706313770 [08:57:15]opened+sec_in_day 1706400170 [08:57:15]quantity*price = 40039 [08:57:15]sum+1 = 40040 [08:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 14 27.01.2024 08:57 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48834 ФПД: 193592311884715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T085718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48834&fm=193592311884715&tin=02508201610067®Number=0000000000092723&sum=40000 [08:57:16]StoreToDocumentArchive [08:57:16]shift 243 fd 48834 [08:57:16]save to /storage/0243/doc_00048834 [08:57:16]save last doc name /storage/0243/doc_00048834 to /storage/kkm_last_doc_name [08:57:16]save OK [08:57:16]Clear old archive folders... [08:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:16]tlvbuf is 011B2E90 [08:57:16]SAM_PROTO_ClearQueue [08:57:16]wFMCommunicate request_size=4 [08:57:16]MH_SAM_APDU [08:57:16]CAPDU: 80 09 00 00 [08:57:16]Write to MH i2c: E2 08 00 4F 05 80 09 00 00 00 00 00 00 C6 [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:16]Read from MH i2c: E2 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 03 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [08:57:16]RAPDU: 90 00 [08:57:16]wFMCommunicate OK [08:57:16]SAM_PROTO_ClearQueue done [08:57:16]KKMCreateOFDPacket [08:57:16]OFDProtocolAddRootSTLVToBuf [08:57:16]FM_MakeSignedData [08:57:16]FM_MakeSignedData [08:57:16]SAM_PROTO_SignData [08:57:16]wFMCommunicate request_size=4 [08:57:16]MH_SAM_APDU [08:57:16]CAPDU: 80 0D 01 02 [08:57:16]Write to MH i2c: E2 08 00 50 05 80 0D 01 02 00 00 00 00 CE [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:16]OFD Sender: No OFD packet to send [08:57:16]Read from MH i2c: E2 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 03 00 [08:57:16]MH_I2C_Read... [08:57:16]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [08:57:16]RAPDU: 90 00 [08:57:16]wFMCommunicate OK [08:57:16]wFMCommunicate request_size=255 [08:57:16]MH_SAM_APDU [08: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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6E C5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BE 00 00 35 04 06 00 B0 [08:57:16]Write to MH i2c: E2 02 01 51 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6E C5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BE 00 00 35 04 06 00 B0 00 00 C5 [08:57:16]Write i2c OK [08:57:16]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=10 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 02 02 05 12 38 FB 2B AB [08:57:17]Write to MH i2c: E2 0D 00 52 05 80 0D 02 02 05 00 12 38 FB 2B AB 00 00 F6 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [08:57:17]RAPDU: 90 00 [08:57:17]wFMCommunicate OK [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 0D 03 02 [08:57:17]Write to MH i2c: E2 08 00 53 05 80 0D 03 02 00 00 00 00 D3 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0B 00 53 05 00 32 1D 93 35 45 CE 80 F6 90 00 74 [08:57:17]RAPDU: 32 1D 93 35 45 CE 80 F6 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_SignData done [08:57:17]FM_MakeSignedData done [08:57:17]CreateOFDProtocolMessage [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 11 00 00 [08:57:17]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 20 [08:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:57:17]wFMCommunicate OK [08:57:17]CreateOFDProtocolMessage done [08:57:17]OFDSenderStorePacket 48834 [08:57:17]StoreOFDPacket docnum=48834 [08:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 12 87 07 01 78 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6E C5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BE 00 00 35 04 06 00 B0 12 38 FB 2B AB 32 1D 93 35 45 CE 80 F6 [08:57:17]CheckFolder [08:57:17]dirname=/storage/ofd_packets [08:57:17]CheckFolder done [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00048834 [08:57:17]NVStorageSaveData ofd_packets/00048834 [08:57:17]File name is /storage/ofd_packets/00048834 [08:57:17]Write 301 bytes [08:57:17]NVStorageSaveData done [08:57:17]OFDSenderStorePacket done [08:57:17]KKMCreateOFDPacket done [08:57:17]NVStorageSaveData kkm_last_timestamp [08:57:17]File name is /storage/kkm_last_timestamp [08:57:17]Write 4 bytes [08:57:17]NVStorageSaveData done [08:57:17]ExternCall_PrintAddStr [08:57:17]wPrintStart [08:57:17]Write to MH i2c: 01 00 00 55 05 5A [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [08:57:17]RasterBufferAndPrint [08:57:17]line Счет N : (1)215930 [08:57:17]line ИНН: 02508201610067 [08:57:17]line Контрольно-Кассовый Чек [08:57:17]line ПРОДАЖА [08:57:17]line ТРК (МРК, ГНК) : 22 [08:57:17]line Товар: 2710124130 [08:57:17]line Аи-92-К-5 [08:57:17]line 6.640 * 60.30 [08:57:17]line = 400.39 [08:57:17]line НДС 12% НСП 1% [08:57:17]line > о реализуемом товаре [08:57:17]line ОКРУГЛЕНИЕ: -0.39 [08:57:17]line ИТОГО: 400.00 [08:57:17]line Внесено: 400.00 [08:57:17]line СДАЧА: 0.00 [08:57:17]line НСП 1% : 3.54 [08:57:17]line НДС 12% : 42.52 [08:57:17]line Наличными: 400.00 [08:57:17]line Безнал.: 0.00 [08:57:17]line Место: АЗС № 102 "Партнер Нефть" [08:57:17]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:57:17]line СНО: Общий режим [08:57:17]line Чек 14 27.01.2024 08:57 [08:57:17]line Смена: 243 ФФД: 1.0 [08:57:17]line ЗНМ: 0300000040 [08:57:17]line РНМ: 0000000000092723 [08:57:17]line Версия ККМ: 001 [08:57:17]line ФМ: 0000000000875060 [08:57:17]line ФД: 48834 [08:57:17]line ФПД: 193592311884715 [08:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T085718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48834&fm=193592311884715&tin=02508201610067®Number=0000000000092723&sum=40000 [08:57:17]OFD Sender: Processing packet 48834 [packets to send 12, broken 11] [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00048834 [08:57:17]OFD Sender: To server: pG, [08:57:17]CommunicateWithHost lk.salyk.kg:30040 [08:57:17]ConnectInit lk.salyk.kg [08:57:17]written 0, free lines is 4095 [08:57:17]Connected sock=10 [08: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 35 30 36 30 0F 01 00 00 12 87 07 01 78 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 6E C5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BE 00 00 35 04 06 00 B0 12 38 FB 2B AB 32 1D 93 35 45 CE 80 F6 [08:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 9B 07 47 00 F1 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BE 00 00 F4 03 04 00 6D 71 B4 65 B6 04 01 00 00 DD CE FB 2F 22 30 4E EA [08:57:17]CommunicateWithHost err = 0 [08:57:17]CheckOFDResponse [08:57:17]1017 (14) - 77093643461234 [08:57:17]1041 (16) - 0000000000875060 [08:57:17]1040 (4) - 48834 [08:57:17]1012 (4) - 27.01.2024 02:58 [08:57:17]1206 (1) - 0 [08:57:17]OFD Sender: Remove packet 48834 [08:57:17]ProducePacketName [08:57:17]name=ofd_packets/00048834 [08:57:17]NVStorageDeleteData [08:57:18]Write to MH i2c: 01 00 00 80 05 85 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 EF 0C 87 [08:57:18]RasterBufferAndPrint [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]line [08:57:18]written 0, free lines is 3317 [08:57:18]MH_Cut [08:57:18]Write to MH i2c: D1 01 00 87 05 01 5E [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: D1 01 00 87 05 00 5D [08:57:18]Write to MH i2c: 01 00 00 88 05 8D [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]OFD Sender: No OFD packet to send [08:57:18]*** Cut start [08:57:18]*** Partial cut [08:57:18]*** CUTSNS_PIN = 1 [08:57:18]*** CUTSNS_PIN = 0 [08:57:18]*** Brake cut motor [08:57:19]Read from MH i2c: 01 [08:57:19]MH_I2C_Read... [08:57:19]*** Stop cut motor [08:57:19]*** Cut end [08:57:19]Read from MH i2c: 01 07 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [08:57:19]process_action close_receipt done [08:57:19]requested_data is exist [08:57:19]produce_requested_data [08:57:19]requested_item fm.sn is exist - process it [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 11 00 00 [08:57:19]Write to MH i2c: E2 08 00 89 05 80 11 00 00 00 00 00 00 08 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 17 00 89 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 55 [08:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:57:19]wFMCommunicate OK [08:57:19]requested_item fd.num is exist - process it [08:57:19]SAM_PROTO_GetFieldsCounters [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 13 00 00 [08:57:19]Write to MH i2c: E2 08 00 8A 05 80 13 00 00 00 00 00 00 0B [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 62 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 62 00 8A 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C2 BE 00 00 0E 04 04 00 F3 00 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 C1 [08:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C2 BE 00 00 0E 04 04 00 F3 00 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 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_GetFieldsCounters done [08:57:19]requested_item shift.num is exist - process it [08:57:19]requested_item shift.opened is exist - process it [08:57:19]req_shift_opened [08:57:19]FM_GetShiftState [08:57:19]SAM_PROTO_GetShiftState [08:57:19]wFMCommunicate request_size=4 [08:57:19]MH_SAM_APDU [08:57:19]CAPDU: 80 13 01 00 [08:57:19]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:19]Read from MH i2c: E2 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0E 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A4 [08:57:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [08:57:19]wFMCommunicate OK [08:57:19]SAM_PROTO_GetShiftState done [08:57:19]FM_GetShiftState done [08:57:19]req_shift_opened done [08:57:19]requested_item shift.open_date is exist - process it [08:57:19]req_shift_open_date [08:57:19]req_shift_open_date done [08:57:19]produce_requested_data done [08:57:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48834,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [08:57:19]process_action_free close_receipt [08:57:19]json_value_free [08:57:19]json_value_free done [08:57:19]process_json_proto returns [08:57:19]Send response to host [08:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48834,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [08:57:19]free response buf [08:57:19]execute_script done [08:57:19]execute_script returns [08:57:19]free content buf [08:57:19]Sock 7.Close socket [08:57:19]Sock 7.Thread stoped [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:47]accept exits with 9 [09:02:47]New connection [09:02:47]New thread 3066813796 created [09:02:47]Thread 3066670436 joined [09:02:47]Waiting for new connection... [09:02:47] Sock 9.Parse request [09:02:47]Sock 9.Check first char [09:02:47]Sock 9.First char is OK [09:02:47]request: POST /json_proto HTTP/1.0 [09:02:47]Method: POST [09:02:47]URL: /json_proto [09:02:47]Method is POST - this is cgi request [09:02:47]url: /json_proto [09:02:47]query_string will be loaded in cgi processing [09:02:47]execute_cgi json_proto POST (null) [09:02:47]execute_cgi path=json_proto method=POST [09:02:47]POST find Content-Length [09:02:47]Host: 172.17.56.67:8080 [09:02:47]Content-Length: 677 [09:02:47]Content-Type: application/json [09:02:47] [09:02:47]POST finish read [09:02:47]Found Content-Length = 677 [09:02:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:47]execute_script... [09:02: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)215931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:47]POST & json_proto [09:02:47]process_json_proto [09:02:47]json parsed OK: [09:02:47]protocol is kg_v1.0 [09:02:47]action value=close_receipt [09:02:47]process_action close_receipt [09:02:47]cmd_close_receipt [09:02:47]MH_GetDate [09:02:47]Write to MH i2c: F0 00 00 8C 05 80 [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: F0 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: F0 09 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: F0 09 00 8C 05 00 B9 C6 B4 65 26 5D 9E 65 A7 [09:02:47]GetLastDocTimeStamp 1706345838 [09:02:47]current date 1706346169 [09:02:47]FM_GetShiftState [09:02:47]SAM_PROTO_GetShiftState [09:02:47]wFMCommunicate request_size=4 [09:02:47]MH_SAM_APDU [09:02:47]CAPDU: 80 13 01 00 [09:02:47]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [09:02:47]Write i2c OK [09:02:47]MH_I2C_Read... [09:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:47]Read from MH i2c: E2 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 0E 00 [09:02:47]MH_I2C_Read... [09:02:47]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A6 [09:02:47]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:02:47]wFMCommunicate OK [09:02:47]SAM_PROTO_GetShiftState done [09:02:47]FM_GetShiftState done [09:02:47]opened in 1706313770 [09:02:47]opened+sec_in_day 1706400170 [09:02:47]quantity*price = 40039 [09:02:47]sum+1 = 40040 [09:02:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 15 27.01.2024 09:02 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48835 ФПД: 112469500379962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090249&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48835&fm=112469500379962&tin=02508201610067®Number=0000000000092723&sum=40000 [09:02:48]StoreToDocumentArchive [09:02:48]shift 243 fd 48835 [09:02:48]save to /storage/0243/doc_00048835 [09:02:48]save last doc name /storage/0243/doc_00048835 to /storage/kkm_last_doc_name [09:02:48]save OK [09:02:48]Clear old archive folders... [09:02:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:48]tlvbuf is 011B4990 [09:02:48]SAM_PROTO_ClearQueue [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 09 00 00 [09:02:48]Write to MH i2c: E2 08 00 9A 05 80 09 00 00 00 00 00 00 11 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]SAM_PROTO_ClearQueue done [09:02:48]KKMCreateOFDPacket [09:02:48]OFDProtocolAddRootSTLVToBuf [09:02:48]FM_MakeSignedData [09:02:48]FM_MakeSignedData [09:02:48]SAM_PROTO_SignData [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 0D 01 02 [09:02:48]Write to MH i2c: E2 08 00 9B 05 80 0D 01 02 00 00 00 00 19 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]wFMCommunicate request_size=255 [09:02:48]MH_SAM_APDU [09:02: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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B9 C6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BE 00 00 35 04 06 00 66 [09:02:48]Write to MH i2c: E2 02 01 9C 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B9 C6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BE 00 00 35 04 06 00 66 00 00 14 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]wFMCommunicate request_size=10 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 0D 02 02 05 4A 58 9E 43 3A [09:02:48]Write to MH i2c: E2 0D 00 9D 05 80 0D 02 02 05 00 4A 58 9E 43 3A 00 00 E3 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]OFD Sender: No OFD packet to send [09:02:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [09:02:48]RAPDU: 90 00 [09:02:48]wFMCommunicate OK [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 0D 03 02 [09:02:48]Write to MH i2c: E2 08 00 9E 05 80 0D 03 02 00 00 00 00 1E [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0B 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 0B 00 9E 05 00 41 48 6D 90 80 44 2D DE 90 00 74 [09:02:48]RAPDU: 41 48 6D 90 80 44 2D DE 90 00 [09:02:48]wFMCommunicate OK [09:02:48]SAM_PROTO_SignData done [09:02:48]FM_MakeSignedData done [09:02:48]CreateOFDProtocolMessage [09:02:48]wFMCommunicate request_size=4 [09:02:48]MH_SAM_APDU [09:02:48]CAPDU: 80 11 00 00 [09:02:48]Write to MH i2c: E2 08 00 9F 05 80 11 00 00 00 00 00 00 1E [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:48]Read from MH i2c: E2 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 17 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: E2 17 00 9F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [09:02:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:02:48]wFMCommunicate OK [09:02:48]CreateOFDProtocolMessage done [09:02:48]OFDSenderStorePacket 48835 [09:02:48]StoreOFDPacket docnum=48835 [09:02:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 67 E6 07 01 28 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B9 C6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BE 00 00 35 04 06 00 66 4A 58 9E 43 3A 41 48 6D 90 80 44 2D DE [09:02:48]CheckFolder [09:02:48]dirname=/storage/ofd_packets [09:02:48]CheckFolder done [09:02:48]ProducePacketName [09:02:48]name=ofd_packets/00048835 [09:02:48]NVStorageSaveData ofd_packets/00048835 [09:02:48]File name is /storage/ofd_packets/00048835 [09:02:48]Write 301 bytes [09:02:48]NVStorageSaveData done [09:02:48]OFDSenderStorePacket done [09:02:48]KKMCreateOFDPacket done [09:02:48]NVStorageSaveData kkm_last_timestamp [09:02:48]File name is /storage/kkm_last_timestamp [09:02:48]Write 4 bytes [09:02:48]NVStorageSaveData done [09:02:48]ExternCall_PrintAddStr [09:02:48]wPrintStart [09:02:48]Write to MH i2c: 01 00 00 A0 05 A5 [09:02:48]Write i2c OK [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 [09:02:48]MH_I2C_Read... [09:02:48]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [09:02:48]RasterBufferAndPrint [09:02:48]line Счет N : (1)215931 [09:02:48]line ИНН: 02508201610067 [09:02:48]line Контрольно-Кассовый Чек [09:02:48]line ПРОДАЖА [09:02:48]line ТРК (МРК, ГНК) : 22 [09:02:48]line Товар: 2710124130 [09:02:48]line Аи-92-К-5 [09:02:48]line 6.640 * 60.30 [09:02:48]line = 400.39 [09:02:48]line НДС 12% НСП 1% [09:02:48]line > о реализуемом товаре [09:02:48]line ОКРУГЛЕНИЕ: -0.39 [09:02:48]line ИТОГО: 400.00 [09:02:48]line Внесено: 400.00 [09:02:48]line СДАЧА: 0.00 [09:02:48]line НСП 1% : 3.54 [09:02:48]line НДС 12% : 42.52 [09:02:48]line Наличными: 400.00 [09:02:48]line Безнал.: 0.00 [09:02:48]line Место: АЗС № 102 "Партнер Нефть" [09:02:48]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:02:48]line СНО: Общий режим [09:02:48]line Чек 15 27.01.2024 09:02 [09:02:48]line Смена: 243 ФФД: 1.0 [09:02:48]line ЗНМ: 0300000040 [09:02:48]line РНМ: 0000000000092723 [09:02:48]line Версия ККМ: 001 [09:02:48]line ФМ: 0000000000875060 [09:02:48]line ФД: 48835 [09:02:48]line ФПД: 112469500379962 [09:02:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090249&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48835&fm=112469500379962&tin=02508201610067®Number=0000000000092723&sum=40000 [09:02:49]OFD Sender: Processing packet 48835 [packets to send 12, broken 11] [09:02:49]ProducePacketName [09:02:49]name=ofd_packets/00048835 [09:02:49]OFD Sender: To server: pG, [09:02:49]CommunicateWithHost lk.salyk.kg:30040 [09:02:49]ConnectInit lk.salyk.kg [09:02:49]written 0, free lines is 4095 [09:02:49]Connected sock=10 [09:02:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 67 E6 07 01 28 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 B9 C6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BE 00 00 35 04 06 00 66 4A 58 9E 43 3A 41 48 6D 90 80 44 2D DE [09:02:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8C D3 47 00 B0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BE 00 00 F4 03 04 00 B8 72 B4 65 B6 04 01 00 00 29 E1 DF CA 3B FB 84 1E [09:02:49]CommunicateWithHost err = 0 [09:02:49]CheckOFDResponse [09:02:49]1017 (14) - 77093643461234 [09:02:49]1041 (16) - 0000000000875060 [09:02:49]1040 (4) - 48835 [09:02:49]1012 (4) - 27.01.2024 03:04 [09:02:49]1206 (1) - 0 [09:02:49]OFD Sender: Remove packet 48835 [09:02:49]ProducePacketName [09:02:49]name=ofd_packets/00048835 [09:02:49]NVStorageDeleteData [09:02:49]Write to MH i2c: 01 00 00 CB 05 D0 [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: 01 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: 01 07 00 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: 01 07 00 CB 05 00 00 00 00 00 EC 0C CF [09:02:49]RasterBufferAndPrint [09:02:49]line [09:02:49]line [09:02:49]line [09:02:49]line [09:02:49]line [09:02:49]written 0, free lines is 3314 [09:02:49]MH_Cut [09:02:49]Write to MH i2c: D1 01 00 D2 05 01 A9 [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: D1 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: D1 01 00 [09:02:49]MH_I2C_Read... [09:02:49]Read from MH i2c: D1 01 00 D2 05 00 A8 [09:02:49]Write to MH i2c: 01 00 00 D3 05 D8 [09:02:49]Write i2c OK [09:02:49]MH_I2C_Read... [09:02:49]OFD Sender: No OFD packet to send [09:02:50]*** Cut start [09:02:50]*** Partial cut [09:02:50]*** CUTSNS_PIN = 1 [09:02:50]*** CUTSNS_PIN = 0 [09:02:50]*** Brake cut motor [09:02:50]Read from MH i2c: 01 [09:02:50]MH_I2C_Read... [09:02:50]*** Stop cut motor [09:02:50]*** Cut end [09:02:50]Read from MH i2c: 01 07 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 FF 0F ED [09:02:50]process_action close_receipt done [09:02:50]requested_data is exist [09:02:50]produce_requested_data [09:02:50]requested_item fm.sn is exist - process it [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 11 00 00 [09:02:50]Write to MH i2c: E2 08 00 D4 05 80 11 00 00 00 00 00 00 53 [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:50]Read from MH i2c: E2 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 [09:02:50]MH_I2C_Read... [09:02:50]Read from MH i2c: E2 17 00 D4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A0 [09:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:02:50]wFMCommunicate OK [09:02:50]requested_item fd.num is exist - process it [09:02:50]SAM_PROTO_GetFieldsCounters [09:02:50]wFMCommunicate request_size=4 [09:02:50]MH_SAM_APDU [09:02:50]CAPDU: 80 13 00 00 [09:02:50]Write to MH i2c: E2 08 00 D5 05 80 13 00 00 00 00 00 00 56 [09:02:50]Write i2c OK [09:02:50]MH_I2C_Read... [09:02:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:51]Read from MH i2c: E2 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: E2 62 00 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: E2 62 00 D5 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C3 BE 00 00 0E 04 04 00 F3 00 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 10 [09:02: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C3 BE 00 00 0E 04 04 00 F3 00 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 [09:02:51]wFMCommunicate OK [09:02:51]SAM_PROTO_GetFieldsCounters done [09:02:51]requested_item shift.num is exist - process it [09:02:51]requested_item shift.opened is exist - process it [09:02:51]req_shift_opened [09:02:51]FM_GetShiftState [09:02:51]SAM_PROTO_GetShiftState [09:02:51]wFMCommunicate request_size=4 [09:02:51]MH_SAM_APDU [09:02:51]CAPDU: 80 13 01 00 [09:02:51]Write to MH i2c: E2 08 00 D6 05 80 13 01 00 00 00 00 00 58 [09:02:51]Write i2c OK [09:02:51]MH_I2C_Read... [09:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:51]Read from MH i2c: E2 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: E2 0E 00 [09:02:51]MH_I2C_Read... [09:02:51]Read from MH i2c: E2 0E 00 D6 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 EF [09:02:51]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:02:51]wFMCommunicate OK [09:02:51]SAM_PROTO_GetShiftState done [09:02:51]FM_GetShiftState done [09:02:51]req_shift_opened done [09:02:51]requested_item shift.open_date is exist - process it [09:02:51]req_shift_open_date [09:02:51]req_shift_open_date done [09:02:51]produce_requested_data done [09:02:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48835,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:02:51]process_action_free close_receipt [09:02:51]json_value_free [09:02:51]json_value_free done [09:02:51]process_json_proto returns [09:02:51]Send response to host [09:02:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48835,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:02:51]free response buf [09:02:51]execute_script done [09:02:51]execute_script returns [09:02:51]free content buf [09:02:51]Sock 9.Close socket [09:02:51]Sock 9.Thread stoped [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09: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:18]accept exits with 7 [09:06:18]New connection [09:06:18]New thread 3066670436 created [09:06:18]Thread 3066813796 joined [09:06:18]Waiting for new connection... [09:06:18] Sock 7.Parse request [09:06:18]Sock 7.Check first char [09:06:18]Sock 7.First char is OK [09:06:18]request: POST /json_proto HTTP/1.0 [09:06:18]Method: POST [09:06:18]URL: /json_proto [09:06:18]Method is POST - this is cgi request [09:06:19]url: /json_proto [09:06:19]query_string will be loaded in cgi processing [09:06:19]execute_cgi json_proto POST (null) [09:06:19]execute_cgi path=json_proto method=POST [09:06:19]POST find Content-Length [09:06:19]Host: 172.17.56.67:8080 [09:06:19]Content-Length: 677 [09:06:19]Content-Type: application/json [09:06:19] [09:06:19]POST finish read [09:06:19]Found Content-Length = 677 [09:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]execute_script... [09:06: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)215932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:19]POST & json_proto [09:06:19]process_json_proto [09:06:19]json parsed OK: [09:06:19]protocol is kg_v1.0 [09:06:19]action value=close_receipt [09:06:19]process_action close_receipt [09:06:19]cmd_close_receipt [09:06:19]MH_GetDate [09:06:19]Write to MH i2c: F0 00 00 D7 05 CB [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: F0 09 00 D7 05 00 8D C7 B4 65 26 5D 9E 65 C7 [09:06:19]GetLastDocTimeStamp 1706346169 [09:06:19]current date 1706346381 [09:06:19]FM_GetShiftState [09:06:19]SAM_PROTO_GetShiftState [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 13 01 00 [09:06:19]Write to MH i2c: E2 08 00 D8 05 80 13 01 00 00 00 00 00 5A [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0E 00 D8 05 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F1 [09:06:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_GetShiftState done [09:06:19]FM_GetShiftState done [09:06:19]opened in 1706313770 [09:06:19]opened+sec_in_day 1706400170 [09:06:19]quantity*price = 30029 [09:06:19]sum+1 = 30030 [09:06:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 16 27.01.2024 09:06 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48836 ФПД: 257472909726253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090621&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48836&fm=257472909726253&tin=02508201610067®Number=0000000000092723&sum=30000 [09:06:20]StoreToDocumentArchive [09:06:20]shift 243 fd 48836 [09:06:20]save to /storage/0243/doc_00048836 [09:06:20]save last doc name /storage/0243/doc_00048836 to /storage/kkm_last_doc_name [09:06:20]save OK [09:06:20]Clear old archive folders... [09:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:20]tlvbuf is 013417A0 [09:06:20]SAM_PROTO_ClearQueue [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 09 00 00 [09:06:20]Write to MH i2c: E2 08 00 E5 05 80 09 00 00 00 00 00 00 5C [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]SAM_PROTO_ClearQueue done [09:06:20]KKMCreateOFDPacket [09:06:20]OFDProtocolAddRootSTLVToBuf [09:06:20]FM_MakeSignedData [09:06:20]FM_MakeSignedData [09:06:20]SAM_PROTO_SignData [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 0D 01 02 [09:06:20]Write to MH i2c: E2 08 00 E6 05 80 0D 01 02 00 00 00 00 64 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]wFMCommunicate request_size=255 [09:06:20]MH_SAM_APDU [09:06: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8D C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 BE 00 00 35 04 06 00 EA [09:06:20]Write to MH i2c: E2 02 01 E7 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8D C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 BE 00 00 35 04 06 00 EA 00 00 06 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]wFMCommunicate request_size=10 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 0D 02 02 05 2B 95 52 D2 2D [09:06:20]Write to MH i2c: E2 0D 00 E8 05 80 0D 02 02 05 00 2B 95 52 D2 2D 00 00 82 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [09:06:20]RAPDU: 90 00 [09:06:20]wFMCommunicate OK [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 0D 03 02 [09:06:20]Write to MH i2c: E2 08 00 E9 05 80 0D 03 02 00 00 00 00 69 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 0B 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 0B 00 E9 05 00 C9 2B B5 53 6E B2 26 1E 90 00 CA [09:06:20]RAPDU: C9 2B B5 53 6E B2 26 1E 90 00 [09:06:20]wFMCommunicate OK [09:06:20]SAM_PROTO_SignData done [09:06:20]FM_MakeSignedData done [09:06:20]CreateOFDProtocolMessage [09:06:20]wFMCommunicate request_size=4 [09:06:20]MH_SAM_APDU [09:06:20]CAPDU: 80 11 00 00 [09:06:20]Write to MH i2c: E2 08 00 EA 05 80 11 00 00 00 00 00 00 69 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:20]Read from MH i2c: E2 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 17 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: E2 17 00 EA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [09:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:06:20]wFMCommunicate OK [09:06:20]CreateOFDProtocolMessage done [09:06:20]OFDSenderStorePacket 48836 [09:06:20]StoreOFDPacket docnum=48836 [09:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 87 BD 07 01 5B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8D C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 BE 00 00 35 04 06 00 EA 2B 95 52 D2 2D C9 2B B5 53 6E B2 26 1E [09:06:20]CheckFolder [09:06:20]dirname=/storage/ofd_packets [09:06:20]CheckFolder done [09:06:20]ProducePacketName [09:06:20]name=ofd_packets/00048836 [09:06:20]NVStorageSaveData ofd_packets/00048836 [09:06:20]File name is /storage/ofd_packets/00048836 [09:06:20]Write 301 bytes [09:06:20]NVStorageSaveData done [09:06:20]OFDSenderStorePacket done [09:06:20]KKMCreateOFDPacket done [09:06:20]NVStorageSaveData kkm_last_timestamp [09:06:20]File name is /storage/kkm_last_timestamp [09:06:20]Write 4 bytes [09:06:20]NVStorageSaveData done [09:06:20]ExternCall_PrintAddStr [09:06:20]wPrintStart [09:06:20]Write to MH i2c: 01 00 00 EB 05 F0 [09:06:20]Write i2c OK [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 [09:06:20]MH_I2C_Read... [09:06:20]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [09:06:20]RasterBufferAndPrint [09:06:20]line Счет N : (1)215932 [09:06:20]line ИНН: 02508201610067 [09:06:20]line Контрольно-Кассовый Чек [09:06:20]line ПРОДАЖА [09:06:20]line ТРК (МРК, ГНК) : 22 [09:06:20]line Товар: 2710124130 [09:06:20]line Аи-92-К-5 [09:06:20]line 4.980 * 60.30 [09:06:20]line = 300.29 [09:06:20]line НДС 12% НСП 1% [09:06:20]line > о реализуемом товаре [09:06:20]line ОКРУГЛЕНИЕ: -0.29 [09:06:20]line ИТОГО: 300.00 [09:06:20]line Внесено: 300.00 [09:06:20]line СДАЧА: 0.00 [09:06:20]line НСП 1% : 2.66 [09:06:20]line НДС 12% : 31.89 [09:06:20]line Наличными: 300.00 [09:06:20]line Безнал.: 0.00 [09:06:20]line Место: АЗС № 102 "Партнер Нефть" [09:06:20]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:06:20]line СНО: Общий режим [09:06:20]line Чек 16 27.01.2024 09:06 [09:06:20]line Смена: 243 ФФД: 1.0 [09:06:20]line ЗНМ: 0300000040 [09:06:20]line РНМ: 0000000000092723 [09:06:20]line Версия ККМ: 001 [09:06:20]line ФМ: 0000000000875060 [09:06:20]line ФД: 48836 [09:06:20]line ФПД: 257472909726253 [09:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090621&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48836&fm=257472909726253&tin=02508201610067®Number=0000000000092723&sum=30000 [09:06:21]OFD Sender: Processing packet 48836 [packets to send 12, broken 11] [09:06:21]ProducePacketName [09:06:21]name=ofd_packets/00048836 [09:06:21]OFD Sender: To server: pG, [09:06:21]CommunicateWithHost lk.salyk.kg:30040 [09:06:21]ConnectInit lk.salyk.kg [09:06:21]written 0, free lines is 4095 [09:06:21]Connected sock=10 [09:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 87 BD 07 01 5B DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 8D C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 BE 00 00 35 04 06 00 EA 2B 95 52 D2 2D C9 2B B5 53 6E B2 26 1E [09:06:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A0 03 47 00 1C 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 35 30 36 30 10 04 04 00 C4 BE 00 00 F4 03 04 00 8C 73 B4 65 B6 04 01 00 00 40 58 78 4E 80 DD F6 73 [09:06:21]CommunicateWithHost err = 0 [09:06:21]CheckOFDResponse [09:06:21]1017 (14) - 77093643461234 [09:06:21]1041 (16) - 0000000000875060 [09:06:21]1040 (4) - 48836 [09:06:21]1012 (4) - 27.01.2024 03:07 [09:06:21]1206 (1) - 0 [09:06:21]OFD Sender: Remove packet 48836 [09:06:21]ProducePacketName [09:06:21]name=ofd_packets/00048836 [09:06:21]NVStorageDeleteData [09:06:21]Write to MH i2c: 01 00 00 16 06 1C [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 EF 0C 1E [09:06:21]RasterBufferAndPrint [09:06:21]line [09:06:21]line [09:06:21]line [09:06:21]line [09:06:21]line [09:06:21]written 0, free lines is 3317 [09:06:21]MH_Cut [09:06:21]Write to MH i2c: D1 01 00 1D 06 01 F5 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: D1 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: D1 01 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: D1 01 00 1D 06 00 F4 [09:06:21]Write to MH i2c: 01 00 00 1E 06 24 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]OFD Sender: No OFD packet to send [09:06:22]*** Cut start [09:06:22]*** Partial cut [09:06:22]*** CUTSNS_PIN = 1 [09:06:22]*** CUTSNS_PIN = 0 [09:06:22]*** Brake cut motor [09:06:22]Read from MH i2c: 01 [09:06:22]MH_I2C_Read... [09:06:22]*** Stop cut motor [09:06:22]*** Cut end [09:06:22]Read from MH i2c: 01 07 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: 01 07 00 1E 06 00 00 00 00 00 FF 0F 39 [09:06:22]process_action close_receipt done [09:06:22]requested_data is exist [09:06:22]produce_requested_data [09:06:22]requested_item fm.sn is exist - process it [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 11 00 00 [09:06:22]Write to MH i2c: E2 08 00 1F 06 80 11 00 00 00 00 00 00 9F [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 17 00 1F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EC [09:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:06:22]wFMCommunicate OK [09:06:22]requested_item fd.num is exist - process it [09:06:22]SAM_PROTO_GetFieldsCounters [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 13 00 00 [09:06:22]Write to MH i2c: E2 08 00 20 06 80 13 00 00 00 00 00 00 A2 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:22]Read from MH i2c: E2 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 62 00 [09:06:22]MH_I2C_Read... [09:06:22]Read from MH i2c: E2 62 00 20 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C4 BE 00 00 0E 04 04 00 F3 00 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 60 [09:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C4 BE 00 00 0E 04 04 00 F3 00 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 [09:06:22]wFMCommunicate OK [09:06:22]SAM_PROTO_GetFieldsCounters done [09:06:22]requested_item shift.num is exist - process it [09:06:22]requested_item shift.opened is exist - process it [09:06:22]req_shift_opened [09:06:22]FM_GetShiftState [09:06:22]SAM_PROTO_GetShiftState [09:06:22]wFMCommunicate request_size=4 [09:06:22]MH_SAM_APDU [09:06:22]CAPDU: 80 13 01 00 [09:06:22]Write to MH i2c: E2 08 00 21 06 80 13 01 00 00 00 00 00 A4 [09:06:22]Write i2c OK [09:06:22]MH_I2C_Read... [09:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:23]Read from MH i2c: E2 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0E 00 [09:06:23]MH_I2C_Read... [09:06:23]Read from MH i2c: E2 0E 00 21 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 3B [09:06:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:06:23]wFMCommunicate OK [09:06:23]SAM_PROTO_GetShiftState done [09:06:23]FM_GetShiftState done [09:06:23]req_shift_opened done [09:06:23]requested_item shift.open_date is exist - process it [09:06:23]req_shift_open_date [09:06:23]req_shift_open_date done [09:06:23]produce_requested_data done [09:06:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48836,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:06:23]process_action_free close_receipt [09:06:23]json_value_free [09:06:23]json_value_free done [09:06:23]process_json_proto returns [09:06:23]Send response to host [09:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48836,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:06:23]free response buf [09:06:23]execute_script done [09:06:23]execute_script returns [09:06:23]free content buf [09:06:23]Sock 7.Close socket [09:06:23]Sock 7.Thread stoped [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:30]accept exits with 9 [09:07:30]New connection [09:07:30]New thread 3066813796 created [09:07:30]Thread 3066670436 joined [09:07:30]Waiting for new connection... [09:07:30] Sock 9.Parse request [09:07:30]Sock 9.Check first char [09:07:30]Sock 9.First char is OK [09:07:30]request: POST /json_proto HTTP/1.0 [09:07:30]Method: POST [09:07:30]URL: /json_proto [09:07:30]Method is POST - this is cgi request [09:07:30]url: /json_proto [09:07:30]query_string will be loaded in cgi processing [09:07:30]execute_cgi json_proto POST (null) [09:07:30]execute_cgi path=json_proto method=POST [09:07:30]POST find Content-Length [09:07:30]Host: 172.17.56.67:8080 [09:07:30]Content-Length: 677 [09:07:30]Content-Type: application/json [09:07:30] [09:07:30]POST finish read [09:07:30]Found Content-Length = 677 [09:07:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:30]execute_script... [09:07: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)215933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:30]POST & json_proto [09:07:30]process_json_proto [09:07:30]json parsed OK: [09:07:30]protocol is kg_v1.0 [09:07:30]action value=close_receipt [09:07:30]process_action close_receipt [09:07:30]cmd_close_receipt [09:07:30]MH_GetDate [09:07:30]Write to MH i2c: F0 00 00 22 06 17 [09:07:30]Write i2c OK [09:07:30]MH_I2C_Read... [09:07:30]Read from MH i2c: F0 [09:07:30]MH_I2C_Read... [09:07:30]Read from MH i2c: F0 09 00 [09:07:30]MH_I2C_Read... [09:07:30]Read from MH i2c: F0 09 00 22 06 00 D4 C7 B4 65 26 5D 9E 65 5A [09:07:30]GetLastDocTimeStamp 1706346381 [09:07:30]current date 1706346452 [09:07:30]FM_GetShiftState [09:07:30]SAM_PROTO_GetShiftState [09:07:30]wFMCommunicate request_size=4 [09:07:30]MH_SAM_APDU [09:07:30]CAPDU: 80 13 01 00 [09:07:30]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [09:07:30]Write i2c OK [09:07:30]MH_I2C_Read... [09:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:30]Read from MH i2c: E2 [09:07:30]MH_I2C_Read... [09:07:30]Read from MH i2c: E2 0E 00 [09:07:30]MH_I2C_Read... [09:07:30]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 3D [09:07:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:07:30]wFMCommunicate OK [09:07:30]SAM_PROTO_GetShiftState done [09:07:30]FM_GetShiftState done [09:07:30]opened in 1706313770 [09:07:30]opened+sec_in_day 1706400170 [09:07:30]quantity*price = 20019 [09:07:30]sum+1 = 20021 [09:07:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 17 27.01.2024 09:07 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48837 ФПД: 91846947073326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090733&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48837&fm=91846947073326&tin=02508201610067®Number=0000000000092723&sum=20000 [09:07:31]StoreToDocumentArchive [09:07:31]shift 243 fd 48837 [09:07:31]save to /storage/0243/doc_00048837 [09:07:31]save last doc name /storage/0243/doc_00048837 to /storage/kkm_last_doc_name [09:07:31]save OK [09:07:31]Clear old archive folders... [09:07:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:31]tlvbuf is 0119B650 [09:07:31]SAM_PROTO_ClearQueue [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 09 00 00 [09:07:31]Write to MH i2c: E2 08 00 30 06 80 09 00 00 00 00 00 00 A8 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [09:07:31]RAPDU: 90 00 [09:07:31]wFMCommunicate OK [09:07:31]SAM_PROTO_ClearQueue done [09:07:31]KKMCreateOFDPacket [09:07:31]OFDProtocolAddRootSTLVToBuf [09:07:31]FM_MakeSignedData [09:07:31]FM_MakeSignedData [09:07:31]SAM_PROTO_SignData [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 0D 01 02 [09:07:31]Write to MH i2c: E2 08 00 31 06 80 0D 01 02 00 00 00 00 B0 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [09:07:31]RAPDU: 90 00 [09:07:31]wFMCommunicate OK [09:07:31]wFMCommunicate request_size=255 [09:07:31]MH_SAM_APDU [09:07: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D5 C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 BE 00 00 35 04 06 00 53 [09:07:31]Write to MH i2c: E2 02 01 32 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D5 C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 BE 00 00 35 04 06 00 53 00 00 4F [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]OFD Sender: No OFD packet to send [09:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [09:07:31]RAPDU: 90 00 [09:07:31]wFMCommunicate OK [09:07:31]wFMCommunicate request_size=10 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 0D 02 02 05 88 C8 A7 6D 2E [09:07:31]Write to MH i2c: E2 0D 00 33 06 80 0D 02 02 05 00 88 C8 A7 6D 2E 00 00 4F [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:31]Read from MH i2c: E2 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 [09:07:31]MH_I2C_Read... [09:07:31]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [09:07:31]RAPDU: 90 00 [09:07:31]wFMCommunicate OK [09:07:31]wFMCommunicate request_size=4 [09:07:31]MH_SAM_APDU [09:07:31]CAPDU: 80 0D 03 02 [09:07:31]Write to MH i2c: E2 08 00 34 06 80 0D 03 02 00 00 00 00 B5 [09:07:31]Write i2c OK [09:07:31]MH_I2C_Read... [09:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:32]Read from MH i2c: E2 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: E2 0B 00 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: E2 0B 00 34 06 00 20 4B 18 4B AE 63 A2 4D 90 00 84 [09:07:32]RAPDU: 20 4B 18 4B AE 63 A2 4D 90 00 [09:07:32]wFMCommunicate OK [09:07:32]SAM_PROTO_SignData done [09:07:32]FM_MakeSignedData done [09:07:32]CreateOFDProtocolMessage [09:07:32]wFMCommunicate request_size=4 [09:07:32]MH_SAM_APDU [09:07:32]CAPDU: 80 11 00 00 [09:07:32]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [09:07:32]Write i2c OK [09:07:32]MH_I2C_Read... [09:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:32]Read from MH i2c: E2 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: E2 17 00 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 02 [09:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:07:32]wFMCommunicate OK [09:07:32]CreateOFDProtocolMessage done [09:07:32]OFDSenderStorePacket 48837 [09:07:32]StoreOFDPacket docnum=48837 [09:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6D 38 07 01 8F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D5 C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 BE 00 00 35 04 06 00 53 88 C8 A7 6D 2E 20 4B 18 4B AE 63 A2 4D [09:07:32]CheckFolder [09:07:32]dirname=/storage/ofd_packets [09:07:32]CheckFolder done [09:07:32]ProducePacketName [09:07:32]name=ofd_packets/00048837 [09:07:32]NVStorageSaveData ofd_packets/00048837 [09:07:32]File name is /storage/ofd_packets/00048837 [09:07:32]Write 301 bytes [09:07:32]NVStorageSaveData done [09:07:32]OFDSenderStorePacket done [09:07:32]KKMCreateOFDPacket done [09:07:32]NVStorageSaveData kkm_last_timestamp [09:07:32]File name is /storage/kkm_last_timestamp [09:07:32]Write 4 bytes [09:07:32]NVStorageSaveData done [09:07:32]ExternCall_PrintAddStr [09:07:32]wPrintStart [09:07:32]Write to MH i2c: 01 00 00 36 06 3C [09:07:32]Write i2c OK [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 07 00 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [09:07:32]RasterBufferAndPrint [09:07:32]line Счет N : (1)215933 [09:07:32]line ИНН: 02508201610067 [09:07:32]line Контрольно-Кассовый Чек [09:07:32]line ПРОДАЖА [09:07:32]line ТРК (МРК, ГНК) : 12 [09:07:32]line Товар: 2710124130 [09:07:32]line Аи-92-К-5 [09:07:32]line 3.320 * 60.30 [09:07:32]line = 200.20 [09:07:32]line НДС 12% НСП 1% [09:07:32]line > о реализуемом товаре [09:07:32]line ОКРУГЛЕНИЕ: -0.20 [09:07:32]line ИТОГО: 200.00 [09:07:32]line Внесено: 200.00 [09:07:32]line СДАЧА: 0.00 [09:07:32]line НСП 1% : 1.77 [09:07:32]line НДС 12% : 21.26 [09:07:32]line Наличными: 200.00 [09:07:32]line Безнал.: 0.00 [09:07:32]line Место: АЗС № 102 "Партнер Нефть" [09:07:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:07:32]line СНО: Общий режим [09:07:32]line Чек 17 27.01.2024 09:07 [09:07:32]line Смена: 243 ФФД: 1.0 [09:07:32]line ЗНМ: 0300000040 [09:07:32]line РНМ: 0000000000092723 [09:07:32]line Версия ККМ: 001 [09:07:32]line ФМ: 0000000000875060 [09:07:32]line ФД: 48837 [09:07:32]line ФПД: 91846947073326 [09:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T090733&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48837&fm=91846947073326&tin=02508201610067®Number=0000000000092723&sum=20000 [09:07:32]OFD Sender: Processing packet 48837 [packets to send 12, broken 11] [09:07:32]ProducePacketName [09:07:32]name=ofd_packets/00048837 [09:07:32]OFD Sender: To server: pG, [09:07:32]CommunicateWithHost lk.salyk.kg:30040 [09:07:32]ConnectInit lk.salyk.kg [09:07:32]written 0, free lines is 4095 [09:07:32]Connected sock=10 [09:07:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6D 38 07 01 8F C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 D5 C7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 BE 00 00 35 04 06 00 53 88 C8 A7 6D 2E 20 4B 18 4B AE 63 A2 4D [09:07:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 36 2E 47 00 A9 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 35 30 36 30 10 04 04 00 C5 BE 00 00 F4 03 04 00 D3 73 B4 65 B6 04 01 00 00 25 70 49 CA B2 01 F2 7E [09:07:32]CommunicateWithHost err = 0 [09:07:32]CheckOFDResponse [09:07:32]1017 (14) - 77093643461234 [09:07:32]1041 (16) - 0000000000875060 [09:07:32]1040 (4) - 48837 [09:07:32]1012 (4) - 27.01.2024 03:09 [09:07:32]1206 (1) - 0 [09:07:32]OFD Sender: Remove packet 48837 [09:07:32]ProducePacketName [09:07:32]name=ofd_packets/00048837 [09:07:32]NVStorageDeleteData [09:07:32]Write to MH i2c: 01 00 00 61 06 67 [09:07:32]Write i2c OK [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 07 00 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 EE 0C 68 [09:07:32]RasterBufferAndPrint [09:07:32]line [09:07:32]line [09:07:32]line [09:07:32]line [09:07:32]line [09:07:32]written 0, free lines is 3316 [09:07:32]MH_Cut [09:07:32]Write to MH i2c: D1 01 00 68 06 01 40 [09:07:32]Write i2c OK [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: D1 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: D1 01 00 [09:07:32]MH_I2C_Read... [09:07:32]Read from MH i2c: D1 01 00 68 06 00 3F [09:07:32]Write to MH i2c: 01 00 00 69 06 6F [09:07:32]Write i2c OK [09:07:32]MH_I2C_Read... [09:07:33]OFD Sender: No OFD packet to send [09:07:33]*** Cut start [09:07:33]*** Partial cut [09:07:33]*** CUTSNS_PIN = 1 [09:07:33]*** CUTSNS_PIN = 0 [09:07:33]*** Brake cut motor [09:07:34]Read from MH i2c: 01 [09:07:34]MH_I2C_Read... [09:07:34]*** Stop cut motor [09:07:34]*** Cut end [09:07:34]Read from MH i2c: 01 07 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 FF 0F 84 [09:07:34]process_action close_receipt done [09:07:34]requested_data is exist [09:07:34]produce_requested_data [09:07:34]requested_item fm.sn is exist - process it [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 11 00 00 [09:07:34]Write to MH i2c: E2 08 00 6A 06 80 11 00 00 00 00 00 00 EA [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 17 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 17 00 6A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 37 [09:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:07:34]wFMCommunicate OK [09:07:34]requested_item fd.num is exist - process it [09:07:34]SAM_PROTO_GetFieldsCounters [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 13 00 00 [09:07:34]Write to MH i2c: E2 08 00 6B 06 80 13 00 00 00 00 00 00 ED [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 62 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 62 00 6B 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C5 BE 00 00 0E 04 04 00 F3 00 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 AF [09:07: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C5 BE 00 00 0E 04 04 00 F3 00 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 [09:07:34]wFMCommunicate OK [09:07:34]SAM_PROTO_GetFieldsCounters done [09:07:34]requested_item shift.num is exist - process it [09:07:34]requested_item shift.opened is exist - process it [09:07:34]req_shift_opened [09:07:34]FM_GetShiftState [09:07:34]SAM_PROTO_GetShiftState [09:07:34]wFMCommunicate request_size=4 [09:07:34]MH_SAM_APDU [09:07:34]CAPDU: 80 13 01 00 [09:07:34]Write to MH i2c: E2 08 00 6C 06 80 13 01 00 00 00 00 00 EF [09:07:34]Write i2c OK [09:07:34]MH_I2C_Read... [09:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:34]Read from MH i2c: E2 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 0E 00 [09:07:34]MH_I2C_Read... [09:07:34]Read from MH i2c: E2 0E 00 6C 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 86 [09:07:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:07:34]wFMCommunicate OK [09:07:34]SAM_PROTO_GetShiftState done [09:07:34]FM_GetShiftState done [09:07:34]req_shift_opened done [09:07:34]requested_item shift.open_date is exist - process it [09:07:34]req_shift_open_date [09:07:34]req_shift_open_date done [09:07:34]produce_requested_data done [09:07:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48837,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:07:34]process_action_free close_receipt [09:07:34]json_value_free [09:07:34]json_value_free done [09:07:34]process_json_proto returns [09:07:34]Send response to host [09:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48837,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:07:34]free response buf [09:07:34]execute_script done [09:07:34]execute_script returns [09:07:34]free content buf [09:07:34]Sock 9.Close socket [09:07:34]Sock 9.Thread stoped [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [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: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: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:33]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [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: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:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:15]accept exits with 7 [09:18:15]New connection [09:18:15]New thread 3066670436 created [09:18:15]Thread 3066813796 joined [09:18:15]Waiting for new connection... [09:18:15] Sock 7.Parse request [09:18:15]Sock 7.Check first char [09:18:15]Sock 7.First char is OK [09:18:15]request: POST /json_proto HTTP/1.0 [09:18:15]Method: POST [09:18:15]URL: /json_proto [09:18:15]Method is POST - this is cgi request [09:18:15]url: /json_proto [09:18:15]query_string will be loaded in cgi processing [09:18:15]execute_cgi json_proto POST (null) [09:18:15]execute_cgi path=json_proto method=POST [09:18:15]POST find Content-Length [09:18:15]Host: 172.17.56.67:8080 [09:18:15]Content-Length: 671 [09:18:15]Content-Type: application/json [09:18:15] [09:18:15]POST finish read [09:18:15]Found Content-Length = 671 [09:18:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 1.230, "sum" : 85.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 85.00, "payments": [ { "type": 0, "sum" : 85.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:15]execute_script... [09: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)215934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 1.230, "sum" : 85.98, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 85.00, "payments": [ { "type": 0, "sum" : 85.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:15]POST & json_proto [09:18:15]process_json_proto [09:18:15]json parsed OK: [09:18:15]protocol is kg_v1.0 [09:18:15]action value=close_receipt [09:18:15]process_action close_receipt [09:18:15]cmd_close_receipt [09:18:15]MH_GetDate [09:18:15]Write to MH i2c: F0 00 00 6D 06 62 [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 09 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: F0 09 00 6D 06 00 59 CA B4 65 26 5D 9E 65 2D [09:18:15]GetLastDocTimeStamp 1706346453 [09:18:15]current date 1706347097 [09:18:15]FM_GetShiftState [09:18:15]SAM_PROTO_GetShiftState [09:18:15]wFMCommunicate request_size=4 [09:18:15]MH_SAM_APDU [09:18:15]CAPDU: 80 13 01 00 [09:18:15]Write to MH i2c: E2 08 00 6E 06 80 13 01 00 00 00 00 00 F1 [09:18:15]Write i2c OK [09:18:15]MH_I2C_Read... [09:18:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:15]Read from MH i2c: E2 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 [09:18:15]MH_I2C_Read... [09:18:15]Read from MH i2c: E2 0E 00 6E 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 88 [09:18:15]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:18:15]wFMCommunicate OK [09:18:15]SAM_PROTO_GetShiftState done [09:18:15]FM_GetShiftState done [09:18:15]opened in 1706313770 [09:18:15]opened+sec_in_day 1706400170 [09:18:15]quantity*price = 8597 [09:18:15]sum+1 = 8599 [09:18:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.98 ИТОГО: 85.00 Внесено: 350.00 СДАЧА: 265.00 НСП 1% : 0.76 НДС 12% : 9.13 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 18 27.01.2024 09:18 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48838 ФПД: 73510387707313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T091817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48838&fm=73510387707313&tin=02508201610067®Number=0000000000092723&sum=8500 [09:18:16]StoreToDocumentArchive [09:18:16]shift 243 fd 48838 [09:18:16]save to /storage/0243/doc_00048838 [09:18:16]save last doc name /storage/0243/doc_00048838 to /storage/kkm_last_doc_name [09:18:16]save OK [09:18:16]Clear old archive folders... [09:18:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:18:16]tlvbuf is 01341020 [09:18:16]SAM_PROTO_ClearQueue [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 09 00 00 [09:18:16]Write to MH i2c: E2 08 00 7B 06 80 09 00 00 00 00 00 00 F3 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]SAM_PROTO_ClearQueue done [09:18:16]KKMCreateOFDPacket [09:18:16]OFDProtocolAddRootSTLVToBuf [09:18:16]FM_MakeSignedData [09:18:16]FM_MakeSignedData [09:18:16]SAM_PROTO_SignData [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 01 02 [09:18:16]Write to MH i2c: E2 08 00 7C 06 80 0D 01 02 00 00 00 00 FB [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=255 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 96 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 59 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 BE 00 00 35 04 06 00 42 DB 78 8B [09:18:16]Write to MH i2c: E2 02 01 7D 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 96 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 59 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 BE 00 00 35 04 06 00 42 DB 78 8B 00 00 B1 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=7 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 02 02 02 ED B1 [09:18:16]Write to MH i2c: E2 0A 00 7E 06 80 0D 02 02 02 00 ED B1 00 00 A0 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 03 00 7E 06 00 90 00 F8 [09:18:16]RAPDU: 90 00 [09:18:16]wFMCommunicate OK [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 0D 03 02 [09:18:16]Write to MH i2c: E2 08 00 7F 06 80 0D 03 02 00 00 00 00 00 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 0B 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 0B 00 7F 06 00 75 79 7E C5 5E 06 1B 68 90 00 19 [09:18:16]RAPDU: 75 79 7E C5 5E 06 1B 68 90 00 [09:18:16]wFMCommunicate OK [09:18:16]SAM_PROTO_SignData done [09:18:16]FM_MakeSignedData done [09:18:16]CreateOFDProtocolMessage [09:18:16]wFMCommunicate request_size=4 [09:18:16]MH_SAM_APDU [09:18:16]CAPDU: 80 11 00 00 [09:18:16]Write to MH i2c: E2 08 00 80 06 80 11 00 00 00 00 00 00 00 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:16]Read from MH i2c: E2 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 17 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: E2 17 00 80 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4D [09:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:18:16]wFMCommunicate OK [09:18:16]CreateOFDProtocolMessage done [09:18:16]OFDSenderStorePacket 48838 [09:18:16]StoreOFDPacket docnum=48838 [09:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 59 1B 04 01 0C 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 96 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 59 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 BE 00 00 35 04 06 00 42 DB 78 8B ED B1 75 79 7E C5 5E 06 1B 68 [09:18:16]CheckFolder [09:18:16]dirname=/storage/ofd_packets [09:18:16]CheckFolder done [09:18:16]ProducePacketName [09:18:16]name=ofd_packets/00048838 [09:18:16]NVStorageSaveData ofd_packets/00048838 [09:18:16]File name is /storage/ofd_packets/00048838 [09:18:16]Write 298 bytes [09:18:16]NVStorageSaveData done [09:18:16]OFDSenderStorePacket done [09:18:16]KKMCreateOFDPacket done [09:18:16]NVStorageSaveData kkm_last_timestamp [09:18:16]File name is /storage/kkm_last_timestamp [09:18:16]Write 4 bytes [09:18:16]NVStorageSaveData done [09:18:16]ExternCall_PrintAddStr [09:18:16]wPrintStart [09:18:16]Write to MH i2c: 01 00 00 81 06 87 [09:18:16]Write i2c OK [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 07 00 [09:18:16]MH_I2C_Read... [09:18:16]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 FF 0F 9C [09:18:16]RasterBufferAndPrint [09:18:16]line Счет N : (1)215934 [09:18:16]line ИНН: 02508201610067 [09:18:16]line Контрольно-Кассовый Чек [09:18:16]line ПРОДАЖА [09:18:16]line ТРК (МРК, ГНК) : 21 [09:18:16]line Товар: 2710194210 [09:18:16]line ДТ-К-5 [09:18:16]line 1.230 * 69.90 [09:18:16]line = 85.98 [09:18:16]line НДС 12% НСП 1% [09:18:16]line > о реализуемом товаре [09:18:16]line ОКРУГЛЕНИЕ: -0.98 [09:18:16]line ИТОГО: 85.00 [09:18:16]line Внесено: 350.00 [09:18:16]line СДАЧА: 265.00 [09:18:16]line НСП 1% : 0.76 [09:18:16]line НДС 12% : 9.13 [09:18:16]line Наличными: 85.00 [09:18:16]line Безнал.: 0.00 [09:18:16]line Место: АЗС № 102 "Партнер Нефть" [09:18:16]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:18:16]line СНО: Общий режим [09:18:16]line Чек 18 27.01.2024 09:18 [09:18:16]line Смена: 243 ФФД: 1.0 [09:18:16]line ЗНМ: 0300000040 [09:18:16]line РНМ: 0000000000092723 [09:18:16]line Версия ККМ: 001 [09:18:16]line ФМ: 0000000000875060 [09:18:16]line ФД: 48838 [09:18:16]line ФПД: 73510387707313 [09:18:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T091817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48838&fm=73510387707313&tin=02508201610067®Number=0000000000092723&sum=8500 [09:18:17]OFD Sender: Processing packet 48838 [packets to send 12, broken 11] [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00048838 [09:18:17]OFD Sender: To server: pG, [09:18:17]CommunicateWithHost lk.salyk.kg:30040 [09:18:17]ConnectInit lk.salyk.kg [09:18:17]written 0, free lines is 4095 [09:18:17]Connected sock=10 [09: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 35 30 36 30 0C 01 00 00 59 1B 04 01 0C 45 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 04 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 96 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 59 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 BE 00 00 35 04 06 00 42 DB 78 8B ED B1 75 79 7E C5 5E 06 1B 68 [09:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EC 20 47 00 40 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 BE 00 00 F4 03 04 00 58 76 B4 65 B6 04 01 00 00 99 91 C0 CF B1 13 0D 5C [09:18:17]CommunicateWithHost err = 0 [09:18:17]CheckOFDResponse [09:18:17]1017 (14) - 77093643461234 [09:18:17]1041 (16) - 0000000000875060 [09:18:17]1040 (4) - 48838 [09:18:17]1012 (4) - 27.01.2024 03:19 [09:18:17]1206 (1) - 0 [09:18:17]OFD Sender: Remove packet 48838 [09:18:17]ProducePacketName [09:18:17]name=ofd_packets/00048838 [09:18:17]NVStorageDeleteData [09:18:17]Write to MH i2c: 01 00 00 AC 06 B2 [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 E7 0C AC [09:18:17]RasterBufferAndPrint [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]line [09:18:17]written 0, free lines is 3310 [09:18:17]MH_Cut [09:18:17]Write to MH i2c: D1 01 00 B3 06 01 8B [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 01 00 [09:18:17]MH_I2C_Read... [09:18:17]Read from MH i2c: D1 01 00 B3 06 00 8A [09:18:17]Write to MH i2c: 01 00 00 B4 06 BA [09:18:17]Write i2c OK [09:18:17]MH_I2C_Read... [09:18:18]OFD Sender: No OFD packet to send [09:18:18]*** Cut start [09:18:18]*** Partial cut [09:18:18]*** CUTSNS_PIN = 1 [09:18:18]*** CUTSNS_PIN = 0 [09:18:18]*** Brake cut motor [09:18:18]Read from MH i2c: 01 [09:18:18]MH_I2C_Read... [09:18:18]*** Stop cut motor [09:18:18]*** Cut end [09:18:18]Read from MH i2c: 01 07 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 FF 0F CF [09:18:18]process_action close_receipt done [09:18:18]requested_data is exist [09:18:18]produce_requested_data [09:18:18]requested_item fm.sn is exist - process it [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 11 00 00 [09:18:18]Write to MH i2c: E2 08 00 B5 06 80 11 00 00 00 00 00 00 35 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:18]Read from MH i2c: E2 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 17 00 [09:18:18]MH_I2C_Read... [09:18:18]Read from MH i2c: E2 17 00 B5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [09:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:18:18]wFMCommunicate OK [09:18:18]requested_item fd.num is exist - process it [09:18:18]SAM_PROTO_GetFieldsCounters [09:18:18]wFMCommunicate request_size=4 [09:18:18]MH_SAM_APDU [09:18:18]CAPDU: 80 13 00 00 [09:18:18]Write to MH i2c: E2 08 00 B6 06 80 13 00 00 00 00 00 00 38 [09:18:18]Write i2c OK [09:18:18]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 62 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 62 00 B6 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C6 BE 00 00 0E 04 04 00 F3 00 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 FE [09:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C6 BE 00 00 0E 04 04 00 F3 00 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 [09:18:19]wFMCommunicate OK [09:18:19]SAM_PROTO_GetFieldsCounters done [09:18:19]requested_item shift.num is exist - process it [09:18:19]requested_item shift.opened is exist - process it [09:18:19]req_shift_opened [09:18:19]FM_GetShiftState [09:18:19]SAM_PROTO_GetShiftState [09:18:19]wFMCommunicate request_size=4 [09:18:19]MH_SAM_APDU [09:18:19]CAPDU: 80 13 01 00 [09:18:19]Write to MH i2c: E2 08 00 B7 06 80 13 01 00 00 00 00 00 3A [09:18:19]Write i2c OK [09:18:19]MH_I2C_Read... [09:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:19]Read from MH i2c: E2 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 0E 00 [09:18:19]MH_I2C_Read... [09:18:19]Read from MH i2c: E2 0E 00 B7 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D1 [09:18:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:18:19]wFMCommunicate OK [09:18:19]SAM_PROTO_GetShiftState done [09:18:19]FM_GetShiftState done [09:18:19]req_shift_opened done [09:18:19]requested_item shift.open_date is exist - process it [09:18:19]req_shift_open_date [09:18:19]req_shift_open_date done [09:18:19]produce_requested_data done [09:18:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48838,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:18:19]process_action_free close_receipt [09:18:19]json_value_free [09:18:19]json_value_free done [09:18:19]process_json_proto returns [09:18:19]Send response to host [09:18:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48838,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:18:19]free response buf [09:18:19]execute_script done [09:18:19]execute_script returns [09:18:19]free content buf [09:18:19]Sock 7.Close socket [09:18:19]Sock 7.Thread stoped [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:38]accept exits with 9 [09:20:38]New connection [09:20:38]New thread 3066813796 created [09:20:38]Thread 3066670436 joined [09:20:38]Waiting for new connection... [09:20:38] Sock 9.Parse request [09:20:38]Sock 9.Check first char [09:20:38]Sock 9.First char is OK [09:20:38]request: POST /json_proto HTTP/1.0 [09:20:38]Method: POST [09:20:38]URL: /json_proto [09:20:38]Method is POST - this is cgi request [09:20:38]url: /json_proto [09:20:38]query_string will be loaded in cgi processing [09:20:38]execute_cgi json_proto POST (null) [09:20:38]execute_cgi path=json_proto method=POST [09:20:38]POST find Content-Length [09:20:38]Host: 172.17.56.67:8080 [09:20:38]Content-Length: 674 [09:20:38]Content-Type: application/json [09:20:38] [09:20:38]POST finish read [09:20:38]Found Content-Length = 674 [09:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 3.800, "sum" : 265.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 265.00, "total" : 265.00, "payments": [ { "type": 0, "sum" : 265.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:38]execute_script... [09:20: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)215935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 3.800, "sum" : 265.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 265.00, "total" : 265.00, "payments": [ { "type": 0, "sum" : 265.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:38]POST & json_proto [09:20:38]process_json_proto [09:20:38]json parsed OK: [09:20:38]protocol is kg_v1.0 [09:20:38]action value=close_receipt [09:20:38]process_action close_receipt [09:20:38]cmd_close_receipt [09:20:38]MH_GetDate [09:20:38]Write to MH i2c: F0 00 00 B8 06 AD [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: F0 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: F0 09 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: F0 09 00 B8 06 00 E8 CA B4 65 26 5D 9E 65 07 [09:20:38]GetLastDocTimeStamp 1706347097 [09:20:38]current date 1706347240 [09:20:38]FM_GetShiftState [09:20:38]SAM_PROTO_GetShiftState [09:20:38]wFMCommunicate request_size=4 [09:20:38]MH_SAM_APDU [09:20:38]CAPDU: 80 13 01 00 [09:20:38]Write to MH i2c: E2 08 00 B9 06 80 13 01 00 00 00 00 00 3C [09:20:38]Write i2c OK [09:20:38]MH_I2C_Read... [09:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:38]Read from MH i2c: E2 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0E 00 [09:20:38]MH_I2C_Read... [09:20:38]Read from MH i2c: E2 0E 00 B9 06 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D3 [09:20:38]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:20:38]wFMCommunicate OK [09:20:38]SAM_PROTO_GetShiftState done [09:20:38]FM_GetShiftState done [09:20:38]opened in 1706313770 [09:20:38]opened+sec_in_day 1706400170 [09:20:38]quantity*price = 26562 [09:20:38]sum+1 = 26563 [09:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 265.00 Внесено: 265.00 СДАЧА: 0.00 НСП 1% : 2.35 НДС 12% : 28.21 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 19 27.01.2024 09:20 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48839 ФПД: 100961667858125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092040&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48839&fm=100961667858125&tin=02508201610067®Number=0000000000092723&sum=26500 [09:20:39]StoreToDocumentArchive [09:20:39]shift 243 fd 48839 [09:20:39]save to /storage/0243/doc_00048839 [09:20:39]save last doc name /storage/0243/doc_00048839 to /storage/kkm_last_doc_name [09:20:39]save OK [09:20:39]Clear old archive folders... [09:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:20:39]tlvbuf is 011B4830 [09:20:39]SAM_PROTO_ClearQueue [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 09 00 00 [09:20:39]Write to MH i2c: E2 08 00 C6 06 80 09 00 00 00 00 00 00 3E [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [09:20:39]RAPDU: 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_ClearQueue done [09:20:39]KKMCreateOFDPacket [09:20:39]OFDProtocolAddRootSTLVToBuf [09:20:39]FM_MakeSignedData [09:20:39]FM_MakeSignedData [09:20:39]SAM_PROTO_SignData [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 0D 01 02 [09:20:39]Write to MH i2c: E2 08 00 C7 06 80 0D 01 02 00 00 00 00 46 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [09:20:39]RAPDU: 90 00 [09:20:39]wFMCommunicate OK [09:20:39]wFMCommunicate request_size=255 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 C2 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0B 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 BE 00 00 35 04 06 00 5B D2 F8 59 [09:20:39]Write to MH i2c: E2 02 01 C8 06 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 C2 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0B 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 BE 00 00 35 04 06 00 5B D2 F8 59 00 00 B8 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [09:20:39]RAPDU: 90 00 [09:20:39]wFMCommunicate OK [09:20:39]wFMCommunicate request_size=7 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 0D 02 02 02 3E CD [09:20:39]Write to MH i2c: E2 0A 00 C9 06 80 0D 02 02 02 00 3E CD 00 00 58 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 03 00 C9 06 00 90 00 43 [09:20:39]RAPDU: 90 00 [09:20:39]wFMCommunicate OK [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 0D 03 02 [09:20:39]Write to MH i2c: E2 08 00 CA 06 80 0D 03 02 00 00 00 00 4B [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0B 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 0B 00 CA 06 00 B2 7D D4 78 5B 51 7D 5C 90 00 4C [09:20:39]RAPDU: B2 7D D4 78 5B 51 7D 5C 90 00 [09:20:39]wFMCommunicate OK [09:20:39]SAM_PROTO_SignData done [09:20:39]FM_MakeSignedData done [09:20:39]CreateOFDProtocolMessage [09:20:39]wFMCommunicate request_size=4 [09:20:39]MH_SAM_APDU [09:20:39]CAPDU: 80 11 00 00 [09:20:39]Write to MH i2c: E2 08 00 CB 06 80 11 00 00 00 00 00 00 4B [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:39]Read from MH i2c: E2 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: E2 17 00 CB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [09:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:39]wFMCommunicate OK [09:20:39]CreateOFDProtocolMessage done [09:20:39]OFDSenderStorePacket 48839 [09:20:39]StoreOFDPacket docnum=48839 [09:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 D7 04 01 94 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 C2 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0B 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 BE 00 00 35 04 06 00 5B D2 F8 59 3E CD B2 7D D4 78 5B 51 7D 5C [09:20:39]CheckFolder [09:20:39]dirname=/storage/ofd_packets [09:20:39]CheckFolder done [09:20:39]ProducePacketName [09:20:39]name=ofd_packets/00048839 [09:20:39]NVStorageSaveData ofd_packets/00048839 [09:20:39]File name is /storage/ofd_packets/00048839 [09:20:39]Write 298 bytes [09:20:39]NVStorageSaveData done [09:20:39]OFDSenderStorePacket done [09:20:39]KKMCreateOFDPacket done [09:20:39]NVStorageSaveData kkm_last_timestamp [09:20:39]File name is /storage/kkm_last_timestamp [09:20:39]Write 4 bytes [09:20:39]NVStorageSaveData done [09:20:39]ExternCall_PrintAddStr [09:20:39]wPrintStart [09:20:39]Write to MH i2c: 01 00 00 CC 06 D2 [09:20:39]Write i2c OK [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 [09:20:39]MH_I2C_Read... [09:20:39]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 FF 0F E7 [09:20:39]RasterBufferAndPrint [09:20:39]line Счет N : (1)215935 [09:20:39]line ИНН: 02508201610067 [09:20:39]line Контрольно-Кассовый Чек [09:20:39]line ПРОДАЖА [09:20:39]line ТРК (МРК, ГНК) : 11 [09:20:39]line Товар: 2710194210 [09:20:39]line ДТ-К-5 [09:20:39]line 3.800 * 69.90 [09:20:39]line = 265.62 [09:20:39]line НДС 12% НСП 1% [09:20:39]line > о реализуемом товаре [09:20:39]line ОКРУГЛЕНИЕ: -0.62 [09:20:39]line ИТОГО: 265.00 [09:20:39]line Внесено: 265.00 [09:20:39]line СДАЧА: 0.00 [09:20:39]line НСП 1% : 2.35 [09:20:39]line НДС 12% : 28.21 [09:20:39]line Наличными: 265.00 [09:20:39]line Безнал.: 0.00 [09:20:39]line Место: АЗС № 102 "Партнер Нефть" [09:20:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:20:39]line СНО: Общий режим [09:20:39]line Чек 19 27.01.2024 09:20 [09:20:39]line Смена: 243 ФФД: 1.0 [09:20:39]line ЗНМ: 0300000040 [09:20:39]line РНМ: 0000000000092723 [09:20:39]line Версия ККМ: 001 [09:20:39]line ФМ: 0000000000875060 [09:20:39]line ФД: 48839 [09:20:39]line ФПД: 100961667858125 [09:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092040&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48839&fm=100961667858125&tin=02508201610067®Number=0000000000092723&sum=26500 [09:20:40]OFD Sender: Processing packet 48839 [packets to send 12, broken 11] [09:20:40]ProducePacketName [09:20:40]name=ofd_packets/00048839 [09:20:40]OFD Sender: To server: pG, [09:20:40]CommunicateWithHost lk.salyk.kg:30040 [09:20:40]ConnectInit lk.salyk.kg [09:20:40]written 0, free lines is 4095 [09:20:40]Write to MH i2c: 01 00 00 F7 06 FD [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: 01 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: 01 07 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 F3 0C 03 [09:20:40]RasterBufferAndPrint [09:20:40]line [09:20:40]line [09:20:40]line [09:20:40]line [09:20:40]line [09:20:40]written 0, free lines is 3321 [09:20:40]MH_Cut [09:20:40]Write to MH i2c: D1 01 00 FE 06 01 D6 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: D1 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: D1 01 00 [09:20:40]MH_I2C_Read... [09:20:40]Read from MH i2c: D1 01 00 FE 06 00 D5 [09:20:40]Write to MH i2c: 01 00 00 FF 06 05 [09:20:40]Write i2c OK [09:20:40]MH_I2C_Read... [09:20:41]*** Cut start [09:20:41]*** Partial cut [09:20:41]*** CUTSNS_PIN = 1 [09:20:41]*** CUTSNS_PIN = 0 [09:20:41]*** Brake cut motor [09:20:41]Read from MH i2c: 01 [09:20:41]MH_I2C_Read... [09:20:41]*** Stop cut motor [09:20:41]*** Cut end [09:20:41]Read from MH i2c: 01 07 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 FF 0F 1A [09:20:41]process_action close_receipt done [09:20:41]requested_data is exist [09:20:41]produce_requested_data [09:20:41]requested_item fm.sn is exist - process it [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 11 00 00 [09:20:41]Write to MH i2c: E2 08 00 00 07 80 11 00 00 00 00 00 00 81 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:41]Read from MH i2c: E2 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 [09:20:41]MH_I2C_Read... [09:20:41]Read from MH i2c: E2 17 00 00 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CE [09:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:41]wFMCommunicate OK [09:20:41]requested_item fd.num is exist - process it [09:20:41]SAM_PROTO_GetFieldsCounters [09:20:41]wFMCommunicate request_size=4 [09:20:41]MH_SAM_APDU [09:20:41]CAPDU: 80 13 00 00 [09:20:41]Write to MH i2c: E2 08 00 01 07 80 13 00 00 00 00 00 00 84 [09:20:41]Write i2c OK [09:20:41]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 62 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 62 00 01 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C7 BE 00 00 0E 04 04 00 F3 00 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 4E [09:20: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C7 BE 00 00 0E 04 04 00 F3 00 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 [09:20:42]wFMCommunicate OK [09:20:42]SAM_PROTO_GetFieldsCounters done [09:20:42]requested_item shift.num is exist - process it [09:20:42]requested_item shift.opened is exist - process it [09:20:42]req_shift_opened [09:20:42]FM_GetShiftState [09:20:42]SAM_PROTO_GetShiftState [09:20:42]wFMCommunicate request_size=4 [09:20:42]MH_SAM_APDU [09:20:42]CAPDU: 80 13 01 00 [09:20:42]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [09:20:42]Write i2c OK [09:20:42]MH_I2C_Read... [09:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:42]Read from MH i2c: E2 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 0E 00 [09:20:42]MH_I2C_Read... [09:20:42]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1D [09:20:42]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:20:42]wFMCommunicate OK [09:20:42]SAM_PROTO_GetShiftState done [09:20:42]FM_GetShiftState done [09:20:42]req_shift_opened done [09:20:42]requested_item shift.open_date is exist - process it [09:20:42]req_shift_open_date [09:20:42]req_shift_open_date done [09:20:42]produce_requested_data done [09:20:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48839,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:20:42]process_action_free close_receipt [09:20:42]json_value_free [09:20:42]json_value_free done [09:20:42]process_json_proto returns [09:20:42]Send response to host [09:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48839,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:20:42]free response buf [09:20:42]execute_script done [09:20:42]execute_script returns [09:20:42]free content buf [09:20:42]Sock 9.Close socket [09:20:42]Sock 9.Thread stoped [09:20:53]accept exits with 7 [09:20:53]New connection [09:20:53]New thread 3066670436 created [09:20:53]Thread 3066813796 joined [09:20:53]Waiting for new connection... [09:20:53] Sock 7.Parse request [09:20:53]Sock 7.Check first char [09:20:53]Sock 7.First char is OK [09:20:53]request: POST /json_proto HTTP/1.0 [09:20:53]Method: POST [09:20:53]URL: /json_proto [09:20:53]Method is POST - this is cgi request [09:20:53]url: /json_proto [09:20:53]query_string will be loaded in cgi processing [09:20:53]execute_cgi json_proto POST (null) [09:20:53]execute_cgi path=json_proto method=POST [09:20:53]POST find Content-Length [09:20:53]Host: 172.17.56.67:8080 [09:20:53]Content-Length: 677 [09:20:53]Content-Type: application/json [09:20:53] [09:20:53]POST finish read [09:20:53]Found Content-Length = 677 [09:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.970, "sum" : 480.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:53]execute_script... [09:20: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)215936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.970, "sum" : 480.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:53]POST & json_proto [09:20:53]process_json_proto [09:20:53]json parsed OK: [09:20:53]protocol is kg_v1.0 [09:20:53]action value=close_receipt [09:20:53]process_action close_receipt [09:20:53]cmd_close_receipt [09:20:53]MH_GetDate [09:20:53]Write to MH i2c: F0 00 00 03 07 F9 [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 09 00 [09:20:53]MH_I2C_Read... [09:20:53]Read from MH i2c: F0 09 00 03 07 00 F8 CA B4 65 26 5D 9E 65 63 [09:20:53]GetLastDocTimeStamp 1706347240 [09:20:53]current date 1706347256 [09:20:53]FM_GetShiftState [09:20:53]SAM_PROTO_GetShiftState [09:20:53]wFMCommunicate request_size=4 [09:20:53]MH_SAM_APDU [09:20:53]CAPDU: 80 13 01 00 [09:20:53]Write to MH i2c: E2 08 00 04 07 80 13 01 00 00 00 00 00 88 [09:20:53]Write i2c OK [09:20:53]MH_I2C_Read... [09:20:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:54]Read from MH i2c: E2 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 0E 00 [09:20:54]MH_I2C_Read... [09:20:54]Read from MH i2c: E2 0E 00 04 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1F [09:20:54]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:20:54]wFMCommunicate OK [09:20:54]SAM_PROTO_GetShiftState done [09:20:54]FM_GetShiftState done [09:20:54]opened in 1706313770 [09:20:54]opened+sec_in_day 1706400170 [09:20:54]quantity*price = 48059 [09:20:54]sum+1 = 48060 [09:20:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.04 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 20 27.01.2024 09:20 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48840 ФПД: 3079163454818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092056&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48840&fm=3079163454818&tin=02508201610067®Number=0000000000092723&sum=48000 [09:20:55]StoreToDocumentArchive [09:20:55]shift 243 fd 48840 [09:20:55]save to /storage/0243/doc_00048840 [09:20:55]save last doc name /storage/0243/doc_00048840 to /storage/kkm_last_doc_name [09:20:55]save OK [09:20:55]Clear old archive folders... [09:20:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:55]tlvbuf is 0119CA00 [09:20:55]SAM_PROTO_ClearQueue [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 09 00 00 [09:20:55]Write to MH i2c: E2 08 00 11 07 80 09 00 00 00 00 00 00 8A [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_ClearQueue done [09:20:55]KKMCreateOFDPacket [09:20:55]OFDProtocolAddRootSTLVToBuf [09:20:55]FM_MakeSignedData [09:20:55]FM_MakeSignedData [09:20:55]SAM_PROTO_SignData [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 01 02 [09:20:55]Write to MH i2c: E2 08 00 12 07 80 0D 01 02 00 00 00 00 92 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=255 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 F8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 BE 00 00 35 04 06 00 02 [09:20:55]Write to MH i2c: E2 02 01 13 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 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 F8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 BE 00 00 35 04 06 00 02 00 00 7D [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=10 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 02 02 05 CC EC 71 A5 62 [09:20:55]Write to MH i2c: E2 0D 00 14 07 80 0D 02 02 05 00 CC EC 71 A5 62 00 00 CF [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 03 00 14 07 00 90 00 8F [09:20:55]RAPDU: 90 00 [09:20:55]wFMCommunicate OK [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 0D 03 02 [09:20:55]Write to MH i2c: E2 08 00 15 07 80 0D 03 02 00 00 00 00 97 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0B 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 0B 00 15 07 00 4C F7 9B 6E 73 B0 B3 A0 90 00 5A [09:20:55]RAPDU: 4C F7 9B 6E 73 B0 B3 A0 90 00 [09:20:55]wFMCommunicate OK [09:20:55]SAM_PROTO_SignData done [09:20:55]FM_MakeSignedData done [09:20:55]CreateOFDProtocolMessage [09:20:55]wFMCommunicate request_size=4 [09:20:55]MH_SAM_APDU [09:20:55]CAPDU: 80 11 00 00 [09:20:55]Write to MH i2c: E2 08 00 16 07 80 11 00 00 00 00 00 00 97 [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:55]Read from MH i2c: E2 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: E2 17 00 16 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E4 [09:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:55]wFMCommunicate OK [09:20:55]CreateOFDProtocolMessage done [09:20:55]OFDSenderStorePacket 48840 [09:20:55]StoreOFDPacket docnum=48840 [09:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 28 DD 07 01 6A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 F8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 BE 00 00 35 04 06 00 02 CC EC 71 A5 62 4C F7 9B 6E 73 B0 B3 A0 [09:20:55]CheckFolder [09:20:55]dirname=/storage/ofd_packets [09:20:55]CheckFolder done [09:20:55]ProducePacketName [09:20:55]name=ofd_packets/00048840 [09:20:55]NVStorageSaveData ofd_packets/00048840 [09:20:55]File name is /storage/ofd_packets/00048840 [09:20:55]Write 301 bytes [09:20:55]NVStorageSaveData done [09:20:55]OFDSenderStorePacket done [09:20:55]KKMCreateOFDPacket done [09:20:55]NVStorageSaveData kkm_last_timestamp [09:20:55]File name is /storage/kkm_last_timestamp [09:20:55]Write 4 bytes [09:20:55]NVStorageSaveData done [09:20:55]ExternCall_PrintAddStr [09:20:55]wPrintStart [09:20:55]Write to MH i2c: 01 00 00 17 07 1E [09:20:55]Write i2c OK [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 07 00 [09:20:55]MH_I2C_Read... [09:20:55]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 FF 0F 33 [09:20:55]RasterBufferAndPrint [09:20:55]line Счет N : (1)215936 [09:20:55]line ИНН: 02508201610067 [09:20:55]line Контрольно-Кассовый Чек [09:20:55]line ПРОДАЖА [09:20:55]line ТРК (МРК, ГНК) : 22 [09:20:55]line Товар: 2710124130 [09:20:55]line Аи-92-К-5 [09:20:55]line 7.970 * 60.30 [09:20:55]line = 480.59 [09:20:55]line НДС 12% НСП 1% [09:20:55]line > о реализуемом товаре [09:20:55]line ОКРУГЛЕНИЕ: -0.59 [09:20:55]line ИТОГО: 480.00 [09:20:55]line Внесено: 480.00 [09:20:55]line СДАЧА: 0.00 [09:20:55]line НСП 1% : 4.25 [09:20:55]line НДС 12% : 51.04 [09:20:55]line Наличными: 480.00 [09:20:55]line Безнал.: 0.00 [09:20:55]line Место: АЗС № 102 "Партнер Нефть" [09:20:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:20:55]line СНО: Общий режим [09:20:55]line Чек 20 27.01.2024 09:20 [09:20:55]line Смена: 243 ФФД: 1.0 [09:20:55]line ЗНМ: 0300000040 [09:20:55]line РНМ: 0000000000092723 [09:20:55]line Версия ККМ: 001 [09:20:55]line ФМ: 0000000000875060 [09:20:55]line ФД: 48840 [09:20:55]line ФПД: 3079163454818 [09:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092056&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48840&fm=3079163454818&tin=02508201610067®Number=0000000000092723&sum=48000 [09:20:56]written 0, free lines is 4095 [09:20:56]Write to MH i2c: 01 00 00 42 07 49 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 07 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: 01 07 00 42 07 00 00 00 00 00 EF 0C 4B [09:20:56]RasterBufferAndPrint [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]line [09:20:56]written 0, free lines is 3317 [09:20:56]MH_Cut [09:20:56]Write to MH i2c: D1 01 00 49 07 01 22 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 01 00 [09:20:56]MH_I2C_Read... [09:20:56]Read from MH i2c: D1 01 00 49 07 00 21 [09:20:56]Write to MH i2c: 01 00 00 4A 07 51 [09:20:56]Write i2c OK [09:20:56]MH_I2C_Read... [09:20:57]*** Cut start [09:20:57]*** Partial cut [09:20:57]*** CUTSNS_PIN = 1 [09:20:57]*** CUTSNS_PIN = 0 [09:20:57]*** Brake cut motor [09:20:57]Read from MH i2c: 01 [09:20:57]MH_I2C_Read... [09:20:57]*** Stop cut motor [09:20:57]Read from MH i2c: 01 07 00 [09:20:57]MH_I2C_Read... [09:20:57]*** Cut end [09:20:57]Read from MH i2c: 01 07 00 4A 07 00 00 00 00 00 FF 0F 66 [09:20:57]process_action close_receipt done [09:20:57]requested_data is exist [09:20:57]produce_requested_data [09:20:57]requested_item fm.sn is exist - process it [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 11 00 00 [09:20:57]Write to MH i2c: E2 08 00 4B 07 80 11 00 00 00 00 00 00 CC [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 17 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 17 00 4B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 19 [09:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:57]wFMCommunicate OK [09:20:57]requested_item fd.num is exist - process it [09:20:57]SAM_PROTO_GetFieldsCounters [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 13 00 00 [09:20:57]Write to MH i2c: E2 08 00 4C 07 80 13 00 00 00 00 00 00 CF [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 62 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 62 00 4C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C8 BE 00 00 0E 04 04 00 F3 00 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 9D [09:20: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C8 BE 00 00 0E 04 04 00 F3 00 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 [09:20:57]wFMCommunicate OK [09:20:57]SAM_PROTO_GetFieldsCounters done [09:20:57]requested_item shift.num is exist - process it [09:20:57]requested_item shift.opened is exist - process it [09:20:57]req_shift_opened [09:20:57]FM_GetShiftState [09:20:57]SAM_PROTO_GetShiftState [09:20:57]wFMCommunicate request_size=4 [09:20:57]MH_SAM_APDU [09:20:57]CAPDU: 80 13 01 00 [09:20:57]Write to MH i2c: E2 08 00 4D 07 80 13 01 00 00 00 00 00 D1 [09:20:57]Write i2c OK [09:20:57]MH_I2C_Read... [09:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:57]Read from MH i2c: E2 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 0E 00 [09:20:57]MH_I2C_Read... [09:20:57]Read from MH i2c: E2 0E 00 4D 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 68 [09:20:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:20:57]wFMCommunicate OK [09:20:57]SAM_PROTO_GetShiftState done [09:20:57]FM_GetShiftState done [09:20:57]req_shift_opened done [09:20:57]requested_item shift.open_date is exist - process it [09:20:57]req_shift_open_date [09:20:57]req_shift_open_date done [09:20:57]produce_requested_data done [09:20:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48840,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:20:57]process_action_free close_receipt [09:20:57]json_value_free [09:20:57]json_value_free done [09:20:57]process_json_proto returns [09:20:57]Send response to host [09:20:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48840,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:20:57]free response buf [09:20:57]execute_script done [09:20:57]execute_script returns [09:20:57]free content buf [09:20:57]Sock 7.Close socket [09:20:57]Sock 7.Thread stoped [09:21:37]int [09:21:37]Write to MH i2c: 01 00 00 4E 07 55 [09:21:37]*** FLAG_PRN_KEY set [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 4E 07 00 08 00 00 00 FF 0F 72 [09:21:37]state=0 [09:21:37]Key pressed [09:21:37]Feed [09:21:37]Write to MH i2c: D8 00 00 4F 07 2D [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 01 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 01 00 4F 07 00 2E [09:21:37]int [09:21:37]Write to MH i2c: 01 00 00 50 07 57 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 50 07 00 48 00 00 00 3C 00 E2 [09:21:37]state=2 [09:21:37]Key pressed [09:21:37]int [09:21:37]Write to MH i2c: 01 00 00 51 07 58 [09:21:37]*** FLAG_PRN_KEY reset [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 F6 0F 64 [09:21:37]state=2 [09:21:37]Stop feed [09:21:37]int [09:21:37]Write to MH i2c: 01 00 00 52 07 59 [09:21:37]*** FLAG_PRN_KEY set [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 52 07 00 08 00 00 00 FF 0F 76 [09:21:37]state=0 [09:21:37]Key pressed [09:21:37]Feed [09:21:37]Write to MH i2c: D8 00 00 53 07 31 [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 01 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: D8 01 00 53 07 00 32 [09:21:37]int [09:21:37]Write to MH i2c: 01 00 00 54 07 5B [09:21:37]Write i2c OK [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 [09:21:37]MH_I2C_Read... [09:21:37]Read from MH i2c: 01 07 00 54 07 00 48 00 00 00 3C 00 E6 [09:21:37]state=2 [09:21:37]Key pressed [09:21:38]int [09:21:38]Write to MH i2c: 01 00 00 55 07 5C [09:21:38]*** FLAG_PRN_KEY reset [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: 01 07 00 55 07 00 00 00 00 00 F6 0F 68 [09:21:38]state=2 [09:21:38]Stop feed [09:22:49]ConnectInit Can't connect to host [09:22:49]CommunicateWithHost connect error [09:22:49]CommunicateWithHost err = -1 [09:22:49]OFD Sender: Server communicate error [09:22:49]OFD Sender: Processing packet 48839 [packets to send 13, broken 11] [09:22:49]ProducePacketName [09:22:49]name=ofd_packets/00048839 [09:22:49]OFD Sender: To server: pG, [09:22:49]CommunicateWithHost lk.salyk.kg:30040 [09:22:49]ConnectInit lk.salyk.kg [09:22:49]Connected sock=7 [09:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 D7 04 01 94 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D8 0E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 C2 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 0B 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 E8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 BE 00 00 35 04 06 00 5B D2 F8 59 3E CD B2 7D D4 78 5B 51 7D 5C [09:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 3B 02 47 00 4E 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 BE 00 00 F4 03 04 00 69 77 B4 65 B6 04 01 00 00 DA 09 44 3B 32 70 B4 F8 [09:22:50]CommunicateWithHost err = 0 [09:22:50]CheckOFDResponse [09:22:50]1017 (14) - 77093643461234 [09:22:50]1041 (16) - 0000000000875060 [09:22:50]1040 (4) - 48839 [09:22:50]1012 (4) - 27.01.2024 03:24 [09:22:50]1206 (1) - 0 [09:22:50]OFD Sender: Remove packet 48839 [09:22:50]ProducePacketName [09:22:50]name=ofd_packets/00048839 [09:22:50]NVStorageDeleteData [09:22:50]OFD Sender: Processing packet 48840 [packets to send 12, broken 11] [09:22:50]ProducePacketName [09:22:50]name=ofd_packets/00048840 [09:22:50]OFD Sender: To server: pG, [09:22:50]CommunicateWithHost lk.salyk.kg:30040 [09:22:50]ConnectInit lk.salyk.kg [09:22:50]Connected sock=7 [09:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 28 DD 07 01 6A AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 F8 CA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 BE 00 00 35 04 06 00 02 CC EC 71 A5 62 4C F7 9B 6E 73 B0 B3 A0 [09:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8A A2 47 00 11 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 35 30 36 30 10 04 04 00 C8 BE 00 00 F4 03 04 00 6A 77 B4 65 B6 04 01 00 00 DF 1F 5B 2D 1E 71 37 5B [09:22:50]CommunicateWithHost err = 0 [09:22:50]CheckOFDResponse [09:22:50]1017 (14) - 77093643461234 [09:22:50]1041 (16) - 0000000000875060 [09:22:50]1040 (4) - 48840 [09:22:50]1012 (4) - 27.01.2024 03:24 [09:22:50]1206 (1) - 0 [09:22:50]OFD Sender: Remove packet 48840 [09:22:50]ProducePacketName [09:22:50]name=ofd_packets/00048840 [09:22:50]NVStorageDeleteData [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:03]accept exits with 9 [09:23:03]New connection [09:23:03]New thread 3066813796 created [09:23:03]Thread 3066670436 joined [09:23:03]Waiting for new connection... [09:23:03] Sock 9.Parse request [09:23:03]Sock 9.Check first char [09:23:03]Sock 9.First char is OK [09:23:03]request: POST /json_proto HTTP/1.0 [09:23:03]Method: POST [09:23:03]URL: /json_proto [09:23:03]Method is POST - this is cgi request [09:23:03]url: /json_proto [09:23:03]query_string will be loaded in cgi processing [09:23:03]execute_cgi json_proto POST (null) [09:23:03]execute_cgi path=json_proto method=POST [09:23:03]POST find Content-Length [09:23:03]Host: 172.17.56.67:8080 [09:23:03]Content-Length: 677 [09:23:03]Content-Type: application/json [09:23:03] [09:23:03]POST finish read [09:23:03]Found Content-Length = 677 [09:23:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:03]execute_script... [09:23:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:03]POST & json_proto [09:23:03]process_json_proto [09:23:03]json parsed OK: [09:23:03]protocol is kg_v1.0 [09:23:03]action value=close_receipt [09:23:03]process_action close_receipt [09:23:03]cmd_close_receipt [09:23:03]MH_GetDate [09:23:03]Write to MH i2c: F0 00 00 56 07 4C [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: F0 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: F0 09 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: F0 09 00 56 07 00 7A CB B4 65 26 5D 9E 65 39 [09:23:03]GetLastDocTimeStamp 1706347256 [09:23:03]current date 1706347386 [09:23:03]FM_GetShiftState [09:23:03]SAM_PROTO_GetShiftState [09:23:03]wFMCommunicate request_size=4 [09:23:03]MH_SAM_APDU [09:23:03]CAPDU: 80 13 01 00 [09:23:03]Write to MH i2c: E2 08 00 57 07 80 13 01 00 00 00 00 00 DB [09:23:03]Write i2c OK [09:23:03]MH_I2C_Read... [09:23:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:03]Read from MH i2c: E2 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: E2 0E 00 [09:23:03]MH_I2C_Read... [09:23:03]Read from MH i2c: E2 0E 00 57 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 72 [09:23:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:23:03]wFMCommunicate OK [09:23:03]SAM_PROTO_GetShiftState done [09:23:03]FM_GetShiftState done [09:23:03]opened in 1706313770 [09:23:03]opened+sec_in_day 1706400170 [09:23:03]quantity*price = 60058 [09:23:03]sum+1 = 60060 [09:23:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 21 27.01.2024 09:23 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48841 ФПД: 99229992029459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092306&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48841&fm=99229992029459&tin=02508201610067®Number=0000000000092723&sum=60000 [09:23:04]StoreToDocumentArchive [09:23:04]shift 243 fd 48841 [09:23:04]save to /storage/0243/doc_00048841 [09:23:04]save last doc name /storage/0243/doc_00048841 to /storage/kkm_last_doc_name [09:23:04]save OK [09:23:04]Clear old archive folders... [09:23:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:04]tlvbuf is 01340F90 [09:23:04]SAM_PROTO_ClearQueue [09:23:04]wFMCommunicate request_size=4 [09:23:04]MH_SAM_APDU [09:23:04]CAPDU: 80 09 00 00 [09:23:04]Write to MH i2c: E2 08 00 64 07 80 09 00 00 00 00 00 00 DD [09:23:04]Write i2c OK [09:23:04]MH_I2C_Read... [09:23:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:04]Read from MH i2c: E2 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 03 00 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [09:23:04]RAPDU: 90 00 [09:23:04]wFMCommunicate OK [09:23:04]SAM_PROTO_ClearQueue done [09:23:04]KKMCreateOFDPacket [09:23:04]OFDProtocolAddRootSTLVToBuf [09:23:04]FM_MakeSignedData [09:23:04]FM_MakeSignedData [09:23:04]SAM_PROTO_SignData [09:23:04]wFMCommunicate request_size=4 [09:23:04]MH_SAM_APDU [09:23:04]CAPDU: 80 0D 01 02 [09:23:04]Write to MH i2c: E2 08 00 65 07 80 0D 01 02 00 00 00 00 E5 [09:23:04]Write i2c OK [09:23:04]MH_I2C_Read... [09:23:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:04]Read from MH i2c: E2 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 03 00 [09:23:04]MH_I2C_Read... [09:23:04]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [09:23:04]RAPDU: 90 00 [09:23:04]wFMCommunicate OK [09:23:04]wFMCommunicate request_size=255 [09:23:04]MH_SAM_APDU [09:23:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7A CB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 BE 00 00 35 04 06 00 5A [09:23:04]Write to MH i2c: E2 02 01 66 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7A CB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 BE 00 00 35 04 06 00 5A 00 00 11 [09:23:04]Write i2c OK [09:23:04]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]wFMCommunicate request_size=10 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 02 02 05 3F C8 6D 0D 13 [09:23:05]Write to MH i2c: E2 0D 00 67 07 80 0D 02 02 05 00 3F C8 6D 0D 13 00 00 86 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 03 00 67 07 00 90 00 E2 [09:23:05]RAPDU: 90 00 [09:23:05]wFMCommunicate OK [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 0D 03 02 [09:23:05]Write to MH i2c: E2 08 00 68 07 80 0D 03 02 00 00 00 00 EA [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0B 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0B 00 68 07 00 DB 26 BF 2B 05 83 75 C1 90 00 94 [09:23:05]RAPDU: DB 26 BF 2B 05 83 75 C1 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_SignData done [09:23:05]FM_MakeSignedData done [09:23:05]CreateOFDProtocolMessage [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 11 00 00 [09:23:05]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 37 [09:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:05]wFMCommunicate OK [09:23:05]CreateOFDProtocolMessage done [09:23:05]OFDSenderStorePacket 48841 [09:23:05]StoreOFDPacket docnum=48841 [09:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 D9 07 01 C2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7A CB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 BE 00 00 35 04 06 00 5A 3F C8 6D 0D 13 DB 26 BF 2B 05 83 75 C1 [09:23:05]CheckFolder [09:23:05]dirname=/storage/ofd_packets [09:23:05]CheckFolder done [09:23:05]ProducePacketName [09:23:05]name=ofd_packets/00048841 [09:23:05]NVStorageSaveData ofd_packets/00048841 [09:23:05]File name is /storage/ofd_packets/00048841 [09:23:05]Write 301 bytes [09:23:05]NVStorageSaveData done [09:23:05]OFDSenderStorePacket done [09:23:05]KKMCreateOFDPacket done [09:23:05]NVStorageSaveData kkm_last_timestamp [09:23:05]File name is /storage/kkm_last_timestamp [09:23:05]Write 4 bytes [09:23:05]NVStorageSaveData done [09:23:05]ExternCall_PrintAddStr [09:23:05]wPrintStart [09:23:05]Write to MH i2c: 01 00 00 6A 07 71 [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 07 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [09:23:05]RasterBufferAndPrint [09:23:05]line Счет N : (1)215937 [09:23:05]line ИНН: 02508201610067 [09:23:05]line Контрольно-Кассовый Чек [09:23:05]line ПРОДАЖА [09:23:05]line ТРК (МРК, ГНК) : 22 [09:23:05]line Товар: 2710124130 [09:23:05]line Аи-92-К-5 [09:23:05]line 9.960 * 60.30 [09:23:05]line = 600.59 [09:23:05]line НДС 12% НСП 1% [09:23:05]line > о реализуемом товаре [09:23:05]line ОКРУГЛЕНИЕ: -0.59 [09:23:05]line ИТОГО: 600.00 [09:23:05]line Внесено: 600.00 [09:23:05]line СДАЧА: 0.00 [09:23:05]line НСП 1% : 5.31 [09:23:05]line НДС 12% : 63.78 [09:23:05]line Наличными: 600.00 [09:23:05]line Безнал.: 0.00 [09:23:05]line Место: АЗС № 102 "Партнер Нефть" [09:23:05]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:23:05]line СНО: Общий режим [09:23:05]line Чек 21 27.01.2024 09:23 [09:23:05]line Смена: 243 ФФД: 1.0 [09:23:05]line ЗНМ: 0300000040 [09:23:05]line РНМ: 0000000000092723 [09:23:05]line Версия ККМ: 001 [09:23:05]line ФМ: 0000000000875060 [09:23:05]line ФД: 48841 [09:23:05]line ФПД: 99229992029459 [09:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092306&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48841&fm=99229992029459&tin=02508201610067®Number=0000000000092723&sum=60000 [09:23:05]OFD Sender: Processing packet 48841 [packets to send 12, broken 11] [09:23:05]ProducePacketName [09:23:05]name=ofd_packets/00048841 [09:23:05]OFD Sender: To server: pG, [09:23:05]CommunicateWithHost lk.salyk.kg:30040 [09:23:05]ConnectInit lk.salyk.kg [09:23:05]written 0, free lines is 4095 [09:23:05]Connected sock=10 [09:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 D9 07 01 C2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7A CB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 BE 00 00 35 04 06 00 5A 3F C8 6D 0D 13 DB 26 BF 2B 05 83 75 C1 [09:23:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 65 4E 47 00 53 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 35 30 36 30 10 04 04 00 C9 BE 00 00 F4 03 04 00 79 77 B4 65 B6 04 01 00 00 AF 9F FF 70 74 4A 0E 38 [09:23:05]CommunicateWithHost err = 0 [09:23:05]CheckOFDResponse [09:23:05]1017 (14) - 77093643461234 [09:23:05]1041 (16) - 0000000000875060 [09:23:05]1040 (4) - 48841 [09:23:05]1012 (4) - 27.01.2024 03:24 [09:23:05]1206 (1) - 0 [09:23:05]OFD Sender: Remove packet 48841 [09:23:05]ProducePacketName [09:23:05]name=ofd_packets/00048841 [09:23:05]NVStorageDeleteData [09:23:06]Write to MH i2c: 01 00 00 95 07 9C [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 07 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: 01 07 00 95 07 00 00 00 00 00 F5 0C A4 [09:23:06]RasterBufferAndPrint [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]line [09:23:06]written 0, free lines is 3328 [09:23:06]MH_Cut [09:23:06]Write to MH i2c: D1 01 00 9C 07 01 75 [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 01 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: D1 01 00 9C 07 00 74 [09:23:06]Write to MH i2c: 01 00 00 9D 07 A4 [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]OFD Sender: No OFD packet to send [09:23:06]*** Cut start [09:23:06]*** Partial cut [09:23:06]*** CUTSNS_PIN = 1 [09:23:06]*** CUTSNS_PIN = 0 [09:23:06]*** Brake cut motor [09:23:07]Read from MH i2c: 01 [09:23:07]MH_I2C_Read... [09:23:07]*** Stop cut motor [09:23:07]*** Cut end [09:23:07]Read from MH i2c: 01 07 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 9D 07 00 00 00 00 00 FF 0F B9 [09:23:07]process_action close_receipt done [09:23:07]requested_data is exist [09:23:07]produce_requested_data [09:23:07]requested_item fm.sn is exist - process it [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 11 00 00 [09:23:07]Write to MH i2c: E2 08 00 9E 07 80 11 00 00 00 00 00 00 1F [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 9E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6C [09:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:07]wFMCommunicate OK [09:23:07]requested_item fd.num is exist - process it [09:23:07]SAM_PROTO_GetFieldsCounters [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 13 00 00 [09:23:07]Write to MH i2c: E2 08 00 9F 07 80 13 00 00 00 00 00 00 22 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 62 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 62 00 9F 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C9 BE 00 00 0E 04 04 00 F3 00 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 F4 [09:23:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:07]wFMCommunicate OK [09:23:07]SAM_PROTO_GetFieldsCounters done [09:23:07]requested_item shift.num is exist - process it [09:23:07]requested_item shift.opened is exist - process it [09:23:07]req_shift_opened [09:23:07]FM_GetShiftState [09:23:07]SAM_PROTO_GetShiftState [09:23:07]wFMCommunicate request_size=4 [09:23:07]MH_SAM_APDU [09:23:07]CAPDU: 80 13 01 00 [09:23:07]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 0E 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 BB [09:23:07]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:23:07]wFMCommunicate OK [09:23:07]SAM_PROTO_GetShiftState done [09:23:07]FM_GetShiftState done [09:23:07]req_shift_opened done [09:23:07]requested_item shift.open_date is exist - process it [09:23:07]req_shift_open_date [09:23:07]req_shift_open_date done [09:23:07]produce_requested_data done [09:23:07]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48841,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:23:07]process_action_free close_receipt [09:23:07]json_value_free [09:23:07]json_value_free done [09:23:07]process_json_proto returns [09:23:07]Send response to host [09:23:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48841,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:23:07]free response buf [09:23:07]execute_script done [09:23:07]execute_script returns [09:23:07]free content buf [09:23:07]Sock 9.Close socket [09:23:07]Sock 9.Thread stoped [09:23:11]OFD Sender: No OFD packet to send [09:23:16]OFD Sender: No OFD packet to send [09:23:21]OFD Sender: No OFD packet to send [09:23:26]OFD Sender: No OFD packet to send [09:23:31]OFD Sender: No OFD packet to send [09:23:36]OFD Sender: No OFD packet to send [09:23:41]OFD Sender: No OFD packet to send [09:23:46]OFD Sender: No OFD packet to send [09:23:51]OFD Sender: No OFD packet to send [09:23:56]OFD Sender: No OFD packet to send [09:24:01]OFD Sender: No OFD packet to send [09:24:06]OFD Sender: No OFD packet to send [09:24:11]OFD Sender: No OFD packet to send [09:24:16]OFD Sender: No OFD packet to send [09:24:21]OFD Sender: No OFD packet to send [09:24:26]OFD Sender: No OFD packet to send [09:24:31]OFD Sender: No OFD packet to send [09:24:36]OFD Sender: No OFD packet to send [09:24:41]OFD Sender: No OFD packet to send [09:24:46]OFD Sender: No OFD packet to send [09:24:51]OFD Sender: No OFD packet to send [09:24:56]OFD Sender: No OFD packet to send [09:25:01]OFD Sender: No OFD packet to send [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:52]accept exits with 7 [09:25:52]New connection [09:25:52]New thread 3066670436 created [09:25:52]Thread 3066813796 joined [09:25:52]Waiting for new connection... [09:25:52] Sock 7.Parse request [09:25:52]Sock 7.Check first char [09:25:52]Sock 7.First char is OK [09:25:52]request: POST /json_proto HTTP/1.0 [09:25:52]Method: POST [09:25:52]URL: /json_proto [09:25:52]Method is POST - this is cgi request [09:25:52]url: /json_proto [09:25:52]query_string will be loaded in cgi processing [09:25:52]execute_cgi json_proto POST (null) [09:25:52]execute_cgi path=json_proto method=POST [09:25:52]POST find Content-Length [09:25:52]Host: 172.17.56.67:8080 [09:25:52]Content-Length: 677 [09:25:52]Content-Type: application/json [09:25:52] [09:25:52]POST finish read [09:25:52]Found Content-Length = 677 [09:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:52]execute_script... [09:25: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)215938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:52]POST & json_proto [09:25:52]process_json_proto [09:25:52]json parsed OK: [09:25:52]protocol is kg_v1.0 [09:25:52]action value=close_receipt [09:25:52]process_action close_receipt [09:25:52]cmd_close_receipt [09:25:52]MH_GetDate [09:25:52]Write to MH i2c: F0 00 00 A1 07 97 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 09 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: F0 09 00 A1 07 00 23 CC B4 65 26 5D 9E 65 2E [09:25:52]GetLastDocTimeStamp 1706347386 [09:25:52]current date 1706347555 [09:25:52]FM_GetShiftState [09:25:52]SAM_PROTO_GetShiftState [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 13 01 00 [09:25:52]Write to MH i2c: E2 08 00 A2 07 80 13 01 00 00 00 00 00 26 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0E 00 A2 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 BD [09:25:52]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_GetShiftState done [09:25:52]FM_GetShiftState done [09:25:52]opened in 1706313770 [09:25:52]opened+sec_in_day 1706400170 [09:25:52]quantity*price = 60058 [09:25:52]sum+1 = 60060 [09:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 22 27.01.2024 09:25 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48842 ФПД: 177767482881689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092555&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48842&fm=177767482881689&tin=02508201610067®Number=0000000000092723&sum=60000 [09:25:53]StoreToDocumentArchive [09:25:53]shift 243 fd 48842 [09:25:53]save to /storage/0243/doc_00048842 [09:25:53]save last doc name /storage/0243/doc_00048842 to /storage/kkm_last_doc_name [09:25:53]save OK [09:25:53]Clear old archive folders... [09:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:53]tlvbuf is 01197AB0 [09:25:53]SAM_PROTO_ClearQueue [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 09 00 00 [09:25:53]Write to MH i2c: E2 08 00 AF 07 80 09 00 00 00 00 00 00 28 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 03 00 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [09:25:53]RAPDU: 90 00 [09:25:53]wFMCommunicate OK [09:25:53]SAM_PROTO_ClearQueue done [09:25:53]KKMCreateOFDPacket [09:25:53]OFDProtocolAddRootSTLVToBuf [09:25:53]FM_MakeSignedData [09:25:53]FM_MakeSignedData [09:25:53]SAM_PROTO_SignData [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 0D 01 02 [09:25:53]Write to MH i2c: E2 08 00 B0 07 80 0D 01 02 00 00 00 00 30 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 03 00 [09:25:53]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=255 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 23 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA BE 00 00 35 04 06 00 A1 [09:25:54]Write to MH i2c: E2 02 01 B1 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 23 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA BE 00 00 35 04 06 00 A1 00 00 4F [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:54]Read from MH i2c: E2 03 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=10 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 0D 02 02 05 AD B7 AB 76 99 [09:25:54]Write to MH i2c: E2 0D 00 B2 07 80 0D 02 02 05 00 AD B7 AB 76 99 00 00 5B [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 03 00 B2 07 00 90 00 2D [09:25:54]RAPDU: 90 00 [09:25:54]wFMCommunicate OK [09:25:54]wFMCommunicate request_size=4 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 0D 03 02 [09:25:54]Write to MH i2c: E2 08 00 B3 07 80 0D 03 02 00 00 00 00 35 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0B 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 0B 00 B3 07 00 8C 44 8A CF 30 02 AF 21 90 00 61 [09:25:54]RAPDU: 8C 44 8A CF 30 02 AF 21 90 00 [09:25:54]wFMCommunicate OK [09:25:54]SAM_PROTO_SignData done [09:25:54]FM_MakeSignedData done [09:25:54]CreateOFDProtocolMessage [09:25:54]wFMCommunicate request_size=4 [09:25:54]MH_SAM_APDU [09:25:54]CAPDU: 80 11 00 00 [09:25:54]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:54]Read from MH i2c: E2 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 17 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [09:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:54]wFMCommunicate OK [09:25:54]CreateOFDProtocolMessage done [09:25:54]OFDSenderStorePacket 48842 [09:25:54]StoreOFDPacket docnum=48842 [09:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CE 2A 07 01 48 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 23 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA BE 00 00 35 04 06 00 A1 AD B7 AB 76 99 8C 44 8A CF 30 02 AF 21 [09:25:54]CheckFolder [09:25:54]dirname=/storage/ofd_packets [09:25:54]CheckFolder done [09:25:54]ProducePacketName [09:25:54]name=ofd_packets/00048842 [09:25:54]NVStorageSaveData ofd_packets/00048842 [09:25:54]File name is /storage/ofd_packets/00048842 [09:25:54]Write 301 bytes [09:25:54]NVStorageSaveData done [09:25:54]OFDSenderStorePacket done [09:25:54]KKMCreateOFDPacket done [09:25:54]NVStorageSaveData kkm_last_timestamp [09:25:54]File name is /storage/kkm_last_timestamp [09:25:54]Write 4 bytes [09:25:54]NVStorageSaveData done [09:25:54]ExternCall_PrintAddStr [09:25:54]wPrintStart [09:25:54]Write to MH i2c: 01 00 00 B5 07 BC [09:25:54]Write i2c OK [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 07 00 [09:25:54]MH_I2C_Read... [09:25:54]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [09:25:54]RasterBufferAndPrint [09:25:54]line Счет N : (1)215938 [09:25:54]line ИНН: 02508201610067 [09:25:54]line Контрольно-Кассовый Чек [09:25:54]line ПРОДАЖА [09:25:54]line ТРК (МРК, ГНК) : 12 [09:25:54]line Товар: 2710124130 [09:25:54]line Аи-92-К-5 [09:25:54]line 9.960 * 60.30 [09:25:54]line = 600.59 [09:25:54]line НДС 12% НСП 1% [09:25:54]line > о реализуемом товаре [09:25:54]line ОКРУГЛЕНИЕ: -0.59 [09:25:54]line ИТОГО: 600.00 [09:25:54]line Внесено: 600.00 [09:25:54]line СДАЧА: 0.00 [09:25:54]line НСП 1% : 5.31 [09:25:54]line НДС 12% : 63.78 [09:25:54]line Наличными: 600.00 [09:25:54]line Безнал.: 0.00 [09:25:54]line Место: АЗС № 102 "Партнер Нефть" [09:25:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:25:54]line СНО: Общий режим [09:25:54]line Чек 22 27.01.2024 09:25 [09:25:54]line Смена: 243 ФФД: 1.0 [09:25:54]line ЗНМ: 0300000040 [09:25:54]line РНМ: 0000000000092723 [09:25:54]line Версия ККМ: 001 [09:25:54]line ФМ: 0000000000875060 [09:25:54]line ФД: 48842 [09:25:54]line ФПД: 177767482881689 [09:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092555&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48842&fm=177767482881689&tin=02508201610067®Number=0000000000092723&sum=60000 [09:25:54]OFD Sender: Processing packet 48842 [packets to send 12, broken 11] [09:25:54]ProducePacketName [09:25:54]name=ofd_packets/00048842 [09:25:54]OFD Sender: To server: pG, [09:25:54]CommunicateWithHost lk.salyk.kg:30040 [09:25:54]ConnectInit lk.salyk.kg [09:25:54]written 0, free lines is 4095 [09:25:55]Connected sock=10 [09:25:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CE 2A 07 01 48 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 23 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA BE 00 00 35 04 06 00 A1 AD B7 AB 76 99 8C 44 8A CF 30 02 AF 21 [09:25:55]Write to MH i2c: 01 00 00 E0 07 E7 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 E0 07 00 00 00 00 00 EE 0C E8 [09:25:55]RasterBufferAndPrint [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]line [09:25:55]written 0, free lines is 3316 [09:25:55]MH_Cut [09:25:55]Write to MH i2c: D1 01 00 E7 07 01 C0 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 01 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: D1 01 00 E7 07 00 BF [09:25:55]Write to MH i2c: 01 00 00 E8 07 EF [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7B 27 47 00 0E 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 35 30 36 30 10 04 04 00 CA BE 00 00 F4 03 04 00 22 78 B4 65 B6 04 01 00 00 6C F3 B4 F4 80 62 59 10 [09:25:55]CommunicateWithHost err = 0 [09:25:55]CheckOFDResponse [09:25:55]1017 (14) - 77093643461234 [09:25:55]1041 (16) - 0000000000875060 [09:25:55]1040 (4) - 48842 [09:25:55]1012 (4) - 27.01.2024 03:27 [09:25:55]1206 (1) - 0 [09:25:55]OFD Sender: Remove packet 48842 [09:25:55]ProducePacketName [09:25:55]name=ofd_packets/00048842 [09:25:55]NVStorageDeleteData [09:25:55]OFD Sender: No OFD packet to send [09:25:55]*** Cut start [09:25:55]*** Partial cut [09:25:55]*** CUTSNS_PIN = 1 [09:25:55]*** CUTSNS_PIN = 0 [09:25:56]*** Brake cut motor [09:25:56]Read from MH i2c: 01 [09:25:56]MH_I2C_Read... [09:25:56]*** Stop cut motor [09:25:56]*** Cut end [09:25:56]Read from MH i2c: 01 07 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 FF 0F 04 [09:25:56]process_action close_receipt done [09:25:56]requested_data is exist [09:25:56]produce_requested_data [09:25:56]requested_item fm.sn is exist - process it [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 11 00 00 [09:25:56]Write to MH i2c: E2 08 00 E9 07 80 11 00 00 00 00 00 00 6A [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 17 00 E9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B7 [09:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:56]wFMCommunicate OK [09:25:56]requested_item fd.num is exist - process it [09:25:56]SAM_PROTO_GetFieldsCounters [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 13 00 00 [09:25:56]Write to MH i2c: E2 08 00 EA 07 80 13 00 00 00 00 00 00 6D [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 62 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 62 00 EA 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CA BE 00 00 0E 04 04 00 F3 00 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 43 [09:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_GetFieldsCounters done [09:25:56]requested_item shift.num is exist - process it [09:25:56]requested_item shift.opened is exist - process it [09:25:56]req_shift_opened [09:25:56]FM_GetShiftState [09:25:56]SAM_PROTO_GetShiftState [09:25:56]wFMCommunicate request_size=4 [09:25:56]MH_SAM_APDU [09:25:56]CAPDU: 80 13 01 00 [09:25:56]Write to MH i2c: E2 08 00 EB 07 80 13 01 00 00 00 00 00 6F [09:25:56]Write i2c OK [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 [09:25:56]MH_I2C_Read... [09:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:56]Read from MH i2c: E2 0E 00 [09:25:56]MH_I2C_Read... [09:25:56]Read from MH i2c: E2 0E 00 EB 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 06 [09:25:56]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:25:56]wFMCommunicate OK [09:25:56]SAM_PROTO_GetShiftState done [09:25:56]FM_GetShiftState done [09:25:56]req_shift_opened done [09:25:56]requested_item shift.open_date is exist - process it [09:25:56]req_shift_open_date [09:25:56]req_shift_open_date done [09:25:56]produce_requested_data done [09:25:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48842,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:25:56]process_action_free close_receipt [09:25:56]json_value_free [09:25:56]json_value_free done [09:25:56]process_json_proto returns [09:25:56]Send response to host [09:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48842,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:25:56]free response buf [09:25:56]execute_script done [09:25:56]execute_script returns [09:25:56]free content buf [09:25:56]Sock 7.Close socket [09:25:56]Sock 7.Thread stoped [09:25:57]accept exits with 9 [09:25:57]New connection [09:25:57]New thread 3066813796 created [09:25:57]Thread 3066670436 joined [09:25:57]Waiting for new connection... [09:25:57] Sock 9.Parse request [09:25:57]Sock 9.Check first char [09:25:57]Sock 9.First char is OK [09:25:57]request: POST /json_proto HTTP/1.0 [09:25:57]Method: POST [09:25:57]URL: /json_proto [09:25:57]Method is POST - this is cgi request [09:25:57]url: /json_proto [09:25:57]query_string will be loaded in cgi processing [09:25:57]execute_cgi json_proto POST (null) [09:25:57]execute_cgi path=json_proto method=POST [09:25:57]POST find Content-Length [09:25:57]Host: 172.17.56.67:8080 [09:25:57]Content-Length: 677 [09:25:57]Content-Type: application/json [09:25:57] [09:25:57]POST finish read [09:25:57]Found Content-Length = 677 [09:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:57]execute_script... [09:25: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)215939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:57]POST & json_proto [09:25:57]process_json_proto [09:25:57]json parsed OK: [09:25:57]protocol is kg_v1.0 [09:25:57]action value=close_receipt [09:25:57]process_action close_receipt [09:25:57]cmd_close_receipt [09:25:57]MH_GetDate [09:25:57]Write to MH i2c: F0 00 00 EC 07 E2 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: F0 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: F0 09 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: F0 09 00 EC 07 00 27 CC B4 65 26 5D 9E 65 7D [09:25:57]GetLastDocTimeStamp 1706347555 [09:25:57]current date 1706347559 [09:25:57]FM_GetShiftState [09:25:57]SAM_PROTO_GetShiftState [09:25:57]wFMCommunicate request_size=4 [09:25:57]MH_SAM_APDU [09:25:57]CAPDU: 80 13 01 00 [09:25:57]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [09:25:57]Write i2c OK [09:25:57]MH_I2C_Read... [09:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:57]Read from MH i2c: E2 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: E2 0E 00 [09:25:57]MH_I2C_Read... [09:25:57]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 08 [09:25:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:25:57]wFMCommunicate OK [09:25:57]SAM_PROTO_GetShiftState done [09:25:57]FM_GetShiftState done [09:25:57]opened in 1706313770 [09:25:57]opened+sec_in_day 1706400170 [09:25:57]quantity*price = 40039 [09:25:57]sum+1 = 40040 [09:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 23 27.01.2024 09:25 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48843 ФПД: 43578768057065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092559&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48843&fm=43578768057065&tin=02508201610067®Number=0000000000092723&sum=40000 [09:25:58]StoreToDocumentArchive [09:25:58]shift 243 fd 48843 [09:25:58]save to /storage/0243/doc_00048843 [09:25:58]save last doc name /storage/0243/doc_00048843 to /storage/kkm_last_doc_name [09:25:58]save OK [09:25:58]Clear old archive folders... [09:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:58]tlvbuf is B6F33620 [09:25:58]SAM_PROTO_ClearQueue [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 09 00 00 [09:25:58]Write to MH i2c: E2 08 00 FA 07 80 09 00 00 00 00 00 00 73 [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 03 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [09:25:58]RAPDU: 90 00 [09:25:58]wFMCommunicate OK [09:25:58]SAM_PROTO_ClearQueue done [09:25:58]KKMCreateOFDPacket [09:25:58]OFDProtocolAddRootSTLVToBuf [09:25:58]FM_MakeSignedData [09:25:58]FM_MakeSignedData [09:25:58]SAM_PROTO_SignData [09:25:58]wFMCommunicate request_size=4 [09:25:58]MH_SAM_APDU [09:25:58]CAPDU: 80 0D 01 02 [09:25:58]Write to MH i2c: E2 08 00 FB 07 80 0D 01 02 00 00 00 00 7B [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:58]Read from MH i2c: E2 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 03 00 [09:25:58]MH_I2C_Read... [09:25:58]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [09:25:58]RAPDU: 90 00 [09:25:58]wFMCommunicate OK [09:25:58]wFMCommunicate request_size=255 [09:25:58]MH_SAM_APDU [09:25: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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 27 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB BE 00 00 35 04 06 00 27 [09:25:58]Write to MH i2c: E2 02 01 FC 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 27 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB BE 00 00 35 04 06 00 27 00 00 BB [09:25:58]Write i2c OK [09:25:58]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]wFMCommunicate request_size=10 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 0D 02 02 05 A2 78 FD 62 E9 [09:25:59]Write to MH i2c: E2 0D 00 FD 07 80 0D 02 02 05 00 A2 78 FD 62 E9 00 00 EA [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [09:25:59]RAPDU: 90 00 [09:25:59]wFMCommunicate OK [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 0D 03 02 [09:25:59]Write to MH i2c: E2 08 00 FE 07 80 0D 03 02 00 00 00 00 80 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0B 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 0B 00 FE 07 00 11 F7 30 45 8F 75 A4 DC 90 00 82 [09:25:59]RAPDU: 11 F7 30 45 8F 75 A4 DC 90 00 [09:25:59]wFMCommunicate OK [09:25:59]SAM_PROTO_SignData done [09:25:59]FM_MakeSignedData done [09:25:59]CreateOFDProtocolMessage [09:25:59]wFMCommunicate request_size=4 [09:25:59]MH_SAM_APDU [09:25:59]CAPDU: 80 11 00 00 [09:25:59]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:59]Read from MH i2c: E2 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CD [09:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:59]wFMCommunicate OK [09:25:59]CreateOFDProtocolMessage done [09:25:59]OFDSenderStorePacket 48843 [09:25:59]StoreOFDPacket docnum=48843 [09:25:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 79 9B 07 01 E7 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 27 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB BE 00 00 35 04 06 00 27 A2 78 FD 62 E9 11 F7 30 45 8F 75 A4 DC [09:25:59]CheckFolder [09:25:59]dirname=/storage/ofd_packets [09:25:59]CheckFolder done [09:25:59]ProducePacketName [09:25:59]name=ofd_packets/00048843 [09:25:59]NVStorageSaveData ofd_packets/00048843 [09:25:59]File name is /storage/ofd_packets/00048843 [09:25:59]Write 301 bytes [09:25:59]NVStorageSaveData done [09:25:59]OFDSenderStorePacket done [09:25:59]KKMCreateOFDPacket done [09:25:59]NVStorageSaveData kkm_last_timestamp [09:25:59]File name is /storage/kkm_last_timestamp [09:25:59]Write 4 bytes [09:25:59]NVStorageSaveData done [09:25:59]ExternCall_PrintAddStr [09:25:59]wPrintStart [09:25:59]Write to MH i2c: 01 00 00 00 08 08 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [09:25:59]RasterBufferAndPrint [09:25:59]line Счет N : (1)215939 [09:25:59]line ИНН: 02508201610067 [09:25:59]line Контрольно-Кассовый Чек [09:25:59]line ПРОДАЖА [09:25:59]line ТРК (МРК, ГНК) : 22 [09:25:59]line Товар: 2710124130 [09:25:59]line Аи-92-К-5 [09:25:59]line 6.640 * 60.30 [09:25:59]line = 400.39 [09:25:59]line НДС 12% НСП 1% [09:25:59]line > о реализуемом товаре [09:25:59]line ОКРУГЛЕНИЕ: -0.39 [09:25:59]line ИТОГО: 400.00 [09:25:59]line Внесено: 400.00 [09:25:59]line СДАЧА: 0.00 [09:25:59]line НСП 1% : 3.54 [09:25:59]line НДС 12% : 42.52 [09:25:59]line Наличными: 400.00 [09:25:59]line Безнал.: 0.00 [09:25:59]line Место: АЗС № 102 "Партнер Нефть" [09:25:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:25:59]line СНО: Общий режим [09:25:59]line Чек 23 27.01.2024 09:25 [09:25:59]line Смена: 243 ФФД: 1.0 [09:25:59]line ЗНМ: 0300000040 [09:25:59]line РНМ: 0000000000092723 [09:25:59]line Версия ККМ: 001 [09:25:59]line ФМ: 0000000000875060 [09:25:59]line ФД: 48843 [09:25:59]line ФПД: 43578768057065 [09:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T092559&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48843&fm=43578768057065&tin=02508201610067®Number=0000000000092723&sum=40000 [09:25:59]written 0, free lines is 4095 [09:25:59]OFD Sender: Processing packet 48843 [packets to send 12, broken 11] [09:25:59]ProducePacketName [09:25:59]name=ofd_packets/00048843 [09:25:59]OFD Sender: To server: pG, [09:25:59]CommunicateWithHost lk.salyk.kg:30040 [09:25:59]ConnectInit lk.salyk.kg [09:25:59]Connected sock=10 [09:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 79 9B 07 01 E7 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 27 CC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB BE 00 00 35 04 06 00 27 A2 78 FD 62 E9 11 F7 30 45 8F 75 A4 DC [09:25:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 54 F7 47 00 06 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 35 30 36 30 10 04 04 00 CB BE 00 00 F4 03 04 00 27 78 B4 65 B6 04 01 00 00 86 09 0F C4 52 18 C4 AB [09:25:59]CommunicateWithHost err = 0 [09:25:59]CheckOFDResponse [09:25:59]1017 (14) - 77093643461234 [09:25:59]1041 (16) - 0000000000875060 [09:25:59]1040 (4) - 48843 [09:25:59]1012 (4) - 27.01.2024 03:27 [09:25:59]1206 (1) - 0 [09:25:59]OFD Sender: Remove packet 48843 [09:25:59]ProducePacketName [09:25:59]name=ofd_packets/00048843 [09:25:59]NVStorageDeleteData [09:25:59]Write to MH i2c: 01 00 00 2B 08 33 [09:25:59]Write i2c OK [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 [09:25:59]MH_I2C_Read... [09:25:59]Read from MH i2c: 01 07 00 2B 08 00 00 00 00 00 11 0D 58 [09:25:59]RasterBufferAndPrint [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]line [09:26:00]written 0, free lines is 3357 [09:26:00]MH_Cut [09:26:00]Write to MH i2c: D1 01 00 32 08 01 0C [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 01 00 [09:26:00]MH_I2C_Read... [09:26:00]Read from MH i2c: D1 01 00 32 08 00 0B [09:26:00]Write to MH i2c: 01 00 00 33 08 3B [09:26:00]Write i2c OK [09:26:00]MH_I2C_Read... [09:26:00]OFD Sender: No OFD packet to send [09:26:00]*** Cut start [09:26:00]*** Partial cut [09:26:00]*** CUTSNS_PIN = 1 [09:26:00]*** CUTSNS_PIN = 0 [09:26:00]*** Brake cut motor [09:26:01]Read from MH i2c: 01 [09:26:01]MH_I2C_Read... [09:26:01]*** Stop cut motor [09:26:01]*** Cut end [09:26:01]Read from MH i2c: 01 07 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 FF 0F 50 [09:26:01]process_action close_receipt done [09:26:01]requested_data is exist [09:26:01]produce_requested_data [09:26:01]requested_item fm.sn is exist - process it [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 11 00 00 [09:26:01]Write to MH i2c: E2 08 00 34 08 80 11 00 00 00 00 00 00 B6 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 17 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 17 00 34 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [09:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:26:01]wFMCommunicate OK [09:26:01]requested_item fd.num is exist - process it [09:26:01]SAM_PROTO_GetFieldsCounters [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 13 00 00 [09:26:01]Write to MH i2c: E2 08 00 35 08 80 13 00 00 00 00 00 00 B9 [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 62 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 62 00 35 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CB BE 00 00 0E 04 04 00 F3 00 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 93 [09:26: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:01]wFMCommunicate OK [09:26:01]SAM_PROTO_GetFieldsCounters done [09:26:01]requested_item shift.num is exist - process it [09:26:01]requested_item shift.opened is exist - process it [09:26:01]req_shift_opened [09:26:01]FM_GetShiftState [09:26:01]SAM_PROTO_GetShiftState [09:26:01]wFMCommunicate request_size=4 [09:26:01]MH_SAM_APDU [09:26:01]CAPDU: 80 13 01 00 [09:26:01]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [09:26:01]Write i2c OK [09:26:01]MH_I2C_Read... [09:26:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:01]Read from MH i2c: E2 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0E 00 [09:26:01]MH_I2C_Read... [09:26:01]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 52 [09:26:01]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:26:01]wFMCommunicate OK [09:26:01]SAM_PROTO_GetShiftState done [09:26:01]FM_GetShiftState done [09:26:01]req_shift_opened done [09:26:01]requested_item shift.open_date is exist - process it [09:26:01]req_shift_open_date [09:26:01]req_shift_open_date done [09:26:01]produce_requested_data done [09:26:01]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48843,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:26:01]process_action_free close_receipt [09:26:01]json_value_free [09:26:01]json_value_free done [09:26:01]process_json_proto returns [09:26:01]Send response to host [09:26:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48843,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:26:01]free response buf [09:26:01]execute_script done [09:26:01]execute_script returns [09:26:01]free content buf [09:26:01]Sock 9.Close socket [09:26:01]Sock 9.Thread stoped [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]accept exits with 7 [09:30:30]New connection [09:30:30]New thread 3066670436 created [09:30:30]Thread 3066813796 joined [09:30:30]Waiting for new connection... [09:30:30] Sock 7.Parse request [09:30:30]Sock 7.Check first char [09:30:30]Sock 7.First char is OK [09:30:30]request: POST /json_proto HTTP/1.0 [09:30:30]Method: POST [09:30:30]URL: /json_proto [09:30:30]Method is POST - this is cgi request [09:30:30]url: /json_proto [09:30:30]query_string will be loaded in cgi processing [09:30:30]execute_cgi json_proto POST (null) [09:30:30]execute_cgi path=json_proto method=POST [09:30:30]POST find Content-Length [09:30:30]Host: 172.17.56.67:8080 [09:30:30]Content-Length: 677 [09:30:30]Content-Type: application/json [09:30:30] [09:30:30]POST finish read [09:30:30]Found Content-Length = 677 [09:30:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:30]execute_script... [09:30: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)215940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:30]POST & json_proto [09:30:30]process_json_proto [09:30:30]json parsed OK: [09:30:30]protocol is kg_v1.0 [09:30:30]action value=close_receipt [09:30:30]process_action close_receipt [09:30:30]cmd_close_receipt [09:30:30]MH_GetDate [09:30:30]Write to MH i2c: F0 00 00 37 08 2E [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: F0 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: F0 09 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: F0 09 00 37 08 00 39 CD B4 65 26 5D 9E 65 DC [09:30:30]GetLastDocTimeStamp 1706347559 [09:30:30]current date 1706347833 [09:30:30]FM_GetShiftState [09:30:30]SAM_PROTO_GetShiftState [09:30:30]wFMCommunicate request_size=4 [09:30:30]MH_SAM_APDU [09:30:30]CAPDU: 80 13 01 00 [09:30:30]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [09:30:30]Write i2c OK [09:30:30]MH_I2C_Read... [09:30:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:30]Read from MH i2c: E2 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 [09:30:30]MH_I2C_Read... [09:30:30]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 54 [09:30:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:30:30]wFMCommunicate OK [09:30:30]SAM_PROTO_GetShiftState done [09:30:30]FM_GetShiftState done [09:30:30]opened in 1706313770 [09:30:30]opened+sec_in_day 1706400170 [09:30:30]quantity*price = 50049 [09:30:30]sum+1 = 50050 [09:30:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 24 27.01.2024 09:30 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48844 ФПД: 37510675592816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T093033&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48844&fm=37510675592816&tin=02508201610067®Number=0000000000092723&sum=50000 [09:30:31]StoreToDocumentArchive [09:30:31]shift 243 fd 48844 [09:30:31]save to /storage/0243/doc_00048844 [09:30:31]save last doc name /storage/0243/doc_00048844 to /storage/kkm_last_doc_name [09:30:31]save OK [09:30:31]Clear old archive folders... [09:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:31]tlvbuf is B6D86080 [09:30:31]SAM_PROTO_ClearQueue [09:30:31]wFMCommunicate request_size=4 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 09 00 00 [09:30:31]Write to MH i2c: E2 08 00 45 08 80 09 00 00 00 00 00 00 BF [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [09:30:31]RAPDU: 90 00 [09:30:31]wFMCommunicate OK [09:30:31]SAM_PROTO_ClearQueue done [09:30:31]KKMCreateOFDPacket [09:30:31]OFDProtocolAddRootSTLVToBuf [09:30:31]FM_MakeSignedData [09:30:31]FM_MakeSignedData [09:30:31]SAM_PROTO_SignData [09:30:31]wFMCommunicate request_size=4 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 0D 01 02 [09:30:31]Write to MH i2c: E2 08 00 46 08 80 0D 01 02 00 00 00 00 C7 [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [09:30:31]RAPDU: 90 00 [09:30:31]wFMCommunicate OK [09:30:31]wFMCommunicate request_size=255 [09:30:31]MH_SAM_APDU [09: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 39 CD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC BE 00 00 35 04 06 00 22 [09:30:31]Write to MH i2c: E2 02 01 47 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 39 CD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC BE 00 00 35 04 06 00 22 00 00 CD [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [09:30:31]RAPDU: 90 00 [09:30:31]wFMCommunicate OK [09:30:31]wFMCommunicate request_size=10 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 0D 02 02 05 1D A2 7E 76 70 [09:30:31]Write to MH i2c: E2 0D 00 48 08 80 0D 02 02 05 00 1D A2 7E 76 70 00 00 F7 [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [09:30:31]RAPDU: 90 00 [09:30:31]wFMCommunicate OK [09:30:31]wFMCommunicate request_size=4 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 0D 03 02 [09:30:31]Write to MH i2c: E2 08 00 49 08 80 0D 03 02 00 00 00 00 CC [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:31]Read from MH i2c: E2 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 0B 00 [09:30:31]MH_I2C_Read... [09:30:31]Read from MH i2c: E2 0B 00 49 08 00 85 19 60 AE 91 AB 04 E7 90 00 A0 [09:30:31]RAPDU: 85 19 60 AE 91 AB 04 E7 90 00 [09:30:31]wFMCommunicate OK [09:30:31]SAM_PROTO_SignData done [09:30:31]FM_MakeSignedData done [09:30:31]CreateOFDProtocolMessage [09:30:31]wFMCommunicate request_size=4 [09:30:31]MH_SAM_APDU [09:30:31]CAPDU: 80 11 00 00 [09:30:31]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [09:30:31]Write i2c OK [09:30:31]MH_I2C_Read... [09:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:32]Read from MH i2c: E2 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 17 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 19 [09:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:30:32]wFMCommunicate OK [09:30:32]CreateOFDProtocolMessage done [09:30:32]OFDSenderStorePacket 48844 [09:30:32]StoreOFDPacket docnum=48844 [09:30:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 38 57 07 01 E1 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 39 CD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC BE 00 00 35 04 06 00 22 1D A2 7E 76 70 85 19 60 AE 91 AB 04 E7 [09:30:32]CheckFolder [09:30:32]dirname=/storage/ofd_packets [09:30:32]CheckFolder done [09:30:32]ProducePacketName [09:30:32]name=ofd_packets/00048844 [09:30:32]NVStorageSaveData ofd_packets/00048844 [09:30:32]File name is /storage/ofd_packets/00048844 [09:30:32]Write 301 bytes [09:30:32]NVStorageSaveData done [09:30:32]OFDSenderStorePacket done [09:30:32]KKMCreateOFDPacket done [09:30:32]NVStorageSaveData kkm_last_timestamp [09:30:32]File name is /storage/kkm_last_timestamp [09:30:32]Write 4 bytes [09:30:32]NVStorageSaveData done [09:30:32]ExternCall_PrintAddStr [09:30:32]wPrintStart [09:30:32]Write to MH i2c: 01 00 00 4B 08 53 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 07 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [09:30:32]RasterBufferAndPrint [09:30:32]line Счет N : (1)215940 [09:30:32]line ИНН: 02508201610067 [09:30:32]line Контрольно-Кассовый Чек [09:30:32]line ПРОДАЖА [09:30:32]line ТРК (МРК, ГНК) : 22 [09:30:32]line Товар: 2710124130 [09:30:32]line Аи-92-К-5 [09:30:32]line 8.300 * 60.30 [09:30:32]line = 500.49 [09:30:32]line НДС 12% НСП 1% [09:30:32]line > о реализуемом товаре [09:30:32]line ОКРУГЛЕНИЕ: -0.49 [09:30:32]line ИТОГО: 500.00 [09:30:32]line Внесено: 500.00 [09:30:32]line СДАЧА: 0.00 [09:30:32]line НСП 1% : 4.43 [09:30:32]line НДС 12% : 53.15 [09:30:32]line Наличными: 500.00 [09:30:32]line Безнал.: 0.00 [09:30:32]line Место: АЗС № 102 "Партнер Нефть" [09:30:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:30:32]line СНО: Общий режим [09:30:32]line Чек 24 27.01.2024 09:30 [09:30:32]line Смена: 243 ФФД: 1.0 [09:30:32]line ЗНМ: 0300000040 [09:30:32]line РНМ: 0000000000092723 [09:30:32]line Версия ККМ: 001 [09:30:32]line ФМ: 0000000000875060 [09:30:32]line ФД: 48844 [09:30:32]line ФПД: 37510675592816 [09:30:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T093033&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48844&fm=37510675592816&tin=02508201610067®Number=0000000000092723&sum=50000 [09:30:32]OFD Sender: Processing packet 48844 [packets to send 12, broken 11] [09:30:32]ProducePacketName [09:30:32]name=ofd_packets/00048844 [09:30:32]OFD Sender: To server: pG, [09:30:32]CommunicateWithHost lk.salyk.kg:30040 [09:30:32]ConnectInit lk.salyk.kg [09:30:32]written 0, free lines is 4095 [09:30:32]Connected sock=10 [09: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 35 30 36 30 0F 01 00 00 38 57 07 01 E1 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 39 CD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC BE 00 00 35 04 06 00 22 1D A2 7E 76 70 85 19 60 AE 91 AB 04 E7 [09:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 18 84 47 00 A8 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 35 30 36 30 10 04 04 00 CC BE 00 00 F4 03 04 00 37 79 B4 65 B6 04 01 00 00 4C 36 FB 91 C7 F3 59 D6 [09:30:32]CommunicateWithHost err = 0 [09:30:32]CheckOFDResponse [09:30:32]1017 (14) - 77093643461234 [09:30:32]1041 (16) - 0000000000875060 [09:30:32]1040 (4) - 48844 [09:30:32]1012 (4) - 27.01.2024 03:32 [09:30:32]1206 (1) - 0 [09:30:32]OFD Sender: Remove packet 48844 [09:30:32]ProducePacketName [09:30:32]name=ofd_packets/00048844 [09:30:32]NVStorageDeleteData [09:30:32]Write to MH i2c: 01 00 00 76 08 7E [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 07 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: 01 07 00 76 08 00 00 00 00 00 EC 0C 7D [09:30:32]RasterBufferAndPrint [09:30:32]line [09:30:32]line [09:30:32]line [09:30:32]line [09:30:32]line [09:30:32]written 0, free lines is 3314 [09:30:32]MH_Cut [09:30:32]Write to MH i2c: D1 01 00 7D 08 01 57 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: D1 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: D1 01 00 [09:30:32]MH_I2C_Read... [09:30:32]Read from MH i2c: D1 01 00 7D 08 00 56 [09:30:32]Write to MH i2c: 01 00 00 7E 08 86 [09:30:32]Write i2c OK [09:30:32]MH_I2C_Read... [09:30:33]OFD Sender: No OFD packet to send [09:30:33]*** Cut start [09:30:33]*** Partial cut [09:30:33]*** CUTSNS_PIN = 1 [09:30:33]*** CUTSNS_PIN = 0 [09:30:33]*** Brake cut motor [09:30:34]Read from MH i2c: 01 [09:30:34]MH_I2C_Read... [09:30:34]*** Stop cut motor [09:30:34]*** Cut end [09:30:34]Read from MH i2c: 01 07 00 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 FF 0F 9B [09:30:34]process_action close_receipt done [09:30:34]requested_data is exist [09:30:34]produce_requested_data [09:30:34]requested_item fm.sn is exist - process it [09:30:34]wFMCommunicate request_size=4 [09:30:34]MH_SAM_APDU [09:30:34]CAPDU: 80 11 00 00 [09:30:34]Write to MH i2c: E2 08 00 7F 08 80 11 00 00 00 00 00 00 01 [09:30:34]Write i2c OK [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 [09:30:34]MH_I2C_Read... [09:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:34]Read from MH i2c: E2 17 00 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 17 00 7F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4E [09:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:30:34]wFMCommunicate OK [09:30:34]requested_item fd.num is exist - process it [09:30:34]SAM_PROTO_GetFieldsCounters [09:30:34]wFMCommunicate request_size=4 [09:30:34]MH_SAM_APDU [09:30:34]CAPDU: 80 13 00 00 [09:30:34]Write to MH i2c: E2 08 00 80 08 80 13 00 00 00 00 00 00 04 [09:30:34]Write i2c OK [09:30:34]MH_I2C_Read... [09:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:34]Read from MH i2c: E2 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 62 00 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 62 00 80 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CC BE 00 00 0E 04 04 00 F3 00 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 E2 [09:30: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CC BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:34]wFMCommunicate OK [09:30:34]SAM_PROTO_GetFieldsCounters done [09:30:34]requested_item shift.num is exist - process it [09:30:34]requested_item shift.opened is exist - process it [09:30:34]req_shift_opened [09:30:34]FM_GetShiftState [09:30:34]SAM_PROTO_GetShiftState [09:30:34]wFMCommunicate request_size=4 [09:30:34]MH_SAM_APDU [09:30:34]CAPDU: 80 13 01 00 [09:30:34]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [09:30:34]Write i2c OK [09:30:34]MH_I2C_Read... [09:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:34]Read from MH i2c: E2 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 0E 00 [09:30:34]MH_I2C_Read... [09:30:34]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9D [09:30:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:30:34]wFMCommunicate OK [09:30:34]SAM_PROTO_GetShiftState done [09:30:34]FM_GetShiftState done [09:30:34]req_shift_opened done [09:30:34]requested_item shift.open_date is exist - process it [09:30:34]req_shift_open_date [09:30:34]req_shift_open_date done [09:30:34]produce_requested_data done [09:30:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48844,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:30:34]process_action_free close_receipt [09:30:34]json_value_free [09:30:34]json_value_free done [09:30:34]process_json_proto returns [09:30:34]Send response to host [09:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48844,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:30:34]free response buf [09:30:34]execute_script done [09:30:34]execute_script returns [09:30:34]free content buf [09:30:34]Sock 7.Close socket [09:30:34]Sock 7.Thread stoped [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:10]accept exits with 9 [09:54:10]New connection [09:54:10]New thread 3066813796 created [09:54:10]Thread 3066670436 joined [09:54:10]Waiting for new connection... [09:54:10] Sock 9.Parse request [09:54:10]Sock 9.Check first char [09:54:10]Sock 9.First char is OK [09:54:10]request: POST /json_proto HTTP/1.0 [09:54:10]Method: POST [09:54:10]URL: /json_proto [09:54:10]Method is POST - this is cgi request [09:54:10]url: /json_proto [09:54:10]query_string will be loaded in cgi processing [09:54:10]execute_cgi json_proto POST (null) [09:54:10]execute_cgi path=json_proto method=POST [09:54:10]POST find Content-Length [09:54:10]Host: 172.17.56.67:8080 [09:54:10]Content-Length: 677 [09:54:10]Content-Type: application/json [09:54:10] [09:54:10]POST finish read [09:54:10]Found Content-Length = 677 [09:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:10]execute_script... [09:54: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)215942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:10]POST & json_proto [09:54:10]process_json_proto [09:54:10]json parsed OK: [09:54:10]protocol is kg_v1.0 [09:54:10]action value=close_receipt [09:54:10]process_action close_receipt [09:54:10]cmd_close_receipt [09:54:10]MH_GetDate [09:54:10]Write to MH i2c: F0 00 00 82 08 79 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 09 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: F0 09 00 82 08 00 C4 D2 B4 65 26 5D 9E 65 B7 [09:54:10]GetLastDocTimeStamp 1706347833 [09:54:10]current date 1706349252 [09:54:10]FM_GetShiftState [09:54:10]SAM_PROTO_GetShiftState [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 13 01 00 [09:54:10]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0E 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9F [09:54:10]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:54:10]wFMCommunicate OK [09:54:10]SAM_PROTO_GetShiftState done [09:54:10]FM_GetShiftState done [09:54:10]opened in 1706313770 [09:54:10]opened+sec_in_day 1706400170 [09:54:10]quantity*price = 30029 [09:54:10]sum+1 = 30030 [09:54:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 25 27.01.2024 09:54 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48845 ФПД: 245249837839948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095412&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48845&fm=245249837839948&tin=02508201610067®Number=0000000000092723&sum=30000 [09:54:11]StoreToDocumentArchive [09:54:11]shift 243 fd 48845 [09:54:11]save to /storage/0243/doc_00048845 [09:54:11]save last doc name /storage/0243/doc_00048845 to /storage/kkm_last_doc_name [09:54:11]save OK [09:54:11]Clear old archive folders... [09:54:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:11]tlvbuf is 011B3060 [09:54:11]SAM_PROTO_ClearQueue [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 09 00 00 [09:54:11]Write to MH i2c: E2 08 00 90 08 80 09 00 00 00 00 00 00 0A [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]SAM_PROTO_ClearQueue done [09:54:11]KKMCreateOFDPacket [09:54:11]OFDProtocolAddRootSTLVToBuf [09:54:11]FM_MakeSignedData [09:54:11]FM_MakeSignedData [09:54:11]SAM_PROTO_SignData [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 0D 01 02 [09:54:11]Write to MH i2c: E2 08 00 91 08 80 0D 01 02 00 00 00 00 12 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]wFMCommunicate request_size=255 [09:54:11]MH_SAM_APDU [09:54: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BE 00 00 35 04 06 00 DF [09:54:11]Write to MH i2c: E2 02 01 92 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BE 00 00 35 04 06 00 DF 00 00 FD [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]wFMCommunicate request_size=10 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 0D 02 02 05 0D AD 77 36 4C [09:54:11]Write to MH i2c: E2 0D 00 93 08 80 0D 02 02 05 00 0D AD 77 36 4C 00 00 D2 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [09:54:11]RAPDU: 90 00 [09:54:11]wFMCommunicate OK [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 0D 03 02 [09:54:11]Write to MH i2c: E2 08 00 94 08 80 0D 03 02 00 00 00 00 17 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 0B 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 0B 00 94 08 00 81 0B 7F BB CC F1 58 A0 90 00 93 [09:54:11]RAPDU: 81 0B 7F BB CC F1 58 A0 90 00 [09:54:11]wFMCommunicate OK [09:54:11]SAM_PROTO_SignData done [09:54:11]FM_MakeSignedData done [09:54:11]CreateOFDProtocolMessage [09:54:11]wFMCommunicate request_size=4 [09:54:11]MH_SAM_APDU [09:54:11]CAPDU: 80 11 00 00 [09:54:11]Write to MH i2c: E2 08 00 95 08 80 11 00 00 00 00 00 00 17 [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:11]Read from MH i2c: E2 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 17 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: E2 17 00 95 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [09:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:54:11]wFMCommunicate OK [09:54:11]CreateOFDProtocolMessage done [09:54:11]OFDSenderStorePacket 48845 [09:54:11]StoreOFDPacket docnum=48845 [09:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3B 2A 07 01 58 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BE 00 00 35 04 06 00 DF 0D AD 77 36 4C 81 0B 7F BB CC F1 58 A0 [09:54:11]CheckFolder [09:54:11]dirname=/storage/ofd_packets [09:54:11]CheckFolder done [09:54:11]ProducePacketName [09:54:11]name=ofd_packets/00048845 [09:54:11]NVStorageSaveData ofd_packets/00048845 [09:54:11]File name is /storage/ofd_packets/00048845 [09:54:11]Write 301 bytes [09:54:11]NVStorageSaveData done [09:54:11]OFDSenderStorePacket done [09:54:11]KKMCreateOFDPacket done [09:54:11]NVStorageSaveData kkm_last_timestamp [09:54:11]File name is /storage/kkm_last_timestamp [09:54:11]Write 4 bytes [09:54:11]NVStorageSaveData done [09:54:11]ExternCall_PrintAddStr [09:54:11]wPrintStart [09:54:11]Write to MH i2c: 01 00 00 96 08 9E [09:54:11]Write i2c OK [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 07 00 [09:54:11]MH_I2C_Read... [09:54:11]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [09:54:11]RasterBufferAndPrint [09:54:11]line Счет N : (1)215942 [09:54:11]line ИНН: 02508201610067 [09:54:11]line Контрольно-Кассовый Чек [09:54:11]line ПРОДАЖА [09:54:11]line ТРК (МРК, ГНК) : 22 [09:54:11]line Товар: 2710124130 [09:54:11]line Аи-92-К-5 [09:54:11]line 4.980 * 60.30 [09:54:11]line = 300.29 [09:54:11]line НДС 12% НСП 1% [09:54:11]line > о реализуемом товаре [09:54:11]line ОКРУГЛЕНИЕ: -0.29 [09:54:11]line ИТОГО: 300.00 [09:54:11]line Внесено: 300.00 [09:54:11]line СДАЧА: 0.00 [09:54:11]line НСП 1% : 2.66 [09:54:11]line НДС 12% : 31.89 [09:54:11]line Наличными: 300.00 [09:54:11]line Безнал.: 0.00 [09:54:11]line Место: АЗС № 102 "Партнер Нефть" [09:54:11]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:54:11]line СНО: Общий режим [09:54:11]line Чек 25 27.01.2024 09:54 [09:54:11]line Смена: 243 ФФД: 1.0 [09:54:11]line ЗНМ: 0300000040 [09:54:11]line РНМ: 0000000000092723 [09:54:11]line Версия ККМ: 001 [09:54:11]line ФМ: 0000000000875060 [09:54:11]line ФД: 48845 [09:54:11]line ФПД: 245249837839948 [09:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095412&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48845&fm=245249837839948&tin=02508201610067®Number=0000000000092723&sum=30000 [09:54:12]OFD Sender: Processing packet 48845 [packets to send 12, broken 11] [09:54:12]ProducePacketName [09:54:12]name=ofd_packets/00048845 [09:54:12]OFD Sender: To server: pG, [09:54:12]CommunicateWithHost lk.salyk.kg:30040 [09:54:12]ConnectInit lk.salyk.kg [09:54:12]written 0, free lines is 4095 [09:54:12]Connected sock=10 [09:54:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3B 2A 07 01 58 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 C4 D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BE 00 00 35 04 06 00 DF 0D AD 77 36 4C 81 0B 7F BB CC F1 58 A0 [09:54:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 0E 7A 47 00 54 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BE 00 00 F4 03 04 00 C3 7E B4 65 B6 04 01 00 00 E1 E4 CE 5F 8E 9D 04 9D [09:54:12]CommunicateWithHost err = 0 [09:54:12]CheckOFDResponse [09:54:12]1017 (14) - 77093643461234 [09:54:12]1041 (16) - 0000000000875060 [09:54:12]1040 (4) - 48845 [09:54:12]1012 (4) - 27.01.2024 03:55 [09:54:12]1206 (1) - 0 [09:54:12]OFD Sender: Remove packet 48845 [09:54:12]ProducePacketName [09:54:12]name=ofd_packets/00048845 [09:54:12]NVStorageDeleteData [09:54:12]Write to MH i2c: 01 00 00 C1 08 C9 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 FE 0C DA [09:54:12]RasterBufferAndPrint [09:54:12]line [09:54:12]line [09:54:12]line [09:54:12]line [09:54:12]line [09:54:12]written 0, free lines is 3335 [09:54:12]MH_Cut [09:54:12]Write to MH i2c: D1 01 00 C8 08 01 A2 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: D1 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: D1 01 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: D1 01 00 C8 08 00 A1 [09:54:12]Write to MH i2c: 01 00 00 C9 08 D1 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]OFD Sender: No OFD packet to send [09:54:13]*** Cut start [09:54:13]*** Partial cut [09:54:13]*** CUTSNS_PIN = 1 [09:54:13]*** CUTSNS_PIN = 0 [09:54:13]*** Brake cut motor [09:54:13]Read from MH i2c: 01 [09:54:13]MH_I2C_Read... [09:54:13]*** Stop cut motor [09:54:13]*** Cut end [09:54:13]Read from MH i2c: 01 07 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [09:54:13]process_action close_receipt done [09:54:13]requested_data is exist [09:54:13]produce_requested_data [09:54:13]requested_item fm.sn is exist - process it [09:54:13]wFMCommunicate request_size=4 [09:54:13]MH_SAM_APDU [09:54:13]CAPDU: 80 11 00 00 [09:54:13]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:13]Read from MH i2c: E2 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 17 00 [09:54:13]MH_I2C_Read... [09:54:13]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 99 [09:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:54:13]wFMCommunicate OK [09:54:13]requested_item fd.num is exist - process it [09:54:13]SAM_PROTO_GetFieldsCounters [09:54:13]wFMCommunicate request_size=4 [09:54:13]MH_SAM_APDU [09:54:13]CAPDU: 80 13 00 00 [09:54:13]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [09:54:13]Write i2c OK [09:54:13]MH_I2C_Read... [09:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:14]Read from MH i2c: E2 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 62 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 62 00 CB 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CD BE 00 00 0E 04 04 00 F3 00 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 31 [09:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CD BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:14]wFMCommunicate OK [09:54:14]SAM_PROTO_GetFieldsCounters done [09:54:14]requested_item shift.num is exist - process it [09:54:14]requested_item shift.opened is exist - process it [09:54:14]req_shift_opened [09:54:14]FM_GetShiftState [09:54:14]SAM_PROTO_GetShiftState [09:54:14]wFMCommunicate request_size=4 [09:54:14]MH_SAM_APDU [09:54:14]CAPDU: 80 13 01 00 [09:54:14]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [09:54:14]Write i2c OK [09:54:14]MH_I2C_Read... [09:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:14]Read from MH i2c: E2 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 0E 00 [09:54:14]MH_I2C_Read... [09:54:14]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E8 [09:54:14]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:54:14]wFMCommunicate OK [09:54:14]SAM_PROTO_GetShiftState done [09:54:14]FM_GetShiftState done [09:54:14]req_shift_opened done [09:54:14]requested_item shift.open_date is exist - process it [09:54:14]req_shift_open_date [09:54:14]req_shift_open_date done [09:54:14]produce_requested_data done [09:54:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48845,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:54:14]process_action_free close_receipt [09:54:14]json_value_free [09:54:14]json_value_free done [09:54:14]process_json_proto returns [09:54:14]Send response to host [09:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48845,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:54:14]free response buf [09:54:14]execute_script done [09:54:14]execute_script returns [09:54:14]free content buf [09:54:14]Sock 9.Close socket [09:54:14]Sock 9.Thread stoped [09:54:18]OFD Sender: No OFD packet to send [09:54:18]accept exits with 7 [09:54:18]New connection [09:54:18]New thread 3066670436 created [09:54:18]Thread 3066813796 joined [09:54:18]Waiting for new connection... [09:54:18] Sock 7.Parse request [09:54:18]Sock 7.Check first char [09:54:18]Sock 7.First char is OK [09:54:18]request: POST /json_proto HTTP/1.0 [09:54:18]Method: POST [09:54:18]URL: /json_proto [09:54:18]Method is POST - this is cgi request [09:54:18]url: /json_proto [09:54:18]query_string will be loaded in cgi processing [09:54:18]execute_cgi json_proto POST (null) [09:54:19]execute_cgi path=json_proto method=POST [09:54:19]POST find Content-Length [09:54:19]Host: 172.17.56.67:8080 [09:54:19]Content-Length: 677 [09:54:19]Content-Type: application/json [09:54:19] [09:54:19]POST finish read [09:54:19]Found Content-Length = 677 [09:54:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:19]execute_script... [09:54: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)215941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:19]POST & json_proto [09:54:19]process_json_proto [09:54:19]json parsed OK: [09:54:19]protocol is kg_v1.0 [09:54:19]action value=close_receipt [09:54:19]process_action close_receipt [09:54:19]cmd_close_receipt [09:54:19]MH_GetDate [09:54:19]Write to MH i2c: F0 00 00 CD 08 C4 [09:54:19]Write i2c OK [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: F0 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: F0 09 00 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: F0 09 00 CD 08 00 CD D2 B4 65 26 5D 9E 65 0B [09:54:19]GetLastDocTimeStamp 1706349252 [09:54:19]current date 1706349261 [09:54:19]FM_GetShiftState [09:54:19]SAM_PROTO_GetShiftState [09:54:19]wFMCommunicate request_size=4 [09:54:19]MH_SAM_APDU [09:54:19]CAPDU: 80 13 01 00 [09:54:19]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [09:54:19]Write i2c OK [09:54:19]MH_I2C_Read... [09:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:19]Read from MH i2c: E2 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: E2 0E 00 [09:54:19]MH_I2C_Read... [09:54:19]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 EA [09:54:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:54:19]wFMCommunicate OK [09:54:19]SAM_PROTO_GetShiftState done [09:54:19]FM_GetShiftState done [09:54:19]opened in 1706313770 [09:54:19]opened+sec_in_day 1706400170 [09:54:19]quantity*price = 30029 [09:54:19]sum+1 = 30030 [09:54:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 26 27.01.2024 09:54 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48846 ФПД: 35776891171338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095421&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48846&fm=35776891171338&tin=02508201610067®Number=0000000000092723&sum=30000 [09:54:20]StoreToDocumentArchive [09:54:20]shift 243 fd 48846 [09:54:20]save to /storage/0243/doc_00048846 [09:54:20]save last doc name /storage/0243/doc_00048846 to /storage/kkm_last_doc_name [09:54:20]save OK [09:54:20]Clear old archive folders... [09:54:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:20]tlvbuf is 011C6D70 [09:54:20]SAM_PROTO_ClearQueue [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 09 00 00 [09:54:20]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [09:54:20]RAPDU: 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_ClearQueue done [09:54:20]KKMCreateOFDPacket [09:54:20]OFDProtocolAddRootSTLVToBuf [09:54:20]FM_MakeSignedData [09:54:20]FM_MakeSignedData [09:54:20]SAM_PROTO_SignData [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 0D 01 02 [09:54:20]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [09:54:20]RAPDU: 90 00 [09:54:20]wFMCommunicate OK [09:54:20]wFMCommunicate request_size=255 [09:54:20]MH_SAM_APDU [09:54: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BE 00 00 35 04 06 00 20 [09:54:20]Write to MH i2c: E2 02 01 DD 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BE 00 00 35 04 06 00 20 00 00 94 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [09:54:20]RAPDU: 90 00 [09:54:20]wFMCommunicate OK [09:54:20]wFMCommunicate request_size=10 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 0D 02 02 05 89 F4 E3 B2 0A [09:54:20]Write to MH i2c: E2 0D 00 DE 08 80 0D 02 02 05 00 89 F4 E3 B2 0A 00 00 86 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [09:54:20]RAPDU: 90 00 [09:54:20]wFMCommunicate OK [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 0D 03 02 [09:54:20]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0B 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 0B 00 DF 08 00 0F 8A 43 D6 43 2D E8 50 90 00 BD [09:54:20]RAPDU: 0F 8A 43 D6 43 2D E8 50 90 00 [09:54:20]wFMCommunicate OK [09:54:20]SAM_PROTO_SignData done [09:54:20]FM_MakeSignedData done [09:54:20]CreateOFDProtocolMessage [09:54:20]wFMCommunicate request_size=4 [09:54:20]MH_SAM_APDU [09:54:20]CAPDU: 80 11 00 00 [09:54:20]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:20]Read from MH i2c: E2 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AF [09:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:54:20]wFMCommunicate OK [09:54:20]CreateOFDProtocolMessage done [09:54:20]OFDSenderStorePacket 48846 [09:54:20]StoreOFDPacket docnum=48846 [09:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D7 33 07 01 28 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BE 00 00 35 04 06 00 20 89 F4 E3 B2 0A 0F 8A 43 D6 43 2D E8 50 [09:54:20]CheckFolder [09:54:20]dirname=/storage/ofd_packets [09:54:20]CheckFolder done [09:54:20]ProducePacketName [09:54:20]name=ofd_packets/00048846 [09:54:20]NVStorageSaveData ofd_packets/00048846 [09:54:20]File name is /storage/ofd_packets/00048846 [09:54:20]Write 301 bytes [09:54:20]NVStorageSaveData done [09:54:20]OFDSenderStorePacket done [09:54:20]KKMCreateOFDPacket done [09:54:20]NVStorageSaveData kkm_last_timestamp [09:54:20]File name is /storage/kkm_last_timestamp [09:54:20]Write 4 bytes [09:54:20]NVStorageSaveData done [09:54:20]ExternCall_PrintAddStr [09:54:20]wPrintStart [09:54:20]Write to MH i2c: 01 00 00 E1 08 E9 [09:54:20]Write i2c OK [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 07 00 [09:54:20]MH_I2C_Read... [09:54:20]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [09:54:20]RasterBufferAndPrint [09:54:20]line Счет N : (1)215941 [09:54:20]line ИНН: 02508201610067 [09:54:20]line Контрольно-Кассовый Чек [09:54:20]line ПРОДАЖА [09:54:20]line ТРК (МРК, ГНК) : 12 [09:54:20]line Товар: 2710124130 [09:54:20]line Аи-92-К-5 [09:54:20]line 4.980 * 60.30 [09:54:20]line = 300.29 [09:54:20]line НДС 12% НСП 1% [09:54:20]line > о реализуемом товаре [09:54:20]line ОКРУГЛЕНИЕ: -0.29 [09:54:20]line ИТОГО: 300.00 [09:54:20]line Внесено: 300.00 [09:54:20]line СДАЧА: 0.00 [09:54:20]line НСП 1% : 2.66 [09:54:20]line НДС 12% : 31.89 [09:54:20]line Наличными: 300.00 [09:54:20]line Безнал.: 0.00 [09:54:20]line Место: АЗС № 102 "Партнер Нефть" [09:54:20]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:54:20]line СНО: Общий режим [09:54:20]line Чек 26 27.01.2024 09:54 [09:54:20]line Смена: 243 ФФД: 1.0 [09:54:20]line ЗНМ: 0300000040 [09:54:20]line РНМ: 0000000000092723 [09:54:20]line Версия ККМ: 001 [09:54:20]line ФМ: 0000000000875060 [09:54:20]line ФД: 48846 [09:54:20]line ФПД: 35776891171338 [09:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095421&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48846&fm=35776891171338&tin=02508201610067®Number=0000000000092723&sum=30000 [09:54:20]written 0, free lines is 4095 [09:54:20]OFD Sender: Processing packet 48846 [packets to send 12, broken 11] [09:54:20]ProducePacketName [09:54:20]name=ofd_packets/00048846 [09:54:20]OFD Sender: To server: pG, [09:54:20]CommunicateWithHost lk.salyk.kg:30040 [09:54:20]ConnectInit lk.salyk.kg [09:54:20]Connected sock=10 [09:54:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D7 33 07 01 28 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CD D2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BE 00 00 35 04 06 00 20 89 F4 E3 B2 0A 0F 8A 43 D6 43 2D E8 50 [09:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4C D0 47 00 3F BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BE 00 00 F4 03 04 00 CC 7E B4 65 B6 04 01 00 00 3A 3E 03 6F C8 E3 82 D5 [09:54:21]CommunicateWithHost err = 0 [09:54:21]CheckOFDResponse [09:54:21]1017 (14) - 77093643461234 [09:54:21]1041 (16) - 0000000000875060 [09:54:21]1040 (4) - 48846 [09:54:21]1012 (4) - 27.01.2024 03:55 [09:54:21]1206 (1) - 0 [09:54:21]OFD Sender: Remove packet 48846 [09:54:21]ProducePacketName [09:54:21]name=ofd_packets/00048846 [09:54:21]NVStorageDeleteData [09:54:21]Write to MH i2c: 01 00 00 0C 09 15 [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: 01 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: 01 07 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 ED 0C 15 [09:54:21]RasterBufferAndPrint [09:54:21]line [09:54:21]line [09:54:21]line [09:54:21]line [09:54:21]line [09:54:21]written 0, free lines is 3318 [09:54:21]MH_Cut [09:54:21]Write to MH i2c: D1 01 00 13 09 01 EE [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: D1 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: D1 01 00 [09:54:21]MH_I2C_Read... [09:54:21]Read from MH i2c: D1 01 00 13 09 00 ED [09:54:21]Write to MH i2c: 01 00 00 14 09 1D [09:54:21]Write i2c OK [09:54:21]MH_I2C_Read... [09:54:21]OFD Sender: No OFD packet to send [09:54:21]*** Cut start [09:54:21]*** Partial cut [09:54:21]*** CUTSNS_PIN = 1 [09:54:21]*** CUTSNS_PIN = 0 [09:54:22]*** Brake cut motor [09:54:22]Read from MH i2c: 01 [09:54:22]MH_I2C_Read... [09:54:22]*** Stop cut motor [09:54:22]*** Cut end [09:54:22]Read from MH i2c: 01 07 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [09:54:22]process_action close_receipt done [09:54:22]requested_data is exist [09:54:22]produce_requested_data [09:54:22]requested_item fm.sn is exist - process it [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 11 00 00 [09:54:22]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 17 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E5 [09:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:54:22]wFMCommunicate OK [09:54:22]requested_item fd.num is exist - process it [09:54:22]SAM_PROTO_GetFieldsCounters [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 13 00 00 [09:54:22]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 62 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 62 00 16 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CE BE 00 00 0E 04 04 00 F3 00 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 81 [09:54: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CE BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:22]wFMCommunicate OK [09:54:22]SAM_PROTO_GetFieldsCounters done [09:54:22]requested_item shift.num is exist - process it [09:54:22]requested_item shift.opened is exist - process it [09:54:22]req_shift_opened [09:54:22]FM_GetShiftState [09:54:22]SAM_PROTO_GetShiftState [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 13 01 00 [09:54:22]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:22]Read from MH i2c: E2 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 0E 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 34 [09:54:22]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:54:22]wFMCommunicate OK [09:54:22]SAM_PROTO_GetShiftState done [09:54:22]FM_GetShiftState done [09:54:22]req_shift_opened done [09:54:22]requested_item shift.open_date is exist - process it [09:54:22]req_shift_open_date [09:54:22]req_shift_open_date done [09:54:22]produce_requested_data done [09:54:22]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48846,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:54:22]process_action_free close_receipt [09:54:22]json_value_free [09:54:22]json_value_free done [09:54:22]process_json_proto returns [09:54:22]Send response to host [09:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48846,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:54:22]free response buf [09:54:22]execute_script done [09:54:22]execute_script returns [09:54:22]free content buf [09:54:22]Sock 7.Close socket [09:54:22]Sock 7.Thread stoped [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: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]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:40]accept exits with 9 [09:58:40]New connection [09:58:40]New thread 3066813796 created [09:58:40]Thread 3066670436 joined [09:58:40]Waiting for new connection... [09:58:40] Sock 9.Parse request [09:58:40]Sock 9.Check first char [09:58:40]Sock 9.First char is OK [09:58:40]request: POST /json_proto HTTP/1.0 [09:58:40]Method: POST [09:58:40]URL: /json_proto [09:58:40]Method is POST - this is cgi request [09:58:40]url: /json_proto [09:58:40]query_string will be loaded in cgi processing [09:58:40]execute_cgi json_proto POST (null) [09:58:40]execute_cgi path=json_proto method=POST [09:58:40]POST find Content-Length [09:58:40]Host: 172.17.56.67:8080 [09:58:40]Content-Length: 674 [09:58:40]Content-Type: application/json [09:58:40] [09:58:40]POST finish read [09:58:40]Found Content-Length = 674 [09:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.870, "sum" : 620.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:40]execute_script... [09:58:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.870, "sum" : 620.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:40]POST & json_proto [09:58:40]process_json_proto [09:58:40]json parsed OK: [09:58:40]protocol is kg_v1.0 [09:58:40]action value=close_receipt [09:58:40]process_action close_receipt [09:58:40]cmd_close_receipt [09:58:40]MH_GetDate [09:58:40]Write to MH i2c: F0 00 00 18 09 10 [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: F0 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: F0 09 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: F0 09 00 18 09 00 D2 D3 B4 65 26 5D 9E 65 5D [09:58:40]GetLastDocTimeStamp 1706349261 [09:58:40]current date 1706349522 [09:58:40]FM_GetShiftState [09:58:40]SAM_PROTO_GetShiftState [09:58:40]wFMCommunicate request_size=4 [09:58:40]MH_SAM_APDU [09:58:40]CAPDU: 80 13 01 00 [09:58:40]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [09:58:40]Write i2c OK [09:58:40]MH_I2C_Read... [09:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:40]Read from MH i2c: E2 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 [09:58:40]MH_I2C_Read... [09:58:40]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 36 [09:58:40]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:58:40]wFMCommunicate OK [09:58:40]SAM_PROTO_GetShiftState done [09:58:40]FM_GetShiftState done [09:58:40]opened in 1706313770 [09:58:40]opened+sec_in_day 1706400170 [09:58:40]quantity*price = 62001 [09:58:40]sum+1 = 62002 [09:58:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.84 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 27 27.01.2024 09:58 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48847 ФПД: 198746154004213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48847&fm=198746154004213&tin=02508201610067®Number=0000000000092723&sum=62000 [09:58:41]StoreToDocumentArchive [09:58:41]shift 243 fd 48847 [09:58:41]save to /storage/0243/doc_00048847 [09:58:41]save last doc name /storage/0243/doc_00048847 to /storage/kkm_last_doc_name [09:58:41]save OK [09:58:41]Clear old archive folders... [09:58:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:41]tlvbuf is 011BE220 [09:58:41]SAM_PROTO_ClearQueue [09:58:41]wFMCommunicate request_size=4 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 09 00 00 [09:58:41]Write to MH i2c: E2 08 00 26 09 80 09 00 00 00 00 00 00 A1 [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [09:58:41]RAPDU: 90 00 [09:58:41]wFMCommunicate OK [09:58:41]SAM_PROTO_ClearQueue done [09:58:41]KKMCreateOFDPacket [09:58:41]OFDProtocolAddRootSTLVToBuf [09:58:41]FM_MakeSignedData [09:58:41]FM_MakeSignedData [09:58:41]SAM_PROTO_SignData [09:58:41]wFMCommunicate request_size=4 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 0D 01 02 [09:58:41]Write to MH i2c: E2 08 00 27 09 80 0D 01 02 00 00 00 00 A9 [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [09:58:41]RAPDU: 90 00 [09:58:41]wFMCommunicate OK [09:58:41]wFMCommunicate request_size=255 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A6 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 31 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 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 D3 D3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BE 00 00 35 04 06 00 B4 C2 31 E8 [09:58:41]Write to MH i2c: E2 02 01 28 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 A6 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 31 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 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 D3 D3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BE 00 00 35 04 06 00 B4 C2 31 E8 00 00 77 [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [09:58:41]RAPDU: 90 00 [09:58:41]wFMCommunicate OK [09:58:41]wFMCommunicate request_size=7 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 0D 02 02 02 EE F5 [09:58:41]Write to MH i2c: E2 0A 00 29 09 80 0D 02 02 02 00 EE F5 00 00 93 [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [09:58:41]RAPDU: 90 00 [09:58:41]wFMCommunicate OK [09:58:41]wFMCommunicate request_size=4 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 0D 03 02 [09:58:41]Write to MH i2c: E2 08 00 2A 09 80 0D 03 02 00 00 00 00 AE [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 0B 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 0B 00 2A 09 00 C4 12 77 E6 C8 E5 7E DC 90 00 E9 [09:58:41]RAPDU: C4 12 77 E6 C8 E5 7E DC 90 00 [09:58:41]wFMCommunicate OK [09:58:41]SAM_PROTO_SignData done [09:58:41]FM_MakeSignedData done [09:58:41]CreateOFDProtocolMessage [09:58:41]wFMCommunicate request_size=4 [09:58:41]MH_SAM_APDU [09:58:41]CAPDU: 80 11 00 00 [09:58:41]Write to MH i2c: E2 08 00 2B 09 80 11 00 00 00 00 00 00 AE [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]OFD Sender: No OFD packet to send [09:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:41]Read from MH i2c: E2 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 17 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: E2 17 00 2B 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FB [09:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:58:41]wFMCommunicate OK [09:58:41]CreateOFDProtocolMessage done [09:58:41]OFDSenderStorePacket 48847 [09:58:41]StoreOFDPacket docnum=48847 [09:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 4F DC 04 01 EB 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 A6 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 31 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 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 D3 D3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BE 00 00 35 04 06 00 B4 C2 31 E8 EE F5 C4 12 77 E6 C8 E5 7E DC [09:58:41]CheckFolder [09:58:41]dirname=/storage/ofd_packets [09:58:41]CheckFolder done [09:58:41]ProducePacketName [09:58:41]name=ofd_packets/00048847 [09:58:41]NVStorageSaveData ofd_packets/00048847 [09:58:41]File name is /storage/ofd_packets/00048847 [09:58:41]Write 298 bytes [09:58:41]NVStorageSaveData done [09:58:41]OFDSenderStorePacket done [09:58:41]KKMCreateOFDPacket done [09:58:41]NVStorageSaveData kkm_last_timestamp [09:58:41]File name is /storage/kkm_last_timestamp [09:58:41]Write 4 bytes [09:58:41]NVStorageSaveData done [09:58:41]ExternCall_PrintAddStr [09:58:41]wPrintStart [09:58:41]Write to MH i2c: 01 00 00 2C 09 35 [09:58:41]Write i2c OK [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: 01 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: 01 07 00 [09:58:41]MH_I2C_Read... [09:58:41]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [09:58:41]RasterBufferAndPrint [09:58:41]line Счет N : (1)215943 [09:58:41]line ИНН: 02508201610067 [09:58:41]line Контрольно-Кассовый Чек [09:58:41]line ПРОДАЖА [09:58:41]line ТРК (МРК, ГНК) : 21 [09:58:41]line Товар: 2710194210 [09:58:41]line ДТ-К-5 [09:58:41]line 8.870 * 69.90 [09:58:41]line = 620.01 [09:58:41]line НДС 12% НСП 1% [09:58:41]line > о реализуемом товаре [09:58:41]line ОКРУГЛЕНИЕ: -0.01 [09:58:41]line ИТОГО: 620.00 [09:58:41]line Внесено: 620.00 [09:58:41]line СДАЧА: 0.00 [09:58:41]line НСП 1% : 5.49 [09:58:41]line НДС 12% : 65.84 [09:58:41]line Наличными: 620.00 [09:58:41]line Безнал.: 0.00 [09:58:41]line Место: АЗС № 102 "Партнер Нефть" [09:58:41]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:58:41]line СНО: Общий режим [09:58:41]line Чек 27 27.01.2024 09:58 [09:58:41]line Смена: 243 ФФД: 1.0 [09:58:41]line ЗНМ: 0300000040 [09:58:41]line РНМ: 0000000000092723 [09:58:41]line Версия ККМ: 001 [09:58:41]line ФМ: 0000000000875060 [09:58:41]line ФД: 48847 [09:58:41]line ФПД: 198746154004213 [09:58:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T095843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48847&fm=198746154004213&tin=02508201610067®Number=0000000000092723&sum=62000 [09:58:42]OFD Sender: Processing packet 48847 [packets to send 12, broken 11] [09:58:42]ProducePacketName [09:58:42]name=ofd_packets/00048847 [09:58:42]OFD Sender: To server: pG, [09:58:42]CommunicateWithHost lk.salyk.kg:30040 [09:58:42]ConnectInit lk.salyk.kg [09:58:42]written 0, free lines is 4095 [09:58:42]Connected sock=10 [09:58:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 4F DC 04 01 EB 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 A6 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 31 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 19 00 00 00 00 07 04 06 00 30 F2 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 D3 D3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BE 00 00 35 04 06 00 B4 C2 31 E8 EE F5 C4 12 77 E6 C8 E5 7E DC [09:58:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 46 0D 47 00 5F 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BE 00 00 F4 03 04 00 D1 7F B4 65 B6 04 01 00 00 99 EA C4 5D ED BD 4E 42 [09:58:42]CommunicateWithHost err = 0 [09:58:42]CheckOFDResponse [09:58:42]1017 (14) - 77093643461234 [09:58:42]1041 (16) - 0000000000875060 [09:58:42]1040 (4) - 48847 [09:58:42]1012 (4) - 27.01.2024 04:00 [09:58:42]1206 (1) - 0 [09:58:42]OFD Sender: Remove packet 48847 [09:58:42]ProducePacketName [09:58:42]name=ofd_packets/00048847 [09:58:42]NVStorageDeleteData [09:58:42]Write to MH i2c: 01 00 00 57 09 60 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: 01 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: 01 07 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: 01 07 00 57 09 00 00 00 00 00 EC 0C 5F [09:58:42]RasterBufferAndPrint [09:58:42]line [09:58:42]line [09:58:42]line [09:58:42]line [09:58:42]line [09:58:42]written 0, free lines is 3315 [09:58:42]MH_Cut [09:58:42]Write to MH i2c: D1 01 00 5E 09 01 39 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: D1 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: D1 01 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: D1 01 00 5E 09 00 38 [09:58:42]Write to MH i2c: 01 00 00 5F 09 68 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:43]OFD Sender: No OFD packet to send [09:58:43]*** Cut start [09:58:43]*** Partial cut [09:58:43]*** CUTSNS_PIN = 1 [09:58:43]*** CUTSNS_PIN = 0 [09:58:43]*** Brake cut motor [09:58:43]Read from MH i2c: 01 [09:58:43]MH_I2C_Read... [09:58:43]*** Stop cut motor [09:58:43]*** Cut end [09:58:43]Read from MH i2c: 01 07 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [09:58:43]process_action close_receipt done [09:58:43]requested_data is exist [09:58:43]produce_requested_data [09:58:43]requested_item fm.sn is exist - process it [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 11 00 00 [09:58:43]Write to MH i2c: E2 08 00 60 09 80 11 00 00 00 00 00 00 E3 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:43]Read from MH i2c: E2 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 17 00 [09:58:43]MH_I2C_Read... [09:58:43]Read from MH i2c: E2 17 00 60 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 30 [09:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:58:43]wFMCommunicate OK [09:58:43]requested_item fd.num is exist - process it [09:58:43]SAM_PROTO_GetFieldsCounters [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 13 00 00 [09:58:43]Write to MH i2c: E2 08 00 61 09 80 13 00 00 00 00 00 00 E6 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 62 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 62 00 61 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CF BE 00 00 0E 04 04 00 F3 00 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 D0 [09:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CF BE 00 00 0E 04 04 00 F3 00 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:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_GetFieldsCounters done [09:58:44]requested_item shift.num is exist - process it [09:58:44]requested_item shift.opened is exist - process it [09:58:44]req_shift_opened [09:58:44]FM_GetShiftState [09:58:44]SAM_PROTO_GetShiftState [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 13 01 00 [09:58:44]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 7F [09:58:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_GetShiftState done [09:58:44]FM_GetShiftState done [09:58:44]req_shift_opened done [09:58:44]requested_item shift.open_date is exist - process it [09:58:44]req_shift_open_date [09:58:44]req_shift_open_date done [09:58:44]produce_requested_data done [09:58:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48847,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [09:58:44]process_action_free close_receipt [09:58:44]json_value_free [09:58:44]json_value_free done [09:58:44]process_json_proto returns [09:58:44]Send response to host [09:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48847,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [09:58:44]free response buf [09:58:44]execute_script done [09:58:44]execute_script returns [09:58:44]free content buf [09:58:44]Sock 9.Close socket [09:58:44]Sock 9.Thread stoped [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:00]accept exits with 7 [10:00:00]New connection [10:00:00]New thread 3066670436 created [10:00:00]Thread 3066813796 joined [10:00:00]Waiting for new connection... [10:00:00] Sock 7.Parse request [10:00:00]Sock 7.Check first char [10:00:00]Sock 7.First char is OK [10:00:00]request: POST /json_proto HTTP/1.0 [10:00:00]Method: POST [10:00:00]URL: /json_proto [10:00:00]Method is POST - this is cgi request [10:00:00]url: /json_proto [10:00:00]query_string will be loaded in cgi processing [10:00:00]execute_cgi json_proto POST (null) [10:00:00]execute_cgi path=json_proto method=POST [10:00:00]POST find Content-Length [10:00:00]Host: 172.17.56.67:8080 [10:00:00]Content-Length: 677 [10:00:00]Content-Type: application/json [10:00:00] [10:00:00]POST finish read [10:00:00]Found Content-Length = 677 [10:00:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:00]execute_script... [10:00: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)215944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:00]POST & json_proto [10:00:00]process_json_proto [10:00:00]json parsed OK: [10:00:00]protocol is kg_v1.0 [10:00:00]action value=close_receipt [10:00:00]process_action close_receipt [10:00:00]cmd_close_receipt [10:00:00]MH_GetDate [10:00:00]Write to MH i2c: F0 00 00 63 09 5B [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: F0 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: F0 09 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: F0 09 00 63 09 00 22 D4 B4 65 26 5D 9E 65 F9 [10:00:00]GetLastDocTimeStamp 1706349523 [10:00:00]current date 1706349602 [10:00:00]FM_GetShiftState [10:00:00]SAM_PROTO_GetShiftState [10:00:00]wFMCommunicate request_size=4 [10:00:00]MH_SAM_APDU [10:00:00]CAPDU: 80 13 01 00 [10:00:00]Write to MH i2c: E2 08 00 64 09 80 13 01 00 00 00 00 00 EA [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:00]Read from MH i2c: E2 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 0E 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: E2 0E 00 64 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 81 [10:00:00]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:00:00]wFMCommunicate OK [10:00:00]SAM_PROTO_GetShiftState done [10:00:00]FM_GetShiftState done [10:00:00]opened in 1706313770 [10:00:00]opened+sec_in_day 1706400170 [10:00:00]quantity*price = 20019 [10:00:00]sum+1 = 20021 [10:00:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 28 27.01.2024 10:00 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48848 ФПД: 265619064670983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T100003&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48848&fm=265619064670983&tin=02508201610067®Number=0000000000092723&sum=20000 [10:00:01]StoreToDocumentArchive [10:00:01]shift 243 fd 48848 [10:00:01]save to /storage/0243/doc_00048848 [10:00:01]save last doc name /storage/0243/doc_00048848 to /storage/kkm_last_doc_name [10:00:01]save OK [10:00:01]Clear old archive folders... [10:00:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:01]tlvbuf is 01340F50 [10:00:01]SAM_PROTO_ClearQueue [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 09 00 00 [10:00:01]Write to MH i2c: E2 08 00 71 09 80 09 00 00 00 00 00 00 EC [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [10:00:01]RAPDU: 90 00 [10:00:01]wFMCommunicate OK [10:00:01]SAM_PROTO_ClearQueue done [10:00:01]KKMCreateOFDPacket [10:00:01]OFDProtocolAddRootSTLVToBuf [10:00:01]FM_MakeSignedData [10:00:01]FM_MakeSignedData [10:00:01]SAM_PROTO_SignData [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 0D 01 02 [10:00:01]Write to MH i2c: E2 08 00 72 09 80 0D 01 02 00 00 00 00 F4 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [10:00:01]RAPDU: 90 00 [10:00:01]wFMCommunicate OK [10:00:01]wFMCommunicate request_size=255 [10:00:01]MH_SAM_APDU [10:00: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 D4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 BE 00 00 35 04 06 00 F1 [10:00:01]Write to MH i2c: E2 02 01 73 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 D4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 BE 00 00 35 04 06 00 F1 00 00 A2 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [10:00:01]RAPDU: 90 00 [10:00:01]wFMCommunicate OK [10:00:01]wFMCommunicate request_size=10 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 0D 02 02 05 94 41 FE CB 07 [10:00:01]Write to MH i2c: E2 0D 00 74 09 80 0D 02 02 05 00 94 41 FE CB 07 00 00 A6 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 03 00 74 09 00 90 00 F1 [10:00:01]RAPDU: 90 00 [10:00:01]wFMCommunicate OK [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 0D 03 02 [10:00:01]Write to MH i2c: E2 08 00 75 09 80 0D 03 02 00 00 00 00 F9 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 0B 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 0B 00 75 09 00 36 BB CC 69 F5 94 BE 7F 90 00 E6 [10:00:01]RAPDU: 36 BB CC 69 F5 94 BE 7F 90 00 [10:00:01]wFMCommunicate OK [10:00:01]SAM_PROTO_SignData done [10:00:01]FM_MakeSignedData done [10:00:01]CreateOFDProtocolMessage [10:00:01]wFMCommunicate request_size=4 [10:00:01]MH_SAM_APDU [10:00:01]CAPDU: 80 11 00 00 [10:00:01]Write to MH i2c: E2 08 00 76 09 80 11 00 00 00 00 00 00 F9 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:01]Read from MH i2c: E2 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 17 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: E2 17 00 76 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 46 [10:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:00:01]wFMCommunicate OK [10:00:01]CreateOFDProtocolMessage done [10:00:01]OFDSenderStorePacket 48848 [10:00:01]StoreOFDPacket docnum=48848 [10:00:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 37 97 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 D4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 BE 00 00 35 04 06 00 F1 94 41 FE CB 07 36 BB CC 69 F5 94 BE 7F [10:00:01]CheckFolder [10:00:01]dirname=/storage/ofd_packets [10:00:01]CheckFolder done [10:00:01]ProducePacketName [10:00:01]name=ofd_packets/00048848 [10:00:01]NVStorageSaveData ofd_packets/00048848 [10:00:01]File name is /storage/ofd_packets/00048848 [10:00:01]Write 301 bytes [10:00:01]NVStorageSaveData done [10:00:01]OFDSenderStorePacket done [10:00:01]KKMCreateOFDPacket done [10:00:01]NVStorageSaveData kkm_last_timestamp [10:00:01]File name is /storage/kkm_last_timestamp [10:00:01]Write 4 bytes [10:00:01]NVStorageSaveData done [10:00:01]ExternCall_PrintAddStr [10:00:01]wPrintStart [10:00:01]Write to MH i2c: 01 00 00 77 09 80 [10:00:01]Write i2c OK [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: 01 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: 01 07 00 [10:00:01]MH_I2C_Read... [10:00:01]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [10:00:01]RasterBufferAndPrint [10:00:01]line Счет N : (1)215944 [10:00:01]line ИНН: 02508201610067 [10:00:01]line Контрольно-Кассовый Чек [10:00:01]line ПРОДАЖА [10:00:01]line ТРК (МРК, ГНК) : 12 [10:00:01]line Товар: 2710124130 [10:00:01]line Аи-92-К-5 [10:00:01]line 3.320 * 60.30 [10:00:01]line = 200.20 [10:00:01]line НДС 12% НСП 1% [10:00:01]line > о реализуемом товаре [10:00:01]line ОКРУГЛЕНИЕ: -0.20 [10:00:01]line ИТОГО: 200.00 [10:00:01]line Внесено: 200.00 [10:00:01]line СДАЧА: 0.00 [10:00:01]line НСП 1% : 1.77 [10:00:01]line НДС 12% : 21.26 [10:00:01]line Наличными: 200.00 [10:00:01]line Безнал.: 0.00 [10:00:01]line Место: АЗС № 102 "Партнер Нефть" [10:00:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:00:01]line СНО: Общий режим [10:00:01]line Чек 28 27.01.2024 10:00 [10:00:01]line Смена: 243 ФФД: 1.0 [10:00:01]line ЗНМ: 0300000040 [10:00:01]line РНМ: 0000000000092723 [10:00:01]line Версия ККМ: 001 [10:00:01]line ФМ: 0000000000875060 [10:00:01]line ФД: 48848 [10:00:01]line ФПД: 265619064670983 [10:00:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T100003&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48848&fm=265619064670983&tin=02508201610067®Number=0000000000092723&sum=20000 [10:00:02]OFD Sender: Processing packet 48848 [packets to send 12, broken 11] [10:00:02]ProducePacketName [10:00:02]name=ofd_packets/00048848 [10:00:02]OFD Sender: To server: pG, [10:00:02]CommunicateWithHost lk.salyk.kg:30040 [10:00:02]ConnectInit lk.salyk.kg [10:00:02]written 0, free lines is 4095 [10:00:02]Connected sock=10 [10:00:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 37 97 07 01 56 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 23 D4 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 BE 00 00 35 04 06 00 F1 94 41 FE CB 07 36 BB CC 69 F5 94 BE 7F [10:00:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EA DF 47 00 3B 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 35 30 36 30 10 04 04 00 D0 BE 00 00 F4 03 04 00 21 80 B4 65 B6 04 01 00 00 5C C0 FD 7D E8 22 E6 2E [10:00:02]CommunicateWithHost err = 0 [10:00:02]CheckOFDResponse [10:00:02]1017 (14) - 77093643461234 [10:00:02]1041 (16) - 0000000000875060 [10:00:02]1040 (4) - 48848 [10:00:02]1012 (4) - 27.01.2024 04:01 [10:00:02]1206 (1) - 0 [10:00:02]OFD Sender: Remove packet 48848 [10:00:02]ProducePacketName [10:00:02]name=ofd_packets/00048848 [10:00:02]NVStorageDeleteData [10:00:02]Write to MH i2c: 01 00 00 A2 09 AB [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: 01 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: 01 07 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: 01 07 00 A2 09 00 00 00 00 00 F8 0C B6 [10:00:02]RasterBufferAndPrint [10:00:02]line [10:00:02]line [10:00:02]line [10:00:02]line [10:00:02]line [10:00:02]written 0, free lines is 3326 [10:00:02]MH_Cut [10:00:02]Write to MH i2c: D1 01 00 A9 09 01 84 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: D1 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: D1 01 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: D1 01 00 A9 09 00 83 [10:00:02]Write to MH i2c: 01 00 00 AA 09 B3 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:03]OFD Sender: No OFD packet to send [10:00:03]*** Cut start [10:00:03]*** Partial cut [10:00:03]*** CUTSNS_PIN = 1 [10:00:03]*** CUTSNS_PIN = 0 [10:00:03]*** Brake cut motor [10:00:03]Read from MH i2c: 01 [10:00:03]MH_I2C_Read... [10:00:03]*** Stop cut motor [10:00:03]*** Cut end [10:00:03]Read from MH i2c: 01 07 00 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [10:00:03]process_action close_receipt done [10:00:03]requested_data is exist [10:00:03]produce_requested_data [10:00:03]requested_item fm.sn is exist - process it [10:00:03]wFMCommunicate request_size=4 [10:00:03]MH_SAM_APDU [10:00:03]CAPDU: 80 11 00 00 [10:00:03]Write to MH i2c: E2 08 00 AB 09 80 11 00 00 00 00 00 00 2E [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:03]Read from MH i2c: E2 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 17 00 [10:00:03]MH_I2C_Read... [10:00:03]Read from MH i2c: E2 17 00 AB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7B [10:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:00:03]wFMCommunicate OK [10:00:03]requested_item fd.num is exist - process it [10:00:03]SAM_PROTO_GetFieldsCounters [10:00:03]wFMCommunicate request_size=4 [10:00:03]MH_SAM_APDU [10:00:03]CAPDU: 80 13 00 00 [10:00:03]Write to MH i2c: E2 08 00 AC 09 80 13 00 00 00 00 00 00 31 [10:00:03]Write i2c OK [10:00:03]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 62 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 62 00 AC 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D0 BE 00 00 0E 04 04 00 F3 00 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 1F [10:00: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D0 BE 00 00 0E 04 04 00 F3 00 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 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_GetFieldsCounters done [10:00:04]requested_item shift.num is exist - process it [10:00:04]requested_item shift.opened is exist - process it [10:00:04]req_shift_opened [10:00:04]FM_GetShiftState [10:00:04]SAM_PROTO_GetShiftState [10:00:04]wFMCommunicate request_size=4 [10:00:04]MH_SAM_APDU [10:00:04]CAPDU: 80 13 01 00 [10:00:04]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [10:00:04]Write i2c OK [10:00:04]MH_I2C_Read... [10:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:04]Read from MH i2c: E2 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 [10:00:04]MH_I2C_Read... [10:00:04]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 CA [10:00:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:00:04]wFMCommunicate OK [10:00:04]SAM_PROTO_GetShiftState done [10:00:04]FM_GetShiftState done [10:00:04]req_shift_opened done [10:00:04]requested_item shift.open_date is exist - process it [10:00:04]req_shift_open_date [10:00:04]req_shift_open_date done [10:00:04]produce_requested_data done [10:00:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48848,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:00:04]process_action_free close_receipt [10:00:04]json_value_free [10:00:04]json_value_free done [10:00:04]process_json_proto returns [10:00:04]Send response to host [10:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48848,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:00:04]free response buf [10:00:04]execute_script done [10:00:04]execute_script returns [10:00:04]free content buf [10:00:04]Sock 7.Close socket [10:00:04]Sock 7.Thread stoped [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:17]accept exits with 9 [10:08:17]New connection [10:08:17]New thread 3066813796 created [10:08:17]Thread 3066670436 joined [10:08:17]Waiting for new connection... [10:08:17] Sock 9.Parse request [10:08:17]Sock 9.Check first char [10:08:17]Sock 9.First char is OK [10:08:17]request: POST /json_proto HTTP/1.0 [10:08:17]Method: POST [10:08:17]URL: /json_proto [10:08:17]Method is POST - this is cgi request [10:08:17]url: /json_proto [10:08:17]query_string will be loaded in cgi processing [10:08:17]execute_cgi json_proto POST (null) [10:08:17]execute_cgi path=json_proto method=POST [10:08:17]POST find Content-Length [10:08:17]Host: 172.17.56.67:8080 [10:08:17]Content-Length: 679 [10:08:17]Content-Type: application/json [10:08:17] [10:08:17]POST finish read [10:08:17]Found Content-Length = 679 [10:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 15.170, "sum" : 1060.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:17]execute_script... [10:08: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)215945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 15.170, "sum" : 1060.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1060.00, "total" : 1060.00, "payments": [ { "type": 0, "sum" : 1060.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:17]POST & json_proto [10:08:17]process_json_proto [10:08:17]json parsed OK: [10:08:17]protocol is kg_v1.0 [10:08:17]action value=close_receipt [10:08:17]process_action close_receipt [10:08:17]cmd_close_receipt [10:08:17]MH_GetDate [10:08:17]Write to MH i2c: F0 00 00 AE 09 A6 [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 09 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: F0 09 00 AE 09 00 14 D6 B4 65 26 5D 9E 65 38 [10:08:17]GetLastDocTimeStamp 1706349603 [10:08:17]current date 1706350100 [10:08:17]FM_GetShiftState [10:08:17]SAM_PROTO_GetShiftState [10:08:17]wFMCommunicate request_size=4 [10:08:17]MH_SAM_APDU [10:08:17]CAPDU: 80 13 01 00 [10:08:17]Write to MH i2c: E2 08 00 AF 09 80 13 01 00 00 00 00 00 35 [10:08:17]Write i2c OK [10:08:17]MH_I2C_Read... [10:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:17]Read from MH i2c: E2 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 0E 00 [10:08:17]MH_I2C_Read... [10:08:17]Read from MH i2c: E2 0E 00 AF 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 CC [10:08:17]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:08:17]wFMCommunicate OK [10:08:17]SAM_PROTO_GetShiftState done [10:08:17]FM_GetShiftState done [10:08:17]opened in 1706313770 [10:08:17]opened+sec_in_day 1706400170 [10:08:17]quantity*price = 106038 [10:08:17]sum+1 = 106039 [10:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1060.00 Внесено: 1060.00 СДАЧА: 0.00 НСП 1% : 9.38 НДС 12% : 112.61 Наличными: 1060.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 29 27.01.2024 10:08 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48849 ФПД: 229307658706823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T100820&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48849&fm=229307658706823&tin=02508201610067®Number=0000000000092723&sum=106000 [10:08:18]StoreToDocumentArchive [10:08:18]shift 243 fd 48849 [10:08:18]save to /storage/0243/doc_00048849 [10:08:18]save last doc name /storage/0243/doc_00048849 to /storage/kkm_last_doc_name [10:08:18]save OK [10:08:18]Clear old archive folders... [10:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:08:18]tlvbuf is 01348850 [10:08:18]SAM_PROTO_ClearQueue [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 09 00 00 [10:08:18]Write to MH i2c: E2 08 00 BC 09 80 09 00 00 00 00 00 00 37 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]SAM_PROTO_ClearQueue done [10:08:18]KKMCreateOFDPacket [10:08:18]OFDProtocolAddRootSTLVToBuf [10:08:18]FM_MakeSignedData [10:08:18]FM_MakeSignedData [10:08:18]SAM_PROTO_SignData [10:08:18]wFMCommunicate request_size=4 [10:08:18]MH_SAM_APDU [10:08:18]CAPDU: 80 0D 01 02 [10:08:18]Write to MH i2c: E2 08 00 BD 09 80 0D 01 02 00 00 00 00 3F [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:18]Read from MH i2c: E2 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 [10:08:18]MH_I2C_Read... [10:08:18]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [10:08:18]RAPDU: 90 00 [10:08:18]wFMCommunicate OK [10:08:18]wFMCommunicate request_size=255 [10:08:18]MH_SAM_APDU [10:08: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 42 3B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 36 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 D6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BE 00 00 35 04 06 00 D0 8D D9 8A [10:08:18]Write to MH i2c: E2 02 01 BE 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 42 3B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 36 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 D6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BE 00 00 35 04 06 00 D0 8D D9 8A 00 00 E4 [10:08:18]Write i2c OK [10:08:18]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 03 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 03 00 BE 09 00 90 00 3B [10:08:19]RAPDU: 90 00 [10:08:19]wFMCommunicate OK [10:08:19]wFMCommunicate request_size=7 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 0D 02 02 02 9F 87 [10:08:19]Write to MH i2c: E2 0A 00 BF 09 80 0D 02 02 02 00 9F 87 00 00 6C [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 03 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 03 00 BF 09 00 90 00 3C [10:08:19]RAPDU: 90 00 [10:08:19]wFMCommunicate OK [10:08:19]wFMCommunicate request_size=4 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 0D 03 02 [10:08:19]Write to MH i2c: E2 08 00 C0 09 80 0D 03 02 00 00 00 00 44 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0B 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 0B 00 C0 09 00 41 45 DA F3 A1 11 23 5D 90 00 CA [10:08:19]RAPDU: 41 45 DA F3 A1 11 23 5D 90 00 [10:08:19]wFMCommunicate OK [10:08:19]SAM_PROTO_SignData done [10:08:19]FM_MakeSignedData done [10:08:19]CreateOFDProtocolMessage [10:08:19]wFMCommunicate request_size=4 [10:08:19]MH_SAM_APDU [10:08:19]CAPDU: 80 11 00 00 [10:08:19]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:19]Read from MH i2c: E2 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 17 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 91 [10:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:08:19]wFMCommunicate OK [10:08:19]CreateOFDProtocolMessage done [10:08:19]OFDSenderStorePacket 48849 [10:08:19]StoreOFDPacket docnum=48849 [10:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C4 08 04 01 0D 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 3B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 36 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 D6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BE 00 00 35 04 06 00 D0 8D D9 8A 9F 87 41 45 DA F3 A1 11 23 5D [10:08:19]CheckFolder [10:08:19]dirname=/storage/ofd_packets [10:08:19]CheckFolder done [10:08:19]ProducePacketName [10:08:19]name=ofd_packets/00048849 [10:08:19]NVStorageSaveData ofd_packets/00048849 [10:08:19]File name is /storage/ofd_packets/00048849 [10:08:19]Write 298 bytes [10:08:19]NVStorageSaveData done [10:08:19]OFDSenderStorePacket done [10:08:19]KKMCreateOFDPacket done [10:08:19]NVStorageSaveData kkm_last_timestamp [10:08:19]File name is /storage/kkm_last_timestamp [10:08:19]Write 4 bytes [10:08:19]NVStorageSaveData done [10:08:19]ExternCall_PrintAddStr [10:08:19]wPrintStart [10:08:19]Write to MH i2c: 01 00 00 C2 09 CB [10:08:19]Write i2c OK [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 [10:08:19]MH_I2C_Read... [10:08:19]Read from MH i2c: 01 07 00 C2 09 00 00 00 00 00 FF 0F E0 [10:08:19]RasterBufferAndPrint [10:08:19]line Счет N : (1)215945 [10:08:19]line ИНН: 02508201610067 [10:08:19]line Контрольно-Кассовый Чек [10:08:19]line ПРОДАЖА [10:08:19]line ТРК (МРК, ГНК) : 21 [10:08:19]line Товар: 2710194210 [10:08:19]line ДТ-К-5 [10:08:19]line 15.170 * 69.90 [10:08:19]line = 1060.38 [10:08:19]line НДС 12% НСП 1% [10:08:19]line > о реализуемом товаре [10:08:19]line ОКРУГЛЕНИЕ: -0.38 [10:08:19]line ИТОГО: 1060.00 [10:08:19]line Внесено: 1060.00 [10:08:19]line СДАЧА: 0.00 [10:08:19]line НСП 1% : 9.38 [10:08:19]line НДС 12% : 112.61 [10:08:19]line Наличными: 1060.00 [10:08:19]line Безнал.: 0.00 [10:08:19]line Место: АЗС № 102 "Партнер Нефть" [10:08:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:08:19]line СНО: Общий режим [10:08:19]line Чек 29 27.01.2024 10:08 [10:08:19]line Смена: 243 ФФД: 1.0 [10:08:19]line ЗНМ: 0300000040 [10:08:19]line РНМ: 0000000000092723 [10:08:19]line Версия ККМ: 001 [10:08:19]line ФМ: 0000000000875060 [10:08:19]line ФД: 48849 [10:08:19]line ФПД: 229307658706823 [10:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T100820&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48849&fm=229307658706823&tin=02508201610067®Number=0000000000092723&sum=106000 [10:08:19]OFD Sender: Processing packet 48849 [packets to send 12, broken 11] [10:08:19]ProducePacketName [10:08:19]name=ofd_packets/00048849 [10:08:19]OFD Sender: To server: pG, [10:08:19]CommunicateWithHost lk.salyk.kg:30040 [10:08:19]ConnectInit lk.salyk.kg [10:08:19]written 0, free lines is 4095 [10:08:19]Connected sock=10 [10:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C4 08 04 01 0D 1F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 42 3B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 36 9E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 9E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 2B 00 00 00 00 07 04 06 00 10 9E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 14 D6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BE 00 00 35 04 06 00 D0 8D D9 8A 9F 87 41 45 DA F3 A1 11 23 5D [10:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 BA F7 47 00 E7 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BE 00 00 F4 03 04 00 13 82 B4 65 B6 04 01 00 00 9A 19 62 FE BF FB A9 DB [10:08:20]CommunicateWithHost err = 0 [10:08:20]CheckOFDResponse [10:08:20]1017 (14) - 77093643461234 [10:08:20]1041 (16) - 0000000000875060 [10:08:20]1040 (4) - 48849 [10:08:20]1012 (4) - 27.01.2024 04:09 [10:08:20]1206 (1) - 0 [10:08:20]OFD Sender: Remove packet 48849 [10:08:20]ProducePacketName [10:08:20]name=ofd_packets/00048849 [10:08:20]NVStorageDeleteData [10:08:20]Write to MH i2c: 01 00 00 ED 09 F6 [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: 01 07 00 ED 09 00 00 00 00 00 FF 0C 08 [10:08:20]RasterBufferAndPrint [10:08:20]line [10:08:20]line [10:08:20]line [10:08:20]line [10:08:20]line [10:08:20]written 0, free lines is 3336 [10:08:20]MH_Cut [10:08:20]Write to MH i2c: D1 01 00 F4 09 01 CF [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: D1 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: D1 01 00 [10:08:20]MH_I2C_Read... [10:08:20]Read from MH i2c: D1 01 00 F4 09 00 CE [10:08:20]Write to MH i2c: 01 00 00 F5 09 FE [10:08:20]Write i2c OK [10:08:20]MH_I2C_Read... [10:08:20]OFD Sender: No OFD packet to send [10:08:20]*** Cut start [10:08:20]*** Partial cut [10:08:20]*** CUTSNS_PIN = 1 [10:08:20]*** CUTSNS_PIN = 0 [10:08:21]*** Brake cut motor [10:08:21]Read from MH i2c: 01 [10:08:21]MH_I2C_Read... [10:08:21]*** Stop cut motor [10:08:21]*** Cut end [10:08:21]Read from MH i2c: 01 07 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [10:08:21]process_action close_receipt done [10:08:21]requested_data is exist [10:08:21]produce_requested_data [10:08:21]requested_item fm.sn is exist - process it [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 11 00 00 [10:08:21]Write to MH i2c: E2 08 00 F6 09 80 11 00 00 00 00 00 00 79 [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 17 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 17 00 F6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C6 [10:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:08:21]wFMCommunicate OK [10:08:21]requested_item fd.num is exist - process it [10:08:21]SAM_PROTO_GetFieldsCounters [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 13 00 00 [10:08:21]Write to MH i2c: E2 08 00 F7 09 80 13 00 00 00 00 00 00 7C [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 62 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 62 00 F7 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D1 BE 00 00 0E 04 04 00 F3 00 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 6E [10:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D1 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_GetFieldsCounters done [10:08:21]requested_item shift.num is exist - process it [10:08:21]requested_item shift.opened is exist - process it [10:08:21]req_shift_opened [10:08:21]FM_GetShiftState [10:08:21]SAM_PROTO_GetShiftState [10:08:21]wFMCommunicate request_size=4 [10:08:21]MH_SAM_APDU [10:08:21]CAPDU: 80 13 01 00 [10:08:21]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [10:08:21]Write i2c OK [10:08:21]MH_I2C_Read... [10:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:21]Read from MH i2c: E2 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 [10:08:21]MH_I2C_Read... [10:08:21]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 15 [10:08:21]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:08:21]wFMCommunicate OK [10:08:21]SAM_PROTO_GetShiftState done [10:08:21]FM_GetShiftState done [10:08:21]req_shift_opened done [10:08:21]requested_item shift.open_date is exist - process it [10:08:21]req_shift_open_date [10:08:21]req_shift_open_date done [10:08:21]produce_requested_data done [10:08:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48849,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:08:21]process_action_free close_receipt [10:08:21]json_value_free [10:08:21]json_value_free done [10:08:21]process_json_proto returns [10:08:21]Send response to host [10:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48849,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:08:21]free response buf [10:08:21]execute_script done [10:08:21]execute_script returns [10:08:21]free content buf [10:08:21]Sock 9.Close socket [10:08:21]Sock 9.Thread stoped [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:19]accept exits with 7 [10:13:19]New connection [10:13:19]New thread 3066670436 created [10:13:19]Thread 3066813796 joined [10:13:19]Waiting for new connection... [10:13:19] Sock 7.Parse request [10:13:19]Sock 7.Check first char [10:13:19]Sock 7.First char is OK [10:13:19]request: POST /json_proto HTTP/1.0 [10:13:19]Method: POST [10:13:19]URL: /json_proto [10:13:19]Method is POST - this is cgi request [10:13:19]url: /json_proto [10:13:19]query_string will be loaded in cgi processing [10:13:19]execute_cgi json_proto POST (null) [10:13:19]execute_cgi path=json_proto method=POST [10:13:19]POST find Content-Length [10:13:19]Host: 172.17.56.67:8080 [10:13:19]Content-Length: 677 [10:13:19]Content-Type: application/json [10:13:19] [10:13:19]POST finish read [10:13:19]Found Content-Length = 677 [10:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:19]execute_script... [10:13: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)215946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:19]POST & json_proto [10:13:19]process_json_proto [10:13:19]json parsed OK: [10:13:19]protocol is kg_v1.0 [10:13:19]action value=close_receipt [10:13:19]process_action close_receipt [10:13:19]cmd_close_receipt [10:13:19]MH_GetDate [10:13:19]Write to MH i2c: F0 00 00 F9 09 F1 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: F0 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: F0 09 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: F0 09 00 F9 09 00 42 D7 B4 65 26 5D 9E 65 B2 [10:13:19]GetLastDocTimeStamp 1706350100 [10:13:19]current date 1706350402 [10:13:19]FM_GetShiftState [10:13:19]SAM_PROTO_GetShiftState [10:13:19]wFMCommunicate request_size=4 [10:13:19]MH_SAM_APDU [10:13:19]CAPDU: 80 13 01 00 [10:13:19]Write to MH i2c: E2 08 00 FA 09 80 13 01 00 00 00 00 00 80 [10:13:19]Write i2c OK [10:13:19]MH_I2C_Read... [10:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:19]Read from MH i2c: E2 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 0E 00 [10:13:19]MH_I2C_Read... [10:13:19]Read from MH i2c: E2 0E 00 FA 09 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 17 [10:13:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:13:19]wFMCommunicate OK [10:13:19]SAM_PROTO_GetShiftState done [10:13:19]FM_GetShiftState done [10:13:19]opened in 1706313770 [10:13:19]opened+sec_in_day 1706400170 [10:13:19]quantity*price = 50049 [10:13:19]sum+1 = 50050 [10:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 30 27.01.2024 10:13 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48850 ФПД: 196745383974915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T101322&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48850&fm=196745383974915&tin=02508201610067®Number=0000000000092723&sum=50000 [10:13:20]StoreToDocumentArchive [10:13:20]shift 243 fd 48850 [10:13:20]save to /storage/0243/doc_00048850 [10:13:20]save last doc name /storage/0243/doc_00048850 to /storage/kkm_last_doc_name [10:13:20]save OK [10:13:20]Clear old archive folders... [10:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:20]tlvbuf is 0117DDF0 [10:13:20]SAM_PROTO_ClearQueue [10:13:20]wFMCommunicate request_size=4 [10:13:20]MH_SAM_APDU [10:13:20]CAPDU: 80 09 00 00 [10:13:20]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:20]Read from MH i2c: E2 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [10:13:20]RAPDU: 90 00 [10:13:20]wFMCommunicate OK [10:13:20]SAM_PROTO_ClearQueue done [10:13:20]KKMCreateOFDPacket [10:13:20]OFDProtocolAddRootSTLVToBuf [10:13:20]FM_MakeSignedData [10:13:20]FM_MakeSignedData [10:13:20]SAM_PROTO_SignData [10:13:20]wFMCommunicate request_size=4 [10:13:20]MH_SAM_APDU [10:13:20]CAPDU: 80 0D 01 02 [10:13:20]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:20]Read from MH i2c: E2 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [10:13:20]RAPDU: 90 00 [10:13:20]wFMCommunicate OK [10:13:20]wFMCommunicate request_size=255 [10:13:20]MH_SAM_APDU [10:13: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 42 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 BE 00 00 35 04 06 00 B2 [10:13:20]Write to MH i2c: E2 02 01 09 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 42 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 BE 00 00 35 04 06 00 B2 00 00 40 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]OFD Sender: No OFD packet to send [10:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:20]Read from MH i2c: E2 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [10:13:20]RAPDU: 90 00 [10:13:20]wFMCommunicate OK [10:13:20]wFMCommunicate request_size=10 [10:13:20]MH_SAM_APDU [10:13:20]CAPDU: 80 0D 02 02 05 F0 5A B9 18 03 [10:13:20]Write to MH i2c: E2 0D 00 0A 0A 80 0D 02 02 05 00 F0 5A B9 18 03 00 00 B6 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:20]Read from MH i2c: E2 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [10:13:20]RAPDU: 90 00 [10:13:20]wFMCommunicate OK [10:13:20]wFMCommunicate request_size=4 [10:13:20]MH_SAM_APDU [10:13:20]CAPDU: 80 0D 03 02 [10:13:20]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:20]Read from MH i2c: E2 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 0B 00 [10:13:20]MH_I2C_Read... [10:13:20]Read from MH i2c: E2 0B 00 0B 0A 00 87 40 4B 5C 2C 0D BB B1 90 00 A4 [10:13:20]RAPDU: 87 40 4B 5C 2C 0D BB B1 90 00 [10:13:20]wFMCommunicate OK [10:13:20]SAM_PROTO_SignData done [10:13:20]FM_MakeSignedData done [10:13:20]CreateOFDProtocolMessage [10:13:20]wFMCommunicate request_size=4 [10:13:20]MH_SAM_APDU [10:13:20]CAPDU: 80 11 00 00 [10:13:20]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [10:13:20]Write i2c OK [10:13:20]MH_I2C_Read... [10:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:21]Read from MH i2c: E2 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 17 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DD [10:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:13:21]wFMCommunicate OK [10:13:21]CreateOFDProtocolMessage done [10:13:21]OFDSenderStorePacket 48850 [10:13:21]StoreOFDPacket docnum=48850 [10:13:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F4 61 07 01 84 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 42 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 BE 00 00 35 04 06 00 B2 F0 5A B9 18 03 87 40 4B 5C 2C 0D BB B1 [10:13:21]CheckFolder [10:13:21]dirname=/storage/ofd_packets [10:13:21]CheckFolder done [10:13:21]ProducePacketName [10:13:21]name=ofd_packets/00048850 [10:13:21]NVStorageSaveData ofd_packets/00048850 [10:13:21]File name is /storage/ofd_packets/00048850 [10:13:21]Write 301 bytes [10:13:21]NVStorageSaveData done [10:13:21]OFDSenderStorePacket done [10:13:21]KKMCreateOFDPacket done [10:13:21]NVStorageSaveData kkm_last_timestamp [10:13:21]File name is /storage/kkm_last_timestamp [10:13:21]Write 4 bytes [10:13:21]NVStorageSaveData done [10:13:21]ExternCall_PrintAddStr [10:13:21]wPrintStart [10:13:21]Write to MH i2c: 01 00 00 0D 0A 17 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [10:13:21]RasterBufferAndPrint [10:13:21]line Счет N : (1)215946 [10:13:21]line ИНН: 02508201610067 [10:13:21]line Контрольно-Кассовый Чек [10:13:21]line ПРОДАЖА [10:13:21]line ТРК (МРК, ГНК) : 12 [10:13:21]line Товар: 2710124130 [10:13:21]line Аи-92-К-5 [10:13:21]line 8.300 * 60.30 [10:13:21]line = 500.49 [10:13:21]line НДС 12% НСП 1% [10:13:21]line > о реализуемом товаре [10:13:21]line ОКРУГЛЕНИЕ: -0.49 [10:13:21]line ИТОГО: 500.00 [10:13:21]line Внесено: 500.00 [10:13:21]line СДАЧА: 0.00 [10:13:21]line НСП 1% : 4.43 [10:13:21]line НДС 12% : 53.15 [10:13:21]line Наличными: 500.00 [10:13:21]line Безнал.: 0.00 [10:13:21]line Место: АЗС № 102 "Партнер Нефть" [10:13:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:13:21]line СНО: Общий режим [10:13:21]line Чек 30 27.01.2024 10:13 [10:13:21]line Смена: 243 ФФД: 1.0 [10:13:21]line ЗНМ: 0300000040 [10:13:21]line РНМ: 0000000000092723 [10:13:21]line Версия ККМ: 001 [10:13:21]line ФМ: 0000000000875060 [10:13:21]line ФД: 48850 [10:13:21]line ФПД: 196745383974915 [10:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T101322&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48850&fm=196745383974915&tin=02508201610067®Number=0000000000092723&sum=50000 [10:13:21]OFD Sender: Processing packet 48850 [packets to send 12, broken 11] [10:13:21]ProducePacketName [10:13:21]name=ofd_packets/00048850 [10:13:21]OFD Sender: To server: pG, [10:13:21]CommunicateWithHost lk.salyk.kg:30040 [10:13:21]ConnectInit lk.salyk.kg [10:13:21]written 0, free lines is 4095 [10:13:21]Connected sock=10 [10:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F4 61 07 01 84 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 42 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 BE 00 00 35 04 06 00 B2 F0 5A B9 18 03 87 40 4B 5C 2C 0D BB B1 [10:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4A 64 47 00 74 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 BE 00 00 F4 03 04 00 41 83 B4 65 B6 04 01 00 00 34 1D 04 B2 30 61 BA F9 [10:13:21]CommunicateWithHost err = 0 [10:13:21]CheckOFDResponse [10:13:21]1017 (14) - 77093643461234 [10:13:21]1041 (16) - 0000000000875060 [10:13:21]1040 (4) - 48850 [10:13:21]1012 (4) - 27.01.2024 04:14 [10:13:21]1206 (1) - 0 [10:13:21]OFD Sender: Remove packet 48850 [10:13:21]ProducePacketName [10:13:21]name=ofd_packets/00048850 [10:13:21]NVStorageDeleteData [10:13:21]Write to MH i2c: 01 00 00 38 0A 42 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 F6 0C 4B [10:13:21]RasterBufferAndPrint [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]written 0, free lines is 3324 [10:13:21]MH_Cut [10:13:21]Write to MH i2c: D1 01 00 3F 0A 01 1B [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 01 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 01 00 3F 0A 00 1A [10:13:21]Write to MH i2c: 01 00 00 40 0A 4A [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:22]OFD Sender: No OFD packet to send [10:13:22]*** Cut start [10:13:22]*** Partial cut [10:13:22]*** CUTSNS_PIN = 1 [10:13:22]*** CUTSNS_PIN = 0 [10:13:22]*** Brake cut motor [10:13:23]Read from MH i2c: 01 [10:13:23]MH_I2C_Read... [10:13:23]*** Stop cut motor [10:13:23]*** Cut end [10:13:23]Read from MH i2c: 01 07 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [10:13:23]process_action close_receipt done [10:13:23]requested_data is exist [10:13:23]produce_requested_data [10:13:23]requested_item fm.sn is exist - process it [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 11 00 00 [10:13:23]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 12 [10:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:13:23]wFMCommunicate OK [10:13:23]requested_item fd.num is exist - process it [10:13:23]SAM_PROTO_GetFieldsCounters [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 13 00 00 [10:13:23]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 62 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 62 00 42 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D2 BE 00 00 0E 04 04 00 F3 00 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 BE [10:13: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D2 BE 00 00 0E 04 04 00 F3 00 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 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_GetFieldsCounters done [10:13:23]requested_item shift.num is exist - process it [10:13:23]requested_item shift.opened is exist - process it [10:13:23]req_shift_opened [10:13:23]FM_GetShiftState [10:13:23]SAM_PROTO_GetShiftState [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 13 01 00 [10:13:23]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0E 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 61 [10:13:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_GetShiftState done [10:13:23]FM_GetShiftState done [10:13:23]req_shift_opened done [10:13:23]requested_item shift.open_date is exist - process it [10:13:23]req_shift_open_date [10:13:23]req_shift_open_date done [10:13:23]produce_requested_data done [10:13:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48850,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:13:23]process_action_free close_receipt [10:13:23]json_value_free [10:13:23]json_value_free done [10:13:23]process_json_proto returns [10:13:23]Send response to host [10:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48850,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:13:23]free response buf [10:13:23]execute_script done [10:13:23]execute_script returns [10:13:23]free content buf [10:13:23]Sock 7.Close socket [10:13:23]Sock 7.Thread stoped [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:51]accept exits with 9 [10:13:51]New connection [10:13:51]New thread 3066813796 created [10:13:51]Thread 3066670436 joined [10:13:51]Waiting for new connection... [10:13:51] Sock 9.Parse request [10:13:51]Sock 9.Check first char [10:13:51]Sock 9.First char is OK [10:13:51]request: POST /json_proto HTTP/1.0 [10:13:51]Method: POST [10:13:51]URL: /json_proto [10:13:51]Method is POST - this is cgi request [10:13:51]url: /json_proto [10:13:51]query_string will be loaded in cgi processing [10:13:51]execute_cgi json_proto POST (null) [10:13:51]execute_cgi path=json_proto method=POST [10:13:51]POST find Content-Length [10:13:51]Host: 172.17.56.67:8080 [10:13:51]Content-Length: 677 [10:13:51]Content-Type: application/json [10:13:51] [10:13:51]POST finish read [10:13:51]Found Content-Length = 677 [10:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.150, "sum" : 310.55, "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" ] } } [10:13:51]execute_script... [10:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.150, "sum" : 310.55, "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" ] } } [10:13:51]POST & json_proto [10:13:51]process_json_proto [10:13:51]json parsed OK: [10:13:51]protocol is kg_v1.0 [10:13:51]action value=close_receipt [10:13:51]process_action close_receipt [10:13:51]cmd_close_receipt [10:13:51]MH_GetDate [10:13:51]Write to MH i2c: F0 00 00 44 0A 3D [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: F0 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: F0 09 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: F0 09 00 44 0A 00 62 D7 B4 65 26 5D 9E 65 1E [10:13:51]GetLastDocTimeStamp 1706350402 [10:13:51]current date 1706350434 [10:13:51]FM_GetShiftState [10:13:51]SAM_PROTO_GetShiftState [10:13:51]wFMCommunicate request_size=4 [10:13:51]MH_SAM_APDU [10:13:51]CAPDU: 80 13 01 00 [10:13:51]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [10:13:51]Write i2c OK [10:13:51]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0E 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 63 [10:13:51]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:13:51]wFMCommunicate OK [10:13:51]SAM_PROTO_GetShiftState done [10:13:51]FM_GetShiftState done [10:13:51]opened in 1706313770 [10:13:51]opened+sec_in_day 1706400170 [10:13:51]quantity*price = 31054 [10:13:51]sum+1 = 31056 [10:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 31 27.01.2024 10:13 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48851 ФПД: 188895650706866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T101354&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48851&fm=188895650706866&tin=02508201610067®Number=0000000000092723&sum=31000 [10:13:52]StoreToDocumentArchive [10:13:52]shift 243 fd 48851 [10:13:52]save to /storage/0243/doc_00048851 [10:13:52]save last doc name /storage/0243/doc_00048851 to /storage/kkm_last_doc_name [10:13:52]save OK [10:13:52]Clear old archive folders... [10:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:52]tlvbuf is 013466F0 [10:13:52]SAM_PROTO_ClearQueue [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 09 00 00 [10:13:52]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]SAM_PROTO_ClearQueue done [10:13:52]KKMCreateOFDPacket [10:13:52]OFDProtocolAddRootSTLVToBuf [10:13:52]FM_MakeSignedData [10:13:52]FM_MakeSignedData [10:13:52]SAM_PROTO_SignData [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 01 02 [10:13:52]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]wFMCommunicate request_size=255 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 E2 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 1F 00 00 00 F4 03 04 00 62 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BE 00 00 35 04 06 00 AB [10:13:52]Write to MH i2c: E2 02 01 54 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 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 E2 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 1F 00 00 00 F4 03 04 00 62 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BE 00 00 35 04 06 00 AB 00 00 3B [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 03 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [10:13:53]RAPDU: 90 00 [10:13:53]wFMCommunicate OK [10:13:53]wFMCommunicate request_size=10 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 0D 02 02 05 CC B2 28 F5 B2 [10:13:53]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 CC B2 28 F5 B2 00 00 30 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 03 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [10:13:53]RAPDU: 90 00 [10:13:53]wFMCommunicate OK [10:13:53]wFMCommunicate request_size=4 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 0D 03 02 [10:13:53]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 0B 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 0B 00 56 0A 00 84 90 B7 27 34 DE AC 79 90 00 05 [10:13:53]RAPDU: 84 90 B7 27 34 DE AC 79 90 00 [10:13:53]wFMCommunicate OK [10:13:53]SAM_PROTO_SignData done [10:13:53]FM_MakeSignedData done [10:13:53]CreateOFDProtocolMessage [10:13:53]wFMCommunicate request_size=4 [10:13:53]MH_SAM_APDU [10:13:53]CAPDU: 80 11 00 00 [10:13:53]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:53]Read from MH i2c: E2 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 17 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 28 [10:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:13:53]wFMCommunicate OK [10:13:53]CreateOFDProtocolMessage done [10:13:53]OFDSenderStorePacket 48851 [10:13:53]StoreOFDPacket docnum=48851 [10:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 B9 07 01 0A 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 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 E2 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 1F 00 00 00 F4 03 04 00 62 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BE 00 00 35 04 06 00 AB CC B2 28 F5 B2 84 90 B7 27 34 DE AC 79 [10:13:53]CheckFolder [10:13:53]dirname=/storage/ofd_packets [10:13:53]CheckFolder done [10:13:53]ProducePacketName [10:13:53]name=ofd_packets/00048851 [10:13:53]NVStorageSaveData ofd_packets/00048851 [10:13:53]File name is /storage/ofd_packets/00048851 [10:13:53]Write 301 bytes [10:13:53]NVStorageSaveData done [10:13:53]OFDSenderStorePacket done [10:13:53]KKMCreateOFDPacket done [10:13:53]NVStorageSaveData kkm_last_timestamp [10:13:53]File name is /storage/kkm_last_timestamp [10:13:53]Write 4 bytes [10:13:53]NVStorageSaveData done [10:13:53]ExternCall_PrintAddStr [10:13:53]wPrintStart [10:13:53]Write to MH i2c: 01 00 00 58 0A 62 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 07 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [10:13:53]RasterBufferAndPrint [10:13:53]line Счет N : (1)215947 [10:13:53]line ИНН: 02508201610067 [10:13:53]line Контрольно-Кассовый Чек [10:13:53]line ПРОДАЖА [10:13:53]line ТРК (МРК, ГНК) : 22 [10:13:53]line Товар: 2710124130 [10:13:53]line Аи-92-К-5 [10:13:53]line 5.150 * 60.30 [10:13:53]line = 310.55 [10:13:53]line НДС 12% НСП 1% [10:13:53]line > о реализуемом товаре [10:13:53]line ОКРУГЛЕНИЕ: -0.55 [10:13:53]line ИТОГО: 310.00 [10:13:53]line Внесено: 310.00 [10:13:53]line СДАЧА: 0.00 [10:13:53]line НСП 1% : 2.75 [10:13:53]line НДС 12% : 32.98 [10:13:53]line Наличными: 310.00 [10:13:53]line Безнал.: 0.00 [10:13:53]line Место: АЗС № 102 "Партнер Нефть" [10:13:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:13:53]line СНО: Общий режим [10:13:53]line Чек 31 27.01.2024 10:13 [10:13:53]line Смена: 243 ФФД: 1.0 [10:13:53]line ЗНМ: 0300000040 [10:13:53]line РНМ: 0000000000092723 [10:13:53]line Версия ККМ: 001 [10:13:53]line ФМ: 0000000000875060 [10:13:53]line ФД: 48851 [10:13:53]line ФПД: 188895650706866 [10:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T101354&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48851&fm=188895650706866&tin=02508201610067®Number=0000000000092723&sum=31000 [10:13:53]OFD Sender: Processing packet 48851 [packets to send 12, broken 11] [10:13:53]ProducePacketName [10:13:53]name=ofd_packets/00048851 [10:13:53]OFD Sender: To server: pG, [10:13:53]CommunicateWithHost lk.salyk.kg:30040 [10:13:53]ConnectInit lk.salyk.kg [10:13:53]written 0, free lines is 4095 [10:13:53]Connected sock=10 [10:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 B9 07 01 0A 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 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 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 E2 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 1F 00 00 00 F4 03 04 00 62 D7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BE 00 00 35 04 06 00 AB CC B2 28 F5 B2 84 90 B7 27 34 DE AC 79 [10:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 0B 2C 47 00 A2 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BE 00 00 F4 03 04 00 61 83 B4 65 B6 04 01 00 00 DB 16 A3 9D 83 B0 2B 72 [10:13:54]CommunicateWithHost err = 0 [10:13:54]CheckOFDResponse [10:13:54]1017 (14) - 77093643461234 [10:13:54]1041 (16) - 0000000000875060 [10:13:54]1040 (4) - 48851 [10:13:54]1012 (4) - 27.01.2024 04:15 [10:13:54]1206 (1) - 0 [10:13:54]OFD Sender: Remove packet 48851 [10:13:54]ProducePacketName [10:13:54]name=ofd_packets/00048851 [10:13:54]NVStorageDeleteData [10:13:54]Write to MH i2c: 01 00 00 83 0A 8D [10:13:54]Write i2c OK [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: 01 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: 01 07 00 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FE 0C 9E [10:13:54]RasterBufferAndPrint [10:13:54]line [10:13:54]line [10:13:54]line [10:13:54]line [10:13:54]line [10:13:54]written 0, free lines is 3332 [10:13:54]MH_Cut [10:13:54]Write to MH i2c: D1 01 00 8A 0A 01 66 [10:13:54]Write i2c OK [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: D1 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: D1 01 00 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: D1 01 00 8A 0A 00 65 [10:13:54]Write to MH i2c: 01 00 00 8B 0A 95 [10:13:54]Write i2c OK [10:13:54]MH_I2C_Read... [10:13:54]OFD Sender: No OFD packet to send [10:13:54]*** Cut start [10:13:54]*** Partial cut [10:13:54]*** CUTSNS_PIN = 1 [10:13:54]*** CUTSNS_PIN = 0 [10:13:55]*** Brake cut motor [10:13:55]Read from MH i2c: 01 [10:13:55]MH_I2C_Read... [10:13:55]*** Stop cut motor [10:13:55]*** Cut end [10:13:55]Read from MH i2c: 01 07 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [10:13:55]process_action close_receipt done [10:13:55]requested_data is exist [10:13:55]produce_requested_data [10:13:55]requested_item fm.sn is exist - process it [10:13:55]wFMCommunicate request_size=4 [10:13:55]MH_SAM_APDU [10:13:55]CAPDU: 80 11 00 00 [10:13:55]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 17 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5D [10:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:13:55]wFMCommunicate OK [10:13:55]requested_item fd.num is exist - process it [10:13:55]SAM_PROTO_GetFieldsCounters [10:13:55]wFMCommunicate request_size=4 [10:13:55]MH_SAM_APDU [10:13:55]CAPDU: 80 13 00 00 [10:13:55]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 62 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 62 00 8D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D3 BE 00 00 0E 04 04 00 F3 00 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 0D [10:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D3 BE 00 00 0E 04 04 00 F3 00 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 [10:13:55]wFMCommunicate OK [10:13:55]SAM_PROTO_GetFieldsCounters done [10:13:55]requested_item shift.num is exist - process it [10:13:55]requested_item shift.opened is exist - process it [10:13:55]req_shift_opened [10:13:55]FM_GetShiftState [10:13:55]SAM_PROTO_GetShiftState [10:13:55]wFMCommunicate request_size=4 [10:13:55]MH_SAM_APDU [10:13:55]CAPDU: 80 13 01 00 [10:13:55]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AC [10:13:55]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:13:55]wFMCommunicate OK [10:13:55]SAM_PROTO_GetShiftState done [10:13:55]FM_GetShiftState done [10:13:55]req_shift_opened done [10:13:55]requested_item shift.open_date is exist - process it [10:13:55]req_shift_open_date [10:13:55]req_shift_open_date done [10:13:55]produce_requested_data done [10:13:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48851,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:13:55]process_action_free close_receipt [10:13:55]json_value_free [10:13:55]json_value_free done [10:13:55]process_json_proto returns [10:13:55]Send response to host [10:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48851,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:13:55]free response buf [10:13:55]execute_script done [10:13:55]execute_script returns [10:13:55]free content buf [10:13:55]Sock 9.Close socket [10:13:55]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:12]accept exits with 7 [10:22:12]New connection [10:22:12]New thread 3066670436 created [10:22:12]Thread 3066813796 joined [10:22:12]Waiting for new connection... [10:22:12] Sock 7.Parse request [10:22:12]Sock 7.Check first char [10:22:12]Sock 7.First char is OK [10:22:12]request: POST /json_proto HTTP/1.0 [10:22:12]Method: POST [10:22:12]URL: /json_proto [10:22:12]Method is POST - this is cgi request [10:22:12]url: /json_proto [10:22:12]query_string will be loaded in cgi processing [10:22:12]execute_cgi json_proto POST (null) [10:22:12]execute_cgi path=json_proto method=POST [10:22:12]POST find Content-Length [10:22:12]Host: 172.17.56.67:8080 [10:22:12]Content-Length: 805 [10:22:12]Content-Type: application/json [10:22:12] [10:22:12]POST finish read [10:22:12]Found Content-Length = 805 [10:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.970, "sum" : 299.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 299.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:12]execute_script... [10:22: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)215948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.970, "sum" : 299.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 299.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:12]POST & json_proto [10:22:12]process_json_proto [10:22:12]json parsed OK: [10:22:12]protocol is kg_v1.0 [10:22:12]action value=close_receipt [10:22:12]process_action close_receipt [10:22:12]cmd_close_receipt [10:22:12]MH_GetDate [10:22:12]Write to MH i2c: F0 00 00 8F 0A 88 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 09 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: F0 09 00 8F 0A 00 57 D9 B4 65 26 5D 9E 65 60 [10:22:12]GetLastDocTimeStamp 1706350434 [10:22:12]current date 1706350935 [10:22:12]FM_GetShiftState [10:22:12]SAM_PROTO_GetShiftState [10:22:12]wFMCommunicate request_size=4 [10:22:12]MH_SAM_APDU [10:22:12]CAPDU: 80 13 01 00 [10:22:12]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:12]Read from MH i2c: E2 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 0E 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AE [10:22:12]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:22:12]wFMCommunicate OK [10:22:12]SAM_PROTO_GetShiftState done [10:22:12]FM_GetShiftState done [10:22:12]opened in 1706313770 [10:22:12]opened+sec_in_day 1706400170 [10:22:12]quantity*price = 29969 [10:22:12]sum+1 = 29970 [10:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 299.69 НСП 1% : 2.65 НДС 12% : 31.82 Наличными: 0.00 Безнал.: 299.69 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 32 27.01.2024 10:22 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 48852 ФПД: 242857980303705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102215&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48852&fm=242857980303705&tin=02508201610067®Number=0000000000092723&sum=29969 [10:22:14]StoreToDocumentArchive [10:22:14]shift 243 fd 48852 [10:22:14]save to /storage/0243/doc_00048852 [10:22:14]save last doc name /storage/0243/doc_00048852 to /storage/kkm_last_doc_name [10:22:14]save OK [10:22:14]Clear old archive folders... [10:22:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:22:14]tlvbuf is 0134BF20 [10:22:14]SAM_PROTO_ClearQueue [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 09 00 00 [10:22:14]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_ClearQueue done [10:22:14]KKMCreateOFDPacket [10:22:14]OFDProtocolAddRootSTLVToBuf [10:22:14]FM_MakeSignedData [10:22:14]FM_MakeSignedData [10:22:14]SAM_PROTO_SignData [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 01 02 [10:22:14]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=255 [10:22:14]MH_SAM_APDU [10:22: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 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 57 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BE 00 00 35 04 06 00 DC [10:22:14]Write to MH i2c: E2 02 01 9F 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 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 57 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BE 00 00 35 04 06 00 DC 00 00 25 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=10 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 02 02 05 E0 C7 A5 99 59 [10:22:14]Write to MH i2c: E2 0D 00 A0 0A 80 0D 02 02 05 00 E0 C7 A5 99 59 00 00 6C [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [10:22:14]RAPDU: 90 00 [10:22:14]wFMCommunicate OK [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 0D 03 02 [10:22:14]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 0B 00 A1 0A 00 E6 81 6C FF B5 8B AF BF 90 00 A7 [10:22:14]RAPDU: E6 81 6C FF B5 8B AF BF 90 00 [10:22:14]wFMCommunicate OK [10:22:14]SAM_PROTO_SignData done [10:22:14]FM_MakeSignedData done [10:22:14]CreateOFDProtocolMessage [10:22:14]wFMCommunicate request_size=4 [10:22:14]MH_SAM_APDU [10:22:14]CAPDU: 80 11 00 00 [10:22:14]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:14]Read from MH i2c: E2 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 73 [10:22:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:22:14]wFMCommunicate OK [10:22:14]CreateOFDProtocolMessage done [10:22:14]OFDSenderStorePacket 48852 [10:22:14]StoreOFDPacket docnum=48852 [10:22:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 57 0B 07 01 23 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 57 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BE 00 00 35 04 06 00 DC E0 C7 A5 99 59 E6 81 6C FF B5 8B AF BF [10:22:14]CheckFolder [10:22:14]dirname=/storage/ofd_packets [10:22:14]CheckFolder done [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00048852 [10:22:14]NVStorageSaveData ofd_packets/00048852 [10:22:14]File name is /storage/ofd_packets/00048852 [10:22:14]Write 301 bytes [10:22:14]NVStorageSaveData done [10:22:14]OFDSenderStorePacket done [10:22:14]KKMCreateOFDPacket done [10:22:14]NVStorageSaveData kkm_last_timestamp [10:22:14]File name is /storage/kkm_last_timestamp [10:22:14]Write 4 bytes [10:22:14]NVStorageSaveData done [10:22:14]ExternCall_PrintAddStr [10:22:14]wPrintStart [10:22:14]Write to MH i2c: 01 00 00 A3 0A AD [10:22:14]Write i2c OK [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 07 00 [10:22:14]MH_I2C_Read... [10:22:14]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [10:22:14]RasterBufferAndPrint [10:22:14]line Счет N : (1)215948 [10:22:14]line ИНН: 02508201610067 [10:22:14]line Контрольно-Кассовый Чек [10:22:14]line ПРОДАЖА [10:22:14]line ТРК (МРК, ГНК) : 12 [10:22:14]line Товар: 2710124130 [10:22:14]line Аи-92-К-5 [10:22:14]line 4.970 * 60.30 [10:22:14]line = 299.69 [10:22:14]line НДС 12% НСП 1% [10:22:14]line > о реализуемом товаре [10:22:14]line ИТОГО: 299.69 [10:22:14]line НСП 1% : 2.65 [10:22:14]line НДС 12% : 31.82 [10:22:14]line Наличными: 0.00 [10:22:14]line Безнал.: 299.69 [10:22:14]line Место: АЗС № 102 "Партнер Нефть" [10:22:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:22:14]line СНО: Общий режим [10:22:14]line Чек 32 27.01.2024 10:22 [10:22:14]line Смена: 243 ФФД: 1.0 [10:22:14]line ЗНМ: 0300000040 [10:22:14]line РНМ: 0000000000092723 [10:22:14]line Версия ККМ: 001 [10:22:14]line Платежная система: О! деньги [10:22:14]line ФМ: 0000000000875060 [10:22:14]line ФД: 48852 [10:22:14]line ФПД: 242857980303705 [10:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102215&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48852&fm=242857980303705&tin=02508201610067®Number=0000000000092723&sum=29969 [10:22:14]OFD Sender: Processing packet 48852 [packets to send 12, broken 11] [10:22:14]ProducePacketName [10:22:14]name=ofd_packets/00048852 [10:22:14]OFD Sender: To server: pG, [10:22:14]CommunicateWithHost lk.salyk.kg:30040 [10:22:14]ConnectInit lk.salyk.kg [10:22:14]written 0, free lines is 4095 [10:22:15]Connected sock=10 [10:22:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 57 0B 07 01 23 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 57 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BE 00 00 35 04 06 00 DC E0 C7 A5 99 59 E6 81 6C FF B5 8B AF BF [10:22:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EB 00 47 00 00 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BE 00 00 F4 03 04 00 56 85 B4 65 B6 04 01 00 00 5A E6 36 65 C7 35 E4 50 [10:22:15]CommunicateWithHost err = 0 [10:22:15]CheckOFDResponse [10:22:15]1017 (14) - 77093643461234 [10:22:15]1041 (16) - 0000000000875060 [10:22:15]1040 (4) - 48852 [10:22:15]1012 (4) - 27.01.2024 04:23 [10:22:15]1206 (1) - 0 [10:22:15]OFD Sender: Remove packet 48852 [10:22:15]ProducePacketName [10:22:15]name=ofd_packets/00048852 [10:22:15]NVStorageDeleteData [10:22:15]Write to MH i2c: 01 00 00 CD 0A D7 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: 01 07 00 CD 0A 00 00 00 00 00 04 0D EF [10:22:15]RasterBufferAndPrint [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]line [10:22:15]written 0, free lines is 3338 [10:22:15]MH_Cut [10:22:15]Write to MH i2c: D1 01 00 D4 0A 01 B0 [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 [10:22:15]MH_I2C_Read... [10:22:15]Read from MH i2c: D1 01 00 D4 0A 00 AF [10:22:15]Write to MH i2c: 01 00 00 D5 0A DF [10:22:15]Write i2c OK [10:22:15]MH_I2C_Read... [10:22:15]OFD Sender: No OFD packet to send [10:22:16]*** Cut start [10:22:16]*** Partial cut [10:22:16]*** CUTSNS_PIN = 1 [10:22:16]*** CUTSNS_PIN = 0 [10:22:16]*** Brake cut motor [10:22:16]Read from MH i2c: 01 [10:22:16]MH_I2C_Read... [10:22:16]*** Stop cut motor [10:22:16]*** Cut end [10:22:16]Read from MH i2c: 01 07 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [10:22:16]process_action close_receipt done [10:22:16]requested_data is exist [10:22:16]produce_requested_data [10:22:16]requested_item fm.sn is exist - process it [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 11 00 00 [10:22:16]Write to MH i2c: E2 08 00 D6 0A 80 11 00 00 00 00 00 00 5A [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 17 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 17 00 D6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [10:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:22:16]wFMCommunicate OK [10:22:16]requested_item fd.num is exist - process it [10:22:16]SAM_PROTO_GetFieldsCounters [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 13 00 00 [10:22:16]Write to MH i2c: E2 08 00 D7 0A 80 13 00 00 00 00 00 00 5D [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 62 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 62 00 D7 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D4 BE 00 00 0E 04 04 00 F3 00 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 5B [10:22: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D4 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:16]wFMCommunicate OK [10:22:16]SAM_PROTO_GetFieldsCounters done [10:22:16]requested_item shift.num is exist - process it [10:22:16]requested_item shift.opened is exist - process it [10:22:16]req_shift_opened [10:22:16]FM_GetShiftState [10:22:16]SAM_PROTO_GetShiftState [10:22:16]wFMCommunicate request_size=4 [10:22:16]MH_SAM_APDU [10:22:16]CAPDU: 80 13 01 00 [10:22:16]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [10:22:16]Write i2c OK [10:22:16]MH_I2C_Read... [10:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:16]Read from MH i2c: E2 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0E 00 [10:22:16]MH_I2C_Read... [10:22:16]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F6 [10:22:16]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:22:16]wFMCommunicate OK [10:22:16]SAM_PROTO_GetShiftState done [10:22:16]FM_GetShiftState done [10:22:16]req_shift_opened done [10:22:16]requested_item shift.open_date is exist - process it [10:22:16]req_shift_open_date [10:22:16]req_shift_open_date done [10:22:16]produce_requested_data done [10:22:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48852,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:22:16]process_action_free close_receipt [10:22:16]json_value_free [10:22:16]json_value_free done [10:22:16]process_json_proto returns [10:22:16]Send response to host [10:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48852,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:22:16]free response buf [10:22:16]execute_script done [10:22:16]execute_script returns [10:22:16]free content buf [10:22:16]Sock 7.Close socket [10:22:16]Sock 7.Thread stoped [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:02]accept exits with 9 [10:24:02]New connection [10:24:02]New thread 3066813796 created [10:24:02]Thread 3066670436 joined [10:24:02]Waiting for new connection... [10:24:02] Sock 9.Parse request [10:24:02]Sock 9.Check first char [10:24:02]Sock 9.First char is OK [10:24:02]request: POST /json_proto HTTP/1.0 [10:24:02]Method: POST [10:24:02]URL: /json_proto [10:24:02]Method is POST - this is cgi request [10:24:02]url: /json_proto [10:24:02]query_string will be loaded in cgi processing [10:24:02]execute_cgi json_proto POST (null) [10:24:02]execute_cgi path=json_proto method=POST [10:24:02]POST find Content-Length [10:24:02]Host: 172.17.56.67:8080 [10:24:02]Content-Length: 677 [10:24:02]Content-Type: application/json [10:24:02] [10:24:02]POST finish read [10:24:02]Found Content-Length = 677 [10:24:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:02]execute_script... [10:24: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)215949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:02]POST & json_proto [10:24:02]process_json_proto [10:24:02]json parsed OK: [10:24:02]protocol is kg_v1.0 [10:24:02]action value=close_receipt [10:24:02]process_action close_receipt [10:24:02]cmd_close_receipt [10:24:02]MH_GetDate [10:24:02]Write to MH i2c: F0 00 00 D9 0A D2 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: F0 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: F0 09 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: F0 09 00 D9 0A 00 C5 D9 B4 65 26 5D 9E 65 18 [10:24:02]GetLastDocTimeStamp 1706350935 [10:24:02]current date 1706351045 [10:24:02]FM_GetShiftState [10:24:02]SAM_PROTO_GetShiftState [10:24:02]wFMCommunicate request_size=4 [10:24:02]MH_SAM_APDU [10:24:02]CAPDU: 80 13 01 00 [10:24:02]Write to MH i2c: E2 08 00 DA 0A 80 13 01 00 00 00 00 00 61 [10:24:02]Write i2c OK [10:24:02]MH_I2C_Read... [10:24:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:02]Read from MH i2c: E2 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0E 00 [10:24:02]MH_I2C_Read... [10:24:02]Read from MH i2c: E2 0E 00 DA 0A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F8 [10:24:02]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:24:02]wFMCommunicate OK [10:24:02]SAM_PROTO_GetShiftState done [10:24:02]FM_GetShiftState done [10:24:02]opened in 1706313770 [10:24:02]opened+sec_in_day 1706400170 [10:24:02]quantity*price = 50049 [10:24:02]sum+1 = 50050 [10:24:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 33 27.01.2024 10:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48853 ФПД: 219971642703924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102405&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48853&fm=219971642703924&tin=02508201610067®Number=0000000000092723&sum=50000 [10:24:03]StoreToDocumentArchive [10:24:03]shift 243 fd 48853 [10:24:03]save to /storage/0243/doc_00048853 [10:24:03]save last doc name /storage/0243/doc_00048853 to /storage/kkm_last_doc_name [10:24:03]save OK [10:24:03]Clear old archive folders... [10:24:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:03]tlvbuf is 0134CA20 [10:24:03]SAM_PROTO_ClearQueue [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 09 00 00 [10:24:03]Write to MH i2c: E2 08 00 E7 0A 80 09 00 00 00 00 00 00 63 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]SAM_PROTO_ClearQueue done [10:24:03]KKMCreateOFDPacket [10:24:03]OFDProtocolAddRootSTLVToBuf [10:24:03]FM_MakeSignedData [10:24:03]FM_MakeSignedData [10:24:03]SAM_PROTO_SignData [10:24:03]wFMCommunicate request_size=4 [10:24:03]MH_SAM_APDU [10:24:03]CAPDU: 80 0D 01 02 [10:24:03]Write to MH i2c: E2 08 00 E8 0A 80 0D 01 02 00 00 00 00 6B [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:03]Read from MH i2c: E2 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 [10:24:03]MH_I2C_Read... [10:24:03]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [10:24:03]RAPDU: 90 00 [10:24:03]wFMCommunicate OK [10:24:03]wFMCommunicate request_size=255 [10:24:03]MH_SAM_APDU [10:24: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C5 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 BE 00 00 35 04 06 00 C8 [10:24:03]Write to MH i2c: E2 02 01 E9 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C5 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 BE 00 00 35 04 06 00 C8 00 00 C1 [10:24:03]Write i2c OK [10:24:03]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 03 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [10:24:04]RAPDU: 90 00 [10:24:04]wFMCommunicate OK [10:24:04]wFMCommunicate request_size=10 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 0D 02 02 05 10 23 9F C0 34 [10:24:04]Write to MH i2c: E2 0D 00 EA 0A 80 0D 02 02 05 00 10 23 9F C0 34 00 00 3E [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 03 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [10:24:04]RAPDU: 90 00 [10:24:04]wFMCommunicate OK [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 0D 03 02 [10:24:04]Write to MH i2c: E2 08 00 EB 0A 80 0D 03 02 00 00 00 00 70 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0B 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 0B 00 EB 0A 00 7B A7 08 00 E9 0F BE 03 90 00 54 [10:24:04]RAPDU: 7B A7 08 00 E9 0F BE 03 90 00 [10:24:04]wFMCommunicate OK [10:24:04]SAM_PROTO_SignData done [10:24:04]FM_MakeSignedData done [10:24:04]CreateOFDProtocolMessage [10:24:04]wFMCommunicate request_size=4 [10:24:04]MH_SAM_APDU [10:24:04]CAPDU: 80 11 00 00 [10:24:04]Write to MH i2c: E2 08 00 EC 0A 80 11 00 00 00 00 00 00 70 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:04]Read from MH i2c: E2 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: E2 17 00 EC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [10:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:24:04]wFMCommunicate OK [10:24:04]CreateOFDProtocolMessage done [10:24:04]OFDSenderStorePacket 48853 [10:24:04]StoreOFDPacket docnum=48853 [10:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E9 F4 07 01 5F D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C5 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 BE 00 00 35 04 06 00 C8 10 23 9F C0 34 7B A7 08 00 E9 0F BE 03 [10:24:04]CheckFolder [10:24:04]dirname=/storage/ofd_packets [10:24:04]CheckFolder done [10:24:04]ProducePacketName [10:24:04]name=ofd_packets/00048853 [10:24:04]NVStorageSaveData ofd_packets/00048853 [10:24:04]File name is /storage/ofd_packets/00048853 [10:24:04]Write 301 bytes [10:24:04]NVStorageSaveData done [10:24:04]OFDSenderStorePacket done [10:24:04]KKMCreateOFDPacket done [10:24:04]NVStorageSaveData kkm_last_timestamp [10:24:04]File name is /storage/kkm_last_timestamp [10:24:04]Write 4 bytes [10:24:04]NVStorageSaveData done [10:24:04]ExternCall_PrintAddStr [10:24:04]wPrintStart [10:24:04]Write to MH i2c: 01 00 00 ED 0A F7 [10:24:04]Write i2c OK [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 [10:24:04]MH_I2C_Read... [10:24:04]Read from MH i2c: 01 07 00 ED 0A 00 00 00 00 00 FF 0F 0C [10:24:04]RasterBufferAndPrint [10:24:04]line Счет N : (1)215949 [10:24:04]line ИНН: 02508201610067 [10:24:04]line Контрольно-Кассовый Чек [10:24:04]line ПРОДАЖА [10:24:04]line ТРК (МРК, ГНК) : 12 [10:24:04]line Товар: 2710124130 [10:24:04]line Аи-92-К-5 [10:24:04]line 8.300 * 60.30 [10:24:04]line = 500.49 [10:24:04]line НДС 12% НСП 1% [10:24:04]line > о реализуемом товаре [10:24:04]line ОКРУГЛЕНИЕ: -0.49 [10:24:04]line ИТОГО: 500.00 [10:24:04]line Внесено: 500.00 [10:24:04]line СДАЧА: 0.00 [10:24:04]line НСП 1% : 4.43 [10:24:04]line НДС 12% : 53.15 [10:24:04]line Наличными: 500.00 [10:24:04]line Безнал.: 0.00 [10:24:04]line Место: АЗС № 102 "Партнер Нефть" [10:24:04]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:24:04]line СНО: Общий режим [10:24:04]line Чек 33 27.01.2024 10:24 [10:24:04]line Смена: 243 ФФД: 1.0 [10:24:04]line ЗНМ: 0300000040 [10:24:04]line РНМ: 0000000000092723 [10:24:04]line Версия ККМ: 001 [10:24:04]line ФМ: 0000000000875060 [10:24:04]line ФД: 48853 [10:24:04]line ФПД: 219971642703924 [10:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102405&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48853&fm=219971642703924&tin=02508201610067®Number=0000000000092723&sum=50000 [10:24:04]OFD Sender: Processing packet 48853 [packets to send 12, broken 11] [10:24:04]ProducePacketName [10:24:04]name=ofd_packets/00048853 [10:24:04]OFD Sender: To server: pG, [10:24:04]CommunicateWithHost lk.salyk.kg:30040 [10:24:04]ConnectInit lk.salyk.kg [10:24:04]written 0, free lines is 4095 [10:24:04]Connected sock=10 [10:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E9 F4 07 01 5F D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C5 D9 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 BE 00 00 35 04 06 00 C8 10 23 9F C0 34 7B A7 08 00 E9 0F BE 03 [10:24:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F1 CB 47 00 1D 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 35 30 36 30 10 04 04 00 D5 BE 00 00 F4 03 04 00 C4 85 B4 65 B6 04 01 00 00 43 F0 47 FF D0 0B 2D 80 [10:24:04]CommunicateWithHost err = 0 [10:24:04]CheckOFDResponse [10:24:04]1017 (14) - 77093643461234 [10:24:04]1041 (16) - 0000000000875060 [10:24:04]1040 (4) - 48853 [10:24:04]1012 (4) - 27.01.2024 04:25 [10:24:04]1206 (1) - 0 [10:24:04]OFD Sender: Remove packet 48853 [10:24:04]ProducePacketName [10:24:04]name=ofd_packets/00048853 [10:24:04]NVStorageDeleteData [10:24:05]Write to MH i2c: 01 00 00 18 0B 23 [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: 01 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: 01 07 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 F0 0C 26 [10:24:05]RasterBufferAndPrint [10:24:05]line [10:24:05]line [10:24:05]line [10:24:05]line [10:24:05]line [10:24:05]written 0, free lines is 3321 [10:24:05]MH_Cut [10:24:05]Write to MH i2c: D1 01 00 1F 0B 01 FC [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: D1 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: D1 01 00 [10:24:05]MH_I2C_Read... [10:24:05]Read from MH i2c: D1 01 00 1F 0B 00 FB [10:24:05]Write to MH i2c: 01 00 00 20 0B 2B [10:24:05]Write i2c OK [10:24:05]MH_I2C_Read... [10:24:05]OFD Sender: No OFD packet to send [10:24:05]*** Cut start [10:24:05]*** Partial cut [10:24:05]*** CUTSNS_PIN = 1 [10:24:05]*** CUTSNS_PIN = 0 [10:24:05]*** Brake cut motor [10:24:06]Read from MH i2c: 01 *** Stop cut motor [10:24:06]*** Cut end [10:24:06] [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: 01 07 00 20 0B 00 00 00 00 00 FF 0F 40 [10:24:06]process_action close_receipt done [10:24:06]requested_data is exist [10:24:06]produce_requested_data [10:24:06]requested_item fm.sn is exist - process it [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 11 00 00 [10:24:06]Write to MH i2c: E2 08 00 21 0B 80 11 00 00 00 00 00 00 A6 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 17 00 21 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F3 [10:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:24:06]wFMCommunicate OK [10:24:06]requested_item fd.num is exist - process it [10:24:06]SAM_PROTO_GetFieldsCounters [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 13 00 00 [10:24:06]Write to MH i2c: E2 08 00 22 0B 80 13 00 00 00 00 00 00 A9 [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 62 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 62 00 22 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D5 BE 00 00 0E 04 04 00 F3 00 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 AB [10:24: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D5 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_GetFieldsCounters done [10:24:06]requested_item shift.num is exist - process it [10:24:06]requested_item shift.opened is exist - process it [10:24:06]req_shift_opened [10:24:06]FM_GetShiftState [10:24:06]SAM_PROTO_GetShiftState [10:24:06]wFMCommunicate request_size=4 [10:24:06]MH_SAM_APDU [10:24:06]CAPDU: 80 13 01 00 [10:24:06]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [10:24:06]Write i2c OK [10:24:06]MH_I2C_Read... [10:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:06]Read from MH i2c: E2 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 [10:24:06]MH_I2C_Read... [10:24:06]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 42 [10:24:06]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:24:06]wFMCommunicate OK [10:24:06]SAM_PROTO_GetShiftState done [10:24:06]FM_GetShiftState done [10:24:06]req_shift_opened done [10:24:06]requested_item shift.open_date is exist - process it [10:24:06]req_shift_open_date [10:24:06]req_shift_open_date done [10:24:06]produce_requested_data done [10:24:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48853,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:24:06]process_action_free close_receipt [10:24:06]json_value_free [10:24:06]json_value_free done [10:24:06]process_json_proto returns [10:24:06]Send response to host [10:24:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48853,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:24:06]free response buf [10:24:06]execute_script done [10:24:06]execute_script returns [10:24:06]free content buf [10:24:06]Sock 9.Close socket [10:24:06]Sock 9.Thread stoped [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:04]accept exits with 7 [10:26:04]New connection [10:26:04]New thread 3066670436 created [10:26:04]Thread 3066813796 joined [10:26:04]Waiting for new connection... [10:26:04] Sock 7.Parse request [10:26:04]Sock 7.Check first char [10:26:04]Sock 7.First char is OK [10:26:04]request: POST /json_proto HTTP/1.0 [10:26:04]Method: POST [10:26:04]URL: /json_proto [10:26:04]Method is POST - this is cgi request [10:26:04]url: /json_proto [10:26:04]query_string will be loaded in cgi processing [10:26:04]execute_cgi json_proto POST (null) [10:26:04]execute_cgi path=json_proto method=POST [10:26:04]POST find Content-Length [10:26:04]Host: 172.17.56.67:8080 [10:26:04]Content-Length: 679 [10:26:04]Content-Type: application/json [10:26:04] [10:26:04]POST finish read [10:26:04]Found Content-Length = 679 [10:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:26:04]execute_script... [10: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)215950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:26:04]POST & json_proto [10:26:04]process_json_proto [10:26:04]json parsed OK: [10:26:04]protocol is kg_v1.0 [10:26:04]action value=close_receipt [10:26:04]process_action close_receipt [10:26:04]cmd_close_receipt [10:26:04]MH_GetDate [10:26:04]Write to MH i2c: F0 00 00 24 0B 1E [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: F0 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: F0 09 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: F0 09 00 24 0B 00 3F DA B4 65 26 5D 9E 65 DF [10:26:04]GetLastDocTimeStamp 1706351045 [10:26:04]current date 1706351167 [10:26:04]FM_GetShiftState [10:26:04]SAM_PROTO_GetShiftState [10:26:04]wFMCommunicate request_size=4 [10:26:04]MH_SAM_APDU [10:26:04]CAPDU: 80 13 01 00 [10:26:04]Write to MH i2c: E2 08 00 25 0B 80 13 01 00 00 00 00 00 AD [10:26:04]Write i2c OK [10:26:04]MH_I2C_Read... [10:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:04]Read from MH i2c: E2 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0E 00 [10:26:04]MH_I2C_Read... [10:26:04]Read from MH i2c: E2 0E 00 25 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 44 [10:26:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:26:04]wFMCommunicate OK [10:26:04]SAM_PROTO_GetShiftState done [10:26:04]FM_GetShiftState done [10:26:04]opened in 1706313770 [10:26:04]opened+sec_in_day 1706400170 [10:26:04]quantity*price = 100026 [10:26:04]sum+1 = 100028 [10:26:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 34 27.01.2024 10:26 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48854 ФПД: 176406239533020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102607&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48854&fm=176406239533020&tin=02508201610067®Number=0000000000092723&sum=100000 [10:26:06]StoreToDocumentArchive [10:26:06]shift 243 fd 48854 [10:26:06]save to /storage/0243/doc_00048854 [10:26:06]save last doc name /storage/0243/doc_00048854 to /storage/kkm_last_doc_name [10:26:06]save OK [10:26:06]Clear old archive folders... [10:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:26:06]tlvbuf is 01345BF0 [10:26:06]SAM_PROTO_ClearQueue [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 09 00 00 [10:26:06]Write to MH i2c: E2 08 00 32 0B 80 09 00 00 00 00 00 00 AF [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [10:26:06]RAPDU: 90 00 [10:26:06]wFMCommunicate OK [10:26:06]SAM_PROTO_ClearQueue done [10:26:06]KKMCreateOFDPacket [10:26:06]OFDProtocolAddRootSTLVToBuf [10:26:06]FM_MakeSignedData [10:26:06]FM_MakeSignedData [10:26:06]SAM_PROTO_SignData [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 0D 01 02 [10:26:06]Write to MH i2c: E2 08 00 33 0B 80 0D 01 02 00 00 00 00 B7 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [10:26:06]RAPDU: 90 00 [10:26:06]wFMCommunicate OK [10:26:06]wFMCommunicate request_size=255 [10:26:06]MH_SAM_APDU [10:26: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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 BE 00 00 35 04 06 00 A0 70 C7 3E [10:26:06]Write to MH i2c: E2 02 01 34 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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 BE 00 00 35 04 06 00 A0 70 C7 3E 00 00 31 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [10:26:06]RAPDU: 90 00 [10:26:06]wFMCommunicate OK [10:26:06]wFMCommunicate request_size=7 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 0D 02 02 02 57 DC [10:26:06]Write to MH i2c: E2 0A 00 35 0B 80 0D 02 02 02 00 57 DC 00 00 F1 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [10:26:06]RAPDU: 90 00 [10:26:06]wFMCommunicate OK [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 0D 03 02 [10:26:06]Write to MH i2c: E2 08 00 36 0B 80 0D 03 02 00 00 00 00 BC [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0B 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0B 00 36 0B 00 4B 87 DB D5 7E 15 77 37 90 00 80 [10:26:06]RAPDU: 4B 87 DB D5 7E 15 77 37 90 00 [10:26:06]wFMCommunicate OK [10:26:06]SAM_PROTO_SignData done [10:26:06]FM_MakeSignedData done [10:26:06]CreateOFDProtocolMessage [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 11 00 00 [10:26:06]Write to MH i2c: E2 08 00 37 0B 80 11 00 00 00 00 00 00 BC [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 17 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 17 00 37 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 09 [10:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:26:06]wFMCommunicate OK [10:26:06]CreateOFDProtocolMessage done [10:26:06]OFDSenderStorePacket 48854 [10:26:06]StoreOFDPacket docnum=48854 [10:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 40 C2 04 01 9B F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 BE 00 00 35 04 06 00 A0 70 C7 3E 57 DC 4B 87 DB D5 7E 15 77 37 [10:26:06]CheckFolder [10:26:06]dirname=/storage/ofd_packets [10:26:06]CheckFolder done [10:26:06]ProducePacketName [10:26:06]name=ofd_packets/00048854 [10:26:06]NVStorageSaveData ofd_packets/00048854 [10:26:06]File name is /storage/ofd_packets/00048854 [10:26:06]Write 298 bytes [10:26:06]NVStorageSaveData done [10:26:06]OFDSenderStorePacket done [10:26:06]KKMCreateOFDPacket done [10:26:06]NVStorageSaveData kkm_last_timestamp [10:26:06]File name is /storage/kkm_last_timestamp [10:26:06]Write 4 bytes [10:26:06]NVStorageSaveData done [10:26:06]ExternCall_PrintAddStr [10:26:06]wPrintStart [10:26:06]Write to MH i2c: 01 00 00 38 0B 43 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: 01 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: 01 07 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: 01 07 00 38 0B 00 00 00 00 00 FF 0F 58 [10:26:06]RasterBufferAndPrint [10:26:06]line Счет N : (1)215950 [10:26:06]line ИНН: 02508201610067 [10:26:06]line Контрольно-Кассовый Чек [10:26:06]line ПРОДАЖА [10:26:06]line ТРК (МРК, ГНК) : 21 [10:26:06]line Товар: 2710194210 [10:26:06]line ДТ-К-5 [10:26:06]line 14.310 * 69.90 [10:26:06]line = 1000.27 [10:26:06]line НДС 12% НСП 1% [10:26:06]line > о реализуемом товаре [10:26:06]line ОКРУГЛЕНИЕ: -0.27 [10:26:06]line ИТОГО: 1000.00 [10:26:06]line Внесено: 1000.00 [10:26:06]line СДАЧА: 0.00 [10:26:06]line НСП 1% : 8.85 [10:26:06]line НДС 12% : 106.22 [10:26:06]line Наличными: 1000.00 [10:26:06]line Безнал.: 0.00 [10:26:06]line Место: АЗС № 102 "Партнер Нефть" [10:26:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:26:06]line СНО: Общий режим [10:26:06]line Чек 34 27.01.2024 10:26 [10:26:06]line Смена: 243 ФФД: 1.0 [10:26:06]line ЗНМ: 0300000040 [10:26:06]line РНМ: 0000000000092723 [10:26:06]line Версия ККМ: 001 [10:26:06]line ФМ: 0000000000875060 [10:26:06]line ФД: 48854 [10:26:06]line ФПД: 176406239533020 [10:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102607&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48854&fm=176406239533020&tin=02508201610067®Number=0000000000092723&sum=100000 [10:26:06]OFD Sender: Processing packet 48854 [packets to send 12, broken 11] [10:26:06]ProducePacketName [10:26:06]name=ofd_packets/00048854 [10:26:06]OFD Sender: To server: pG, [10:26:06]CommunicateWithHost lk.salyk.kg:30040 [10:26:06]ConnectInit lk.salyk.kg [10:26:06]written 0, free lines is 4095 [10:26:07]Connected sock=10 [10:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 40 C2 04 01 9B F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 BE 00 00 35 04 06 00 A0 70 C7 3E 57 DC 4B 87 DB D5 7E 15 77 37 [10:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A8 16 47 00 3A 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 35 30 36 30 10 04 04 00 D6 BE 00 00 F4 03 04 00 3E 86 B4 65 B6 04 01 00 00 47 D6 D4 4A 78 AC CF F0 [10:26:07]CommunicateWithHost err = 0 [10:26:07]CheckOFDResponse [10:26:07]1017 (14) - 77093643461234 [10:26:07]1041 (16) - 0000000000875060 [10:26:07]1040 (4) - 48854 [10:26:07]1012 (4) - 27.01.2024 04:27 [10:26:07]1206 (1) - 0 [10:26:07]OFD Sender: Remove packet 48854 [10:26:07]ProducePacketName [10:26:07]name=ofd_packets/00048854 [10:26:07]NVStorageDeleteData [10:26:07]Write to MH i2c: 01 00 00 63 0B 6E [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: 01 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: 01 07 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 F8 0C 79 [10:26:07]RasterBufferAndPrint [10:26:07]line [10:26:07]line [10:26:07]line [10:26:07]line [10:26:07]line [10:26:07]written 0, free lines is 3327 [10:26:07]MH_Cut [10:26:07]Write to MH i2c: D1 01 00 6A 0B 01 47 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: D1 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: D1 01 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: D1 01 00 6A 0B 00 46 [10:26:07]Write to MH i2c: 01 00 00 6B 0B 76 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]OFD Sender: No OFD packet to send [10:26:08]*** Cut start [10:26:08]*** Partial cut [10:26:08]*** CUTSNS_PIN = 1 [10:26:08]*** CUTSNS_PIN = 0 [10:26:08]*** Brake cut motor [10:26:08]Read from MH i2c: 01 [10:26:08]MH_I2C_Read... [10:26:08]*** Stop cut motor [10:26:08]*** Cut end [10:26:08]Read from MH i2c: 01 07 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: 01 07 00 6B 0B 00 00 00 00 00 FF 0F 8B [10:26:08]process_action close_receipt done [10:26:08]requested_data is exist [10:26:08]produce_requested_data [10:26:08]requested_item fm.sn is exist - process it [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 11 00 00 [10:26:08]Write to MH i2c: E2 08 00 6C 0B 80 11 00 00 00 00 00 00 F1 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 17 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 17 00 6C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [10:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:26:08]wFMCommunicate OK [10:26:08]requested_item fd.num is exist - process it [10:26:08]SAM_PROTO_GetFieldsCounters [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 13 00 00 [10:26:08]Write to MH i2c: E2 08 00 6D 0B 80 13 00 00 00 00 00 00 F4 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 62 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 62 00 6D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D6 BE 00 00 0E 04 04 00 F3 00 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 FA [10:26: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D6 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:08]wFMCommunicate OK [10:26:08]SAM_PROTO_GetFieldsCounters done [10:26:08]requested_item shift.num is exist - process it [10:26:08]requested_item shift.opened is exist - process it [10:26:08]req_shift_opened [10:26:08]FM_GetShiftState [10:26:08]SAM_PROTO_GetShiftState [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 13 01 00 [10:26:08]Write to MH i2c: E2 08 00 6E 0B 80 13 01 00 00 00 00 00 F6 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0E 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0E 00 6E 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8D [10:26:08]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:26:08]wFMCommunicate OK [10:26:08]SAM_PROTO_GetShiftState done [10:26:08]FM_GetShiftState done [10:26:08]req_shift_opened done [10:26:08]requested_item shift.open_date is exist - process it [10:26:08]req_shift_open_date [10:26:08]req_shift_open_date done [10:26:08]produce_requested_data done [10:26:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48854,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:26:08]process_action_free close_receipt [10:26:08]json_value_free [10:26:08]json_value_free done [10:26:08]process_json_proto returns [10:26:08]Send response to host [10:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48854,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:26:08]free response buf [10:26:08]execute_script done [10:26:08]execute_script returns [10:26:08]free content buf [10:26:08]Sock 7.Close socket [10:26:08]Sock 7.Thread stoped [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:19]accept exits with 9 [10:28:19]New connection [10:28:19]New thread 3066813796 created [10:28:19]Thread 3066670436 joined [10:28:19]Waiting for new connection... [10:28:19] Sock 9.Parse request [10:28:19]Sock 9.Check first char [10:28:19]Sock 9.First char is OK [10:28:19]request: POST /json_proto HTTP/1.0 [10:28:19]Method: POST [10:28:19]URL: /json_proto [10:28:19]Method is POST - this is cgi request [10:28:19]url: /json_proto [10:28:19]query_string will be loaded in cgi processing [10:28:19]execute_cgi json_proto POST (null) [10:28:19]execute_cgi path=json_proto method=POST [10:28:19]POST find Content-Length [10:28:19]Host: 172.17.56.67:8080 [10:28:19]Content-Length: 679 [10:28:19]Content-Type: application/json [10:28:19] [10:28:19]POST finish read [10:28:19]Found Content-Length = 679 [10:28:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:28:19]execute_script... [10:28: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)215951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:28:19]POST & json_proto [10:28:19]process_json_proto [10:28:19]json parsed OK: [10:28:19]protocol is kg_v1.0 [10:28:19]action value=close_receipt [10:28:19]process_action close_receipt [10:28:19]cmd_close_receipt [10:28:19]MH_GetDate [10:28:19]Write to MH i2c: F0 00 00 6F 0B 69 [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: F0 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: F0 09 00 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: F0 09 00 6F 0B 00 C6 DA B4 65 26 5D 9E 65 B1 [10:28:19]GetLastDocTimeStamp 1706351167 [10:28:19]current date 1706351302 [10:28:19]FM_GetShiftState [10:28:19]SAM_PROTO_GetShiftState [10:28:19]wFMCommunicate request_size=4 [10:28:19]MH_SAM_APDU [10:28:19]CAPDU: 80 13 01 00 [10:28:19]Write to MH i2c: E2 08 00 70 0B 80 13 01 00 00 00 00 00 F8 [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:19]Read from MH i2c: E2 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: E2 0E 00 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: E2 0E 00 70 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8F [10:28:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:28:19]wFMCommunicate OK [10:28:19]SAM_PROTO_GetShiftState done [10:28:19]FM_GetShiftState done [10:28:19]opened in 1706313770 [10:28:19]opened+sec_in_day 1706400170 [10:28:19]quantity*price = 100026 [10:28:19]sum+1 = 100028 [10:28:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 35 27.01.2024 10:28 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48855 ФПД: 119426727120781 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48855&fm=119426727120781&tin=02508201610067®Number=0000000000092723&sum=100000 [10:28:20]StoreToDocumentArchive [10:28:20]shift 243 fd 48855 [10:28:20]save to /storage/0243/doc_00048855 [10:28:20]save last doc name /storage/0243/doc_00048855 to /storage/kkm_last_doc_name [10:28:20]save OK [10:28:20]Clear old archive folders... [10:28:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:28:20]tlvbuf is 011BA700 [10:28:20]SAM_PROTO_ClearQueue [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 09 00 00 [10:28:20]Write to MH i2c: E2 08 00 7D 0B 80 09 00 00 00 00 00 00 FA [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 03 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [10:28:20]RAPDU: 90 00 [10:28:20]wFMCommunicate OK [10:28:20]SAM_PROTO_ClearQueue done [10:28:20]KKMCreateOFDPacket [10:28:20]OFDProtocolAddRootSTLVToBuf [10:28:20]FM_MakeSignedData [10:28:20]FM_MakeSignedData [10:28:20]SAM_PROTO_SignData [10:28:20]wFMCommunicate request_size=4 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 0D 01 02 [10:28:20]Write to MH i2c: E2 08 00 7E 0B 80 0D 01 02 00 00 00 00 02 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:20]Read from MH i2c: E2 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 03 00 [10:28:20]MH_I2C_Read... [10:28:20]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [10:28:20]RAPDU: 90 00 [10:28:20]wFMCommunicate OK [10:28:20]wFMCommunicate request_size=255 [10:28:20]MH_SAM_APDU [10:28:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C6 DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 BE 00 00 35 04 06 00 6C 9E 33 A5 [10:28:20]Write to MH i2c: E2 02 01 7F 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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C6 DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 BE 00 00 35 04 06 00 6C 9E 33 A5 00 00 D2 [10:28:20]Write i2c OK [10:28:20]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]wFMCommunicate request_size=7 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 0D 02 02 02 8F 8D [10:28:21]Write to MH i2c: E2 0A 00 80 0B 80 0D 02 02 02 00 8F 8D 00 00 25 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [10:28:21]RAPDU: 90 00 [10:28:21]wFMCommunicate OK [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 0D 03 02 [10:28:21]Write to MH i2c: E2 08 00 81 0B 80 0D 03 02 00 00 00 00 07 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0B 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0B 00 81 0B 00 CD 55 4D 2C 86 B3 B7 E2 90 00 75 [10:28:21]RAPDU: CD 55 4D 2C 86 B3 B7 E2 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_SignData done [10:28:21]FM_MakeSignedData done [10:28:21]CreateOFDProtocolMessage [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 11 00 00 [10:28:21]Write to MH i2c: E2 08 00 82 0B 80 11 00 00 00 00 00 00 07 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 17 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 17 00 82 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [10:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:28:21]wFMCommunicate OK [10:28:21]CreateOFDProtocolMessage done [10:28:21]OFDSenderStorePacket 48855 [10:28:21]StoreOFDPacket docnum=48855 [10:28:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 25 FE 04 01 C0 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C6 DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 BE 00 00 35 04 06 00 6C 9E 33 A5 8F 8D CD 55 4D 2C 86 B3 B7 E2 [10:28:21]CheckFolder [10:28:21]dirname=/storage/ofd_packets [10:28:21]CheckFolder done [10:28:21]ProducePacketName [10:28:21]name=ofd_packets/00048855 [10:28:21]NVStorageSaveData ofd_packets/00048855 [10:28:21]File name is /storage/ofd_packets/00048855 [10:28:21]Write 298 bytes [10:28:21]NVStorageSaveData done [10:28:21]OFDSenderStorePacket done [10:28:21]KKMCreateOFDPacket done [10:28:21]NVStorageSaveData kkm_last_timestamp [10:28:21]File name is /storage/kkm_last_timestamp [10:28:21]Write 4 bytes [10:28:21]NVStorageSaveData done [10:28:21]ExternCall_PrintAddStr [10:28:21]wPrintStart [10:28:21]Write to MH i2c: 01 00 00 83 0B 8E [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 07 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: 01 07 00 83 0B 00 00 00 00 00 FF 0F A3 [10:28:21]RasterBufferAndPrint [10:28:21]line Счет N : (1)215951 [10:28:21]line ИНН: 02508201610067 [10:28:21]line Контрольно-Кассовый Чек [10:28:21]line ПРОДАЖА [10:28:21]line ТРК (МРК, ГНК) : 21 [10:28:21]line Товар: 2710194210 [10:28:21]line ДТ-К-5 [10:28:21]line 14.310 * 69.90 [10:28:21]line = 1000.27 [10:28:21]line НДС 12% НСП 1% [10:28:21]line > о реализуемом товаре [10:28:21]line ОКРУГЛЕНИЕ: -0.27 [10:28:21]line ИТОГО: 1000.00 [10:28:21]line Внесено: 1000.00 [10:28:21]line СДАЧА: 0.00 [10:28:21]line НСП 1% : 8.85 [10:28:21]line НДС 12% : 106.22 [10:28:21]line Наличными: 1000.00 [10:28:21]line Безнал.: 0.00 [10:28:21]line Место: АЗС № 102 "Партнер Нефть" [10:28:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:28:21]line СНО: Общий режим [10:28:21]line Чек 35 27.01.2024 10:28 [10:28:21]line Смена: 243 ФФД: 1.0 [10:28:21]line ЗНМ: 0300000040 [10:28:21]line РНМ: 0000000000092723 [10:28:21]line Версия ККМ: 001 [10:28:21]line ФМ: 0000000000875060 [10:28:21]line ФД: 48855 [10:28:21]line ФПД: 119426727120781 [10:28:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T102822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48855&fm=119426727120781&tin=02508201610067®Number=0000000000092723&sum=100000 [10:28:21]OFD Sender: Processing packet 48855 [packets to send 12, broken 11] [10:28:21]ProducePacketName [10:28:21]name=ofd_packets/00048855 [10:28:21]OFD Sender: To server: pG, [10:28:21]CommunicateWithHost lk.salyk.kg:30040 [10:28:21]ConnectInit lk.salyk.kg [10:28:21]written 0, free lines is 4095 [10:28:21]Connected sock=10 [10:28:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 25 FE 04 01 C0 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C6 DA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 BE 00 00 35 04 06 00 6C 9E 33 A5 8F 8D CD 55 4D 2C 86 B3 B7 E2 [10:28:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1D CA 47 00 68 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 35 30 36 30 10 04 04 00 D7 BE 00 00 F4 03 04 00 C5 86 B4 65 B6 04 01 00 00 FE 5E 62 D0 FA DD 29 72 [10:28:21]CommunicateWithHost err = 0 [10:28:21]CheckOFDResponse [10:28:21]1017 (14) - 77093643461234 [10:28:21]1041 (16) - 0000000000875060 [10:28:21]1040 (4) - 48855 [10:28:21]1012 (4) - 27.01.2024 04:29 [10:28:21]1206 (1) - 0 [10:28:21]OFD Sender: Remove packet 48855 [10:28:21]ProducePacketName [10:28:21]name=ofd_packets/00048855 [10:28:21]NVStorageDeleteData [10:28:22]Write to MH i2c: 01 00 00 AE 0B B9 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 F6 0C C2 [10:28:22]RasterBufferAndPrint [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]line [10:28:22]written 0, free lines is 3324 [10:28:22]MH_Cut [10:28:22]Write to MH i2c: D1 01 00 B5 0B 01 92 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: D1 01 00 B5 0B 00 91 [10:28:22]Write to MH i2c: 01 00 00 B6 0B C1 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]OFD Sender: No OFD packet to send [10:28:22]*** Cut start [10:28:22]*** Partial cut [10:28:22]*** CUTSNS_PIN = 1 [10:28:22]*** CUTSNS_PIN = 0 [10:28:22]*** Brake cut motor [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]*** Stop cut motor [10:28:23]*** Cut end [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 FF 0F D6 [10:28:23]process_action close_receipt done [10:28:23]requested_data is exist [10:28:23]produce_requested_data [10:28:23]requested_item fm.sn is exist - process it [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 11 00 00 [10:28:23]Write to MH i2c: E2 08 00 B7 0B 80 11 00 00 00 00 00 00 3C [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 17 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 17 00 B7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [10:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:28:23]wFMCommunicate OK [10:28:23]requested_item fd.num is exist - process it [10:28:23]SAM_PROTO_GetFieldsCounters [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 13 00 00 [10:28:23]Write to MH i2c: E2 08 00 B8 0B 80 13 00 00 00 00 00 00 3F [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 62 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 62 00 B8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D7 BE 00 00 0E 04 04 00 F3 00 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 49 [10:28:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D7 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:23]wFMCommunicate OK [10:28:23]SAM_PROTO_GetFieldsCounters done [10:28:23]requested_item shift.num is exist - process it [10:28:23]requested_item shift.opened is exist - process it [10:28:23]req_shift_opened [10:28:23]FM_GetShiftState [10:28:23]SAM_PROTO_GetShiftState [10:28:23]wFMCommunicate request_size=4 [10:28:23]MH_SAM_APDU [10:28:23]CAPDU: 80 13 01 00 [10:28:23]Write to MH i2c: E2 08 00 B9 0B 80 13 01 00 00 00 00 00 41 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 [10:28:23]MH_I2C_Read... [10:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:23]Read from MH i2c: E2 0E 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: E2 0E 00 B9 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D8 [10:28:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:28:23]wFMCommunicate OK [10:28:23]SAM_PROTO_GetShiftState done [10:28:23]FM_GetShiftState done [10:28:23]req_shift_opened done [10:28:23]requested_item shift.open_date is exist - process it [10:28:23]req_shift_open_date [10:28:23]req_shift_open_date done [10:28:23]produce_requested_data done [10:28:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48855,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:28:23]process_action_free close_receipt [10:28:23]json_value_free [10:28:23]json_value_free done [10:28:23]process_json_proto returns [10:28:23]Send response to host [10:28:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48855,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:28:23]free response buf [10:28:23]execute_script done [10:28:23]execute_script returns [10:28:23]free content buf [10:28:23]Sock 9.Close socket [10:28:23]Sock 9.Thread stoped [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:27]OFD Sender: No OFD packet to send [10:32:32]OFD Sender: No OFD packet to send [10:32:37]OFD Sender: No OFD packet to send [10:32:42]OFD Sender: No OFD packet to send [10:32:47]OFD Sender: No OFD packet to send [10:32:52]OFD Sender: No OFD packet to send [10:32:57]OFD Sender: No OFD packet to send [10:33:02]OFD Sender: No OFD packet to send [10:33:07]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35: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:09]int [10:40:09]Write to MH i2c: 01 00 00 BA 0B C5 [10:40:09]*** FLAG_PRN_KEY set [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 BA 0B 00 08 00 00 00 FF 0F E2 [10:40:09]state=0 [10:40:09]Key pressed [10:40:09]Feed [10:40:09]Write to MH i2c: D8 00 00 BB 0B 9D [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: D8 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: D8 01 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: D8 01 00 BB 0B 00 9E [10:40:09]int [10:40:09]Write to MH i2c: 01 00 00 BC 0B C7 [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 BC 0B 00 48 00 00 00 3C 00 52 [10:40:09]state=2 [10:40:09]Key pressed [10:40:09]int [10:40:09]Write to MH i2c: 01 00 00 BD 0B C8 [10:40:09]*** FLAG_PRN_KEY reset [10:40:09]Write i2c OK [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 [10:40:09]MH_I2C_Read... [10:40:09]Read from MH i2c: 01 07 00 BD 0B 00 00 00 00 00 F6 0F D4 [10:40:09]state=2 [10:40:09]Stop feed [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:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:18]accept exits with 7 [10:43:18]New connection [10:43:18]New thread 3066670436 created [10:43:18]Thread 3066813796 joined [10:43:18]Waiting for new connection... [10:43:18] Sock 7.Parse request [10:43:18]Sock 7.Check first char [10:43:18]Sock 7.First char is OK [10:43:18]request: POST /json_proto HTTP/1.0 [10:43:18]Method: POST [10:43:18]URL: /json_proto [10:43:18]Method is POST - this is cgi request [10:43:18]url: /json_proto [10:43:18]query_string will be loaded in cgi processing [10:43:18]execute_cgi json_proto POST (null) [10:43:18]execute_cgi path=json_proto method=POST [10:43:18]POST find Content-Length [10:43:18]Host: 172.17.56.67:8080 [10:43:18]Content-Length: 677 [10:43:18]Content-Type: application/json [10:43:18] [10:43:18]POST finish read [10:43:18]Found Content-Length = 677 [10:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "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:18]execute_script... [10:43: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)215952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "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:18]POST & json_proto [10:43:18]process_json_proto [10:43:18]json parsed OK: [10:43:18]protocol is kg_v1.0 [10:43:18]action value=close_receipt [10:43:18]process_action close_receipt [10:43:18]cmd_close_receipt [10:43:18]MH_GetDate [10:43:18]Write to MH i2c: F0 00 00 BE 0B B8 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: F0 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: F0 09 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: F0 09 00 BE 0B 00 49 DE B4 65 26 5D 9E 65 87 [10:43:18]GetLastDocTimeStamp 1706351302 [10:43:18]current date 1706352201 [10:43:18]FM_GetShiftState [10:43:18]SAM_PROTO_GetShiftState [10:43:18]wFMCommunicate request_size=4 [10:43:18]MH_SAM_APDU [10:43:18]CAPDU: 80 13 01 00 [10:43:18]Write to MH i2c: E2 08 00 BF 0B 80 13 01 00 00 00 00 00 47 [10:43:18]Write i2c OK [10:43:18]MH_I2C_Read... [10:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:18]Read from MH i2c: E2 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 0E 00 [10:43:18]MH_I2C_Read... [10:43:18]Read from MH i2c: E2 0E 00 BF 0B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 DE [10:43:18]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:43:18]wFMCommunicate OK [10:43:18]SAM_PROTO_GetShiftState done [10:43:18]FM_GetShiftState done [10:43:18]opened in 1706313770 [10:43:18]opened+sec_in_day 1706400170 [10:43:18]quantity*price = 25024 [10:43:18]sum+1 = 25026 [10:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 36 27.01.2024 10:43 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48856 ФПД: 164566281053637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104321&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48856&fm=164566281053637&tin=02508201610067®Number=0000000000092723&sum=25000 [10:43:19]StoreToDocumentArchive [10:43:19]shift 243 fd 48856 [10:43:19]save to /storage/0243/doc_00048856 [10:43:19]save last doc name /storage/0243/doc_00048856 to /storage/kkm_last_doc_name [10:43:19]save OK [10:43:19]Clear old archive folders... [10:43:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:19]tlvbuf is 011C0E20 [10:43:19]SAM_PROTO_ClearQueue [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 09 00 00 [10:43:19]Write to MH i2c: E2 08 00 CC 0B 80 09 00 00 00 00 00 00 49 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]SAM_PROTO_ClearQueue done [10:43:19]KKMCreateOFDPacket [10:43:19]OFDProtocolAddRootSTLVToBuf [10:43:19]FM_MakeSignedData [10:43:19]FM_MakeSignedData [10:43:19]SAM_PROTO_SignData [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 01 02 [10:43:19]Write to MH i2c: E2 08 00 CD 0B 80 0D 01 02 00 00 00 00 51 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 CD 0B 00 90 00 4C [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=255 [10:43:19]MH_SAM_APDU [10:43: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 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 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 24 00 00 00 F4 03 04 00 49 DE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BE 00 00 35 04 06 00 95 [10:43:19]Write to MH i2c: E2 02 01 CE 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 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 24 00 00 00 F4 03 04 00 49 DE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BE 00 00 35 04 06 00 95 00 00 3C [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 CE 0B 00 90 00 4D [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=10 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 02 02 05 AC 12 B9 65 C5 [10:43:19]Write to MH i2c: E2 0D 00 CF 0B 80 0D 02 02 05 00 AC 12 B9 65 C5 00 00 FF [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 03 00 CF 0B 00 90 00 4E [10:43:19]RAPDU: 90 00 [10:43:19]wFMCommunicate OK [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 0D 03 02 [10:43:19]Write to MH i2c: E2 08 00 D0 0B 80 0D 03 02 00 00 00 00 56 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0B 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 0B 00 D0 0B 00 2C 6D AB DD 91 02 A4 C7 90 00 76 [10:43:19]RAPDU: 2C 6D AB DD 91 02 A4 C7 90 00 [10:43:19]wFMCommunicate OK [10:43:19]SAM_PROTO_SignData done [10:43:19]FM_MakeSignedData done [10:43:19]CreateOFDProtocolMessage [10:43:19]wFMCommunicate request_size=4 [10:43:19]MH_SAM_APDU [10:43:19]CAPDU: 80 11 00 00 [10:43:19]Write to MH i2c: E2 08 00 D1 0B 80 11 00 00 00 00 00 00 56 [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:19]Read from MH i2c: E2 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: E2 17 00 D1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A3 [10:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:19]wFMCommunicate OK [10:43:19]CreateOFDProtocolMessage done [10:43:19]OFDSenderStorePacket 48856 [10:43:19]StoreOFDPacket docnum=48856 [10:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5C 27 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 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 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 24 00 00 00 F4 03 04 00 49 DE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BE 00 00 35 04 06 00 95 AC 12 B9 65 C5 2C 6D AB DD 91 02 A4 C7 [10:43:19]CheckFolder [10:43:19]dirname=/storage/ofd_packets [10:43:19]CheckFolder done [10:43:19]ProducePacketName [10:43:19]name=ofd_packets/00048856 [10:43:19]NVStorageSaveData ofd_packets/00048856 [10:43:19]File name is /storage/ofd_packets/00048856 [10:43:19]Write 301 bytes [10:43:19]NVStorageSaveData done [10:43:19]OFDSenderStorePacket done [10:43:19]KKMCreateOFDPacket done [10:43:19]NVStorageSaveData kkm_last_timestamp [10:43:19]File name is /storage/kkm_last_timestamp [10:43:19]Write 4 bytes [10:43:19]NVStorageSaveData done [10:43:19]ExternCall_PrintAddStr [10:43:19]wPrintStart [10:43:19]Write to MH i2c: 01 00 00 D2 0B DD [10:43:19]Write i2c OK [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 07 00 [10:43:19]MH_I2C_Read... [10:43:19]Read from MH i2c: 01 07 00 D2 0B 00 00 00 00 00 FF 0F F2 [10:43:19]RasterBufferAndPrint [10:43:19]line Счет N : (1)215952 [10:43:19]line ИНН: 02508201610067 [10:43:19]line Контрольно-Кассовый Чек [10:43:19]line ПРОДАЖА [10:43:19]line ТРК (МРК, ГНК) : 22 [10:43:19]line Товар: 2710124130 [10:43:19]line Аи-92-К-5 [10:43:19]line 4.150 * 60.30 [10:43:19]line = 250.25 [10:43:19]line НДС 12% НСП 1% [10:43:19]line > о реализуемом товаре [10:43:19]line ОКРУГЛЕНИЕ: -0.25 [10:43:19]line ИТОГО: 250.00 [10:43:19]line Внесено: 250.00 [10:43:19]line СДАЧА: 0.00 [10:43:19]line НСП 1% : 2.21 [10:43:19]line НДС 12% : 26.57 [10:43:19]line Наличными: 250.00 [10:43:19]line Безнал.: 0.00 [10:43:19]line Место: АЗС № 102 "Партнер Нефть" [10:43:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:43:19]line СНО: Общий режим [10:43:19]line Чек 36 27.01.2024 10:43 [10:43:19]line Смена: 243 ФФД: 1.0 [10:43:19]line ЗНМ: 0300000040 [10:43:19]line РНМ: 0000000000092723 [10:43:19]line Версия ККМ: 001 [10:43:19]line ФМ: 0000000000875060 [10:43:19]line ФД: 48856 [10:43:19]line ФПД: 164566281053637 [10:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104321&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48856&fm=164566281053637&tin=02508201610067®Number=0000000000092723&sum=25000 [10:43:20]OFD Sender: Processing packet 48856 [packets to send 12, broken 11] [10:43:20]ProducePacketName [10:43:20]name=ofd_packets/00048856 [10:43:20]OFD Sender: To server: pG, [10:43:20]CommunicateWithHost lk.salyk.kg:30040 [10:43:20]ConnectInit lk.salyk.kg [10:43:20]written 0, free lines is 4095 [10:43:20]Connected sock=10 [10:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5C 27 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 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 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 24 00 00 00 F4 03 04 00 49 DE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BE 00 00 35 04 06 00 95 AC 12 B9 65 C5 2C 6D AB DD 91 02 A4 C7 [10:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E4 D7 47 00 5C 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BE 00 00 F4 03 04 00 47 8A B4 65 B6 04 01 00 00 E2 AB 1F B5 BE FA 30 A7 [10:43:20]CommunicateWithHost err = 0 [10:43:20]CheckOFDResponse [10:43:20]1017 (14) - 77093643461234 [10:43:20]1041 (16) - 0000000000875060 [10:43:20]1040 (4) - 48856 [10:43:20]1012 (4) - 27.01.2024 04:44 [10:43:20]1206 (1) - 0 [10:43:20]OFD Sender: Remove packet 48856 [10:43:20]ProducePacketName [10:43:20]name=ofd_packets/00048856 [10:43:20]NVStorageDeleteData [10:43:20]Write to MH i2c: 01 00 00 FD 0B 08 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 07 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 08 0D 24 [10:43:20]RasterBufferAndPrint [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]line [10:43:20]written 0, free lines is 3343 [10:43:20]MH_Cut [10:43:20]Write to MH i2c: D1 01 00 04 0C 01 E2 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 01 00 [10:43:20]MH_I2C_Read... [10:43:20]Read from MH i2c: D1 01 00 04 0C 00 E1 [10:43:20]Write to MH i2c: 01 00 00 05 0C 11 [10:43:20]Write i2c OK [10:43:20]MH_I2C_Read... [10:43:21]OFD Sender: No OFD packet to send [10:43:21]*** Cut start [10:43:21]*** Partial cut [10:43:21]*** CUTSNS_PIN = 1 [10:43:21]*** CUTSNS_PIN = 0 [10:43:21]*** Brake cut motor [10:43:21]Read from MH i2c: 01 [10:43:21]MH_I2C_Read... [10:43:21]*** Stop cut motor [10:43:21]*** Cut end [10:43:21]Read from MH i2c: 01 07 00 [10:43:21]MH_I2C_Read... [10:43:21]Read from MH i2c: 01 07 00 05 0C 00 00 00 00 00 FF 0F 26 [10:43:21]process_action close_receipt done [10:43:21]requested_data is exist [10:43:21]produce_requested_data [10:43:21]requested_item fm.sn is exist - process it [10:43:21]wFMCommunicate request_size=4 [10:43:21]MH_SAM_APDU [10:43:21]CAPDU: 80 11 00 00 [10:43:21]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [10:43:21]Write i2c OK [10:43:21]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 17 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 17 00 06 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [10:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:22]wFMCommunicate OK [10:43:22]requested_item fd.num is exist - process it [10:43:22]SAM_PROTO_GetFieldsCounters [10:43:22]wFMCommunicate request_size=4 [10:43:22]MH_SAM_APDU [10:43:22]CAPDU: 80 13 00 00 [10:43:22]Write to MH i2c: E2 08 00 07 0C 80 13 00 00 00 00 00 00 8F [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 62 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 62 00 07 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D8 BE 00 00 0E 04 04 00 F3 00 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 9D [10: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D8 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:22]wFMCommunicate OK [10:43:22]SAM_PROTO_GetFieldsCounters done [10:43:22]requested_item shift.num is exist - process it [10:43:22]requested_item shift.opened is exist - process it [10:43:22]req_shift_opened [10:43:22]FM_GetShiftState [10:43:22]SAM_PROTO_GetShiftState [10:43:22]wFMCommunicate request_size=4 [10:43:22]MH_SAM_APDU [10:43:22]CAPDU: 80 13 01 00 [10:43:22]Write to MH i2c: E2 08 00 08 0C 80 13 01 00 00 00 00 00 91 [10:43:22]Write i2c OK [10:43:22]MH_I2C_Read... [10:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:22]Read from MH i2c: E2 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0E 00 [10:43:22]MH_I2C_Read... [10:43:22]Read from MH i2c: E2 0E 00 08 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 28 [10:43:22]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:43:22]wFMCommunicate OK [10:43:22]SAM_PROTO_GetShiftState done [10:43:22]FM_GetShiftState done [10:43:22]req_shift_opened done [10:43:22]requested_item shift.open_date is exist - process it [10:43:22]req_shift_open_date [10:43:22]req_shift_open_date done [10:43:22]produce_requested_data done [10:43:22]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48856,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:43:22]process_action_free close_receipt [10:43:22]json_value_free [10:43:22]json_value_free done [10:43:22]process_json_proto returns [10:43:22]Send response to host [10:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48856,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:43:22]free response buf [10:43:22]execute_script done [10:43:22]execute_script returns [10:43:22]free content buf [10:43:22]Sock 7.Close socket [10:43:22]Sock 7.Thread stoped [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:50]accept exits with 9 [10:46:50]New connection [10:46:50]New thread 3066813796 created [10:46:50]Thread 3066670436 joined [10:46:50]Waiting for new connection... [10:46:50] Sock 9.Parse request [10:46:50]Sock 9.Check first char [10:46:50]Sock 9.First char is OK [10:46:50]request: POST /json_proto HTTP/1.0 [10:46:50]Method: POST [10:46:50]URL: /json_proto [10:46:50]Method is POST - this is cgi request [10:46:50]url: /json_proto [10:46:50]query_string will be loaded in cgi processing [10:46:50]execute_cgi json_proto POST (null) [10:46:50]execute_cgi path=json_proto method=POST [10:46:50]POST find Content-Length [10:46:50]Host: 172.17.56.67:8080 [10:46:50]Content-Length: 677 [10:46:50]Content-Type: application/json [10:46:50] [10:46:50]POST finish read [10:46:50]Found Content-Length = 677 [10:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:50]execute_script... [10:46: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)215953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:50]POST & json_proto [10:46:50]process_json_proto [10:46:50]json parsed OK: [10:46:50]protocol is kg_v1.0 [10:46:50]action value=close_receipt [10:46:50]process_action close_receipt [10:46:50]cmd_close_receipt [10:46:50]MH_GetDate [10:46:50]Write to MH i2c: F0 00 00 09 0C 04 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 09 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: F0 09 00 09 0C 00 1D DF B4 65 26 5D 9E 65 A8 [10:46:50]GetLastDocTimeStamp 1706352201 [10:46:50]current date 1706352413 [10:46:50]FM_GetShiftState [10:46:50]SAM_PROTO_GetShiftState [10:46:50]wFMCommunicate request_size=4 [10:46:50]MH_SAM_APDU [10:46:50]CAPDU: 80 13 01 00 [10:46:50]Write to MH i2c: E2 08 00 0A 0C 80 13 01 00 00 00 00 00 93 [10:46:50]Write i2c OK [10:46:50]MH_I2C_Read... [10:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:50]Read from MH i2c: E2 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0E 00 [10:46:50]MH_I2C_Read... [10:46:50]Read from MH i2c: E2 0E 00 0A 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2A [10:46:50]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:46:50]wFMCommunicate OK [10:46:50]SAM_PROTO_GetShiftState done [10:46:50]FM_GetShiftState done [10:46:50]opened in 1706313770 [10:46:50]opened+sec_in_day 1706400170 [10:46:50]quantity*price = 40039 [10:46:50]sum+1 = 40040 [10:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 37 27.01.2024 10:46 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48857 ФПД: 260301352232904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104653&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48857&fm=260301352232904&tin=02508201610067®Number=0000000000092723&sum=40000 [10:46:51]StoreToDocumentArchive [10:46:51]shift 243 fd 48857 [10:46:51]save to /storage/0243/doc_00048857 [10:46:51]save last doc name /storage/0243/doc_00048857 to /storage/kkm_last_doc_name [10:46:51]save OK [10:46:51]Clear old archive folders... [10:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:51]tlvbuf is 0134C870 [10:46:51]SAM_PROTO_ClearQueue [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 09 00 00 [10:46:51]Write to MH i2c: E2 08 00 17 0C 80 09 00 00 00 00 00 00 95 [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 17 0C 00 90 00 97 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]SAM_PROTO_ClearQueue done [10:46:51]KKMCreateOFDPacket [10:46:51]OFDProtocolAddRootSTLVToBuf [10:46:51]FM_MakeSignedData [10:46:51]FM_MakeSignedData [10:46:51]SAM_PROTO_SignData [10:46:51]wFMCommunicate request_size=4 [10:46:51]MH_SAM_APDU [10:46:51]CAPDU: 80 0D 01 02 [10:46:51]Write to MH i2c: E2 08 00 18 0C 80 0D 01 02 00 00 00 00 9D [10:46:51]Write i2c OK [10:46:51]MH_I2C_Read... [10:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:51]Read from MH i2c: E2 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 [10:46:51]MH_I2C_Read... [10:46:51]Read from MH i2c: E2 03 00 18 0C 00 90 00 98 [10:46:51]RAPDU: 90 00 [10:46:51]wFMCommunicate OK [10:46:51]wFMCommunicate request_size=255 [10:46:51]MH_SAM_APDU [10:46: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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1D DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 BE 00 00 35 04 06 00 EC [10:46:51]Write to MH i2c: E2 02 01 19 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1D DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 BE 00 00 35 04 06 00 EC 00 00 C7 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 19 0C 00 90 00 99 [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=10 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 02 02 05 BE 21 A2 67 C8 [10:46:52]Write to MH i2c: E2 0D 00 1A 0C 80 0D 02 02 05 00 BE 21 A2 67 C8 00 00 5A [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [10:46:52]RAPDU: 90 00 [10:46:52]wFMCommunicate OK [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 0D 03 02 [10:46:52]Write to MH i2c: E2 08 00 1B 0C 80 0D 03 02 00 00 00 00 A2 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 0B 00 1B 0C 00 BF 92 FA 4B 02 A8 3A F4 90 00 11 [10:46:52]RAPDU: BF 92 FA 4B 02 A8 3A F4 90 00 [10:46:52]wFMCommunicate OK [10:46:52]SAM_PROTO_SignData done [10:46:52]FM_MakeSignedData done [10:46:52]CreateOFDProtocolMessage [10:46:52]wFMCommunicate request_size=4 [10:46:52]MH_SAM_APDU [10:46:52]CAPDU: 80 11 00 00 [10:46:52]Write to MH i2c: E2 08 00 1C 0C 80 11 00 00 00 00 00 00 A2 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:52]Read from MH i2c: E2 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: E2 17 00 1C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EF [10:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:46:52]wFMCommunicate OK [10:46:52]CreateOFDProtocolMessage done [10:46:52]OFDSenderStorePacket 48857 [10:46:52]StoreOFDPacket docnum=48857 [10:46:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 05 6F 07 01 E7 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1D DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 BE 00 00 35 04 06 00 EC BE 21 A2 67 C8 BF 92 FA 4B 02 A8 3A F4 [10:46:52]CheckFolder [10:46:52]dirname=/storage/ofd_packets [10:46:52]CheckFolder done [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00048857 [10:46:52]NVStorageSaveData ofd_packets/00048857 [10:46:52]File name is /storage/ofd_packets/00048857 [10:46:52]Write 301 bytes [10:46:52]NVStorageSaveData done [10:46:52]OFDSenderStorePacket done [10:46:52]KKMCreateOFDPacket done [10:46:52]NVStorageSaveData kkm_last_timestamp [10:46:52]File name is /storage/kkm_last_timestamp [10:46:52]Write 4 bytes [10:46:52]NVStorageSaveData done [10:46:52]ExternCall_PrintAddStr [10:46:52]wPrintStart [10:46:52]Write to MH i2c: 01 00 00 1D 0C 29 [10:46:52]Write i2c OK [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 [10:46:52]MH_I2C_Read... [10:46:52]Read from MH i2c: 01 07 00 1D 0C 00 00 00 00 00 FF 0F 3E [10:46:52]RasterBufferAndPrint [10:46:52]line Счет N : (1)215953 [10:46:52]line ИНН: 02508201610067 [10:46:52]line Контрольно-Кассовый Чек [10:46:52]line ПРОДАЖА [10:46:52]line ТРК (МРК, ГНК) : 12 [10:46:52]line Товар: 2710124130 [10:46:52]line Аи-92-К-5 [10:46:52]line 6.640 * 60.30 [10:46:52]line = 400.39 [10:46:52]line НДС 12% НСП 1% [10:46:52]line > о реализуемом товаре [10:46:52]line ОКРУГЛЕНИЕ: -0.39 [10:46:52]line ИТОГО: 400.00 [10:46:52]line Внесено: 400.00 [10:46:52]line СДАЧА: 0.00 [10:46:52]line НСП 1% : 3.54 [10:46:52]line НДС 12% : 42.52 [10:46:52]line Наличными: 400.00 [10:46:52]line Безнал.: 0.00 [10:46:52]line Место: АЗС № 102 "Партнер Нефть" [10:46:52]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:46:52]line СНО: Общий режим [10:46:52]line Чек 37 27.01.2024 10:46 [10:46:52]line Смена: 243 ФФД: 1.0 [10:46:52]line ЗНМ: 0300000040 [10:46:52]line РНМ: 0000000000092723 [10:46:52]line Версия ККМ: 001 [10:46:52]line ФМ: 0000000000875060 [10:46:52]line ФД: 48857 [10:46:52]line ФПД: 260301352232904 [10:46:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104653&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48857&fm=260301352232904&tin=02508201610067®Number=0000000000092723&sum=40000 [10:46:52]written 0, free lines is 4095 [10:46:52]OFD Sender: Processing packet 48857 [packets to send 12, broken 11] [10:46:52]ProducePacketName [10:46:52]name=ofd_packets/00048857 [10:46:52]OFD Sender: To server: pG, [10:46:52]CommunicateWithHost lk.salyk.kg:30040 [10:46:52]ConnectInit lk.salyk.kg [10:46:52]Connected sock=10 [10:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 05 6F 07 01 E7 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1D DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 BE 00 00 35 04 06 00 EC BE 21 A2 67 C8 BF 92 FA 4B 02 A8 3A F4 [10:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 5E 7A 47 00 D2 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 BE 00 00 F4 03 04 00 1C 8B B4 65 B6 04 01 00 00 26 34 6D 1E BE 31 EF C3 [10:46:53]CommunicateWithHost err = 0 [10:46:53]CheckOFDResponse [10:46:53]1017 (14) - 77093643461234 [10:46:53]1041 (16) - 0000000000875060 [10:46:53]1040 (4) - 48857 [10:46:53]1012 (4) - 27.01.2024 04:48 [10:46:53]1206 (1) - 0 [10:46:53]OFD Sender: Remove packet 48857 [10:46:53]ProducePacketName [10:46:53]name=ofd_packets/00048857 [10:46:53]NVStorageDeleteData [10:46:53]Write to MH i2c: 01 00 00 48 0C 54 [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 F3 0C 5A [10:46:53]RasterBufferAndPrint [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]line [10:46:53]written 0, free lines is 3321 [10:46:53]MH_Cut [10:46:53]Write to MH i2c: D1 01 00 4F 0C 01 2D [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 [10:46:53]MH_I2C_Read... [10:46:53]Read from MH i2c: D1 01 00 4F 0C 00 2C [10:46:53]Write to MH i2c: 01 00 00 50 0C 5C [10:46:53]Write i2c OK [10:46:53]MH_I2C_Read... [10:46:53]OFD Sender: No OFD packet to send [10:46:53]*** Cut start [10:46:53]*** Partial cut [10:46:53]*** CUTSNS_PIN = 1 [10:46:53]*** CUTSNS_PIN = 0 [10:46:54]*** Brake cut motor [10:46:54]Read from MH i2c: 01 [10:46:54]MH_I2C_Read... [10:46:54]*** Stop cut motor [10:46:54]*** Cut end [10:46:54]Read from MH i2c: 01 07 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: 01 07 00 50 0C 00 00 00 00 00 FF 0F 71 [10:46:54]process_action close_receipt done [10:46:54]requested_data is exist [10:46:54]produce_requested_data [10:46:54]requested_item fm.sn is exist - process it [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 11 00 00 [10:46:54]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 24 [10:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:46:54]wFMCommunicate OK [10:46:54]requested_item fd.num is exist - process it [10:46:54]SAM_PROTO_GetFieldsCounters [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 00 00 [10:46:54]Write to MH i2c: E2 08 00 52 0C 80 13 00 00 00 00 00 00 DA [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 62 00 52 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D9 BE 00 00 0E 04 04 00 F3 00 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 EC [10:46: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetFieldsCounters done [10:46:54]requested_item shift.num is exist - process it [10:46:54]requested_item shift.opened is exist - process it [10:46:54]req_shift_opened [10:46:54]FM_GetShiftState [10:46:54]SAM_PROTO_GetShiftState [10:46:54]wFMCommunicate request_size=4 [10:46:54]MH_SAM_APDU [10:46:54]CAPDU: 80 13 01 00 [10:46:54]Write to MH i2c: E2 08 00 53 0C 80 13 01 00 00 00 00 00 DC [10:46:54]Write i2c OK [10:46:54]MH_I2C_Read... [10:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:54]Read from MH i2c: E2 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 [10:46:54]MH_I2C_Read... [10:46:54]Read from MH i2c: E2 0E 00 53 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 73 [10:46:54]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:46:54]wFMCommunicate OK [10:46:54]SAM_PROTO_GetShiftState done [10:46:54]FM_GetShiftState done [10:46:54]req_shift_opened done [10:46:54]requested_item shift.open_date is exist - process it [10:46:54]req_shift_open_date [10:46:54]req_shift_open_date done [10:46:54]produce_requested_data done [10:46:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48857,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:46:54]process_action_free close_receipt [10:46:54]json_value_free [10:46:54]json_value_free done [10:46:54]process_json_proto returns [10:46:54]Send response to host [10:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48857,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:46:54]free response buf [10:46:54]execute_script done [10:46:54]execute_script returns [10:46:54]free content buf [10:46:54]Sock 9.Close socket [10:46:54]Sock 9.Thread stoped [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:51]accept exits with 7 [10:47:51]New connection [10:47:51]New thread 3066670436 created [10:47:51]Thread 3066813796 joined [10:47:51]Waiting for new connection... [10:47:51] Sock 7.Parse request [10:47:51]Sock 7.Check first char [10:47:51]Sock 7.First char is OK [10:47:51]request: POST /json_proto HTTP/1.0 [10:47:51]Method: POST [10:47:51]URL: /json_proto [10:47:51]Method is POST - this is cgi request [10:47:51]url: /json_proto [10:47:51]query_string will be loaded in cgi processing [10:47:51]execute_cgi json_proto POST (null) [10:47:51]execute_cgi path=json_proto method=POST [10:47:51]POST find Content-Length [10:47:51]Host: 172.17.56.67:8080 [10:47:51]Content-Length: 677 [10:47:51]Content-Type: application/json [10:47:51] [10:47:51]POST finish read [10:47:51]Found Content-Length = 677 [10:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:51]execute_script... [10:47: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)215954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:51]POST & json_proto [10:47:51]process_json_proto [10:47:51]json parsed OK: [10:47:51]protocol is kg_v1.0 [10:47:51]action value=close_receipt [10:47:51]process_action close_receipt [10:47:51]cmd_close_receipt [10:47:51]MH_GetDate [10:47:51]Write to MH i2c: F0 00 00 54 0C 4F [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: F0 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: F0 09 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: F0 09 00 54 0C 00 5A DF B4 65 26 5D 9E 65 30 [10:47:51]GetLastDocTimeStamp 1706352413 [10:47:51]current date 1706352474 [10:47:51]FM_GetShiftState [10:47:51]SAM_PROTO_GetShiftState [10:47:51]wFMCommunicate request_size=4 [10:47:51]MH_SAM_APDU [10:47:51]CAPDU: 80 13 01 00 [10:47:51]Write to MH i2c: E2 08 00 55 0C 80 13 01 00 00 00 00 00 DE [10:47:51]Write i2c OK [10:47:51]MH_I2C_Read... [10:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:51]Read from MH i2c: E2 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 0E 00 [10:47:51]MH_I2C_Read... [10:47:51]Read from MH i2c: E2 0E 00 55 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 75 [10:47:51]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:47:51]wFMCommunicate OK [10:47:51]SAM_PROTO_GetShiftState done [10:47:51]FM_GetShiftState done [10:47:51]opened in 1706313770 [10:47:51]opened+sec_in_day 1706400170 [10:47:51]quantity*price = 30029 [10:47:51]sum+1 = 30030 [10:47:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 38 27.01.2024 10:47 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48858 ФПД: 52121419516433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104754&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48858&fm=52121419516433&tin=02508201610067®Number=0000000000092723&sum=30000 [10:47:52]StoreToDocumentArchive [10:47:52]shift 243 fd 48858 [10:47:52]save to /storage/0243/doc_00048858 [10:47:52]save last doc name /storage/0243/doc_00048858 to /storage/kkm_last_doc_name [10:47:52]save OK [10:47:52]Clear old archive folders... [10:47:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:52]tlvbuf is 01345BC0 [10:47:52]SAM_PROTO_ClearQueue [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 09 00 00 [10:47:52]Write to MH i2c: E2 08 00 62 0C 80 09 00 00 00 00 00 00 E0 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 03 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 03 00 62 0C 00 90 00 E2 [10:47:52]RAPDU: 90 00 [10:47:52]wFMCommunicate OK [10:47:52]SAM_PROTO_ClearQueue done [10:47:52]KKMCreateOFDPacket [10:47:52]OFDProtocolAddRootSTLVToBuf [10:47:52]FM_MakeSignedData [10:47:52]FM_MakeSignedData [10:47:52]SAM_PROTO_SignData [10:47:52]wFMCommunicate request_size=4 [10:47:52]MH_SAM_APDU [10:47:52]CAPDU: 80 0D 01 02 [10:47:52]Write to MH i2c: E2 08 00 63 0C 80 0D 01 02 00 00 00 00 E8 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:52]Read from MH i2c: E2 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 03 00 [10:47:52]MH_I2C_Read... [10:47:52]Read from MH i2c: E2 03 00 63 0C 00 90 00 E3 [10:47:52]RAPDU: 90 00 [10:47:52]wFMCommunicate OK [10:47:52]wFMCommunicate request_size=255 [10:47:52]MH_SAM_APDU [10:47: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5A DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA BE 00 00 35 04 06 00 2F [10:47:52]Write to MH i2c: E2 02 01 64 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5A DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA BE 00 00 35 04 06 00 2F 00 00 E0 [10:47:52]Write i2c OK [10:47:52]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 03 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 03 00 64 0C 00 90 00 E4 [10:47:53]RAPDU: 90 00 [10:47:53]wFMCommunicate OK [10:47:53]wFMCommunicate request_size=10 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 0D 02 02 05 67 76 B2 0A 11 [10:47:53]Write to MH i2c: E2 0D 00 65 0C 80 0D 02 02 05 00 67 76 B2 0A 11 00 00 9F [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 03 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 03 00 65 0C 00 90 00 E5 [10:47:53]RAPDU: 90 00 [10:47:53]wFMCommunicate OK [10:47:53]wFMCommunicate request_size=4 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 0D 03 02 [10:47:53]Write to MH i2c: E2 08 00 66 0C 80 0D 03 02 00 00 00 00 ED [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 0B 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 0B 00 66 0C 00 89 17 3D C2 75 F1 AC 27 90 00 C6 [10:47:53]RAPDU: 89 17 3D C2 75 F1 AC 27 90 00 [10:47:53]wFMCommunicate OK [10:47:53]SAM_PROTO_SignData done [10:47:53]FM_MakeSignedData done [10:47:53]CreateOFDProtocolMessage [10:47:53]wFMCommunicate request_size=4 [10:47:53]MH_SAM_APDU [10:47:53]CAPDU: 80 11 00 00 [10:47:53]Write to MH i2c: E2 08 00 67 0C 80 11 00 00 00 00 00 00 ED [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:53]Read from MH i2c: E2 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 17 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: E2 17 00 67 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3A [10:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:47:53]wFMCommunicate OK [10:47:53]CreateOFDProtocolMessage done [10:47:53]OFDSenderStorePacket 48858 [10:47:53]StoreOFDPacket docnum=48858 [10:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 60 A5 07 01 17 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5A DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA BE 00 00 35 04 06 00 2F 67 76 B2 0A 11 89 17 3D C2 75 F1 AC 27 [10:47:53]CheckFolder [10:47:53]dirname=/storage/ofd_packets [10:47:53]CheckFolder done [10:47:53]ProducePacketName [10:47:53]name=ofd_packets/00048858 [10:47:53]NVStorageSaveData ofd_packets/00048858 [10:47:53]File name is /storage/ofd_packets/00048858 [10:47:53]Write 301 bytes [10:47:53]NVStorageSaveData done [10:47:53]OFDSenderStorePacket done [10:47:53]KKMCreateOFDPacket done [10:47:53]NVStorageSaveData kkm_last_timestamp [10:47:53]File name is /storage/kkm_last_timestamp [10:47:53]Write 4 bytes [10:47:53]NVStorageSaveData done [10:47:53]ExternCall_PrintAddStr [10:47:53]wPrintStart [10:47:53]Write to MH i2c: 01 00 00 68 0C 74 [10:47:53]Write i2c OK [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: 01 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: 01 07 00 [10:47:53]MH_I2C_Read... [10:47:53]Read from MH i2c: 01 07 00 68 0C 00 00 00 00 00 FF 0F 89 [10:47:53]RasterBufferAndPrint [10:47:53]line Счет N : (1)215954 [10:47:53]line ИНН: 02508201610067 [10:47:53]line Контрольно-Кассовый Чек [10:47:53]line ПРОДАЖА [10:47:53]line ТРК (МРК, ГНК) : 22 [10:47:53]line Товар: 2710124130 [10:47:53]line Аи-92-К-5 [10:47:53]line 4.980 * 60.30 [10:47:53]line = 300.29 [10:47:53]line НДС 12% НСП 1% [10:47:53]line > о реализуемом товаре [10:47:53]line ОКРУГЛЕНИЕ: -0.29 [10:47:53]line ИТОГО: 300.00 [10:47:53]line Внесено: 300.00 [10:47:53]line СДАЧА: 0.00 [10:47:53]line НСП 1% : 2.66 [10:47:53]line НДС 12% : 31.89 [10:47:53]line Наличными: 300.00 [10:47:53]line Безнал.: 0.00 [10:47:53]line Место: АЗС № 102 "Партнер Нефть" [10:47:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:47:53]line СНО: Общий режим [10:47:53]line Чек 38 27.01.2024 10:47 [10:47:53]line Смена: 243 ФФД: 1.0 [10:47:53]line ЗНМ: 0300000040 [10:47:53]line РНМ: 0000000000092723 [10:47:53]line Версия ККМ: 001 [10:47:53]line ФМ: 0000000000875060 [10:47:53]line ФД: 48858 [10:47:53]line ФПД: 52121419516433 [10:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104754&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48858&fm=52121419516433&tin=02508201610067®Number=0000000000092723&sum=30000 [10:47:53]OFD Sender: Processing packet 48858 [packets to send 12, broken 11] [10:47:53]ProducePacketName [10:47:53]name=ofd_packets/00048858 [10:47:53]OFD Sender: To server: pG, [10:47:53]CommunicateWithHost lk.salyk.kg:30040 [10:47:53]ConnectInit lk.salyk.kg [10:47:53]written 0, free lines is 4095 [10:47:53]Connected sock=10 [10:47:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 60 A5 07 01 17 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5A DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA BE 00 00 35 04 06 00 2F 67 76 B2 0A 11 89 17 3D C2 75 F1 AC 27 [10:47:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 75 86 47 00 06 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 35 30 36 30 10 04 04 00 DA BE 00 00 F4 03 04 00 59 8B B4 65 B6 04 01 00 00 76 9B 25 DC 71 9B 36 4E [10:47:53]CommunicateWithHost err = 0 [10:47:53]CheckOFDResponse [10:47:53]1017 (14) - 77093643461234 [10:47:53]1041 (16) - 0000000000875060 [10:47:53]1040 (4) - 48858 [10:47:53]1012 (4) - 27.01.2024 04:49 [10:47:53]1206 (1) - 0 [10:47:53]OFD Sender: Remove packet 48858 [10:47:53]ProducePacketName [10:47:53]name=ofd_packets/00048858 [10:47:53]NVStorageDeleteData [10:47:54]Write to MH i2c: 01 00 00 93 0C 9F [10:47:54]Write i2c OK [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: 01 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: 01 07 00 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: 01 07 00 93 0C 00 00 00 00 00 00 0D B3 [10:47:54]RasterBufferAndPrint [10:47:54]line [10:47:54]line [10:47:54]line [10:47:54]line [10:47:54]line [10:47:54]written 0, free lines is 3334 [10:47:54]MH_Cut [10:47:54]Write to MH i2c: D1 01 00 9A 0C 01 78 [10:47:54]Write i2c OK [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: D1 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: D1 01 00 [10:47:54]MH_I2C_Read... [10:47:54]Read from MH i2c: D1 01 00 9A 0C 00 77 [10:47:54]Write to MH i2c: 01 00 00 9B 0C A7 [10:47:54]Write i2c OK [10:47:54]MH_I2C_Read... [10:47:54]OFD Sender: No OFD packet to send [10:47:54]*** Cut start [10:47:54]*** Partial cut [10:47:54]*** CUTSNS_PIN = 1 [10:47:54]*** CUTSNS_PIN = 0 [10:47:55]*** Brake cut motor [10:47:55]Read from MH i2c: 01 [10:47:55]MH_I2C_Read... [10:47:55]*** Stop cut motor [10:47:55]*** Cut end [10:47:55]Read from MH i2c: 01 07 00 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: 01 07 00 9B 0C 00 00 00 00 00 FF 0F BC [10:47:55]process_action close_receipt done [10:47:55]requested_data is exist [10:47:55]produce_requested_data [10:47:55]requested_item fm.sn is exist - process it [10:47:55]wFMCommunicate request_size=4 [10:47:55]MH_SAM_APDU [10:47:55]CAPDU: 80 11 00 00 [10:47:55]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [10:47:55]Write i2c OK [10:47:55]MH_I2C_Read... [10:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:55]Read from MH i2c: E2 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 17 00 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6F [10:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:47:55]wFMCommunicate OK [10:47:55]requested_item fd.num is exist - process it [10:47:55]SAM_PROTO_GetFieldsCounters [10:47:55]wFMCommunicate request_size=4 [10:47:55]MH_SAM_APDU [10:47:55]CAPDU: 80 13 00 00 [10:47:55]Write to MH i2c: E2 08 00 9D 0C 80 13 00 00 00 00 00 00 25 [10:47:55]Write i2c OK [10:47:55]MH_I2C_Read... [10:47:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:55]Read from MH i2c: E2 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 62 00 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 62 00 9D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DA BE 00 00 0E 04 04 00 F3 00 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 3B [10:47: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:55]wFMCommunicate OK [10:47:55]SAM_PROTO_GetFieldsCounters done [10:47:55]requested_item shift.num is exist - process it [10:47:55]requested_item shift.opened is exist - process it [10:47:55]req_shift_opened [10:47:55]FM_GetShiftState [10:47:55]SAM_PROTO_GetShiftState [10:47:55]wFMCommunicate request_size=4 [10:47:55]MH_SAM_APDU [10:47:55]CAPDU: 80 13 01 00 [10:47:55]Write to MH i2c: E2 08 00 9E 0C 80 13 01 00 00 00 00 00 27 [10:47:55]Write i2c OK [10:47:55]MH_I2C_Read... [10:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:55]Read from MH i2c: E2 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 0E 00 [10:47:55]MH_I2C_Read... [10:47:55]Read from MH i2c: E2 0E 00 9E 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 BE [10:47:55]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:47:55]wFMCommunicate OK [10:47:55]SAM_PROTO_GetShiftState done [10:47:55]FM_GetShiftState done [10:47:55]req_shift_opened done [10:47:55]requested_item shift.open_date is exist - process it [10:47:55]req_shift_open_date [10:47:55]req_shift_open_date done [10:47:55]produce_requested_data done [10:47:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48858,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:47:55]process_action_free close_receipt [10:47:55]json_value_free [10:47:55]json_value_free done [10:47:55]process_json_proto returns [10:47:55]Send response to host [10:47:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48858,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:47:55]free response buf [10:47:55]execute_script done [10:47:55]execute_script returns [10:47:55]free content buf [10:47:55]Sock 7.Close socket [10:47:55]Sock 7.Thread stoped [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]accept exits with 9 [10:48:34]New connection [10:48:34]New thread 3066813796 created [10:48:34]Thread 3066670436 joined [10:48:34]Waiting for new connection... [10:48:34] Sock 9.Parse request [10:48:34]Sock 9.Check first char [10:48:34]Sock 9.First char is OK [10:48:34]request: POST /json_proto HTTP/1.0 [10:48:34]Method: POST [10:48:34]URL: /json_proto [10:48:34]Method is POST - this is cgi request [10:48:34]url: /json_proto [10:48:34]query_string will be loaded in cgi processing [10:48:34]execute_cgi json_proto POST (null) [10:48:34]execute_cgi path=json_proto method=POST [10:48:34]POST find Content-Length [10:48:34]Host: 172.17.56.67:8080 [10:48:34]Content-Length: 668 [10:48:34]Content-Type: application/json [10:48:34] [10:48:34]POST finish read [10:48:34]Found Content-Length = 668 [10:48:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 0.010, "sum" : 0.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:34]execute_script... [10:48: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)215955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 0.010, "sum" : 0.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 0.00, "payments": [ { "type": 0, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:34]POST & json_proto [10:48:34]process_json_proto [10:48:34]json parsed OK: [10:48:34]protocol is kg_v1.0 [10:48:34]action value=close_receipt [10:48:34]process_action close_receipt [10:48:34]cmd_close_receipt [10:48:34]MH_GetDate [10:48:34]Write to MH i2c: F0 00 00 9F 0C 9A [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: F0 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: F0 09 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: F0 09 00 9F 0C 00 85 DF B4 65 26 5D 9E 65 A6 [10:48:34]GetLastDocTimeStamp 1706352474 [10:48:34]current date 1706352517 [10:48:34]FM_GetShiftState [10:48:34]SAM_PROTO_GetShiftState [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 13 01 00 [10:48:34]Write to MH i2c: E2 08 00 A0 0C 80 13 01 00 00 00 00 00 29 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 0E 00 A0 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C0 [10:48:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_GetShiftState done [10:48:34]FM_GetShiftState done [10:48:34]opened in 1706313770 [10:48:34]opened+sec_in_day 1706400170 [10:48:34]quantity*price = 69 [10:48:34]sum+1 = 71 [10:48:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 0.00 Внесено: 700.00 СДАЧА: 700.00 НСП 1% : 0.01 НДС 12% : 0.07 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 39 27.01.2024 10:48 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48859 ФПД: 27030005303242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48859&fm=27030005303242&tin=02508201610067®Number=0000000000092723&sum=0 [10:48:35]StoreToDocumentArchive [10:48:35]shift 243 fd 48859 [10:48:35]save to /storage/0243/doc_00048859 [10:48:35]save last doc name /storage/0243/doc_00048859 to /storage/kkm_last_doc_name [10:48:35]save OK [10:48:35]Clear old archive folders... [10:48:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:48:35]tlvbuf is 011BA6D0 [10:48:35]SAM_PROTO_ClearQueue [10:48:35]wFMCommunicate request_size=4 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 09 00 00 [10:48:35]Write to MH i2c: E2 08 00 AD 0C 80 09 00 00 00 00 00 00 2B [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [10:48:35]RAPDU: 90 00 [10:48:35]wFMCommunicate OK [10:48:35]SAM_PROTO_ClearQueue done [10:48:35]KKMCreateOFDPacket [10:48:35]OFDProtocolAddRootSTLVToBuf [10:48:35]FM_MakeSignedData [10:48:35]FM_MakeSignedData [10:48:35]SAM_PROTO_SignData [10:48:35]wFMCommunicate request_size=4 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 0D 01 02 [10:48:35]Write to MH i2c: E2 08 00 AE 0C 80 0D 01 02 00 00 00 00 33 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [10:48:35]RAPDU: 90 00 [10:48:35]wFMCommunicate OK [10:48:35]wFMCommunicate request_size=255 [10:48:35]MH_SAM_APDU [10:48: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 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 27 00 00 00 F4 03 04 00 85 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB BE 00 00 35 04 06 00 18 95 69 DD [10:48:35]Write to MH i2c: E2 02 01 AF 0C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 27 00 00 00 F4 03 04 00 85 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB BE 00 00 35 04 06 00 18 95 69 DD 00 00 6C [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [10:48:35]RAPDU: 90 00 [10:48:35]wFMCommunicate OK [10:48:35]wFMCommunicate request_size=7 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 0D 02 02 02 47 CA [10:48:35]Write to MH i2c: E2 0A 00 B0 0C 80 0D 02 02 02 00 47 CA 00 00 4B [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 03 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [10:48:36]RAPDU: 90 00 [10:48:36]wFMCommunicate OK [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 0D 03 02 [10:48:36]Write to MH i2c: E2 08 00 B1 0C 80 0D 03 02 00 00 00 00 38 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 0B 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 0B 00 B1 0C 00 71 EB 89 28 5D A4 08 59 90 00 A8 [10:48:36]RAPDU: 71 EB 89 28 5D A4 08 59 90 00 [10:48:36]wFMCommunicate OK [10:48:36]SAM_PROTO_SignData done [10:48:36]FM_MakeSignedData done [10:48:36]CreateOFDProtocolMessage [10:48:36]wFMCommunicate request_size=4 [10:48:36]MH_SAM_APDU [10:48:36]CAPDU: 80 11 00 00 [10:48:36]Write to MH i2c: E2 08 00 B2 0C 80 11 00 00 00 00 00 00 38 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:36]Read from MH i2c: E2 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: E2 17 00 B2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 85 [10:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:48:36]wFMCommunicate OK [10:48:36]CreateOFDProtocolMessage done [10:48:36]OFDSenderStorePacket 48859 [10:48:36]StoreOFDPacket docnum=48859 [10:48:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 93 88 04 01 0D DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 27 00 00 00 F4 03 04 00 85 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB BE 00 00 35 04 06 00 18 95 69 DD 47 CA 71 EB 89 28 5D A4 08 59 [10:48:36]CheckFolder [10:48:36]dirname=/storage/ofd_packets [10:48:36]CheckFolder done [10:48:36]ProducePacketName [10:48:36]name=ofd_packets/00048859 [10:48:36]NVStorageSaveData ofd_packets/00048859 [10:48:36]File name is /storage/ofd_packets/00048859 [10:48:36]Write 298 bytes [10:48:36]NVStorageSaveData done [10:48:36]OFDSenderStorePacket done [10:48:36]KKMCreateOFDPacket done [10:48:36]NVStorageSaveData kkm_last_timestamp [10:48:36]File name is /storage/kkm_last_timestamp [10:48:36]Write 4 bytes [10:48:36]NVStorageSaveData done [10:48:36]ExternCall_PrintAddStr [10:48:36]wPrintStart [10:48:36]Write to MH i2c: 01 00 00 B3 0C BF [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 B3 0C 00 00 00 00 00 FF 0F D4 [10:48:36]RasterBufferAndPrint [10:48:36]line Счет N : (1)215955 [10:48:36]line ИНН: 02508201610067 [10:48:36]line Контрольно-Кассовый Чек [10:48:36]line ПРОДАЖА [10:48:36]line ТРК (МРК, ГНК) : 11 [10:48:36]line Товар: 2710194210 [10:48:36]line ДТ-К-5 [10:48:36]line 0.010 * 69.90 [10:48:36]line = 0.70 [10:48:36]line НДС 12% НСП 1% [10:48:36]line > о реализуемом товаре [10:48:36]line ОКРУГЛЕНИЕ: -0.70 [10:48:36]line ИТОГО: 0.00 [10:48:36]line Внесено: 700.00 [10:48:36]line СДАЧА: 700.00 [10:48:36]line НСП 1% : 0.01 [10:48:36]line НДС 12% : 0.07 [10:48:36]line Наличными: 0.00 [10:48:36]line Безнал.: 0.00 [10:48:36]line Место: АЗС № 102 "Партнер Нефть" [10:48:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:48:36]line СНО: Общий режим [10:48:36]line Чек 39 27.01.2024 10:48 [10:48:36]line Смена: 243 ФФД: 1.0 [10:48:36]line ЗНМ: 0300000040 [10:48:36]line РНМ: 0000000000092723 [10:48:36]line Версия ККМ: 001 [10:48:36]line ФМ: 0000000000875060 [10:48:36]line ФД: 48859 [10:48:36]line ФПД: 27030005303242 [10:48:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T104837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48859&fm=27030005303242&tin=02508201610067®Number=0000000000092723&sum=0 [10:48:36]OFD Sender: Processing packet 48859 [packets to send 12, broken 11] [10:48:36]ProducePacketName [10:48:36]name=ofd_packets/00048859 [10:48:36]OFD Sender: To server: pG, [10:48:36]CommunicateWithHost lk.salyk.kg:30040 [10:48:36]ConnectInit lk.salyk.kg [10:48:36]written 0, free lines is 4095 [10:48:36]Connected sock=10 [10:48:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 93 88 04 01 0D DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0A 00 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 46 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 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 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 27 00 00 00 F4 03 04 00 85 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB BE 00 00 35 04 06 00 18 95 69 DD 47 CA 71 EB 89 28 5D A4 08 59 [10:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 41 A0 47 00 31 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 35 30 36 30 10 04 04 00 DB BE 00 00 F4 03 04 00 84 8B B4 65 B6 04 01 00 00 C1 F5 19 5C A8 AE 25 70 [10:48:36]CommunicateWithHost err = 0 [10:48:36]CheckOFDResponse [10:48:36]1017 (14) - 77093643461234 [10:48:36]1041 (16) - 0000000000875060 [10:48:36]1040 (4) - 48859 [10:48:36]1012 (4) - 27.01.2024 04:50 [10:48:36]1206 (1) - 0 [10:48:36]OFD Sender: Remove packet 48859 [10:48:36]ProducePacketName [10:48:36]name=ofd_packets/00048859 [10:48:36]NVStorageDeleteData [10:48:36]Write to MH i2c: 01 00 00 DE 0C EA [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 DE 0C 00 00 00 00 00 F6 0C F3 [10:48:36]RasterBufferAndPrint [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]written 0, free lines is 3324 [10:48:36]MH_Cut [10:48:36]Write to MH i2c: D1 01 00 E5 0C 01 C3 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 01 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 01 00 E5 0C 00 C2 [10:48:36]Write to MH i2c: 01 00 00 E6 0C F2 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:37]OFD Sender: No OFD packet to send [10:48:37]*** Cut start [10:48:37]*** Partial cut [10:48:37]*** CUTSNS_PIN = 1 [10:48:37]*** CUTSNS_PIN = 0 [10:48:37]*** Brake cut motor [10:48:38]Read from MH i2c: 01 [10:48:38]MH_I2C_Read... [10:48:38]*** Stop cut motor [10:48:38]*** Cut end [10:48:38]Read from MH i2c: 01 07 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: 01 07 00 E6 0C 00 00 00 00 00 FF 0F 07 [10:48:38]process_action close_receipt done [10:48:38]requested_data is exist [10:48:38]produce_requested_data [10:48:38]requested_item fm.sn is exist - process it [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 11 00 00 [10:48:38]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 17 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BA [10:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:48:38]wFMCommunicate OK [10:48:38]requested_item fd.num is exist - process it [10:48:38]SAM_PROTO_GetFieldsCounters [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 13 00 00 [10:48:38]Write to MH i2c: E2 08 00 E8 0C 80 13 00 00 00 00 00 00 70 [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 62 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 62 00 E8 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DB BE 00 00 0E 04 04 00 F3 00 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 8A [10:48: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:38]wFMCommunicate OK [10:48:38]SAM_PROTO_GetFieldsCounters done [10:48:38]requested_item shift.num is exist - process it [10:48:38]requested_item shift.opened is exist - process it [10:48:38]req_shift_opened [10:48:38]FM_GetShiftState [10:48:38]SAM_PROTO_GetShiftState [10:48:38]wFMCommunicate request_size=4 [10:48:38]MH_SAM_APDU [10:48:38]CAPDU: 80 13 01 00 [10:48:38]Write to MH i2c: E2 08 00 E9 0C 80 13 01 00 00 00 00 00 72 [10:48:38]Write i2c OK [10:48:38]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 0E 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 0E 00 E9 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 09 [10:48:38]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:48:38]wFMCommunicate OK [10:48:38]SAM_PROTO_GetShiftState done [10:48:38]FM_GetShiftState done [10:48:38]req_shift_opened done [10:48:38]requested_item shift.open_date is exist - process it [10:48:38]req_shift_open_date [10:48:38]req_shift_open_date done [10:48:38]produce_requested_data done [10:48:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48859,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:48:38]process_action_free close_receipt [10:48:38]json_value_free [10:48:38]json_value_free done [10:48:38]process_json_proto returns [10:48:38]Send response to host [10:48:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48859,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:48:38]free response buf [10:48:38]execute_script done [10:48:38]execute_script returns [10:48:38]free content buf [10:48:38]Sock 9.Close socket [10:48:38]Sock 9.Thread stoped [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:01]accept exits with 7 [10:50:01]New connection [10:50:01]New thread 3066670436 created [10:50:01]Thread 3066813796 joined [10:50:01]Waiting for new connection... [10:50:01] Sock 7.Parse request [10:50:01]Sock 7.Check first char [10:50:01]Sock 7.First char is OK [10:50:01]request: POST /json_proto HTTP/1.0 [10:50:01]Method: POST [10:50:01]URL: /json_proto [10:50:01]Method is POST - this is cgi request [10:50:01]url: /json_proto [10:50:01]query_string will be loaded in cgi processing [10:50:01]execute_cgi json_proto POST (null) [10:50:01]execute_cgi path=json_proto method=POST [10:50:02]POST find Content-Length [10:50:02]Host: 172.17.56.67:8080 [10:50:02]Content-Length: 677 [10:50:02]Content-Type: application/json [10:50:02] [10:50:02]POST finish read [10:50:02]Found Content-Length = 677 [10:50:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.310, "sum" : 320.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:02]execute_script... [10:50: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)215958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.310, "sum" : 320.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:02]POST & json_proto [10:50:02]process_json_proto [10:50:02]json parsed OK: [10:50:02]protocol is kg_v1.0 [10:50:02]action value=close_receipt [10:50:02]process_action close_receipt [10:50:02]cmd_close_receipt [10:50:02]MH_GetDate [10:50:02]Write to MH i2c: F0 00 00 EA 0C E5 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 09 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: F0 09 00 EA 0C 00 DC DF B4 65 26 5D 9E 65 48 [10:50:02]GetLastDocTimeStamp 1706352517 [10:50:02]current date 1706352604 [10:50:02]FM_GetShiftState [10:50:02]SAM_PROTO_GetShiftState [10:50:02]wFMCommunicate request_size=4 [10:50:02]MH_SAM_APDU [10:50:02]CAPDU: 80 13 01 00 [10:50:02]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [10:50:02]Write i2c OK [10:50:02]MH_I2C_Read... [10:50:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:02]Read from MH i2c: E2 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 0E 00 [10:50:02]MH_I2C_Read... [10:50:02]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 0B [10:50:02]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:50:02]wFMCommunicate OK [10:50:02]SAM_PROTO_GetShiftState done [10:50:02]FM_GetShiftState done [10:50:02]opened in 1706313770 [10:50:02]opened+sec_in_day 1706400170 [10:50:02]quantity*price = 32019 [10:50:02]sum+1 = 32020 [10:50:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 40 27.01.2024 10:50 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48860 ФПД: 166647447839387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48860&fm=166647447839387&tin=02508201610067®Number=0000000000092723&sum=32000 [10:50:03]StoreToDocumentArchive [10:50:03]shift 243 fd 48860 [10:50:03]save to /storage/0243/doc_00048860 [10:50:03]save last doc name /storage/0243/doc_00048860 to /storage/kkm_last_doc_name [10:50:03]save OK [10:50:03]Clear old archive folders... [10:50:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:03]tlvbuf is 01345C20 [10:50:03]SAM_PROTO_ClearQueue [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 09 00 00 [10:50:03]Write to MH i2c: E2 08 00 F8 0C 80 09 00 00 00 00 00 00 76 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_ClearQueue done [10:50:03]KKMCreateOFDPacket [10:50:03]OFDProtocolAddRootSTLVToBuf [10:50:03]FM_MakeSignedData [10:50:03]FM_MakeSignedData [10:50:03]SAM_PROTO_SignData [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 01 02 [10:50:03]Write to MH i2c: E2 08 00 F9 0C 80 0D 01 02 00 00 00 00 7E [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=255 [10:50:03]MH_SAM_APDU [10:50: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 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 DD DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BE 00 00 35 04 06 00 97 [10:50:03]Write to MH i2c: E2 02 01 FA 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 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 DD DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BE 00 00 35 04 06 00 97 00 00 13 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=10 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 02 02 05 90 A1 EE 62 9B [10:50:03]Write to MH i2c: E2 0D 00 FB 0C 80 0D 02 02 05 00 90 A1 EE 62 9B 00 00 A7 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [10:50:03]RAPDU: 90 00 [10:50:03]wFMCommunicate OK [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 0D 03 02 [10:50:03]Write to MH i2c: E2 08 00 FC 0C 80 0D 03 02 00 00 00 00 83 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0B 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 0B 00 FC 0C 00 00 67 6C E3 6A 94 E2 AB 90 00 C5 [10:50:03]RAPDU: 00 67 6C E3 6A 94 E2 AB 90 00 [10:50:03]wFMCommunicate OK [10:50:03]SAM_PROTO_SignData done [10:50:03]FM_MakeSignedData done [10:50:03]CreateOFDProtocolMessage [10:50:03]wFMCommunicate request_size=4 [10:50:03]MH_SAM_APDU [10:50:03]CAPDU: 80 11 00 00 [10:50:03]Write to MH i2c: E2 08 00 FD 0C 80 11 00 00 00 00 00 00 83 [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:03]Read from MH i2c: E2 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: E2 17 00 FD 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D0 [10:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:50:03]wFMCommunicate OK [10:50:03]CreateOFDProtocolMessage done [10:50:03]OFDSenderStorePacket 48860 [10:50:03]StoreOFDPacket docnum=48860 [10:50:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 84 9A 07 01 30 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 DD DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BE 00 00 35 04 06 00 97 90 A1 EE 62 9B 00 67 6C E3 6A 94 E2 AB [10:50:03]CheckFolder [10:50:03]dirname=/storage/ofd_packets [10:50:03]CheckFolder done [10:50:03]ProducePacketName [10:50:03]name=ofd_packets/00048860 [10:50:03]NVStorageSaveData ofd_packets/00048860 [10:50:03]File name is /storage/ofd_packets/00048860 [10:50:03]Write 301 bytes [10:50:03]NVStorageSaveData done [10:50:03]OFDSenderStorePacket done [10:50:03]KKMCreateOFDPacket done [10:50:03]NVStorageSaveData kkm_last_timestamp [10:50:03]File name is /storage/kkm_last_timestamp [10:50:03]Write 4 bytes [10:50:03]NVStorageSaveData done [10:50:03]ExternCall_PrintAddStr [10:50:03]wPrintStart [10:50:03]Write to MH i2c: 01 00 00 FE 0C 0A [10:50:03]Write i2c OK [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 [10:50:03]MH_I2C_Read... [10:50:03]Read from MH i2c: 01 07 00 FE 0C 00 00 00 00 00 FF 0F 1F [10:50:03]RasterBufferAndPrint [10:50:03]line Счет N : (1)215958 [10:50:03]line ИНН: 02508201610067 [10:50:03]line Контрольно-Кассовый Чек [10:50:03]line ПРОДАЖА [10:50:03]line ТРК (МРК, ГНК) : 22 [10:50:03]line Товар: 2710124130 [10:50:03]line Аи-92-К-5 [10:50:03]line 5.310 * 60.30 [10:50:03]line = 320.19 [10:50:03]line НДС 12% НСП 1% [10:50:03]line > о реализуемом товаре [10:50:03]line ОКРУГЛЕНИЕ: -0.19 [10:50:03]line ИТОГО: 320.00 [10:50:03]line Внесено: 320.00 [10:50:03]line СДАЧА: 0.00 [10:50:03]line НСП 1% : 2.83 [10:50:03]line НДС 12% : 34.00 [10:50:03]line Наличными: 320.00 [10:50:03]line Безнал.: 0.00 [10:50:03]line Место: АЗС № 102 "Партнер Нефть" [10:50:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:50:03]line СНО: Общий режим [10:50:03]line Чек 40 27.01.2024 10:50 [10:50:03]line Смена: 243 ФФД: 1.0 [10:50:03]line ЗНМ: 0300000040 [10:50:03]line РНМ: 0000000000092723 [10:50:03]line Версия ККМ: 001 [10:50:03]line ФМ: 0000000000875060 [10:50:03]line ФД: 48860 [10:50:03]line ФПД: 166647447839387 [10:50:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48860&fm=166647447839387&tin=02508201610067®Number=0000000000092723&sum=32000 [10:50:03]written 0, free lines is 4095 [10:50:03]OFD Sender: Processing packet 48860 [packets to send 12, broken 11] [10:50:03]ProducePacketName [10:50:03]name=ofd_packets/00048860 [10:50:03]OFD Sender: To server: pG, [10:50:03]CommunicateWithHost lk.salyk.kg:30040 [10:50:03]ConnectInit lk.salyk.kg [10:50:03]Connected sock=10 [10:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 84 9A 07 01 30 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 DD DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BE 00 00 35 04 06 00 97 90 A1 EE 62 9B 00 67 6C E3 6A 94 E2 AB [10:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 30 77 47 00 14 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BE 00 00 F4 03 04 00 DB 8B B4 65 B6 04 01 00 00 65 28 4C 88 7D E1 9A D1 [10:50:03]CommunicateWithHost err = 0 [10:50:03]CheckOFDResponse [10:50:03]1017 (14) - 77093643461234 [10:50:03]1041 (16) - 0000000000875060 [10:50:03]1040 (4) - 48860 [10:50:03]1012 (4) - 27.01.2024 04:51 [10:50:03]1206 (1) - 0 [10:50:04]OFD Sender: Remove packet 48860 [10:50:04]ProducePacketName [10:50:04]name=ofd_packets/00048860 [10:50:04]NVStorageDeleteData [10:50:04]Write to MH i2c: 01 00 00 29 0D 36 [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: 01 07 00 29 0D 00 00 00 00 00 FB 0C 44 [10:50:04]RasterBufferAndPrint [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]line [10:50:04]written 0, free lines is 3330 [10:50:04]MH_Cut [10:50:04]Write to MH i2c: D1 01 00 30 0D 01 0F [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 01 00 [10:50:04]MH_I2C_Read... [10:50:04]Read from MH i2c: D1 01 00 30 0D 00 0E [10:50:04]Write to MH i2c: 01 00 00 31 0D 3E [10:50:04]Write i2c OK [10:50:04]MH_I2C_Read... [10:50:04]OFD Sender: No OFD packet to send [10:50:04]*** Cut start [10:50:04]*** Partial cut [10:50:04]*** CUTSNS_PIN = 1 [10:50:04]*** CUTSNS_PIN = 0 [10:50:05]*** Brake cut motor [10:50:05]Read from MH i2c: 01 [10:50:05]MH_I2C_Read... [10:50:05]*** Stop cut motor [10:50:05]*** Cut end [10:50:05]Read from MH i2c: 01 07 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: 01 07 00 31 0D 00 00 00 00 00 FF 0F 53 [10:50:05]process_action close_receipt done [10:50:05]requested_data is exist [10:50:05]produce_requested_data [10:50:05]requested_item fm.sn is exist - process it [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 11 00 00 [10:50:05]Write to MH i2c: E2 08 00 32 0D 80 11 00 00 00 00 00 00 B9 [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 17 00 [10:50:05]MH_I2C_Read... [10:50:05]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 35 30 36 30 90 00 06 [10:50:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:50:05]wFMCommunicate OK [10:50:05]requested_item fd.num is exist - process it [10:50:05]SAM_PROTO_GetFieldsCounters [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 13 00 00 [10:50:05]Write to MH i2c: E2 08 00 33 0D 80 13 00 00 00 00 00 00 BC [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 62 00 [10:50:05]MH_I2C_Read... [10:50:05]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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DC BE 00 00 0E 04 04 00 F3 00 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 DA [10:50: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DC BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_GetFieldsCounters done [10:50:05]requested_item shift.num is exist - process it [10:50:05]requested_item shift.opened is exist - process it [10:50:05]req_shift_opened [10:50:05]FM_GetShiftState [10:50:05]SAM_PROTO_GetShiftState [10:50:05]wFMCommunicate request_size=4 [10:50:05]MH_SAM_APDU [10:50:05]CAPDU: 80 13 01 00 [10:50:05]Write to MH i2c: E2 08 00 34 0D 80 13 01 00 00 00 00 00 BE [10:50:05]Write i2c OK [10:50:05]MH_I2C_Read... [10:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:05]Read from MH i2c: E2 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 [10:50:05]MH_I2C_Read... [10:50:05]Read from MH i2c: E2 0E 00 34 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 55 [10:50:05]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:50:05]wFMCommunicate OK [10:50:05]SAM_PROTO_GetShiftState done [10:50:05]FM_GetShiftState done [10:50:05]req_shift_opened done [10:50:05]requested_item shift.open_date is exist - process it [10:50:05]req_shift_open_date [10:50:05]req_shift_open_date done [10:50:05]produce_requested_data done [10:50:05]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48860,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:50:05]process_action_free close_receipt [10:50:05]json_value_free [10:50:05]json_value_free done [10:50:05]process_json_proto returns [10:50:05]Send response to host [10:50:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48860,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:50:05]free response buf [10:50:05]execute_script done [10:50:05]execute_script returns [10:50:05]free content buf [10:50:05]Sock 7.Close socket [10:50:05]Sock 7.Thread stoped [10:50:09]OFD Sender: No OFD packet to send [10:50:11]accept exits with 9 [10:50:11]New connection [10:50:11]New thread 3066813796 created [10:50:11]Thread 3066670436 joined [10:50:11]Waiting for new connection... [10:50:11] Sock 9.Parse request [10:50:11]Sock 9.Check first char [10:50:11]Sock 9.First char is OK [10:50:11]request: POST /json_proto HTTP/1.0 [10:50:11]Method: POST [10:50:11]URL: /json_proto [10:50:11]Method is POST - this is cgi request [10:50:11]url: /json_proto [10:50:11]query_string will be loaded in cgi processing [10:50:11]execute_cgi json_proto POST (null) [10:50:11]execute_cgi path=json_proto method=POST [10:50:11]POST find Content-Length [10:50:11]Host: 172.17.56.67:8080 [10:50:11]Content-Length: 674 [10:50:11]Content-Type: application/json [10:50:11] [10:50:11]POST finish read [10:50:11]Found Content-Length = 674 [10:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.910, "sum" : 622.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 622.00, "payments": [ { "type": 0, "sum" : 622.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:11]execute_script... [10:50:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 8.910, "sum" : 622.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 622.00, "payments": [ { "type": 0, "sum" : 622.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:11]POST & json_proto [10:50:11]process_json_proto [10:50:11]json parsed OK: [10:50:11]protocol is kg_v1.0 [10:50:11]action value=close_receipt [10:50:11]process_action close_receipt [10:50:11]cmd_close_receipt [10:50:11]MH_GetDate [10:50:11]Write to MH i2c: F0 00 00 35 0D 31 [10:50:11]Write i2c OK [10:50:11]MH_I2C_Read... [10:50:11]Read from MH i2c: F0 [10:50:11]MH_I2C_Read... [10:50:11]Read from MH i2c: F0 09 00 [10:50:11]MH_I2C_Read... [10:50:11]Read from MH i2c: F0 09 00 35 0D 00 E6 DF B4 65 26 5D 9E 65 9E [10:50:11]GetLastDocTimeStamp 1706352605 [10:50:11]current date 1706352614 [10:50:11]FM_GetShiftState [10:50:11]SAM_PROTO_GetShiftState [10:50:11]wFMCommunicate request_size=4 [10:50:11]MH_SAM_APDU [10:50:11]CAPDU: 80 13 01 00 [10:50:11]Write to MH i2c: E2 08 00 36 0D 80 13 01 00 00 00 00 00 C0 [10:50:11]Write i2c OK [10:50:11]MH_I2C_Read... [10:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:11]Read from MH i2c: E2 [10:50:11]MH_I2C_Read... [10:50:11]Read from MH i2c: E2 0E 00 [10:50:11]MH_I2C_Read... [10:50:11]Read from MH i2c: E2 0E 00 36 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 57 [10:50:11]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:50:11]wFMCommunicate OK [10:50:11]SAM_PROTO_GetShiftState done [10:50:11]FM_GetShiftState done [10:50:11]opened in 1706313770 [10:50:11]opened+sec_in_day 1706400170 [10:50:11]quantity*price = 62280 [10:50:11]sum+1 = 62282 [10:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 622.00 Внесено: 700.00 СДАЧА: 78.00 НСП 1% : 5.51 НДС 12% : 66.14 Наличными: 622.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 41 27.01.2024 10:50 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48861 ФПД: 152673969954561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105014&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48861&fm=152673969954561&tin=02508201610067®Number=0000000000092723&sum=62200 [10:50:12]StoreToDocumentArchive [10:50:12]shift 243 fd 48861 [10:50:12]save to /storage/0243/doc_00048861 [10:50:12]save last doc name /storage/0243/doc_00048861 to /storage/kkm_last_doc_name [10:50:12]save OK [10:50:12]Clear old archive folders... [10:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:50:12]tlvbuf is 01197380 [10:50:12]SAM_PROTO_ClearQueue [10:50:12]wFMCommunicate request_size=4 [10:50:12]MH_SAM_APDU [10:50:12]CAPDU: 80 09 00 00 [10:50:12]Write to MH i2c: E2 08 00 43 0D 80 09 00 00 00 00 00 00 C2 [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [10:50:12]RAPDU: 90 00 [10:50:12]wFMCommunicate OK [10:50:12]SAM_PROTO_ClearQueue done [10:50:12]KKMCreateOFDPacket [10:50:12]OFDProtocolAddRootSTLVToBuf [10:50:12]FM_MakeSignedData [10:50:12]FM_MakeSignedData [10:50:12]SAM_PROTO_SignData [10:50:12]wFMCommunicate request_size=4 [10:50:12]MH_SAM_APDU [10:50:12]CAPDU: 80 0D 01 02 [10:50:12]Write to MH i2c: E2 08 00 44 0D 80 0D 01 02 00 00 00 00 CA [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [10:50:12]RAPDU: 90 00 [10:50:12]wFMCommunicate OK [10:50:12]wFMCommunicate request_size=255 [10:50:12]MH_SAM_APDU [10:50: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 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 49 F3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 19 00 00 00 00 07 04 06 00 F8 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E6 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD BE 00 00 35 04 06 00 8A DB 2D BE [10:50:12]Write to MH i2c: E2 02 01 45 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 CE 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 49 F3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 19 00 00 00 00 07 04 06 00 F8 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E6 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD BE 00 00 35 04 06 00 8A DB 2D BE 00 00 85 [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [10:50:12]RAPDU: 90 00 [10:50:12]wFMCommunicate OK [10:50:12]wFMCommunicate request_size=7 [10:50:12]MH_SAM_APDU [10:50:12]CAPDU: 80 0D 02 02 02 DF 01 [10:50:12]Write to MH i2c: E2 0A 00 46 0D 80 0D 02 02 02 00 DF 01 00 00 B1 [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [10:50:12]RAPDU: 90 00 [10:50:12]wFMCommunicate OK [10:50:12]wFMCommunicate request_size=4 [10:50:12]MH_SAM_APDU [10:50:12]CAPDU: 80 0D 03 02 [10:50:12]Write to MH i2c: E2 08 00 47 0D 80 0D 03 02 00 00 00 00 CF [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 0B 00 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 0B 00 47 0D 00 FE F3 A8 C7 C9 87 94 7C 90 00 90 [10:50:12]RAPDU: FE F3 A8 C7 C9 87 94 7C 90 00 [10:50:12]wFMCommunicate OK [10:50:12]SAM_PROTO_SignData done [10:50:12]FM_MakeSignedData done [10:50:12]CreateOFDProtocolMessage [10:50:12]wFMCommunicate request_size=4 [10:50:12]MH_SAM_APDU [10:50:12]CAPDU: 80 11 00 00 [10:50:12]Write to MH i2c: E2 08 00 48 0D 80 11 00 00 00 00 00 00 CF [10:50:12]Write i2c OK [10:50:12]MH_I2C_Read... [10:50:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:12]Read from MH i2c: E2 [10:50:12]MH_I2C_Read... [10:50:12]Read from MH i2c: E2 17 00 [10:50:12]MH_I2C_Read... [10:50:12]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 35 30 36 30 90 00 1C [10:50:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:50:12]wFMCommunicate OK [10:50:12]CreateOFDProtocolMessage done [10:50:12]OFDSenderStorePacket 48861 [10:50:12]StoreOFDPacket docnum=48861 [10:50:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 17 7E 04 01 BD 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 49 F3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 19 00 00 00 00 07 04 06 00 F8 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E6 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD BE 00 00 35 04 06 00 8A DB 2D BE DF 01 FE F3 A8 C7 C9 87 94 7C [10:50:12]CheckFolder [10:50:12]dirname=/storage/ofd_packets [10:50:12]CheckFolder done [10:50:12]ProducePacketName [10:50:12]name=ofd_packets/00048861 [10:50:12]NVStorageSaveData ofd_packets/00048861 [10:50:12]File name is /storage/ofd_packets/00048861 [10:50:12]Write 298 bytes [10:50:12]NVStorageSaveData done [10:50:12]OFDSenderStorePacket done [10:50:12]KKMCreateOFDPacket done [10:50:12]NVStorageSaveData kkm_last_timestamp [10:50:12]File name is /storage/kkm_last_timestamp [10:50:13]Write 4 bytes [10:50:13]NVStorageSaveData done [10:50:13]ExternCall_PrintAddStr [10:50:13]wPrintStart [10:50:13]Write to MH i2c: 01 00 00 49 0D 56 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 07 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 07 00 49 0D 00 00 00 00 00 FF 0F 6B [10:50:13]RasterBufferAndPrint [10:50:13]line Счет N : (1)215957 [10:50:13]line ИНН: 02508201610067 [10:50:13]line Контрольно-Кассовый Чек [10:50:13]line ПРОДАЖА [10:50:13]line ТРК (МРК, ГНК) : 11 [10:50:13]line Товар: 2710194210 [10:50:13]line ДТ-К-5 [10:50:13]line 8.910 * 69.90 [10:50:13]line = 622.81 [10:50:13]line НДС 12% НСП 1% [10:50:13]line > о реализуемом товаре [10:50:13]line ОКРУГЛЕНИЕ: -0.81 [10:50:13]line ИТОГО: 622.00 [10:50:13]line Внесено: 700.00 [10:50:13]line СДАЧА: 78.00 [10:50:13]line НСП 1% : 5.51 [10:50:13]line НДС 12% : 66.14 [10:50:13]line Наличными: 622.00 [10:50:13]line Безнал.: 0.00 [10:50:13]line Место: АЗС № 102 "Партнер Нефть" [10:50:13]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:50:13]line СНО: Общий режим [10:50:13]line Чек 41 27.01.2024 10:50 [10:50:13]line Смена: 243 ФФД: 1.0 [10:50:13]line ЗНМ: 0300000040 [10:50:13]line РНМ: 0000000000092723 [10:50:13]line Версия ККМ: 001 [10:50:13]line ФМ: 0000000000875060 [10:50:13]line ФД: 48861 [10:50:13]line ФПД: 152673969954561 [10:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105014&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48861&fm=152673969954561&tin=02508201610067®Number=0000000000092723&sum=62200 [10:50:13]written 0, free lines is 4095 [10:50:13]OFD Sender: Processing packet 48861 [packets to send 12, broken 11] [10:50:13]ProducePacketName [10:50:13]name=ofd_packets/00048861 [10:50:13]OFD Sender: To server: pG, [10:50:13]CommunicateWithHost lk.salyk.kg:30040 [10:50:13]ConnectInit lk.salyk.kg [10:50:13]Connected sock=10 [10:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 17 7E 04 01 BD 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 49 F3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 19 00 00 00 00 07 04 06 00 F8 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E6 DF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD BE 00 00 35 04 06 00 8A DB 2D BE DF 01 FE F3 A8 C7 C9 87 94 7C [10:50:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 16 98 47 00 C1 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD BE 00 00 F4 03 04 00 E4 8B B4 65 B6 04 01 00 00 55 8B C4 CA 47 78 3D 38 [10:50:13]CommunicateWithHost err = 0 [10:50:13]CheckOFDResponse [10:50:13]1017 (14) - 77093643461234 [10:50:13]1041 (16) - 0000000000875060 [10:50:13]1040 (4) - 48861 [10:50:13]1012 (4) - 27.01.2024 04:51 [10:50:13]1206 (1) - 0 [10:50:13]OFD Sender: Remove packet 48861 [10:50:13]ProducePacketName [10:50:13]name=ofd_packets/00048861 [10:50:13]NVStorageDeleteData [10:50:13]Write to MH i2c: 01 00 00 74 0D 81 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 07 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: 01 07 00 74 0D 00 00 00 00 00 02 0D 97 [10:50:13]RasterBufferAndPrint [10:50:13]line [10:50:13]line [10:50:13]line [10:50:13]line [10:50:13]line [10:50:13]written 0, free lines is 3339 [10:50:13]MH_Cut [10:50:13]Write to MH i2c: D1 01 00 7B 0D 01 5A [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: D1 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: D1 01 00 [10:50:13]MH_I2C_Read... [10:50:13]Read from MH i2c: D1 01 00 7B 0D 00 59 [10:50:13]Write to MH i2c: 01 00 00 7C 0D 89 [10:50:13]Write i2c OK [10:50:13]MH_I2C_Read... [10:50:13]OFD Sender: No OFD packet to send [10:50:14]*** Cut start [10:50:14]*** Partial cut [10:50:14]*** CUTSNS_PIN = 1 [10:50:14]*** CUTSNS_PIN = 0 [10:50:14]*** Brake cut motor [10:50:14]Read from MH i2c: 01 [10:50:14]MH_I2C_Read... [10:50:14]*** Stop cut motor [10:50:14]*** Cut end [10:50:14]Read from MH i2c: 01 07 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [10:50:14]process_action close_receipt done [10:50:14]requested_data is exist [10:50:14]produce_requested_data [10:50:14]requested_item fm.sn is exist - process it [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 11 00 00 [10:50:14]Write to MH i2c: E2 08 00 7D 0D 80 11 00 00 00 00 00 00 04 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 17 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 17 00 7D 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 51 [10:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:50:14]wFMCommunicate OK [10:50:14]requested_item fd.num is exist - process it [10:50:14]SAM_PROTO_GetFieldsCounters [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 13 00 00 [10:50:14]Write to MH i2c: E2 08 00 7E 0D 80 13 00 00 00 00 00 00 07 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 62 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 62 00 7E 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DD BE 00 00 0E 04 04 00 F3 00 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 29 [10:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DD BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_GetFieldsCounters done [10:50:14]requested_item shift.num is exist - process it [10:50:14]requested_item shift.opened is exist - process it [10:50:14]req_shift_opened [10:50:14]FM_GetShiftState [10:50:14]SAM_PROTO_GetShiftState [10:50:14]wFMCommunicate request_size=4 [10:50:14]MH_SAM_APDU [10:50:14]CAPDU: 80 13 01 00 [10:50:14]Write to MH i2c: E2 08 00 7F 0D 80 13 01 00 00 00 00 00 09 [10:50:14]Write i2c OK [10:50:14]MH_I2C_Read... [10:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:14]Read from MH i2c: E2 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0E 00 [10:50:14]MH_I2C_Read... [10:50:14]Read from MH i2c: E2 0E 00 7F 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A0 [10:50:14]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:50:14]wFMCommunicate OK [10:50:14]SAM_PROTO_GetShiftState done [10:50:14]FM_GetShiftState done [10:50:14]req_shift_opened done [10:50:14]requested_item shift.open_date is exist - process it [10:50:14]req_shift_open_date [10:50:14]req_shift_open_date done [10:50:14]produce_requested_data done [10:50:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48861,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:50:14]process_action_free close_receipt [10:50:14]json_value_free [10:50:14]json_value_free done [10:50:14]process_json_proto returns [10:50:14]Send response to host [10:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48861,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:50:14]free response buf [10:50:14]execute_script done [10:50:14]execute_script returns [10:50:14]free content buf [10:50:14]Sock 9.Close socket [10:50:14]Sock 9.Thread stoped [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:48]OFD Sender: No OFD packet to send [10:50:53]OFD Sender: No OFD packet to send [10:50:58]OFD Sender: No OFD packet to send [10:51:03]OFD Sender: No OFD packet to send [10:51:08]OFD Sender: No OFD packet to send [10:51:13]OFD Sender: No OFD packet to send [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:52]accept exits with 7 [10:52:52]New connection [10:52:52]New thread 3066670436 created [10:52:52]Thread 3066813796 joined [10:52:52]Waiting for new connection... [10:52:52] Sock 7.Parse request [10:52:52]Sock 7.Check first char [10:52:52]Sock 7.First char is OK [10:52:52]request: POST /json_proto HTTP/1.0 [10:52:52]Method: POST [10:52:52]URL: /json_proto [10:52:52]Method is POST - this is cgi request [10:52:52]url: /json_proto [10:52:52]query_string will be loaded in cgi processing [10:52:52]execute_cgi json_proto POST (null) [10:52:52]execute_cgi path=json_proto method=POST [10:52:52]POST find Content-Length [10:52:52]Host: 172.17.56.67:8080 [10:52:52]Content-Length: 675 [10:52:52]Content-Type: application/json [10:52:52] [10:52:52]POST finish read [10:52:52]Found Content-Length = 675 [10:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 12.880, "sum" : 900.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:52]execute_script... [10:52: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)215959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 12.880, "sum" : 900.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:52]POST & json_proto [10:52:52]process_json_proto [10:52:52]json parsed OK: [10:52:52]protocol is kg_v1.0 [10:52:52]action value=close_receipt [10:52:52]process_action close_receipt [10:52:52]cmd_close_receipt [10:52:52]MH_GetDate [10:52:52]Write to MH i2c: F0 00 00 80 0D 7C [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: F0 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: F0 09 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: F0 09 00 80 0D 00 87 E0 B4 65 26 5D 9E 65 8B [10:52:52]GetLastDocTimeStamp 1706352614 [10:52:52]current date 1706352775 [10:52:52]FM_GetShiftState [10:52:52]SAM_PROTO_GetShiftState [10:52:52]wFMCommunicate request_size=4 [10:52:52]MH_SAM_APDU [10:52:52]CAPDU: 80 13 01 00 [10:52:52]Write to MH i2c: E2 08 00 81 0D 80 13 01 00 00 00 00 00 0B [10:52:52]Write i2c OK [10:52:52]MH_I2C_Read... [10:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:52]Read from MH i2c: E2 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0E 00 [10:52:52]MH_I2C_Read... [10:52:52]Read from MH i2c: E2 0E 00 81 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A2 [10:52:52]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:52:52]wFMCommunicate OK [10:52:52]SAM_PROTO_GetShiftState done [10:52:52]FM_GetShiftState done [10:52:52]opened in 1706313770 [10:52:52]opened+sec_in_day 1706400170 [10:52:52]quantity*price = 90031 [10:52:52]sum+1 = 90032 [10:52:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.61 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 42 27.01.2024 10:52 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48862 ФПД: 90949425963778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105255&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48862&fm=90949425963778&tin=02508201610067®Number=0000000000092723&sum=90000 [10:52:53]StoreToDocumentArchive [10:52:53]shift 243 fd 48862 [10:52:53]save to /storage/0243/doc_00048862 [10:52:53]save last doc name /storage/0243/doc_00048862 to /storage/kkm_last_doc_name [10:52:53]save OK [10:52:53]Clear old archive folders... [10:52:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:53]tlvbuf is 01345B90 [10:52:53]SAM_PROTO_ClearQueue [10:52:53]wFMCommunicate request_size=4 [10:52:53]MH_SAM_APDU [10:52:53]CAPDU: 80 09 00 00 [10:52:53]Write to MH i2c: E2 08 00 8E 0D 80 09 00 00 00 00 00 00 0D [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:53]Read from MH i2c: E2 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 03 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [10:52:53]RAPDU: 90 00 [10:52:53]wFMCommunicate OK [10:52:53]SAM_PROTO_ClearQueue done [10:52:53]KKMCreateOFDPacket [10:52:53]OFDProtocolAddRootSTLVToBuf [10:52:53]FM_MakeSignedData [10:52:53]FM_MakeSignedData [10:52:53]SAM_PROTO_SignData [10:52:53]wFMCommunicate request_size=4 [10:52:53]MH_SAM_APDU [10:52:53]CAPDU: 80 0D 01 02 [10:52:53]Write to MH i2c: E2 08 00 8F 0D 80 0D 01 02 00 00 00 00 15 [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:53]Read from MH i2c: E2 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 03 00 [10:52:53]MH_I2C_Read... [10:52:53]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [10:52:53]RAPDU: 90 00 [10:52:53]wFMCommunicate OK [10:52:53]wFMCommunicate request_size=255 [10:52:53]MH_SAM_APDU [10:52:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 32 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 E0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE BE 00 00 35 04 06 00 52 B7 D0 3A [10:52:53]Write to MH i2c: E2 02 01 90 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 50 32 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 E0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE BE 00 00 35 04 06 00 52 B7 D0 3A 00 00 2E [10:52:53]Write i2c OK [10:52:53]MH_I2C_Read... [10:52:53]OFD Sender: No OFD packet to send [10:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 03 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [10:52:54]RAPDU: 90 00 [10:52:54]wFMCommunicate OK [10:52:54]wFMCommunicate request_size=7 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 0D 02 02 02 23 02 [10:52:54]Write to MH i2c: E2 0A 00 91 0D 80 0D 02 02 02 00 23 02 00 00 41 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 03 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [10:52:54]RAPDU: 90 00 [10:52:54]wFMCommunicate OK [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 0D 03 02 [10:52:54]Write to MH i2c: E2 08 00 92 0D 80 0D 03 02 00 00 00 00 1A [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 0B 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 0B 00 92 0D 00 21 DA 72 3C 1D 1A 0F E9 90 00 F3 [10:52:54]RAPDU: 21 DA 72 3C 1D 1A 0F E9 90 00 [10:52:54]wFMCommunicate OK [10:52:54]SAM_PROTO_SignData done [10:52:54]FM_MakeSignedData done [10:52:54]CreateOFDProtocolMessage [10:52:54]wFMCommunicate request_size=4 [10:52:54]MH_SAM_APDU [10:52:54]CAPDU: 80 11 00 00 [10:52:54]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:54]Read from MH i2c: E2 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 17 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 67 [10:52:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:52:54]wFMCommunicate OK [10:52:54]CreateOFDProtocolMessage done [10:52:54]OFDSenderStorePacket 48862 [10:52:54]StoreOFDPacket docnum=48862 [10:52:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6F 87 04 01 0A 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 32 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 E0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE BE 00 00 35 04 06 00 52 B7 D0 3A 23 02 21 DA 72 3C 1D 1A 0F E9 [10:52:54]CheckFolder [10:52:54]dirname=/storage/ofd_packets [10:52:54]CheckFolder done [10:52:54]ProducePacketName [10:52:54]name=ofd_packets/00048862 [10:52:54]NVStorageSaveData ofd_packets/00048862 [10:52:54]File name is /storage/ofd_packets/00048862 [10:52:54]Write 298 bytes [10:52:54]NVStorageSaveData done [10:52:54]OFDSenderStorePacket done [10:52:54]KKMCreateOFDPacket done [10:52:54]NVStorageSaveData kkm_last_timestamp [10:52:54]File name is /storage/kkm_last_timestamp [10:52:54]Write 4 bytes [10:52:54]NVStorageSaveData done [10:52:54]ExternCall_PrintAddStr [10:52:54]wPrintStart [10:52:54]Write to MH i2c: 01 00 00 94 0D A1 [10:52:54]Write i2c OK [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: 01 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: 01 07 00 [10:52:54]MH_I2C_Read... [10:52:54]Read from MH i2c: 01 07 00 94 0D 00 00 00 00 00 FF 0F B6 [10:52:54]RasterBufferAndPrint [10:52:54]line Счет N : (1)215959 [10:52:54]line ИНН: 02508201610067 [10:52:54]line Контрольно-Кассовый Чек [10:52:54]line ПРОДАЖА [10:52:54]line ТРК (МРК, ГНК) : 11 [10:52:54]line Товар: 2710194210 [10:52:54]line ДТ-К-5 [10:52:54]line 12.880 * 69.90 [10:52:54]line = 900.31 [10:52:54]line НДС 12% НСП 1% [10:52:54]line > о реализуемом товаре [10:52:54]line ОКРУГЛЕНИЕ: -0.31 [10:52:54]line ИТОГО: 900.00 [10:52:54]line Внесено: 900.00 [10:52:54]line СДАЧА: 0.00 [10:52:54]line НСП 1% : 7.97 [10:52:54]line НДС 12% : 95.61 [10:52:54]line Наличными: 900.00 [10:52:54]line Безнал.: 0.00 [10:52:54]line Место: АЗС № 102 "Партнер Нефть" [10:52:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:52:54]line СНО: Общий режим [10:52:54]line Чек 42 27.01.2024 10:52 [10:52:54]line Смена: 243 ФФД: 1.0 [10:52:54]line ЗНМ: 0300000040 [10:52:54]line РНМ: 0000000000092723 [10:52:54]line Версия ККМ: 001 [10:52:54]line ФМ: 0000000000875060 [10:52:54]line ФД: 48862 [10:52:54]line ФПД: 90949425963778 [10:52:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105255&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48862&fm=90949425963778&tin=02508201610067®Number=0000000000092723&sum=90000 [10:52:54]OFD Sender: Processing packet 48862 [packets to send 12, broken 11] [10:52:54]ProducePacketName [10:52:54]name=ofd_packets/00048862 [10:52:54]OFD Sender: To server: pG, [10:52:54]CommunicateWithHost lk.salyk.kg:30040 [10:52:54]ConnectInit lk.salyk.kg [10:52:54]written 0, free lines is 4095 [10:52:54]Connected sock=10 [10:52:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6F 87 04 01 0A 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 32 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 87 E0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE BE 00 00 35 04 06 00 52 B7 D0 3A 23 02 21 DA 72 3C 1D 1A 0F E9 [10:52:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F4 D9 47 00 72 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 35 30 36 30 10 04 04 00 DE BE 00 00 F4 03 04 00 86 8C B4 65 B6 04 01 00 00 AF A5 3C C9 9F 59 F7 03 [10:52:54]CommunicateWithHost err = 0 [10:52:54]CheckOFDResponse [10:52:54]1017 (14) - 77093643461234 [10:52:54]1041 (16) - 0000000000875060 [10:52:54]1040 (4) - 48862 [10:52:54]1012 (4) - 27.01.2024 04:54 [10:52:54]1206 (1) - 0 [10:52:54]OFD Sender: Remove packet 48862 [10:52:54]ProducePacketName [10:52:54]name=ofd_packets/00048862 [10:52:54]NVStorageDeleteData [10:52:54]Write to MH i2c: 01 00 00 BF 0D CC [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: 01 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: 01 07 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: 01 07 00 BF 0D 00 00 00 00 00 F5 0C D4 [10:52:55]RasterBufferAndPrint [10:52:55]line [10:52:55]line [10:52:55]line [10:52:55]line [10:52:55]line [10:52:55]written 0, free lines is 3323 [10:52:55]MH_Cut [10:52:55]Write to MH i2c: D1 01 00 C6 0D 01 A5 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: D1 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: D1 01 00 [10:52:55]MH_I2C_Read... [10:52:55]Read from MH i2c: D1 01 00 C6 0D 00 A4 [10:52:55]Write to MH i2c: 01 00 00 C7 0D D4 [10:52:55]Write i2c OK [10:52:55]MH_I2C_Read... [10:52:55]OFD Sender: No OFD packet to send [10:52:55]*** Cut start [10:52:55]*** Partial cut [10:52:55]*** CUTSNS_PIN = 1 [10:52:55]*** CUTSNS_PIN = 0 [10:52:55]*** Brake cut motor [10:52:56]Read from MH i2c: 01 [10:52:56]MH_I2C_Read... [10:52:56]*** Stop cut motor [10:52:56]*** Cut end [10:52:56]Read from MH i2c: 01 07 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [10:52:56]process_action close_receipt done [10:52:56]requested_data is exist [10:52:56]produce_requested_data [10:52:56]requested_item fm.sn is exist - process it [10:52:56]wFMCommunicate request_size=4 [10:52:56]MH_SAM_APDU [10:52:56]CAPDU: 80 11 00 00 [10:52:56]Write to MH i2c: E2 08 00 C8 0D 80 11 00 00 00 00 00 00 4F [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:56]Read from MH i2c: E2 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 17 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 17 00 C8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9C [10:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:52:56]wFMCommunicate OK [10:52:56]requested_item fd.num is exist - process it [10:52:56]SAM_PROTO_GetFieldsCounters [10:52:56]wFMCommunicate request_size=4 [10:52:56]MH_SAM_APDU [10:52:56]CAPDU: 80 13 00 00 [10:52:56]Write to MH i2c: E2 08 00 C9 0D 80 13 00 00 00 00 00 00 52 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:56]Read from MH i2c: E2 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 62 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 62 00 C9 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DE BE 00 00 0E 04 04 00 F3 00 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 78 [10:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DE BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:56]wFMCommunicate OK [10:52:56]SAM_PROTO_GetFieldsCounters done [10:52:56]requested_item shift.num is exist - process it [10:52:56]requested_item shift.opened is exist - process it [10:52:56]req_shift_opened [10:52:56]FM_GetShiftState [10:52:56]SAM_PROTO_GetShiftState [10:52:56]wFMCommunicate request_size=4 [10:52:56]MH_SAM_APDU [10:52:56]CAPDU: 80 13 01 00 [10:52:56]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [10:52:56]Write i2c OK [10:52:56]MH_I2C_Read... [10:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:56]Read from MH i2c: E2 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 [10:52:56]MH_I2C_Read... [10:52:56]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 EB [10:52:56]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:52:56]wFMCommunicate OK [10:52:56]SAM_PROTO_GetShiftState done [10:52:56]FM_GetShiftState done [10:52:56]req_shift_opened done [10:52:56]requested_item shift.open_date is exist - process it [10:52:56]req_shift_open_date [10:52:56]req_shift_open_date done [10:52:56]produce_requested_data done [10:52:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48862,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:52:56]process_action_free close_receipt [10:52:56]json_value_free [10:52:56]json_value_free done [10:52:56]process_json_proto returns [10:52:56]Send response to host [10:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48862,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:52:56]free response buf [10:52:56]execute_script done [10:52:56]execute_script returns [10:52:56]free content buf [10:52:56]Sock 7.Close socket [10:52:56]Sock 7.Thread stoped [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:54:59]accept exits with 9 [10:54:59]New connection [10:54:59]New thread 3066813796 created [10:54:59]Thread 3066670436 joined [10:54:59]Waiting for new connection... [10:54:59] Sock 9.Parse request [10:54:59]Sock 9.Check first char [10:54:59]Sock 9.First char is OK [10:54:59]request: POST /json_proto HTTP/1.0 [10:54:59]Method: POST [10:54:59]URL: /json_proto [10:54:59]Method is POST - this is cgi request [10:54:59]url: /json_proto [10:54:59]query_string will be loaded in cgi processing [10:54:59]execute_cgi json_proto POST (null) [10:54:59]execute_cgi path=json_proto method=POST [10:54:59]POST find Content-Length [10:54:59]Host: 172.17.56.67:8080 [10:54:59]Content-Length: 679 [10:54:59]Content-Type: application/json [10:54:59] [10:54:59]POST finish read [10:54:59]Found Content-Length = 679 [10:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [10:54:59]execute_script... [10:54: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)215960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [10:54:59]POST & json_proto [10:54:59]process_json_proto [10:54:59]json parsed OK: [10:54:59]protocol is kg_v1.0 [10:54:59]action value=close_receipt [10:54:59]process_action close_receipt [10:54:59]cmd_close_receipt [10:54:59]MH_GetDate [10:54:59]Write to MH i2c: F0 00 00 CB 0D C7 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: F0 09 00 CB 0D 00 06 E1 B4 65 26 5D 9E 65 56 [10:54:59]GetLastDocTimeStamp 1706352775 [10:54:59]current date 1706352902 [10:54:59]FM_GetShiftState [10:54:59]SAM_PROTO_GetShiftState [10:54:59]wFMCommunicate request_size=4 [10:54:59]MH_SAM_APDU [10:54:59]CAPDU: 80 13 01 00 [10:54:59]Write to MH i2c: E2 08 00 CC 0D 80 13 01 00 00 00 00 00 56 [10:54:59]Write i2c OK [10:54:59]MH_I2C_Read... [10:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:59]Read from MH i2c: E2 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 [10:54:59]MH_I2C_Read... [10:54:59]Read from MH i2c: E2 0E 00 CC 0D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 ED [10:54:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:54:59]wFMCommunicate OK [10:54:59]SAM_PROTO_GetShiftState done [10:54:59]FM_GetShiftState done [10:54:59]opened in 1706313770 [10:54:59]opened+sec_in_day 1706400170 [10:54:59]quantity*price = 150005 [10:54:59]sum+1 = 150006 [10:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 43 27.01.2024 10:55 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48863 ФПД: 168326027122029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105502&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48863&fm=168326027122029&tin=02508201610067®Number=0000000000092723&sum=150000 [10:55:00]StoreToDocumentArchive [10:55:00]shift 243 fd 48863 [10:55:00]save to /storage/0243/doc_00048863 [10:55:00]save last doc name /storage/0243/doc_00048863 to /storage/kkm_last_doc_name [10:55:00]save OK [10:55:00]Clear old archive folders... [10:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:00]tlvbuf is 0134BEF0 [10:55:00]SAM_PROTO_ClearQueue [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 09 00 00 [10:55:00]Write to MH i2c: E2 08 00 D9 0D 80 09 00 00 00 00 00 00 58 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_ClearQueue done [10:55:00]KKMCreateOFDPacket [10:55:00]OFDProtocolAddRootSTLVToBuf [10:55:00]FM_MakeSignedData [10:55:00]FM_MakeSignedData [10:55:00]SAM_PROTO_SignData [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 01 02 [10:55:00]Write to MH i2c: E2 08 00 DA 0D 80 0D 01 02 00 00 00 00 60 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=255 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 06 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF BE 00 00 35 04 06 00 99 17 75 0D [10:55:00]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 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 06 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF BE 00 00 35 04 06 00 99 17 75 0D 00 00 94 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=7 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 02 02 02 95 6D [10:55:00]Write to MH i2c: E2 0A 00 DC 0D 80 0D 02 02 02 00 95 6D 00 00 69 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [10:55:00]RAPDU: 90 00 [10:55:00]wFMCommunicate OK [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 0D 03 02 [10:55:00]Write to MH i2c: E2 08 00 DD 0D 80 0D 03 02 00 00 00 00 65 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:00]Read from MH i2c: E2 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0B 00 [10:55:00]MH_I2C_Read... [10:55:00]Read from MH i2c: E2 0B 00 DD 0D 00 56 5C 96 94 13 04 67 BD 90 00 7D [10:55:00]RAPDU: 56 5C 96 94 13 04 67 BD 90 00 [10:55:00]wFMCommunicate OK [10:55:00]SAM_PROTO_SignData done [10:55:00]FM_MakeSignedData done [10:55:00]CreateOFDProtocolMessage [10:55:00]wFMCommunicate request_size=4 [10:55:00]MH_SAM_APDU [10:55:00]CAPDU: 80 11 00 00 [10:55:00]Write to MH i2c: E2 08 00 DE 0D 80 11 00 00 00 00 00 00 65 [10:55:00]Write i2c OK [10:55:00]MH_I2C_Read... [10:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:01]Read from MH i2c: E2 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: E2 17 00 [10:55:01]MH_I2C_Read... [10:55:01]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 35 30 36 30 90 00 B2 [10:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:01]wFMCommunicate OK [10:55:01]CreateOFDProtocolMessage done [10:55:01]OFDSenderStorePacket 48863 [10:55:01]StoreOFDPacket docnum=48863 [10:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A1 20 04 01 36 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 06 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF BE 00 00 35 04 06 00 99 17 75 0D 95 6D 56 5C 96 94 13 04 67 BD [10:55:01]CheckFolder [10:55:01]dirname=/storage/ofd_packets [10:55:01]CheckFolder done [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00048863 [10:55:01]NVStorageSaveData ofd_packets/00048863 [10:55:01]File name is /storage/ofd_packets/00048863 [10:55:01]Write 298 bytes [10:55:01]NVStorageSaveData done [10:55:01]OFDSenderStorePacket done [10:55:01]KKMCreateOFDPacket done [10:55:01]NVStorageSaveData kkm_last_timestamp [10:55:01]File name is /storage/kkm_last_timestamp [10:55:01]Write 4 bytes [10:55:01]NVStorageSaveData done [10:55:01]ExternCall_PrintAddStr [10:55:01]wPrintStart [10:55:01]Write to MH i2c: 01 00 00 DF 0D EC [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 DF 0D 00 00 00 00 00 FF 0F 01 [10:55:01]RasterBufferAndPrint [10:55:01]line Счет N : (1)215960 [10:55:01]line ИНН: 02508201610067 [10:55:01]line Контрольно-Кассовый Чек [10:55:01]line ПРОДАЖА [10:55:01]line ТРК (МРК, ГНК) : 21 [10:55:01]line Товар: 2710194210 [10:55:01]line ДТ-К-5 [10:55:01]line 21.460 * 69.90 [10:55:01]line = 1500.05 [10:55:01]line НДС 12% НСП 1% [10:55:01]line > о реализуемом товаре [10:55:01]line ОКРУГЛЕНИЕ: -0.05 [10:55:01]line ИТОГО: 1500.00 [10:55:01]line Внесено: 1500.00 [10:55:01]line СДАЧА: 0.00 [10:55:01]line НСП 1% : 13.27 [10:55:01]line НДС 12% : 159.30 [10:55:01]line Наличными: 1500.00 [10:55:01]line Безнал.: 0.00 [10:55:01]line Место: АЗС № 102 "Партнер Нефть" [10:55:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:01]line СНО: Общий режим [10:55:01]line Чек 43 27.01.2024 10:55 [10:55:01]line Смена: 243 ФФД: 1.0 [10:55:01]line ЗНМ: 0300000040 [10:55:01]line РНМ: 0000000000092723 [10:55:01]line Версия ККМ: 001 [10:55:01]line ФМ: 0000000000875060 [10:55:01]line ФД: 48863 [10:55:01]line ФПД: 168326027122029 [10:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105502&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48863&fm=168326027122029&tin=02508201610067®Number=0000000000092723&sum=150000 [10:55:01]OFD Sender: Processing packet 48863 [packets to send 12, broken 11] [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00048863 [10:55:01]OFD Sender: To server: pG, [10:55:01]CommunicateWithHost lk.salyk.kg:30040 [10:55:01]ConnectInit lk.salyk.kg [10:55:01]written 0, free lines is 4095 [10:55:01]Connected sock=10 [10:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A1 20 04 01 36 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 06 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF BE 00 00 35 04 06 00 99 17 75 0D 95 6D 56 5C 96 94 13 04 67 BD [10:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 46 3D 47 00 10 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 35 30 36 30 10 04 04 00 DF BE 00 00 F4 03 04 00 05 8D B4 65 B6 04 01 00 00 D1 F4 54 EC 27 E5 50 80 [10:55:01]CommunicateWithHost err = 0 [10:55:01]CheckOFDResponse [10:55:01]1017 (14) - 77093643461234 [10:55:01]1041 (16) - 0000000000875060 [10:55:01]1040 (4) - 48863 [10:55:01]1012 (4) - 27.01.2024 04:56 [10:55:01]1206 (1) - 0 [10:55:01]OFD Sender: Remove packet 48863 [10:55:01]ProducePacketName [10:55:01]name=ofd_packets/00048863 [10:55:01]NVStorageDeleteData [10:55:01]Write to MH i2c: 01 00 00 0A 0E 18 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 F6 0C 21 [10:55:01]RasterBufferAndPrint [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]line [10:55:01]written 0, free lines is 3325 [10:55:01]MH_Cut [10:55:01]Write to MH i2c: D1 01 00 11 0E 01 F1 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 01 00 [10:55:01]MH_I2C_Read... [10:55:01]Read from MH i2c: D1 01 00 11 0E 00 F0 [10:55:01]Write to MH i2c: 01 00 00 12 0E 20 [10:55:01]Write i2c OK [10:55:01]MH_I2C_Read... [10:55:02]OFD Sender: No OFD packet to send [10:55:02]*** Cut start [10:55:02]*** Partial cut [10:55:02]*** CUTSNS_PIN = 1 [10:55:02]*** CUTSNS_PIN = 0 [10:55:02]*** Brake cut motor [10:55:03]Read from MH i2c: 01 [10:55:03]MH_I2C_Read... [10:55:03]*** Stop cut motor [10:55:03]*** Cut end [10:55:03]Read from MH i2c: 01 07 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 FF 0F 35 [10:55:03]process_action close_receipt done [10:55:03]requested_data is exist [10:55:03]produce_requested_data [10:55:03]requested_item fm.sn is exist - process it [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 11 00 00 [10:55:03]Write to MH i2c: E2 08 00 13 0E 80 11 00 00 00 00 00 00 9B [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 17 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 17 00 13 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E8 [10:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:03]wFMCommunicate OK [10:55:03]requested_item fd.num is exist - process it [10:55:03]SAM_PROTO_GetFieldsCounters [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 13 00 00 [10:55:03]Write to MH i2c: E2 08 00 14 0E 80 13 00 00 00 00 00 00 9E [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 62 00 14 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DF BE 00 00 0E 04 04 00 F3 00 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 C8 [10:55: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DF BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetFieldsCounters done [10:55:03]requested_item shift.num is exist - process it [10:55:03]requested_item shift.opened is exist - process it [10:55:03]req_shift_opened [10:55:03]FM_GetShiftState [10:55:03]SAM_PROTO_GetShiftState [10:55:03]wFMCommunicate request_size=4 [10:55:03]MH_SAM_APDU [10:55:03]CAPDU: 80 13 01 00 [10:55:03]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [10:55:03]Write i2c OK [10:55:03]MH_I2C_Read... [10:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:03]Read from MH i2c: E2 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 [10:55:03]MH_I2C_Read... [10:55:03]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 37 [10:55:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:55:03]wFMCommunicate OK [10:55:03]SAM_PROTO_GetShiftState done [10:55:03]FM_GetShiftState done [10:55:03]req_shift_opened done [10:55:03]requested_item shift.open_date is exist - process it [10:55:03]req_shift_open_date [10:55:03]req_shift_open_date done [10:55:03]produce_requested_data done [10:55:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48863,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:55:03]process_action_free close_receipt [10:55:03]json_value_free [10:55:03]json_value_free done [10:55:03]process_json_proto returns [10:55:03]Send response to host [10:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48863,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:55:03]free response buf [10:55:03]execute_script done [10:55:03]execute_script returns [10:55:03]free content buf [10:55:03]Sock 9.Close socket [10:55:03]Sock 9.Thread stoped [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:20]accept exits with 7 [10:55:20]New connection [10:55:20]New thread 3066670436 created [10:55:20]Thread 3066813796 joined [10:55:20]Waiting for new connection... [10:55:20] Sock 7.Parse request [10:55:20]Sock 7.Check first char [10:55:20]Sock 7.First char is OK [10:55:20]request: POST /json_proto HTTP/1.0 [10:55:20]Method: POST [10:55:20]URL: /json_proto [10:55:20]Method is POST - this is cgi request [10:55:20]url: /json_proto [10:55:20]query_string will be loaded in cgi processing [10:55:20]execute_cgi json_proto POST (null) [10:55:20]execute_cgi path=json_proto method=POST [10:55:20]POST find Content-Length [10:55:20]Host: 172.17.56.67:8080 [10:55:20]Content-Length: 677 [10:55:20]Content-Type: application/json [10:55:20] [10:55:20]POST finish read [10:55:20]Found Content-Length = 677 [10:55:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:20]execute_script... [10:55: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)215961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:20]POST & json_proto [10:55:20]process_json_proto [10:55:20]json parsed OK: [10:55:20]protocol is kg_v1.0 [10:55:20]action value=close_receipt [10:55:20]process_action close_receipt [10:55:20]cmd_close_receipt [10:55:20]MH_GetDate [10:55:20]Write to MH i2c: F0 00 00 16 0E 13 [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: F0 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: F0 09 00 [10:55:20]MH_I2C_Read... [10:55:20]Read from MH i2c: F0 09 00 16 0E 00 1B E1 B4 65 26 5D 9E 65 B7 [10:55:20]GetLastDocTimeStamp 1706352902 [10:55:20]current date 1706352923 [10:55:20]FM_GetShiftState [10:55:20]SAM_PROTO_GetShiftState [10:55:20]wFMCommunicate request_size=4 [10:55:20]MH_SAM_APDU [10:55:20]CAPDU: 80 13 01 00 [10:55:20]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [10:55:20]Write i2c OK [10:55:20]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 39 [10:55:21]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetShiftState done [10:55:21]FM_GetShiftState done [10:55:21]opened in 1706313770 [10:55:21]opened+sec_in_day 1706400170 [10:55:21]quantity*price = 30029 [10:55:21]sum+1 = 30030 [10:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 44 27.01.2024 10:55 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48864 ФПД: 106571672268338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48864&fm=106571672268338&tin=02508201610067®Number=0000000000092723&sum=30000 [10:55:22]StoreToDocumentArchive [10:55:22]shift 243 fd 48864 [10:55:22]save to /storage/0243/doc_00048864 [10:55:22]save last doc name /storage/0243/doc_00048864 to /storage/kkm_last_doc_name [10:55:22]save OK [10:55:22]Clear old archive folders... [10:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:22]tlvbuf is 013452D0 [10:55:22]SAM_PROTO_ClearQueue [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 09 00 00 [10:55:22]Write to MH i2c: E2 08 00 24 0E 80 09 00 00 00 00 00 00 A4 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_ClearQueue done [10:55:22]KKMCreateOFDPacket [10:55:22]OFDProtocolAddRootSTLVToBuf [10:55:22]FM_MakeSignedData [10:55:22]FM_MakeSignedData [10:55:22]SAM_PROTO_SignData [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 01 02 [10:55:22]Write to MH i2c: E2 08 00 25 0E 80 0D 01 02 00 00 00 00 AC [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]OFD Sender: No OFD packet to send [10:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]wFMCommunicate request_size=255 [10:55:22]MH_SAM_APDU [10:55: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 BE 00 00 35 04 06 00 60 [10:55:22]Write to MH i2c: E2 02 01 26 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 BE 00 00 35 04 06 00 60 00 00 A4 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]wFMCommunicate request_size=10 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 02 02 05 ED 26 AB 2E 32 [10:55:22]Write to MH i2c: E2 0D 00 27 0E 80 0D 02 02 05 00 ED 26 AB 2E 32 00 00 D7 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 03 02 [10:55:22]Write to MH i2c: E2 08 00 28 0E 80 0D 03 02 00 00 00 00 B1 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0B 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 0B 00 28 0E 00 48 C8 B3 F3 83 2B D6 7F 90 00 6B [10:55:22]RAPDU: 48 C8 B3 F3 83 2B D6 7F 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_SignData done [10:55:22]FM_MakeSignedData done [10:55:22]CreateOFDProtocolMessage [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 11 00 00 [10:55:22]Write to MH i2c: E2 08 00 29 0E 80 11 00 00 00 00 00 00 B1 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 17 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 17 00 29 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FE [10:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:22]wFMCommunicate OK [10:55:22]CreateOFDProtocolMessage done [10:55:22]OFDSenderStorePacket 48864 [10:55:22]StoreOFDPacket docnum=48864 [10:55:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 19 F2 07 01 F7 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 BE 00 00 35 04 06 00 60 ED 26 AB 2E 32 48 C8 B3 F3 83 2B D6 7F [10:55:22]CheckFolder [10:55:22]dirname=/storage/ofd_packets [10:55:22]CheckFolder done [10:55:22]ProducePacketName [10:55:22]name=ofd_packets/00048864 [10:55:22]NVStorageSaveData ofd_packets/00048864 [10:55:22]File name is /storage/ofd_packets/00048864 [10:55:22]Write 301 bytes [10:55:22]NVStorageSaveData done [10:55:22]OFDSenderStorePacket done [10:55:22]KKMCreateOFDPacket done [10:55:22]NVStorageSaveData kkm_last_timestamp [10:55:22]File name is /storage/kkm_last_timestamp [10:55:22]Write 4 bytes [10:55:22]NVStorageSaveData done [10:55:22]ExternCall_PrintAddStr [10:55:22]wPrintStart [10:55:22]Write to MH i2c: 01 00 00 2A 0E 38 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: 01 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: 01 07 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 FF 0F 4D [10:55:22]RasterBufferAndPrint [10:55:22]line Счет N : (1)215961 [10:55:22]line ИНН: 02508201610067 [10:55:22]line Контрольно-Кассовый Чек [10:55:22]line ПРОДАЖА [10:55:22]line ТРК (МРК, ГНК) : 12 [10:55:22]line Товар: 2710124130 [10:55:22]line Аи-92-К-5 [10:55:22]line 4.980 * 60.30 [10:55:22]line = 300.29 [10:55:22]line НДС 12% НСП 1% [10:55:22]line > о реализуемом товаре [10:55:22]line ОКРУГЛЕНИЕ: -0.29 [10:55:22]line ИТОГО: 300.00 [10:55:22]line Внесено: 300.00 [10:55:22]line СДАЧА: 0.00 [10:55:22]line НСП 1% : 2.66 [10:55:22]line НДС 12% : 31.89 [10:55:22]line Наличными: 300.00 [10:55:22]line Безнал.: 0.00 [10:55:22]line Место: АЗС № 102 "Партнер Нефть" [10:55:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:22]line СНО: Общий режим [10:55:22]line Чек 44 27.01.2024 10:55 [10:55:22]line Смена: 243 ФФД: 1.0 [10:55:22]line ЗНМ: 0300000040 [10:55:22]line РНМ: 0000000000092723 [10:55:22]line Версия ККМ: 001 [10:55:22]line ФМ: 0000000000875060 [10:55:22]line ФД: 48864 [10:55:22]line ФПД: 106571672268338 [10:55:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48864&fm=106571672268338&tin=02508201610067®Number=0000000000092723&sum=30000 [10:55:23]OFD Sender: Processing packet 48864 [packets to send 12, broken 11] [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00048864 [10:55:23]OFD Sender: To server: pG, [10:55:23]CommunicateWithHost lk.salyk.kg:30040 [10:55:23]ConnectInit lk.salyk.kg [10:55:23]written 0, free lines is 4095 [10:55:23]Connected sock=10 [10:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 19 F2 07 01 F7 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1B E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 BE 00 00 35 04 06 00 60 ED 26 AB 2E 32 48 C8 B3 F3 83 2B D6 7F [10:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 32 1A 47 00 26 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 BE 00 00 F4 03 04 00 1A 8D B4 65 B6 04 01 00 00 01 5E CF 62 75 02 84 6F [10:55:23]CommunicateWithHost err = 0 [10:55:23]CheckOFDResponse [10:55:23]1017 (14) - 77093643461234 [10:55:23]1041 (16) - 0000000000875060 [10:55:23]1040 (4) - 48864 [10:55:23]1012 (4) - 27.01.2024 04:56 [10:55:23]1206 (1) - 0 [10:55:23]OFD Sender: Remove packet 48864 [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00048864 [10:55:23]NVStorageDeleteData [10:55:23]Write to MH i2c: 01 00 00 55 0E 63 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 F9 0C 6F [10:55:23]RasterBufferAndPrint [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]written 0, free lines is 3328 [10:55:23]MH_Cut [10:55:23]Write to MH i2c: D1 01 00 5C 0E 01 3C [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 01 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 01 00 5C 0E 00 3B [10:55:23]Write to MH i2c: 01 00 00 5D 0E 6B [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]OFD Sender: No OFD packet to send [10:55:24]*** Cut start [10:55:24]*** Partial cut [10:55:24]*** CUTSNS_PIN = 1 [10:55:24]*** CUTSNS_PIN = 0 [10:55:24]*** Brake cut motor [10:55:24]Read from MH i2c: 01 [10:55:24]MH_I2C_Read... [10:55:24]*** Stop cut motor [10:55:24]*** Cut end [10:55:24]Read from MH i2c: 01 07 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [10:55:24]process_action close_receipt done [10:55:24]requested_data is exist [10:55:24]produce_requested_data [10:55:24]requested_item fm.sn is exist - process it [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 11 00 00 [10:55:24]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 33 [10:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:24]wFMCommunicate OK [10:55:24]requested_item fd.num is exist - process it [10:55:24]SAM_PROTO_GetFieldsCounters [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 13 00 00 [10:55:24]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 62 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 62 00 5F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E0 BE 00 00 0E 04 04 00 F3 00 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 17 [10:55: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E0 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_GetFieldsCounters done [10:55:24]requested_item shift.num is exist - process it [10:55:24]requested_item shift.opened is exist - process it [10:55:24]req_shift_opened [10:55:24]FM_GetShiftState [10:55:24]SAM_PROTO_GetShiftState [10:55:24]wFMCommunicate request_size=4 [10:55:24]MH_SAM_APDU [10:55:24]CAPDU: 80 13 01 00 [10:55:24]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:24]Read from MH i2c: E2 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0E 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 82 [10:55:24]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:55:24]wFMCommunicate OK [10:55:24]SAM_PROTO_GetShiftState done [10:55:24]FM_GetShiftState done [10:55:24]req_shift_opened done [10:55:24]requested_item shift.open_date is exist - process it [10:55:24]req_shift_open_date [10:55:24]req_shift_open_date done [10:55:24]produce_requested_data done [10:55:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48864,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:55:24]process_action_free close_receipt [10:55:24]json_value_free [10:55:24]json_value_free done [10:55:24]process_json_proto returns [10:55:24]Send response to host [10:55:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48864,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:55:24]free response buf [10:55:24]execute_script done [10:55:24]execute_script returns [10:55:24]free content buf [10:55:24]Sock 7.Close socket [10:55:24]Sock 7.Thread stoped [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:51]accept exits with 9 [10:56:51]New connection [10:56:51]New thread 3066813796 created [10:56:51]Thread 3066670436 joined [10:56:51]Waiting for new connection... [10:56:51] Sock 9.Parse request [10:56:51]Sock 9.Check first char [10:56:51]Sock 9.First char is OK [10:56:51]request: POST /json_proto HTTP/1.0 [10:56:51]Method: POST [10:56:51]URL: /json_proto [10:56:51]Method is POST - this is cgi request [10:56:51]url: /json_proto [10:56:51]query_string will be loaded in cgi processing [10:56:51]execute_cgi json_proto POST (null) [10:56:51]execute_cgi path=json_proto method=POST [10:56:51]POST find Content-Length [10:56:51]Host: 172.17.56.67:8080 [10:56:51]Content-Length: 677 [10:56:51]Content-Type: application/json [10:56:51] [10:56:51]POST finish read [10:56:51]Found Content-Length = 677 [10:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:51]execute_script... [10:56:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:51]POST & json_proto [10:56:51]process_json_proto [10:56:51]json parsed OK: [10:56:51]protocol is kg_v1.0 [10:56:51]action value=close_receipt [10:56:51]process_action close_receipt [10:56:51]cmd_close_receipt [10:56:51]MH_GetDate [10:56:51]Write to MH i2c: F0 00 00 61 0E 5E [10:56:51]Write i2c OK [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: F0 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: F0 09 00 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: F0 09 00 61 0E 00 76 E1 B4 65 26 5D 9E 65 5D [10:56:51]GetLastDocTimeStamp 1706352923 [10:56:51]current date 1706353014 [10:56:51]FM_GetShiftState [10:56:51]SAM_PROTO_GetShiftState [10:56:51]wFMCommunicate request_size=4 [10:56:51]MH_SAM_APDU [10:56:51]CAPDU: 80 13 01 00 [10:56:51]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [10:56:51]Write i2c OK [10:56:51]MH_I2C_Read... [10:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:51]Read from MH i2c: E2 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: E2 0E 00 [10:56:51]MH_I2C_Read... [10:56:51]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 84 [10:56:51]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:56:51]wFMCommunicate OK [10:56:51]SAM_PROTO_GetShiftState done [10:56:51]FM_GetShiftState done [10:56:51]opened in 1706313770 [10:56:51]opened+sec_in_day 1706400170 [10:56:51]quantity*price = 20019 [10:56:51]sum+1 = 20021 [10:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 45 27.01.2024 10:56 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48865 ФПД: 207597069355146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105654&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48865&fm=207597069355146&tin=02508201610067®Number=0000000000092723&sum=20000 [10:56:53]StoreToDocumentArchive [10:56:53]shift 243 fd 48865 [10:56:53]save to /storage/0243/doc_00048865 [10:56:53]save last doc name /storage/0243/doc_00048865 to /storage/kkm_last_doc_name [10:56:53]save OK [10:56:53]Clear old archive folders... [10:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:53]tlvbuf is 011B7DD0 [10:56:53]SAM_PROTO_ClearQueue [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 09 00 00 [10:56:53]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_ClearQueue done [10:56:53]KKMCreateOFDPacket [10:56:53]OFDProtocolAddRootSTLVToBuf [10:56:53]FM_MakeSignedData [10:56:53]FM_MakeSignedData [10:56:53]SAM_PROTO_SignData [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 01 02 [10:56:53]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=255 [10:56:53]MH_SAM_APDU [10:56: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 76 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 BE 00 00 35 04 06 00 BC [10:56:53]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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 76 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 BE 00 00 35 04 06 00 BC 00 00 F2 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=10 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 02 02 05 CE F5 93 48 8A [10:56:53]Write to MH i2c: E2 0D 00 72 0E 80 0D 02 02 05 00 CE F5 93 48 8A 00 00 2C [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 03 02 [10:56:53]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0B 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0B 00 73 0E 00 3E E3 EC 17 0E 41 DA C0 90 00 0A [10:56:53]RAPDU: 3E E3 EC 17 0E 41 DA C0 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_SignData done [10:56:53]FM_MakeSignedData done [10:56:53]CreateOFDProtocolMessage [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 11 00 00 [10:56:53]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 17 00 [10:56:53]MH_I2C_Read... [10:56:53]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 35 30 36 30 90 00 49 [10:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:56:53]wFMCommunicate OK [10:56:53]CreateOFDProtocolMessage done [10:56:53]OFDSenderStorePacket 48865 [10:56:53]StoreOFDPacket docnum=48865 [10:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 69 1D 07 01 38 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 76 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 BE 00 00 35 04 06 00 BC CE F5 93 48 8A 3E E3 EC 17 0E 41 DA C0 [10:56:53]CheckFolder [10:56:53]dirname=/storage/ofd_packets [10:56:53]CheckFolder done [10:56:53]ProducePacketName [10:56:53]name=ofd_packets/00048865 [10:56:53]NVStorageSaveData ofd_packets/00048865 [10:56:53]File name is /storage/ofd_packets/00048865 [10:56:53]Write 301 bytes [10:56:53]NVStorageSaveData done [10:56:53]OFDSenderStorePacket done [10:56:53]KKMCreateOFDPacket done [10:56:53]NVStorageSaveData kkm_last_timestamp [10:56:53]File name is /storage/kkm_last_timestamp [10:56:53]Write 4 bytes [10:56:53]NVStorageSaveData done [10:56:53]ExternCall_PrintAddStr [10:56:53]wPrintStart [10:56:53]Write to MH i2c: 01 00 00 75 0E 83 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 07 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [10:56:53]RasterBufferAndPrint [10:56:53]line Счет N : (1)215962 [10:56:53]line ИНН: 02508201610067 [10:56:53]line Контрольно-Кассовый Чек [10:56:53]line ПРОДАЖА [10:56:53]line ТРК (МРК, ГНК) : 12 [10:56:53]line Товар: 2710124130 [10:56:53]line Аи-92-К-5 [10:56:53]line 3.320 * 60.30 [10:56:53]line = 200.20 [10:56:53]line НДС 12% НСП 1% [10:56:53]line > о реализуемом товаре [10:56:53]line ОКРУГЛЕНИЕ: -0.20 [10:56:53]line ИТОГО: 200.00 [10:56:53]line Внесено: 200.00 [10:56:53]line СДАЧА: 0.00 [10:56:53]line НСП 1% : 1.77 [10:56:53]line НДС 12% : 21.26 [10:56:53]line Наличными: 200.00 [10:56:53]line Безнал.: 0.00 [10:56:53]line Место: АЗС № 102 "Партнер Нефть" [10:56:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:56:53]line СНО: Общий режим [10:56:53]line Чек 45 27.01.2024 10:56 [10:56:53]line Смена: 243 ФФД: 1.0 [10:56:53]line ЗНМ: 0300000040 [10:56:53]line РНМ: 0000000000092723 [10:56:53]line Версия ККМ: 001 [10:56:53]line ФМ: 0000000000875060 [10:56:53]line ФД: 48865 [10:56:53]line ФПД: 207597069355146 [10:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T105654&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48865&fm=207597069355146&tin=02508201610067®Number=0000000000092723&sum=20000 [10:56:53]OFD Sender: Processing packet 48865 [packets to send 12, broken 11] [10:56:53]ProducePacketName [10:56:53]name=ofd_packets/00048865 [10:56:53]OFD Sender: To server: pG, [10:56:53]CommunicateWithHost lk.salyk.kg:30040 [10:56:53]ConnectInit lk.salyk.kg [10:56:53]written 0, free lines is 4095 [10:56:54]Connected sock=10 [10:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 69 1D 07 01 38 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 76 E1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 BE 00 00 35 04 06 00 BC CE F5 93 48 8A 3E E3 EC 17 0E 41 DA C0 [10:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 3A 8D 47 00 A4 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 35 30 36 30 10 04 04 00 E1 BE 00 00 F4 03 04 00 75 8D B4 65 B6 04 01 00 00 E0 62 12 7B 6B AD 7A 04 [10:56:54]CommunicateWithHost err = 0 [10:56:54]CheckOFDResponse [10:56:54]1017 (14) - 77093643461234 [10:56:54]1041 (16) - 0000000000875060 [10:56:54]1040 (4) - 48865 [10:56:54]1012 (4) - 27.01.2024 04:58 [10:56:54]1206 (1) - 0 [10:56:54]OFD Sender: Remove packet 48865 [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00048865 [10:56:54]NVStorageDeleteData [10:56:54]Write to MH i2c: 01 00 00 A0 0E AE [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 F7 0C B8 [10:56:54]RasterBufferAndPrint [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]written 0, free lines is 3325 [10:56:54]MH_Cut [10:56:54]Write to MH i2c: D1 01 00 A7 0E 01 87 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 01 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 01 00 A7 0E 00 86 [10:56:54]Write to MH i2c: 01 00 00 A8 0E B6 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]OFD Sender: No OFD packet to send [10:56:55]*** Cut start [10:56:55]*** Partial cut [10:56:55]*** CUTSNS_PIN = 1 [10:56:55]*** CUTSNS_PIN = 0 [10:56:55]*** Brake cut motor [10:56:55]Read from MH i2c: 01 [10:56:55]MH_I2C_Read... [10:56:55]*** Stop cut motor [10:56:55]*** Cut end [10:56:55]Read from MH i2c: 01 07 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 A8 0E 00 00 00 00 00 FF 0F CB [10:56:55]process_action close_receipt done [10:56:55]requested_data is exist [10:56:55]produce_requested_data [10:56:55]requested_item fm.sn is exist - process it [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 11 00 00 [10:56:55]Write to MH i2c: E2 08 00 A9 0E 80 11 00 00 00 00 00 00 31 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 A9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7E [10:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:56:55]wFMCommunicate OK [10:56:55]requested_item fd.num is exist - process it [10:56:55]SAM_PROTO_GetFieldsCounters [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 13 00 00 [10:56:55]Write to MH i2c: E2 08 00 AA 0E 80 13 00 00 00 00 00 00 34 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 62 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 62 00 AA 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E1 BE 00 00 0E 04 04 00 F3 00 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 66 [10:56: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E1 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:55]wFMCommunicate OK [10:56:55]SAM_PROTO_GetFieldsCounters done [10:56:55]requested_item shift.num is exist - process it [10:56:55]requested_item shift.opened is exist - process it [10:56:55]req_shift_opened [10:56:55]FM_GetShiftState [10:56:55]SAM_PROTO_GetShiftState [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 13 01 00 [10:56:55]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0E 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 CD [10:56:55]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [10:56:55]wFMCommunicate OK [10:56:55]SAM_PROTO_GetShiftState done [10:56:55]FM_GetShiftState done [10:56:55]req_shift_opened done [10:56:55]requested_item shift.open_date is exist - process it [10:56:55]req_shift_open_date [10:56:55]req_shift_open_date done [10:56:55]produce_requested_data done [10:56:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48865,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [10:56:55]process_action_free close_receipt [10:56:55]json_value_free [10:56:55]json_value_free done [10:56:55]process_json_proto returns [10:56:55]Send response to host [10:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48865,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [10:56:55]free response buf [10:56:55]execute_script done [10:56:55]execute_script returns [10:56:55]free content buf [10:56:55]Sock 9.Close socket [10:56:55]Sock 9.Thread stoped [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:30]OFD Sender: No OFD packet to send [11:06:35]OFD Sender: No OFD packet to send [11:06:40]OFD Sender: No OFD packet to send [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:35]OFD Sender: No OFD packet to send [11:08:40]OFD Sender: No OFD packet to send [11:08:45]OFD Sender: No OFD packet to send [11:08:50]OFD Sender: No OFD packet to send [11:08:55]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:13:56]accept exits with 7 [11:13:56]New connection [11:13:56]New thread 3066670436 created [11:13:56]Thread 3066813796 joined [11:13:56]Waiting for new connection... [11:13:56] Sock 7.Parse request [11:13:56]Sock 7.Check first char [11:13:56]Sock 7.First char is OK [11:13:56]request: POST /json_proto HTTP/1.0 [11:13:56]Method: POST [11:13:56]URL: /json_proto [11:13:56]Method is POST - this is cgi request [11:13:56]url: /json_proto [11:13:56]query_string will be loaded in cgi processing [11:13:56]execute_cgi json_proto POST (null) [11:13:56]execute_cgi path=json_proto method=POST [11:13:56]POST find Content-Length [11:13:56]Host: 172.17.56.67:8080 [11:13:56]Content-Length: 682 [11:13:56]Content-Type: application/json [11:13:56] [11:13:56]POST finish read [11:13:56]Found Content-Length = 682 [11:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:13:56]execute_script... [11:13:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:13:56]POST & json_proto [11:13:56]process_json_proto [11:13:56]json parsed OK: [11:13:56]protocol is kg_v1.0 [11:13:56]action value=close_receipt [11:13:56]process_action close_receipt [11:13:56]cmd_close_receipt [11:13:56]MH_GetDate [11:13:56]Write to MH i2c: F0 00 00 AC 0E A9 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: F0 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: F0 09 00 [11:13:56]MH_I2C_Read... [11:13:56]Read from MH i2c: F0 09 00 AC 0E 00 78 E5 B4 65 26 5D 9E 65 AE [11:13:56]GetLastDocTimeStamp 1706353014 [11:13:56]current date 1706354040 [11:13:56]FM_GetShiftState [11:13:56]SAM_PROTO_GetShiftState [11:13:56]wFMCommunicate request_size=4 [11:13:56]MH_SAM_APDU [11:13:56]CAPDU: 80 13 01 00 [11:13:56]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [11:13:56]Write i2c OK [11:13:56]MH_I2C_Read... [11:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:57]Read from MH i2c: E2 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 [11:13:57]MH_I2C_Read... [11:13:57]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 CF [11:13:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:13:57]wFMCommunicate OK [11:13:57]SAM_PROTO_GetShiftState done [11:13:57]FM_GetShiftState done [11:13:57]opened in 1706313770 [11:13:57]opened+sec_in_day 1706400170 [11:13:57]quantity*price = 100037 [11:13:57]sum+1 = 100039 [11:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 46 27.01.2024 11:14 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48866 ФПД: 269617117093711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T111400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48866&fm=269617117093711&tin=02508201610067®Number=0000000000092723&sum=100000 [11:13:58]StoreToDocumentArchive [11:13:58]shift 243 fd 48866 [11:13:58]save to /storage/0243/doc_00048866 [11:13:58]save last doc name /storage/0243/doc_00048866 to /storage/kkm_last_doc_name [11:13:58]save OK [11:13:58]Clear old archive folders... [11:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:58]tlvbuf is 01197CD0 [11:13:58]SAM_PROTO_ClearQueue [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 09 00 00 [11:13:58]Write to MH i2c: E2 08 00 BA 0E 80 09 00 00 00 00 00 00 3A [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [11:13:58]RAPDU: 90 00 [11:13:58]wFMCommunicate OK [11:13:58]SAM_PROTO_ClearQueue done [11:13:58]KKMCreateOFDPacket [11:13:58]OFDProtocolAddRootSTLVToBuf [11:13:58]FM_MakeSignedData [11:13:58]FM_MakeSignedData [11:13:58]SAM_PROTO_SignData [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 0D 01 02 [11:13:58]Write to MH i2c: E2 08 00 BB 0E 80 0D 01 02 00 00 00 00 42 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [11:13:58]RAPDU: 90 00 [11:13:58]wFMCommunicate OK [11:13:58]wFMCommunicate request_size=255 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 78 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BE 00 00 35 04 06 00 F5 [11:13:58]Write to MH i2c: E2 02 01 BC 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 78 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BE 00 00 35 04 06 00 F5 00 00 DE [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [11:13:58]RAPDU: 90 00 [11:13:58]wFMCommunicate OK [11:13:58]wFMCommunicate request_size=10 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 0D 02 02 05 37 20 7D 5F 4F [11:13:58]Write to MH i2c: E2 0D 00 BD 0E 80 0D 02 02 05 00 37 20 7D 5F 4F 00 00 D1 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [11:13:58]RAPDU: 90 00 [11:13:58]wFMCommunicate OK [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 0D 03 02 [11:13:58]Write to MH i2c: E2 08 00 BE 0E 80 0D 03 02 00 00 00 00 47 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0B 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 0B 00 BE 0E 00 8F 88 7E A1 B1 DD 52 01 90 00 5F [11:13:58]RAPDU: 8F 88 7E A1 B1 DD 52 01 90 00 [11:13:58]wFMCommunicate OK [11:13:58]SAM_PROTO_SignData done [11:13:58]FM_MakeSignedData done [11:13:58]CreateOFDProtocolMessage [11:13:58]wFMCommunicate request_size=4 [11:13:58]MH_SAM_APDU [11:13:58]CAPDU: 80 11 00 00 [11:13:58]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:58]Read from MH i2c: E2 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 17 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 94 [11:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:13:58]wFMCommunicate OK [11:13:58]CreateOFDProtocolMessage done [11:13:58]OFDSenderStorePacket 48866 [11:13:58]StoreOFDPacket docnum=48866 [11:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FC 33 07 01 60 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 78 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BE 00 00 35 04 06 00 F5 37 20 7D 5F 4F 8F 88 7E A1 B1 DD 52 01 [11:13:58]CheckFolder [11:13:58]dirname=/storage/ofd_packets [11:13:58]CheckFolder done [11:13:58]ProducePacketName [11:13:58]name=ofd_packets/00048866 [11:13:58]NVStorageSaveData ofd_packets/00048866 [11:13:58]File name is /storage/ofd_packets/00048866 [11:13:58]Write 301 bytes [11:13:58]NVStorageSaveData done [11:13:58]OFDSenderStorePacket done [11:13:58]KKMCreateOFDPacket done [11:13:58]NVStorageSaveData kkm_last_timestamp [11:13:58]File name is /storage/kkm_last_timestamp [11:13:58]Write 4 bytes [11:13:58]NVStorageSaveData done [11:13:58]ExternCall_PrintAddStr [11:13:58]wPrintStart [11:13:58]Write to MH i2c: 01 00 00 C0 0E CE [11:13:58]Write i2c OK [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 [11:13:58]MH_I2C_Read... [11:13:58]Read from MH i2c: 01 07 00 C0 0E 00 00 00 00 00 FF 0F E3 [11:13:58]RasterBufferAndPrint [11:13:58]line Счет N : (1)215963 [11:13:58]line ИНН: 02508201610067 [11:13:58]line Контрольно-Кассовый Чек [11:13:58]line ПРОДАЖА [11:13:58]line ТРК (МРК, ГНК) : 12 [11:13:58]line Товар: 2710124130 [11:13:58]line Аи-92-К-5 [11:13:58]line 16.590 * 60.30 [11:13:58]line = 1000.38 [11:13:58]line НДС 12% НСП 1% [11:13:58]line > о реализуемом товаре [11:13:58]line ОКРУГЛЕНИЕ: -0.38 [11:13:58]line ИТОГО: 1000.00 [11:13:58]line Внесено: 1000.00 [11:13:58]line СДАЧА: 0.00 [11:13:58]line НСП 1% : 8.85 [11:13:58]line НДС 12% : 106.23 [11:13:58]line Наличными: 1000.00 [11:13:58]line Безнал.: 0.00 [11:13:58]line Место: АЗС № 102 "Партнер Нефть" [11:13:58]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:13:58]line СНО: Общий режим [11:13:58]line Чек 46 27.01.2024 11:14 [11:13:58]line Смена: 243 ФФД: 1.0 [11:13:58]line ЗНМ: 0300000040 [11:13:58]line РНМ: 0000000000092723 [11:13:58]line Версия ККМ: 001 [11:13:58]line ФМ: 0000000000875060 [11:13:58]line ФД: 48866 [11:13:58]line ФПД: 269617117093711 [11:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T111400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48866&fm=269617117093711&tin=02508201610067®Number=0000000000092723&sum=100000 [11:13:59]OFD Sender: Processing packet 48866 [packets to send 12, broken 11] [11:13:59]ProducePacketName [11:13:59]name=ofd_packets/00048866 [11:13:59]OFD Sender: To server: pG, [11:13:59]CommunicateWithHost lk.salyk.kg:30040 [11:13:59]ConnectInit lk.salyk.kg [11:13:59]written 0, free lines is 4095 [11:13:59]Connected sock=10 [11:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FC 33 07 01 60 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 78 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BE 00 00 35 04 06 00 F5 37 20 7D 5F 4F 8F 88 7E A1 B1 DD 52 01 [11:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 38 32 47 00 A5 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BE 00 00 F4 03 04 00 76 91 B4 65 B6 04 01 00 00 1D 3E E2 F4 21 1F 14 C3 [11:13:59]CommunicateWithHost err = 0 [11:13:59]CheckOFDResponse [11:13:59]1017 (14) - 77093643461234 [11:13:59]1041 (16) - 0000000000875060 [11:13:59]1040 (4) - 48866 [11:13:59]1012 (4) - 27.01.2024 05:15 [11:13:59]1206 (1) - 0 [11:13:59]OFD Sender: Remove packet 48866 [11:13:59]ProducePacketName [11:13:59]name=ofd_packets/00048866 [11:13:59]NVStorageDeleteData [11:13:59]Write to MH i2c: 01 00 00 EB 0E F9 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 07 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 F7 0C 03 [11:13:59]RasterBufferAndPrint [11:13:59]line [11:13:59]line [11:13:59]line [11:13:59]line [11:13:59]line [11:13:59]written 0, free lines is 3325 [11:13:59]MH_Cut [11:13:59]Write to MH i2c: D1 01 00 F2 0E 01 D2 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: D1 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: D1 01 00 [11:13:59]MH_I2C_Read... [11:13:59]Read from MH i2c: D1 01 00 F2 0E 00 D1 [11:13:59]Write to MH i2c: 01 00 00 F3 0E 01 [11:13:59]Write i2c OK [11:13:59]MH_I2C_Read... [11:13:59]OFD Sender: No OFD packet to send [11:14:00]*** Cut start [11:14:00]*** Partial cut [11:14:00]*** CUTSNS_PIN = 1 [11:14:00]*** CUTSNS_PIN = 0 [11:14:00]*** Brake cut motor [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]*** Stop cut motor [11:14:00]*** Cut end [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0F 16 [11:14:00]process_action close_receipt done [11:14:00]requested_data is exist [11:14:00]produce_requested_data [11:14:00]requested_item fm.sn is exist - process it [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 11 00 00 [11:14:00]Write to MH i2c: E2 08 00 F4 0E 80 11 00 00 00 00 00 00 7C [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 17 00 F4 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C9 [11:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:14:00]wFMCommunicate OK [11:14:00]requested_item fd.num is exist - process it [11:14:00]SAM_PROTO_GetFieldsCounters [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 13 00 00 [11:14:00]Write to MH i2c: E2 08 00 F5 0E 80 13 00 00 00 00 00 00 7F [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 62 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 62 00 F5 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 BE 00 00 0E 04 04 00 F3 00 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 B5 [11:14: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_GetFieldsCounters done [11:14:00]requested_item shift.num is exist - process it [11:14:00]requested_item shift.opened is exist - process it [11:14:00]req_shift_opened [11:14:00]FM_GetShiftState [11:14:00]SAM_PROTO_GetShiftState [11:14:00]wFMCommunicate request_size=4 [11:14:00]MH_SAM_APDU [11:14:00]CAPDU: 80 13 01 00 [11:14:00]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 [11:14:00]MH_I2C_Read... [11:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:00]Read from MH i2c: E2 0E 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 18 [11:14:00]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:14:00]wFMCommunicate OK [11:14:00]SAM_PROTO_GetShiftState done [11:14:00]FM_GetShiftState done [11:14:00]req_shift_opened done [11:14:00]requested_item shift.open_date is exist - process it [11:14:00]req_shift_open_date [11:14:00]req_shift_open_date done [11:14:00]produce_requested_data done [11:14:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48866,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:14:00]process_action_free close_receipt [11:14:00]json_value_free [11:14:00]json_value_free done [11:14:00]process_json_proto returns [11:14:00]Send response to host [11:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48866,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:14:00]free response buf [11:14:00]execute_script done [11:14:00]execute_script returns [11:14:00]free content buf [11:14:00]Sock 7.Close socket [11:14:00]Sock 7.Thread stoped [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:40]accept exits with 9 [11:14:40]New connection [11:14:40]New thread 3066813796 created [11:14:40] Sock 9.Parse request [11:14:40]Thread 3066670436 joined [11:14:40]Sock 9.Check first char [11:14:40]Waiting for new connection... [11:14:40]Sock 9.First char is OK [11:14:40]request: POST /json_proto HTTP/1.0 [11:14:40]Method: POST [11:14:40]URL: /json_proto [11:14:40]Method is POST - this is cgi request [11:14:40]url: /json_proto [11:14:40]query_string will be loaded in cgi processing [11:14:40]execute_cgi json_proto POST (null) [11:14:40]execute_cgi path=json_proto method=POST [11:14:40]POST find Content-Length [11:14:40]Host: 172.17.56.67:8080 [11:14:40]Content-Length: 677 [11:14:40]Content-Type: application/json [11:14:40] [11:14:40]POST finish read [11:14:40]Found Content-Length = 677 [11:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.970, "sum" : 480.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]execute_script... [11:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.970, "sum" : 480.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:40]POST & json_proto [11:14:40]process_json_proto [11:14:40]json parsed OK: [11:14:40]protocol is kg_v1.0 [11:14:40]action value=close_receipt [11:14:40]process_action close_receipt [11:14:40]cmd_close_receipt [11:14:40]MH_GetDate [11:14:40]Write to MH i2c: F0 00 00 F7 0E F4 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: F0 09 00 F7 0E 00 A3 E5 B4 65 26 5D 9E 65 24 [11:14:40]GetLastDocTimeStamp 1706354040 [11:14:40]current date 1706354083 [11:14:40]FM_GetShiftState [11:14:40]SAM_PROTO_GetShiftState [11:14:40]wFMCommunicate request_size=4 [11:14:40]MH_SAM_APDU [11:14:40]CAPDU: 80 13 01 00 [11:14:40]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:40]Read from MH i2c: E2 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1A [11:14:40]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:14:40]wFMCommunicate OK [11:14:40]SAM_PROTO_GetShiftState done [11:14:40]FM_GetShiftState done [11:14:40]opened in 1706313770 [11:14:40]opened+sec_in_day 1706400170 [11:14:40]quantity*price = 48059 [11:14:40]sum+1 = 48060 [11:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.04 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 47 27.01.2024 11:14 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48867 ФПД: 177558319694831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T111443&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48867&fm=177558319694831&tin=02508201610067®Number=0000000000092723&sum=48000 [11:14:41]StoreToDocumentArchive [11:14:41]shift 243 fd 48867 [11:14:41]save to /storage/0243/doc_00048867 [11:14:41]save last doc name /storage/0243/doc_00048867 to /storage/kkm_last_doc_name [11:14:41]save OK [11:14:41]Clear old archive folders... [11:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:41]tlvbuf is 011C0EE0 [11:14:41]SAM_PROTO_ClearQueue [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 09 00 00 [11:14:41]Write to MH i2c: E2 08 00 05 0F 80 09 00 00 00 00 00 00 86 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]SAM_PROTO_ClearQueue done [11:14:41]KKMCreateOFDPacket [11:14:41]OFDProtocolAddRootSTLVToBuf [11:14:41]FM_MakeSignedData [11:14:41]FM_MakeSignedData [11:14:41]SAM_PROTO_SignData [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 0D 01 02 [11:14:41]Write to MH i2c: E2 08 00 06 0F 80 0D 01 02 00 00 00 00 8E [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [11:14:41]RAPDU: 90 00 [11:14:41]wFMCommunicate OK [11:14:41]wFMCommunicate request_size=255 [11:14:41]MH_SAM_APDU [11:14: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 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 A3 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BE 00 00 35 04 06 00 A1 [11:14:41]Write to MH i2c: E2 02 01 07 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 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 A3 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BE 00 00 35 04 06 00 A1 00 00 14 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=10 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 02 02 05 7D 04 92 83 EF [11:14:42]Write to MH i2c: E2 0D 00 08 0F 80 0D 02 02 05 00 7D 04 92 83 EF 00 00 20 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 03 02 [11:14:42]Write to MH i2c: E2 08 00 09 0F 80 0D 03 02 00 00 00 00 93 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 0B 00 09 0F 00 3A 07 0E EC 15 A4 0E 88 90 00 1E [11:14:42]RAPDU: 3A 07 0E EC 15 A4 0E 88 90 00 [11:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_SignData done [11:14:42]FM_MakeSignedData done [11:14:42]CreateOFDProtocolMessage [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 11 00 00 [11:14:42]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 17 00 0A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E0 [11:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:14:42]wFMCommunicate OK [11:14:42]CreateOFDProtocolMessage done [11:14:42]OFDSenderStorePacket 48867 [11:14:42]StoreOFDPacket docnum=48867 [11:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 33 7B 07 01 A2 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 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 A3 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BE 00 00 35 04 06 00 A1 7D 04 92 83 EF 3A 07 0E EC 15 A4 0E 88 [11:14:42]CheckFolder [11:14:42]dirname=/storage/ofd_packets [11:14:42]CheckFolder done [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00048867 [11:14:42]NVStorageSaveData ofd_packets/00048867 [11:14:42]File name is /storage/ofd_packets/00048867 [11:14:42]Write 301 bytes [11:14:42]NVStorageSaveData done [11:14:42]OFDSenderStorePacket done [11:14:42]KKMCreateOFDPacket done [11:14:42]NVStorageSaveData kkm_last_timestamp [11:14:42]File name is /storage/kkm_last_timestamp [11:14:42]Write 4 bytes [11:14:42]NVStorageSaveData done [11:14:42]ExternCall_PrintAddStr [11:14:42]wPrintStart [11:14:42]Write to MH i2c: 01 00 00 0B 0F 1A [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: 01 07 00 0B 0F 00 00 00 00 00 FF 0F 2F [11:14:42]RasterBufferAndPrint [11:14:42]line Счет N : (1)215964 [11:14:42]line ИНН: 02508201610067 [11:14:42]line Контрольно-Кассовый Чек [11:14:42]line ПРОДАЖА [11:14:42]line ТРК (МРК, ГНК) : 22 [11:14:42]line Товар: 2710124130 [11:14:42]line Аи-92-К-5 [11:14:42]line 7.970 * 60.30 [11:14:42]line = 480.59 [11:14:42]line НДС 12% НСП 1% [11:14:42]line > о реализуемом товаре [11:14:42]line ОКРУГЛЕНИЕ: -0.59 [11:14:42]line ИТОГО: 480.00 [11:14:42]line Внесено: 480.00 [11:14:42]line СДАЧА: 0.00 [11:14:42]line НСП 1% : 4.25 [11:14:42]line НДС 12% : 51.04 [11:14:42]line Наличными: 480.00 [11:14:42]line Безнал.: 0.00 [11:14:42]line Место: АЗС № 102 "Партнер Нефть" [11:14:42]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:14:42]line СНО: Общий режим [11:14:42]line Чек 47 27.01.2024 11:14 [11:14:42]line Смена: 243 ФФД: 1.0 [11:14:42]line ЗНМ: 0300000040 [11:14:42]line РНМ: 0000000000092723 [11:14:42]line Версия ККМ: 001 [11:14:42]line ФМ: 0000000000875060 [11:14:42]line ФД: 48867 [11:14:42]line ФПД: 177558319694831 [11:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T111443&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48867&fm=177558319694831&tin=02508201610067®Number=0000000000092723&sum=48000 [11:14:42]OFD Sender: Processing packet 48867 [packets to send 12, broken 11] [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00048867 [11:14:42]OFD Sender: To server: pG, [11:14:42]CommunicateWithHost lk.salyk.kg:30040 [11:14:42]ConnectInit lk.salyk.kg [11:14:42]written 0, free lines is 4095 [11:14:42]Connected sock=10 [11:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 33 7B 07 01 A2 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 22 1F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 13 00 00 00 00 07 04 06 00 80 BB 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 A3 E5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BE 00 00 35 04 06 00 A1 7D 04 92 83 EF 3A 07 0E EC 15 A4 0E 88 [11:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8D 8E 47 00 4A 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BE 00 00 F4 03 04 00 A2 91 B4 65 B6 04 01 00 00 D0 16 B9 7D C9 C3 2F 71 [11:14:42]CommunicateWithHost err = 0 [11:14:42]CheckOFDResponse [11:14:42]1017 (14) - 77093643461234 [11:14:42]1041 (16) - 0000000000875060 [11:14:42]1040 (4) - 48867 [11:14:42]1012 (4) - 27.01.2024 05:16 [11:14:42]1206 (1) - 0 [11:14:42]OFD Sender: Remove packet 48867 [11:14:42]ProducePacketName [11:14:42]name=ofd_packets/00048867 [11:14:42]NVStorageDeleteData [11:14:43]Write to MH i2c: 01 00 00 36 0F 45 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 ED 0C 45 [11:14:43]RasterBufferAndPrint [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]line [11:14:43]written 0, free lines is 3315 [11:14:43]MH_Cut [11:14:43]Write to MH i2c: D1 01 00 3D 0F 01 1E [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 01 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: D1 01 00 3D 0F 00 1D [11:14:43]Write to MH i2c: 01 00 00 3E 0F 4D [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]OFD Sender: No OFD packet to send [11:14:43]*** Cut start [11:14:43]*** Partial cut [11:14:43]*** CUTSNS_PIN = 1 [11:14:43]*** CUTSNS_PIN = 0 [11:14:44]*** Brake cut motor [11:14:44]Read from MH i2c: 01 [11:14:44]MH_I2C_Read... [11:14:44]*** Stop cut motor [11:14:44]*** Cut end [11:14:44]Read from MH i2c: 01 07 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 FF 0F 62 [11:14:44]process_action close_receipt done [11:14:44]requested_data is exist [11:14:44]produce_requested_data [11:14:44]requested_item fm.sn is exist - process it [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 11 00 00 [11:14:44]Write to MH i2c: E2 08 00 3F 0F 80 11 00 00 00 00 00 00 C8 [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:44]Read from MH i2c: E2 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 17 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 17 00 3F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 15 [11:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:14:44]wFMCommunicate OK [11:14:44]requested_item fd.num is exist - process it [11:14:44]SAM_PROTO_GetFieldsCounters [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 13 00 00 [11:14:44]Write to MH i2c: E2 08 00 40 0F 80 13 00 00 00 00 00 00 CB [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:44]Read from MH i2c: E2 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 62 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 62 00 40 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E3 BE 00 00 0E 04 04 00 F3 00 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 05 [11:14: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E3 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:44]wFMCommunicate OK [11:14:44]SAM_PROTO_GetFieldsCounters done [11:14:44]requested_item shift.num is exist - process it [11:14:44]requested_item shift.opened is exist - process it [11:14:44]req_shift_opened [11:14:44]FM_GetShiftState [11:14:44]SAM_PROTO_GetShiftState [11:14:44]wFMCommunicate request_size=4 [11:14:44]MH_SAM_APDU [11:14:44]CAPDU: 80 13 01 00 [11:14:44]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:44]Read from MH i2c: E2 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 0E 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 64 [11:14:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:14:44]wFMCommunicate OK [11:14:44]SAM_PROTO_GetShiftState done [11:14:44]FM_GetShiftState done [11:14:44]req_shift_opened done [11:14:44]requested_item shift.open_date is exist - process it [11:14:44]req_shift_open_date [11:14:44]req_shift_open_date done [11:14:44]produce_requested_data done [11:14:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48867,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:14:44]process_action_free close_receipt [11:14:44]json_value_free [11:14:44]json_value_free done [11:14:44]process_json_proto returns [11:14:44]Send response to host [11:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48867,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:14:44]free response buf [11:14:44]execute_script done [11:14:44]execute_script returns [11:14:44]free content buf [11:14:44]Sock 9.Close socket [11:14:44]Sock 9.Thread stoped [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:30]accept exits with 7 [11:22:30]New connection [11:22:30]New thread 3066670436 created [11:22:30]Thread 3066813796 joined [11:22:30]Waiting for new connection... [11:22:30] Sock 7.Parse request [11:22:30]Sock 7.Check first char [11:22:30]Sock 7.First char is OK [11:22:30]request: POST /json_proto HTTP/1.0 [11:22:30]Method: POST [11:22:30]URL: /json_proto [11:22:30]Method is POST - this is cgi request [11:22:30]url: /json_proto [11:22:30]query_string will be loaded in cgi processing [11:22:30]execute_cgi json_proto POST (null) [11:22:30]execute_cgi path=json_proto method=POST [11:22:30]POST find Content-Length [11:22:30]Host: 172.17.56.67:8080 [11:22:30]Content-Length: 642 [11:22:30]Content-Type: application/json [11:22:30] [11:22:30]POST finish read [11:22:30]Found Content-Length = 642 [11:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 20.000, "sum" : 1206.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:30]execute_script... [11:22:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 20.000, "sum" : 1206.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1206.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:30]POST & json_proto [11:22:30]process_json_proto [11:22:30]json parsed OK: [11:22:30]protocol is kg_v1.0 [11:22:30]action value=close_receipt [11:22:30]process_action close_receipt [11:22:30]cmd_close_receipt [11:22:30]MH_GetDate [11:22:30]Write to MH i2c: F0 00 00 42 0F 40 [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: F0 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: F0 09 00 [11:22:30]MH_I2C_Read... [11:22:30]Read from MH i2c: F0 09 00 42 0F 00 7A E7 B4 65 26 5D 9E 65 49 [11:22:30]GetLastDocTimeStamp 1706354083 [11:22:30]current date 1706354554 [11:22:30]FM_GetShiftState [11:22:30]SAM_PROTO_GetShiftState [11:22:30]wFMCommunicate request_size=4 [11:22:30]MH_SAM_APDU [11:22:30]CAPDU: 80 13 01 00 [11:22:30]Write to MH i2c: E2 08 00 43 0F 80 13 01 00 00 00 00 00 CF [11:22:30]Write i2c OK [11:22:30]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 43 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 66 [11:22:31]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetShiftState done [11:22:31]FM_GetShiftState done [11:22:31]opened in 1706313770 [11:22:31]opened+sec_in_day 1706400170 [11:22:31]quantity*price = 120600 [11:22:31]sum+1 = 120601 [11:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1206.00 НСП 1% : 10.67 НДС 12% : 128.07 Наличными: 1206.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 48 27.01.2024 11:22 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48868 ФПД: 264852456664516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T112234&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48868&fm=264852456664516&tin=02508201610067®Number=0000000000092723&sum=120600 [11:22:32]StoreToDocumentArchive [11:22:32]shift 243 fd 48868 [11:22:32]save to /storage/0243/doc_00048868 [11:22:32]save last doc name /storage/0243/doc_00048868 to /storage/kkm_last_doc_name [11:22:32]save OK [11:22:32]Clear old archive folders... [11:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:32]tlvbuf is 011BD610 [11:22:32]SAM_PROTO_ClearQueue [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 09 00 00 [11:22:32]Write to MH i2c: E2 08 00 50 0F 80 09 00 00 00 00 00 00 D1 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_ClearQueue done [11:22:32]KKMCreateOFDPacket [11:22:32]OFDProtocolAddRootSTLVToBuf [11:22:32]FM_MakeSignedData [11:22:32]FM_MakeSignedData [11:22:32]SAM_PROTO_SignData [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 01 02 [11:22:32]Write to MH i2c: E2 08 00 51 0F 80 0D 01 02 00 00 00 00 D9 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=255 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 D7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 32 00 00 00 00 07 04 06 00 18 D7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7A E7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BE 00 00 35 04 06 00 F0 [11:22:32]Write to MH i2c: E2 02 01 52 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 20 4E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 D7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 32 00 00 00 00 07 04 06 00 18 D7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7A E7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BE 00 00 35 04 06 00 F0 00 00 55 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=10 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 02 02 05 E1 C4 98 ED C4 [11:22:32]Write to MH i2c: E2 0D 00 53 0F 80 0D 02 02 05 00 E1 C4 98 ED C4 00 00 D4 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 03 02 [11:22:32]Write to MH i2c: E2 08 00 54 0F 80 0D 03 02 00 00 00 00 DE [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0B 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 0B 00 54 0F 00 DF F0 96 18 FE AB FD CA 90 00 CC [11:22:32]RAPDU: DF F0 96 18 FE AB FD CA 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_SignData done [11:22:32]FM_MakeSignedData done [11:22:32]CreateOFDProtocolMessage [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 11 00 00 [11:22:32]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 17 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [11:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:22:32]wFMCommunicate OK [11:22:32]CreateOFDProtocolMessage done [11:22:32]OFDSenderStorePacket 48868 [11:22:32]StoreOFDPacket docnum=48868 [11:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D9 AE 07 01 4B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 D7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 32 00 00 00 00 07 04 06 00 18 D7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7A E7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BE 00 00 35 04 06 00 F0 E1 C4 98 ED C4 DF F0 96 18 FE AB FD CA [11:22:32]CheckFolder [11:22:32]dirname=/storage/ofd_packets [11:22:32]CheckFolder done [11:22:32]ProducePacketName [11:22:32]name=ofd_packets/00048868 [11:22:32]NVStorageSaveData ofd_packets/00048868 [11:22:32]File name is /storage/ofd_packets/00048868 [11:22:32]Write 301 bytes [11:22:32]NVStorageSaveData done [11:22:32]OFDSenderStorePacket done [11:22:32]KKMCreateOFDPacket done [11:22:32]NVStorageSaveData kkm_last_timestamp [11:22:32]File name is /storage/kkm_last_timestamp [11:22:32]Write 4 bytes [11:22:32]NVStorageSaveData done [11:22:32]ExternCall_PrintAddStr [11:22:32]wPrintStart [11:22:32]Write to MH i2c: 01 00 00 56 0F 65 [11:22:32]OFD Sender: Processing packet 48868 [packets to send 12, broken 11] [11:22:32]ProducePacketName [11:22:32]name=ofd_packets/00048868 [11:22:32]OFD Sender: To server: pG, [11:22:32]CommunicateWithHost lk.salyk.kg:30040 [11:22:32]ConnectInit lk.salyk.kg [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 07 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 FF 0F 7A [11:22:32]RasterBufferAndPrint [11:22:32]line Счет N : (1)215965 [11:22:32]line ИНН: 02508201610067 [11:22:32]line Контрольно-Кассовый Чек [11:22:32]line ПРОДАЖА [11:22:32]line ТРК (МРК, ГНК) : 22 [11:22:32]line Товар: 2710124130 [11:22:32]line Аи-92-К-5 [11:22:32]line 20.000 * 60.30 [11:22:32]line = 1206.00 [11:22:32]line НДС 12% НСП 1% [11:22:32]line > о реализуемом товаре [11:22:32]line ИТОГО: 1206.00 [11:22:32]line НСП 1% : 10.67 [11:22:32]line НДС 12% : 128.07 [11:22:32]line Наличными: 1206.00 [11:22:32]line Безнал.: 0.00 [11:22:32]line Место: АЗС № 102 "Партнер Нефть" [11:22:32]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:22:32]line СНО: Общий режим [11:22:32]line Чек 48 27.01.2024 11:22 [11:22:32]line Смена: 243 ФФД: 1.0 [11:22:32]line ЗНМ: 0300000040 [11:22:32]line РНМ: 0000000000092723 [11:22:32]line Версия ККМ: 001 [11:22:32]line ФМ: 0000000000875060 [11:22:32]line ФД: 48868 [11:22:32]line ФПД: 264852456664516 [11:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T112234&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48868&fm=264852456664516&tin=02508201610067®Number=0000000000092723&sum=120600 [11:22:33]Connected sock=10 [11:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D9 AE 07 01 4B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 D7 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 D7 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 32 00 00 00 00 07 04 06 00 18 D7 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 7A E7 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BE 00 00 35 04 06 00 F0 E1 C4 98 ED C4 DF F0 96 18 FE AB FD CA [11:22:33]written 0, free lines is 4095 [11:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D6 15 47 00 94 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BE 00 00 F4 03 04 00 78 93 B4 65 B6 04 01 00 00 82 54 DB 1F 20 AB 90 38 [11:22:33]CommunicateWithHost err = 0 [11:22:33]CheckOFDResponse [11:22:33]1017 (14) - 77093643461234 [11:22:33]1041 (16) - 0000000000875060 [11:22:33]1040 (4) - 48868 [11:22:33]1012 (4) - 27.01.2024 05:24 [11:22:33]1206 (1) - 0 [11:22:33]OFD Sender: Remove packet 48868 [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00048868 [11:22:33]NVStorageDeleteData [11:22:33]Write to MH i2c: 01 00 00 7E 0F 8D [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 22 0D C3 [11:22:33]RasterBufferAndPrint [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]line [11:22:33]written 0, free lines is 3368 [11:22:33]MH_Cut [11:22:33]Write to MH i2c: D1 01 00 85 0F 01 66 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 01 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: D1 01 00 85 0F 00 65 [11:22:33]Write to MH i2c: 01 00 00 86 0F 95 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]OFD Sender: No OFD packet to send [11:22:34]*** Cut start [11:22:34]*** Partial cut [11:22:34]*** CUTSNS_PIN = 1 [11:22:34]*** CUTSNS_PIN = 0 [11:22:34]*** Brake cut motor [11:22:34]Read from MH i2c: 01 [11:22:34]MH_I2C_Read... [11:22:34]*** Stop cut motor [11:22:34]*** Cut end [11:22:34]Read from MH i2c: 01 07 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [11:22:34]process_action close_receipt done [11:22:34]requested_data is exist [11:22:34]produce_requested_data [11:22:34]requested_item fm.sn is exist - process it [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 11 00 00 [11:22:34]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5D [11:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:22:34]wFMCommunicate OK [11:22:34]requested_item fd.num is exist - process it [11:22:34]SAM_PROTO_GetFieldsCounters [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 13 00 00 [11:22:34]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 62 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 62 00 88 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BE 00 00 0E 04 04 00 F3 00 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 51 [11:22: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_GetFieldsCounters done [11:22:34]requested_item shift.num is exist - process it [11:22:34]requested_item shift.opened is exist - process it [11:22:34]req_shift_opened [11:22:34]FM_GetShiftState [11:22:34]SAM_PROTO_GetShiftState [11:22:34]wFMCommunicate request_size=4 [11:22:34]MH_SAM_APDU [11:22:34]CAPDU: 80 13 01 00 [11:22:34]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:34]Read from MH i2c: E2 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0E 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AC [11:22:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:22:34]wFMCommunicate OK [11:22:34]SAM_PROTO_GetShiftState done [11:22:34]FM_GetShiftState done [11:22:34]req_shift_opened done [11:22:34]requested_item shift.open_date is exist - process it [11:22:34]req_shift_open_date [11:22:34]req_shift_open_date done [11:22:34]produce_requested_data done [11:22:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48868,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:22:34]process_action_free close_receipt [11:22:34]json_value_free [11:22:34]json_value_free done [11:22:34]process_json_proto returns [11:22:34]Send response to host [11:22:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48868,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:22:34]free response buf [11:22:34]execute_script done [11:22:34]execute_script returns [11:22:34]free content buf [11:22:34]Sock 7.Close socket [11:22:34]Sock 7.Thread stoped [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:37]accept exits with 9 [11:25:37]New connection [11:25:37]New thread 3066813796 created [11:25:37]Thread 3066670436 joined [11:25:37]Waiting for new connection... [11:25:37] Sock 9.Parse request [11:25:37]Sock 9.Check first char [11:25:37]Sock 9.First char is OK [11:25:37]request: POST /json_proto HTTP/1.0 [11:25:37]Method: POST [11:25:37]URL: /json_proto [11:25:37]Method is POST - this is cgi request [11:25:37]url: /json_proto [11:25:37]query_string will be loaded in cgi processing [11:25:37]execute_cgi json_proto POST (null) [11:25:37]execute_cgi path=json_proto method=POST [11:25:37]POST find Content-Length [11:25:37]Host: 172.17.56.67:8080 [11:25:37]Content-Length: 677 [11:25:37]Content-Type: application/json [11:25:37] [11:25:37]POST finish read [11:25:37]Found Content-Length = 677 [11:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.820, "sum" : 170.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]execute_script... [11:25: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)215966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.820, "sum" : 170.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]POST & json_proto [11:25:37]process_json_proto [11:25:37]json parsed OK: [11:25:37]protocol is kg_v1.0 [11:25:37]action value=close_receipt [11:25:37]process_action close_receipt [11:25:37]cmd_close_receipt [11:25:37]MH_GetDate [11:25:37]Write to MH i2c: F0 00 00 8A 0F 88 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 8A 0F 00 34 E8 B4 65 26 5D 9E 65 4C [11:25:37]GetLastDocTimeStamp 1706354554 [11:25:37]current date 1706354740 [11:25:37]FM_GetShiftState [11:25:37]SAM_PROTO_GetShiftState [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 13 01 00 [11:25:37]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AE [11:25:37]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_GetShiftState done [11:25:37]FM_GetShiftState done [11:25:37]opened in 1706313770 [11:25:37]opened+sec_in_day 1706400170 [11:25:37]quantity*price = 17004 [11:25:37]sum+1 = 17006 [11:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.50 НДС 12% : 18.06 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 49 27.01.2024 11:25 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48869 ФПД: 35726762772538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T112540&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48869&fm=35726762772538&tin=02508201610067®Number=0000000000092723&sum=17000 [11:25:38]StoreToDocumentArchive [11:25:38]shift 243 fd 48869 [11:25:38]save to /storage/0243/doc_00048869 [11:25:38]save last doc name /storage/0243/doc_00048869 to /storage/kkm_last_doc_name [11:25:38]save OK [11:25:38]Clear old archive folders... [11:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:38]tlvbuf is 011BA7E0 [11:25:38]SAM_PROTO_ClearQueue [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 09 00 00 [11:25:38]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]SAM_PROTO_ClearQueue done [11:25:38]KKMCreateOFDPacket [11:25:38]OFDProtocolAddRootSTLVToBuf [11:25:38]FM_MakeSignedData [11:25:38]FM_MakeSignedData [11:25:38]SAM_PROTO_SignData [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 0D 01 02 [11:25:38]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]OFD Sender: No OFD packet to send [11:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]wFMCommunicate request_size=255 [11:25:38]MH_SAM_APDU [11:25: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 04 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6D 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 E8 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BE 00 00 35 04 06 00 20 [11:25:38]Write to MH i2c: E2 02 01 9A 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 04 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6D 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 E8 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BE 00 00 35 04 06 00 20 00 00 A1 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]wFMCommunicate request_size=10 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 02 02 05 7E 49 01 08 3A [11:25:39]Write to MH i2c: E2 0D 00 9B 0F 80 0D 02 02 05 00 7E 49 01 08 3A 00 00 38 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:39]Read from MH i2c: E2 03 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [11:25:39]RAPDU: 90 00 [11:25:39]wFMCommunicate OK [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 0D 03 02 [11:25:39]Write to MH i2c: E2 08 00 9C 0F 80 0D 03 02 00 00 00 00 26 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 0B 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 0B 00 9C 0F 00 E2 F4 14 9B C0 81 6C E0 90 00 39 [11:25:39]RAPDU: E2 F4 14 9B C0 81 6C E0 90 00 [11:25:39]wFMCommunicate OK [11:25:39]SAM_PROTO_SignData done [11:25:39]FM_MakeSignedData done [11:25:39]CreateOFDProtocolMessage [11:25:39]wFMCommunicate request_size=4 [11:25:39]MH_SAM_APDU [11:25:39]CAPDU: 80 11 00 00 [11:25:39]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:39]Read from MH i2c: E2 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 17 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 73 [11:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:39]wFMCommunicate OK [11:25:39]CreateOFDProtocolMessage done [11:25:39]OFDSenderStorePacket 48869 [11:25:39]StoreOFDPacket docnum=48869 [11:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 38 07 01 05 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6D 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 E8 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BE 00 00 35 04 06 00 20 7E 49 01 08 3A E2 F4 14 9B C0 81 6C E0 [11:25:39]CheckFolder [11:25:39]dirname=/storage/ofd_packets [11:25:39]CheckFolder done [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00048869 [11:25:39]NVStorageSaveData ofd_packets/00048869 [11:25:39]File name is /storage/ofd_packets/00048869 [11:25:39]Write 301 bytes [11:25:39]NVStorageSaveData done [11:25:39]OFDSenderStorePacket done [11:25:39]KKMCreateOFDPacket done [11:25:39]NVStorageSaveData kkm_last_timestamp [11:25:39]File name is /storage/kkm_last_timestamp [11:25:39]Write 4 bytes [11:25:39]NVStorageSaveData done [11:25:39]ExternCall_PrintAddStr [11:25:39]wPrintStart [11:25:39]Write to MH i2c: 01 00 00 9E 0F AD [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [11:25:39]RasterBufferAndPrint [11:25:39]line Счет N : (1)215966 [11:25:39]line ИНН: 02508201610067 [11:25:39]line Контрольно-Кассовый Чек [11:25:39]line ПРОДАЖА [11:25:39]line ТРК (МРК, ГНК) : 12 [11:25:39]line Товар: 2710124130 [11:25:39]line Аи-92-К-5 [11:25:39]line 2.820 * 60.30 [11:25:39]line = 170.05 [11:25:39]line НДС 12% НСП 1% [11:25:39]line > о реализуемом товаре [11:25:39]line ОКРУГЛЕНИЕ: -0.05 [11:25:39]line ИТОГО: 170.00 [11:25:39]line Внесено: 170.00 [11:25:39]line СДАЧА: 0.00 [11:25:39]line НСП 1% : 1.50 [11:25:39]line НДС 12% : 18.06 [11:25:39]line Наличными: 170.00 [11:25:39]line Безнал.: 0.00 [11:25:39]line Место: АЗС № 102 "Партнер Нефть" [11:25:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:25:39]line СНО: Общий режим [11:25:39]line Чек 49 27.01.2024 11:25 [11:25:39]line Смена: 243 ФФД: 1.0 [11:25:39]line ЗНМ: 0300000040 [11:25:39]line РНМ: 0000000000092723 [11:25:39]line Версия ККМ: 001 [11:25:39]line ФМ: 0000000000875060 [11:25:39]line ФД: 48869 [11:25:39]line ФПД: 35726762772538 [11:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T112540&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48869&fm=35726762772538&tin=02508201610067®Number=0000000000092723&sum=17000 [11:25:39]OFD Sender: Processing packet 48869 [packets to send 12, broken 11] [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00048869 [11:25:39]OFD Sender: To server: pG, [11:25:39]CommunicateWithHost lk.salyk.kg:30040 [11:25:39]ConnectInit lk.salyk.kg [11:25:39]written 0, free lines is 4095 [11:25:39]Connected sock=10 [11:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 38 07 01 05 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6D 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 34 E8 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BE 00 00 35 04 06 00 20 7E 49 01 08 3A E2 F4 14 9B C0 81 6C E0 [11:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 B9 97 47 00 FE 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BE 00 00 F4 03 04 00 33 94 B4 65 B6 04 01 00 00 99 8D DE 3F 0F 49 35 97 [11:25:39]CommunicateWithHost err = 0 [11:25:39]CheckOFDResponse [11:25:39]1017 (14) - 77093643461234 [11:25:39]1041 (16) - 0000000000875060 [11:25:39]1040 (4) - 48869 [11:25:39]1012 (4) - 27.01.2024 05:27 [11:25:39]1206 (1) - 0 [11:25:39]OFD Sender: Remove packet 48869 [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00048869 [11:25:39]NVStorageDeleteData [11:25:40]Write to MH i2c: 01 00 00 C9 0F D8 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 C9 0F 00 00 00 00 00 E4 0C CF [11:25:40]RasterBufferAndPrint [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]line [11:25:40]written 0, free lines is 3306 [11:25:40]MH_Cut [11:25:40]Write to MH i2c: D1 01 00 D0 0F 01 B1 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 01 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: D1 01 00 D0 0F 00 B0 [11:25:40]Write to MH i2c: 01 00 00 D1 0F E0 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]OFD Sender: No OFD packet to send [11:25:40]*** Cut start [11:25:40]*** Partial cut [11:25:40]*** CUTSNS_PIN = 1 [11:25:40]*** CUTSNS_PIN = 0 [11:25:41]*** Brake cut motor [11:25:41]Read from MH i2c: 01 [11:25:41]MH_I2C_Read... [11:25:41]*** Stop cut motor [11:25:41]*** Cut end [11:25:41]Read from MH i2c: 01 07 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: 01 07 00 D1 0F 00 00 00 00 00 FF 0F F5 [11:25:41]process_action close_receipt done [11:25:41]requested_data is exist [11:25:41]produce_requested_data [11:25:41]requested_item fm.sn is exist - process it [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 11 00 00 [11:25:41]Write to MH i2c: E2 08 00 D2 0F 80 11 00 00 00 00 00 00 5B [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 17 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 17 00 D2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A8 [11:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:25:41]wFMCommunicate OK [11:25:41]requested_item fd.num is exist - process it [11:25:41]SAM_PROTO_GetFieldsCounters [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 13 00 00 [11:25:41]Write to MH i2c: E2 08 00 D3 0F 80 13 00 00 00 00 00 00 5E [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 62 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 62 00 D3 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E5 BE 00 00 0E 04 04 00 F3 00 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 A0 [11:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E5 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetFieldsCounters done [11:25:41]requested_item shift.num is exist - process it [11:25:41]requested_item shift.opened is exist - process it [11:25:41]req_shift_opened [11:25:41]FM_GetShiftState [11:25:41]SAM_PROTO_GetShiftState [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 13 01 00 [11:25:41]Write to MH i2c: E2 08 00 D4 0F 80 13 01 00 00 00 00 00 60 [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 D4 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F7 [11:25:41]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetShiftState done [11:25:41]FM_GetShiftState done [11:25:41]req_shift_opened done [11:25:41]requested_item shift.open_date is exist - process it [11:25:41]req_shift_open_date [11:25:41]req_shift_open_date done [11:25:41]produce_requested_data done [11:25:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48869,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:25:41]process_action_free close_receipt [11:25:41]json_value_free [11:25:41]json_value_free done [11:25:41]process_json_proto returns [11:25:41]Send response to host [11:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48869,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:25:41]free response buf [11:25:41]execute_script done [11:25:41]execute_script returns [11:25:41]free content buf [11:25:41]Sock 9.Close socket [11:25:41]Sock 9.Thread stoped [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30: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: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:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:35]OFD Sender: No OFD packet to send [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:55]OFD Sender: No OFD packet to send [11:34:00]OFD Sender: No OFD packet to send [11:34:05]OFD Sender: No OFD packet to send [11:34:10]OFD Sender: No OFD packet to send [11:34:15]OFD Sender: No OFD packet to send [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:37:57]accept exits with 7 [11:37:57]New connection [11:37:57]New thread 3066670436 created [11:37:57]Thread 3066813796 joined [11:37:57]Waiting for new connection... [11:37:57] Sock 7.Parse request [11:37:57]Sock 7.Check first char [11:37:57]Sock 7.First char is OK [11:37:57]request: POST /json_proto HTTP/1.0 [11:37:57]Method: POST [11:37:57]URL: /json_proto [11:37:57]Method is POST - this is cgi request [11:37:57]url: /json_proto [11:37:57]query_string will be loaded in cgi processing [11:37:57]execute_cgi json_proto POST (null) [11:37:57]execute_cgi path=json_proto method=POST [11:37:57]POST find Content-Length [11:37:57]Host: 172.17.56.67:8080 [11:37:57]Content-Length: 677 [11:37:57]Content-Type: application/json [11:37:57] [11:37:57]POST finish read [11:37:57]Found Content-Length = 677 [11:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:57]execute_script... [11:37: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)215967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:57]POST & json_proto [11:37:57]process_json_proto [11:37:57]json parsed OK: [11:37:57]protocol is kg_v1.0 [11:37:57]action value=close_receipt [11:37:57]process_action close_receipt [11:37:57]cmd_close_receipt [11:37:57]MH_GetDate [11:37:57]Write to MH i2c: F0 00 00 D5 0F D3 [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: F0 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: F0 09 00 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: F0 09 00 D5 0F 00 18 EB B4 65 26 5D 9E 65 7E [11:37:57]GetLastDocTimeStamp 1706354740 [11:37:57]current date 1706355480 [11:37:57]FM_GetShiftState [11:37:57]SAM_PROTO_GetShiftState [11:37:57]wFMCommunicate request_size=4 [11:37:57]MH_SAM_APDU [11:37:57]CAPDU: 80 13 01 00 [11:37:57]Write to MH i2c: E2 08 00 D6 0F 80 13 01 00 00 00 00 00 62 [11:37:57]Write i2c OK [11:37:57]MH_I2C_Read... [11:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:57]Read from MH i2c: E2 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 0E 00 [11:37:57]MH_I2C_Read... [11:37:57]Read from MH i2c: E2 0E 00 D6 0F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F9 [11:37:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:37:57]wFMCommunicate OK [11:37:57]SAM_PROTO_GetShiftState done [11:37:57]FM_GetShiftState done [11:37:57]opened in 1706313770 [11:37:57]opened+sec_in_day 1706400170 [11:37:57]quantity*price = 20019 [11:37:57]sum+1 = 20021 [11:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 50 27.01.2024 11:38 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48870 ФПД: 137526867723890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T113800&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48870&fm=137526867723890&tin=02508201610067®Number=0000000000092723&sum=20000 [11:37:58]StoreToDocumentArchive [11:37:58]shift 243 fd 48870 [11:37:58]save to /storage/0243/doc_00048870 [11:37:58]save last doc name /storage/0243/doc_00048870 to /storage/kkm_last_doc_name [11:37:58]save OK [11:37:58]Clear old archive folders... [11:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:58]tlvbuf is 01345800 [11:37:58]SAM_PROTO_ClearQueue [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 09 00 00 [11:37:58]Write to MH i2c: E2 08 00 E3 0F 80 09 00 00 00 00 00 00 64 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_ClearQueue done [11:37:58]KKMCreateOFDPacket [11:37:58]OFDProtocolAddRootSTLVToBuf [11:37:58]FM_MakeSignedData [11:37:58]FM_MakeSignedData [11:37:58]SAM_PROTO_SignData [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 0D 01 02 [11:37:58]Write to MH i2c: E2 08 00 E4 0F 80 0D 01 02 00 00 00 00 6C [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 E4 0F 00 90 00 67 [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]wFMCommunicate request_size=255 [11:37:58]MH_SAM_APDU [11:37: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 18 EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BE 00 00 35 04 06 00 7D [11:37:58]Write to MH i2c: E2 02 01 E5 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 18 EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BE 00 00 35 04 06 00 7D 00 00 DE [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 E5 0F 00 90 00 68 [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]wFMCommunicate request_size=10 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 0D 02 02 05 14 78 19 06 72 [11:37:58]Write to MH i2c: E2 0D 00 E6 0F 80 0D 02 02 05 00 14 78 19 06 72 00 00 96 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [11:37:58]RAPDU: 90 00 [11:37:58]wFMCommunicate OK [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 0D 03 02 [11:37:58]Write to MH i2c: E2 08 00 E7 0F 80 0D 03 02 00 00 00 00 71 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0B 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 0B 00 E7 0F 00 F6 0C 09 81 3B F6 14 2D 90 00 70 [11:37:58]RAPDU: F6 0C 09 81 3B F6 14 2D 90 00 [11:37:58]wFMCommunicate OK [11:37:58]SAM_PROTO_SignData done [11:37:58]FM_MakeSignedData done [11:37:58]CreateOFDProtocolMessage [11:37:58]wFMCommunicate request_size=4 [11:37:58]MH_SAM_APDU [11:37:58]CAPDU: 80 11 00 00 [11:37:58]Write to MH i2c: E2 08 00 E8 0F 80 11 00 00 00 00 00 00 71 [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:58]Read from MH i2c: E2 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: E2 17 00 E8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [11:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:37:58]wFMCommunicate OK [11:37:58]CreateOFDProtocolMessage done [11:37:58]OFDSenderStorePacket 48870 [11:37:58]StoreOFDPacket docnum=48870 [11:37:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FD B5 07 01 B0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 18 EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BE 00 00 35 04 06 00 7D 14 78 19 06 72 F6 0C 09 81 3B F6 14 2D [11:37:58]CheckFolder [11:37:58]dirname=/storage/ofd_packets [11:37:58]CheckFolder done [11:37:58]ProducePacketName [11:37:58]name=ofd_packets/00048870 [11:37:58]NVStorageSaveData ofd_packets/00048870 [11:37:58]File name is /storage/ofd_packets/00048870 [11:37:58]Write 301 bytes [11:37:58]NVStorageSaveData done [11:37:58]OFDSenderStorePacket done [11:37:58]KKMCreateOFDPacket done [11:37:58]NVStorageSaveData kkm_last_timestamp [11:37:58]File name is /storage/kkm_last_timestamp [11:37:58]Write 4 bytes [11:37:58]NVStorageSaveData done [11:37:58]ExternCall_PrintAddStr [11:37:58]wPrintStart [11:37:58]Write to MH i2c: 01 00 00 E9 0F F8 [11:37:58]OFD Sender: Processing packet 48870 [packets to send 12, broken 11] [11:37:58]ProducePacketName [11:37:58]name=ofd_packets/00048870 [11:37:58]OFD Sender: To server: pG, [11:37:58]CommunicateWithHost lk.salyk.kg:30040 [11:37:58]ConnectInit lk.salyk.kg [11:37:58]Write i2c OK [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 [11:37:58]MH_I2C_Read... [11:37:58]Read from MH i2c: 01 07 00 E9 0F 00 00 00 00 00 FF 0F 0D [11:37:58]RasterBufferAndPrint [11:37:58]line Счет N : (1)215967 [11:37:58]line ИНН: 02508201610067 [11:37:58]line Контрольно-Кассовый Чек [11:37:58]line ПРОДАЖА [11:37:58]line ТРК (МРК, ГНК) : 12 [11:37:58]line Товар: 2710124130 [11:37:58]line Аи-92-К-5 [11:37:58]line 3.320 * 60.30 [11:37:58]line = 200.20 [11:37:58]line НДС 12% НСП 1% [11:37:58]line > о реализуемом товаре [11:37:58]line ОКРУГЛЕНИЕ: -0.20 [11:37:58]line ИТОГО: 200.00 [11:37:58]line Внесено: 200.00 [11:37:58]line СДАЧА: 0.00 [11:37:58]line НСП 1% : 1.77 [11:37:58]line НДС 12% : 21.26 [11:37:58]line Наличными: 200.00 [11:37:58]line Безнал.: 0.00 [11:37:58]line Место: АЗС № 102 "Партнер Нефть" [11:37:58]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:37:58]line СНО: Общий режим [11:37:58]line Чек 50 27.01.2024 11:38 [11:37:58]line Смена: 243 ФФД: 1.0 [11:37:58]line ЗНМ: 0300000040 [11:37:58]line РНМ: 0000000000092723 [11:37:58]line Версия ККМ: 001 [11:37:58]line ФМ: 0000000000875060 [11:37:58]line ФД: 48870 [11:37:58]line ФПД: 137526867723890 [11:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T113800&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48870&fm=137526867723890&tin=02508201610067®Number=0000000000092723&sum=20000 [11:37:59]Connected sock=10 [11:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FD B5 07 01 B0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 18 EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BE 00 00 35 04 06 00 7D 14 78 19 06 72 F6 0C 09 81 3B F6 14 2D [11:37:59]written 0, free lines is 4095 [11:37:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 78 50 47 00 ED F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BE 00 00 F4 03 04 00 16 97 B4 65 B6 04 01 00 00 FE 62 00 C7 E8 47 5B BA [11:37:59]CommunicateWithHost err = 0 [11:37:59]CheckOFDResponse [11:37:59]1017 (14) - 77093643461234 [11:37:59]1041 (16) - 0000000000875060 [11:37:59]1040 (4) - 48870 [11:37:59]1012 (4) - 27.01.2024 05:39 [11:37:59]1206 (1) - 0 [11:37:59]OFD Sender: Remove packet 48870 [11:37:59]ProducePacketName [11:37:59]name=ofd_packets/00048870 [11:37:59]NVStorageDeleteData [11:37:59]Write to MH i2c: 01 00 00 14 10 24 [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: 01 07 00 14 10 00 00 00 00 00 EC 0C 23 [11:37:59]RasterBufferAndPrint [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]line [11:37:59]written 0, free lines is 3314 [11:37:59]MH_Cut [11:37:59]Write to MH i2c: D1 01 00 1B 10 01 FD [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 01 00 [11:37:59]MH_I2C_Read... [11:37:59]Read from MH i2c: D1 01 00 1B 10 00 FC [11:37:59]Write to MH i2c: 01 00 00 1C 10 2C [11:37:59]Write i2c OK [11:37:59]MH_I2C_Read... [11:37:59]OFD Sender: No OFD packet to send [11:38:00]*** Cut start [11:38:00]*** Partial cut [11:38:00]*** CUTSNS_PIN = 1 [11:38:00]*** CUTSNS_PIN = 0 [11:38:00]*** Brake cut motor [11:38:00]Read from MH i2c: 01 [11:38:00]MH_I2C_Read... [11:38:00]*** Stop cut motor [11:38:00]*** Cut end [11:38:00]Read from MH i2c: 01 07 00 [11:38:00]MH_I2C_Read... [11:38:00]Read from MH i2c: 01 07 00 1C 10 00 00 00 00 00 FF 0F 41 [11:38:00]process_action close_receipt done [11:38:00]requested_data is exist [11:38:00]produce_requested_data [11:38:00]requested_item fm.sn is exist - process it [11:38:00]wFMCommunicate request_size=4 [11:38:00]MH_SAM_APDU [11:38:00]CAPDU: 80 11 00 00 [11:38:00]Write to MH i2c: E2 08 00 1D 10 80 11 00 00 00 00 00 00 A7 [11:38:00]Write i2c OK [11:38:00]MH_I2C_Read... [11:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:01]Read from MH i2c: E2 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 17 00 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 17 00 1D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F4 [11:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:38:01]wFMCommunicate OK [11:38:01]requested_item fd.num is exist - process it [11:38:01]SAM_PROTO_GetFieldsCounters [11:38:01]wFMCommunicate request_size=4 [11:38:01]MH_SAM_APDU [11:38:01]CAPDU: 80 13 00 00 [11:38:01]Write to MH i2c: E2 08 00 1E 10 80 13 00 00 00 00 00 00 AA [11:38:01]Write i2c OK [11:38:01]MH_I2C_Read... [11:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:01]Read from MH i2c: E2 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 62 00 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 62 00 1E 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E6 BE 00 00 0E 04 04 00 F3 00 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 F0 [11:38: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E6 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:01]wFMCommunicate OK [11:38:01]SAM_PROTO_GetFieldsCounters done [11:38:01]requested_item shift.num is exist - process it [11:38:01]requested_item shift.opened is exist - process it [11:38:01]req_shift_opened [11:38:01]FM_GetShiftState [11:38:01]SAM_PROTO_GetShiftState [11:38:01]wFMCommunicate request_size=4 [11:38:01]MH_SAM_APDU [11:38:01]CAPDU: 80 13 01 00 [11:38:01]Write to MH i2c: E2 08 00 1F 10 80 13 01 00 00 00 00 00 AC [11:38:01]Write i2c OK [11:38:01]MH_I2C_Read... [11:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:01]Read from MH i2c: E2 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 0E 00 [11:38:01]MH_I2C_Read... [11:38:01]Read from MH i2c: E2 0E 00 1F 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 43 [11:38:01]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:38:01]wFMCommunicate OK [11:38:01]SAM_PROTO_GetShiftState done [11:38:01]FM_GetShiftState done [11:38:01]req_shift_opened done [11:38:01]requested_item shift.open_date is exist - process it [11:38:01]req_shift_open_date [11:38:01]req_shift_open_date done [11:38:01]produce_requested_data done [11:38:01]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48870,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:38:01]process_action_free close_receipt [11:38:01]json_value_free [11:38:01]json_value_free done [11:38:01]process_json_proto returns [11:38:01]Send response to host [11:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48870,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:38:01]free response buf [11:38:01]execute_script done [11:38:01]execute_script returns [11:38:01]free content buf [11:38:01]Sock 7.Close socket [11:38:01]Sock 7.Thread stoped [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:44]accept exits with 9 [11:41:44]New connection [11:41:44]New thread 3066813796 created [11:41:44]Thread 3066670436 joined [11:41:45]Waiting for new connection... [11:41:45] Sock 9.Parse request [11:41:45]Sock 9.Check first char [11:41:45]Sock 9.First char is OK [11:41:45]request: POST /json_proto HTTP/1.0 [11:41:45]Method: POST [11:41:45]URL: /json_proto [11:41:45]Method is POST - this is cgi request [11:41:45]url: /json_proto [11:41:45]query_string will be loaded in cgi processing [11:41:45]execute_cgi json_proto POST (null) [11:41:45]execute_cgi path=json_proto method=POST [11:41:45]POST find Content-Length [11:41:45]Host: 172.17.56.67:8080 [11:41:45]Content-Length: 673 [11:41:45]Content-Type: application/json [11:41:45] [11:41:45]POST finish read [11:41:45]Found Content-Length = 673 [11:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.000, "sum" : 60.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:45]execute_script... [11:41: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)215968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.000, "sum" : 60.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:45]POST & json_proto [11:41:45]process_json_proto [11:41:45]json parsed OK: [11:41:45]protocol is kg_v1.0 [11:41:45]action value=close_receipt [11:41:45]process_action close_receipt [11:41:45]cmd_close_receipt [11:41:45]MH_GetDate [11:41:45]Write to MH i2c: F0 00 00 20 10 1F [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 09 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 09 00 20 10 00 FC EB B4 65 26 5D 9E 65 AE [11:41:45]GetLastDocTimeStamp 1706355480 [11:41:45]current date 1706355708 [11:41:45]FM_GetShiftState [11:41:45]SAM_PROTO_GetShiftState [11:41:45]wFMCommunicate request_size=4 [11:41:45]MH_SAM_APDU [11:41:45]CAPDU: 80 13 01 00 [11:41:45]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0E 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 45 [11:41:45]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:41:45]wFMCommunicate OK [11:41:45]SAM_PROTO_GetShiftState done [11:41:45]FM_GetShiftState done [11:41:45]opened in 1706313770 [11:41:45]opened+sec_in_day 1706400170 [11:41:45]quantity*price = 6030 [11:41:45]sum+1 = 6031 [11:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 60.00 Внесено: 70.00 СДАЧА: 10.00 НСП 1% : 0.53 НДС 12% : 6.40 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 51 27.01.2024 11:41 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48871 ФПД: 180743992969433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114148&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48871&fm=180743992969433&tin=02508201610067®Number=0000000000092723&sum=6000 [11:41:46]StoreToDocumentArchive [11:41:46]shift 243 fd 48871 [11:41:46]save to /storage/0243/doc_00048871 [11:41:46]save last doc name /storage/0243/doc_00048871 to /storage/kkm_last_doc_name [11:41:46]save OK [11:41:46]Clear old archive folders... [11:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:46]tlvbuf is 011B79A0 [11:41:46]SAM_PROTO_ClearQueue [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 09 00 00 [11:41:46]Write to MH i2c: E2 08 00 2E 10 80 09 00 00 00 00 00 00 B0 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [11:41:46]RAPDU: 90 00 [11:41:46]wFMCommunicate OK [11:41:46]SAM_PROTO_ClearQueue done [11:41:46]KKMCreateOFDPacket [11:41:46]OFDProtocolAddRootSTLVToBuf [11:41:46]FM_MakeSignedData [11:41:46]FM_MakeSignedData [11:41:46]SAM_PROTO_SignData [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 0D 01 02 [11:41:46]Write to MH i2c: E2 08 00 2F 10 80 0D 01 02 00 00 00 00 B8 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 2F 10 00 90 00 B3 [11:41:46]RAPDU: 90 00 [11:41:46]wFMCommunicate OK [11:41:46]wFMCommunicate request_size=255 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 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 FC EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BE 00 00 35 04 06 00 A4 [11:41:46]Write to MH i2c: E2 02 01 30 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 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 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 FC EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BE 00 00 35 04 06 00 A4 00 00 23 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [11:41:46]RAPDU: 90 00 [11:41:46]wFMCommunicate OK [11:41:46]wFMCommunicate request_size=10 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 0D 02 02 05 62 BD 7F 08 D9 [11:41:46]Write to MH i2c: E2 0D 00 31 10 80 0D 02 02 05 00 62 BD 7F 08 D9 00 00 44 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [11:41:46]RAPDU: 90 00 [11:41:46]wFMCommunicate OK [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 0D 03 02 [11:41:46]Write to MH i2c: E2 08 00 32 10 80 0D 03 02 00 00 00 00 BD [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0B 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 0B 00 32 10 00 F3 E6 1D 3D 3D 25 82 FC 90 00 D1 [11:41:46]RAPDU: F3 E6 1D 3D 3D 25 82 FC 90 00 [11:41:46]wFMCommunicate OK [11:41:46]SAM_PROTO_SignData done [11:41:46]FM_MakeSignedData done [11:41:46]CreateOFDProtocolMessage [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 11 00 00 [11:41:46]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:46]Read from MH i2c: E2 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 17 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0A [11:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:46]wFMCommunicate OK [11:41:46]CreateOFDProtocolMessage done [11:41:46]OFDSenderStorePacket 48871 [11:41:46]StoreOFDPacket docnum=48871 [11:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B2 66 07 01 1D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 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 FC EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BE 00 00 35 04 06 00 A4 62 BD 7F 08 D9 F3 E6 1D 3D 3D 25 82 FC [11:41:46]CheckFolder [11:41:46]dirname=/storage/ofd_packets [11:41:46]CheckFolder done [11:41:46]ProducePacketName [11:41:46]name=ofd_packets/00048871 [11:41:46]NVStorageSaveData ofd_packets/00048871 [11:41:46]File name is /storage/ofd_packets/00048871 [11:41:46]Write 301 bytes [11:41:46]NVStorageSaveData done [11:41:46]OFDSenderStorePacket done [11:41:46]KKMCreateOFDPacket done [11:41:46]NVStorageSaveData kkm_last_timestamp [11:41:46]File name is /storage/kkm_last_timestamp [11:41:46]Write 4 bytes [11:41:46]NVStorageSaveData done [11:41:46]ExternCall_PrintAddStr [11:41:46]wPrintStart [11:41:46]Write to MH i2c: 01 00 00 34 10 44 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 07 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 07 00 34 10 00 00 00 00 00 FF 0F 59 [11:41:46]RasterBufferAndPrint [11:41:46]line Счет N : (1)215968 [11:41:46]line ИНН: 02508201610067 [11:41:46]line Контрольно-Кассовый Чек [11:41:46]line ПРОДАЖА [11:41:46]line ТРК (МРК, ГНК) : 22 [11:41:46]line Товар: 2710124130 [11:41:46]line Аи-92-К-5 [11:41:46]line 1.000 * 60.30 [11:41:46]line = 60.30 [11:41:46]line НДС 12% НСП 1% [11:41:46]line > о реализуемом товаре [11:41:46]line ОКРУГЛЕНИЕ: -0.30 [11:41:46]line ИТОГО: 60.00 [11:41:46]line Внесено: 70.00 [11:41:46]line СДАЧА: 10.00 [11:41:46]line НСП 1% : 0.53 [11:41:46]line НДС 12% : 6.40 [11:41:46]line Наличными: 60.00 [11:41:46]line Безнал.: 0.00 [11:41:46]line Место: АЗС № 102 "Партнер Нефть" [11:41:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:41:46]line СНО: Общий режим [11:41:46]line Чек 51 27.01.2024 11:41 [11:41:46]line Смена: 243 ФФД: 1.0 [11:41:46]line ЗНМ: 0300000040 [11:41:46]line РНМ: 0000000000092723 [11:41:46]line Версия ККМ: 001 [11:41:46]line ФМ: 0000000000875060 [11:41:46]line ФД: 48871 [11:41:46]line ФПД: 180743992969433 [11:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114148&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48871&fm=180743992969433&tin=02508201610067®Number=0000000000092723&sum=6000 [11:41:47]OFD Sender: Processing packet 48871 [packets to send 12, broken 11] [11:41:47]ProducePacketName [11:41:47]name=ofd_packets/00048871 [11:41:47]OFD Sender: To server: pG, [11:41:47]CommunicateWithHost lk.salyk.kg:30040 [11:41:47]ConnectInit lk.salyk.kg [11:41:47]written 0, free lines is 4095 [11:41:47]Connected sock=10 [11:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B2 66 07 01 1D 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 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 FC EB B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BE 00 00 35 04 06 00 A4 62 BD 7F 08 D9 F3 E6 1D 3D 3D 25 82 FC [11:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 CE BC 47 00 54 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 35 30 36 30 10 04 04 00 E7 BE 00 00 F4 03 04 00 FA 97 B4 65 B6 04 01 00 00 BE BB 91 A6 D9 66 42 98 [11:41:47]CommunicateWithHost err = 0 [11:41:47]CheckOFDResponse [11:41:47]1017 (14) - 77093643461234 [11:41:47]1041 (16) - 0000000000875060 [11:41:47]1040 (4) - 48871 [11:41:47]1012 (4) - 27.01.2024 05:43 [11:41:47]1206 (1) - 0 [11:41:47]OFD Sender: Remove packet 48871 [11:41:47]ProducePacketName [11:41:47]name=ofd_packets/00048871 [11:41:47]NVStorageDeleteData [11:41:47]Write to MH i2c: 01 00 00 5F 10 6F [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 5F 10 00 00 00 00 00 E3 0C 65 [11:41:47]RasterBufferAndPrint [11:41:47]line [11:41:47]line [11:41:47]line [11:41:47]line [11:41:47]line [11:41:47]written 0, free lines is 3305 [11:41:47]MH_Cut [11:41:47]Write to MH i2c: D1 01 00 66 10 01 48 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: D1 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: D1 01 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: D1 01 00 66 10 00 47 [11:41:47]Write to MH i2c: 01 00 00 67 10 77 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]OFD Sender: No OFD packet to send [11:41:48]*** Cut start [11:41:48]*** Partial cut [11:41:48]*** CUTSNS_PIN = 1 [11:41:48]*** CUTSNS_PIN = 0 [11:41:48]*** Brake cut motor [11:41:48]Read from MH i2c: 01 [11:41:48]MH_I2C_Read... [11:41:48]*** Stop cut motor [11:41:48]*** Cut end [11:41:48]Read from MH i2c: 01 07 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 67 10 00 00 00 00 00 FF 0F 8C [11:41:48]process_action close_receipt done [11:41:48]requested_data is exist [11:41:48]produce_requested_data [11:41:48]requested_item fm.sn is exist - process it [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 11 00 00 [11:41:48]Write to MH i2c: E2 08 00 68 10 80 11 00 00 00 00 00 00 F2 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 17 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 17 00 68 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3F [11:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:48]wFMCommunicate OK [11:41:48]requested_item fd.num is exist - process it [11:41:48]SAM_PROTO_GetFieldsCounters [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 13 00 00 [11:41:48]Write to MH i2c: E2 08 00 69 10 80 13 00 00 00 00 00 00 F5 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 62 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 62 00 69 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E7 BE 00 00 0E 04 04 00 F3 00 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 3F [11:41: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E7 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:48]wFMCommunicate OK [11:41:48]SAM_PROTO_GetFieldsCounters done [11:41:48]requested_item shift.num is exist - process it [11:41:48]requested_item shift.opened is exist - process it [11:41:48]req_shift_opened [11:41:48]FM_GetShiftState [11:41:48]SAM_PROTO_GetShiftState [11:41:48]wFMCommunicate request_size=4 [11:41:48]MH_SAM_APDU [11:41:48]CAPDU: 80 13 01 00 [11:41:48]Write to MH i2c: E2 08 00 6A 10 80 13 01 00 00 00 00 00 F7 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:48]Read from MH i2c: E2 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 0E 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: E2 0E 00 6A 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8E [11:41:48]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:41:48]wFMCommunicate OK [11:41:48]SAM_PROTO_GetShiftState done [11:41:48]FM_GetShiftState done [11:41:48]req_shift_opened done [11:41:48]requested_item shift.open_date is exist - process it [11:41:48]req_shift_open_date [11:41:48]req_shift_open_date done [11:41:48]produce_requested_data done [11:41:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48871,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:41:48]process_action_free close_receipt [11:41:48]json_value_free [11:41:48]json_value_free done [11:41:48]process_json_proto returns [11:41:48]Send response to host [11:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48871,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:41:48]free response buf [11:41:48]execute_script done [11:41:48]execute_script returns [11:41:48]free content buf [11:41:48]Sock 9.Close socket [11:41:48]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:23]accept exits with 7 [11:44:23]New connection [11:44:23]New thread 3066670436 created [11:44:23]Thread 3066813796 joined [11:44:23]Waiting for new connection... [11:44:23] Sock 7.Parse request [11:44:23]Sock 7.Check first char [11:44:23]Sock 7.First char is OK [11:44:23]request: POST /json_proto HTTP/1.0 [11:44:23]Method: POST [11:44:23]URL: /json_proto [11:44:23]Method is POST - this is cgi request [11:44:23]url: /json_proto [11:44:23]query_string will be loaded in cgi processing [11:44:23]execute_cgi json_proto POST (null) [11:44:23]execute_cgi path=json_proto method=POST [11:44:23]POST find Content-Length [11:44:23]Host: 172.17.56.67:8080 [11:44:23]Content-Length: 682 [11:44:23]Content-Type: application/json [11:44:23] [11:44:23]POST finish read [11:44:23]Found Content-Length = 682 [11:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:44:23]execute_script... [11:44: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)215969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:44:23]POST & json_proto [11:44:23]process_json_proto [11:44:23]json parsed OK: [11:44:23]protocol is kg_v1.0 [11:44:23]action value=close_receipt [11:44:23]process_action close_receipt [11:44:23]cmd_close_receipt [11:44:23]MH_GetDate [11:44:23]Write to MH i2c: F0 00 00 6B 10 6A [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 09 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: F0 09 00 6B 10 00 9A EC B4 65 26 5D 9E 65 98 [11:44:23]GetLastDocTimeStamp 1706355708 [11:44:23]current date 1706355866 [11:44:23]FM_GetShiftState [11:44:23]SAM_PROTO_GetShiftState [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 13 01 00 [11:44:23]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 90 [11:44:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_GetShiftState done [11:44:23]FM_GetShiftState done [11:44:23]opened in 1706313770 [11:44:23]opened+sec_in_day 1706400170 [11:44:23]quantity*price = 100037 [11:44:23]sum+1 = 100039 [11:44:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 52 27.01.2024 11:44 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48872 ФПД: 97677436289925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114426&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48872&fm=97677436289925&tin=02508201610067®Number=0000000000092723&sum=100000 [11:44:24]StoreToDocumentArchive [11:44:24]shift 243 fd 48872 [11:44:24]save to /storage/0243/doc_00048872 [11:44:24]save last doc name /storage/0243/doc_00048872 to /storage/kkm_last_doc_name [11:44:24]save OK [11:44:24]Clear old archive folders... [11:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:44:24]tlvbuf is 0117C840 [11:44:24]SAM_PROTO_ClearQueue [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 09 00 00 [11:44:24]Write to MH i2c: E2 08 00 79 10 80 09 00 00 00 00 00 00 FB [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]SAM_PROTO_ClearQueue done [11:44:24]KKMCreateOFDPacket [11:44:24]OFDProtocolAddRootSTLVToBuf [11:44:24]FM_MakeSignedData [11:44:24]FM_MakeSignedData [11:44:24]SAM_PROTO_SignData [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 0D 01 02 [11:44:24]Write to MH i2c: E2 08 00 7A 10 80 0D 01 02 00 00 00 00 03 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]wFMCommunicate request_size=255 [11:44:24]MH_SAM_APDU [11:44: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 9A EC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BE 00 00 35 04 06 00 58 [11:44:24]Write to MH i2c: E2 02 01 7B 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 9A EC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BE 00 00 35 04 06 00 58 00 00 37 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]wFMCommunicate request_size=10 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 0D 02 02 05 D6 4C E4 83 85 [11:44:24]Write to MH i2c: E2 0D 00 7C 10 80 0D 02 02 05 00 D6 4C E4 83 85 00 00 1E [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [11:44:24]RAPDU: 90 00 [11:44:24]wFMCommunicate OK [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 0D 03 02 [11:44:24]Write to MH i2c: E2 08 00 7D 10 80 0D 03 02 00 00 00 00 08 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 0B 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 0B 00 7D 10 00 1F D1 C8 27 4F A6 20 47 90 00 44 [11:44:24]RAPDU: 1F D1 C8 27 4F A6 20 47 90 00 [11:44:24]wFMCommunicate OK [11:44:24]SAM_PROTO_SignData done [11:44:24]FM_MakeSignedData done [11:44:24]CreateOFDProtocolMessage [11:44:24]wFMCommunicate request_size=4 [11:44:24]MH_SAM_APDU [11:44:24]CAPDU: 80 11 00 00 [11:44:24]Write to MH i2c: E2 08 00 7E 10 80 11 00 00 00 00 00 00 08 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:24]Read from MH i2c: E2 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 17 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: E2 17 00 7E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 55 [11:44:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:44:24]wFMCommunicate OK [11:44:24]CreateOFDProtocolMessage done [11:44:24]OFDSenderStorePacket 48872 [11:44:24]StoreOFDPacket docnum=48872 [11:44:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1A 58 07 01 99 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 9A EC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BE 00 00 35 04 06 00 58 D6 4C E4 83 85 1F D1 C8 27 4F A6 20 47 [11:44:24]CheckFolder [11:44:24]dirname=/storage/ofd_packets [11:44:24]CheckFolder done [11:44:24]ProducePacketName [11:44:24]name=ofd_packets/00048872 [11:44:24]NVStorageSaveData ofd_packets/00048872 [11:44:24]File name is /storage/ofd_packets/00048872 [11:44:24]Write 301 bytes [11:44:24]NVStorageSaveData done [11:44:24]OFDSenderStorePacket done [11:44:24]KKMCreateOFDPacket done [11:44:24]NVStorageSaveData kkm_last_timestamp [11:44:24]File name is /storage/kkm_last_timestamp [11:44:24]Write 4 bytes [11:44:24]NVStorageSaveData done [11:44:24]ExternCall_PrintAddStr [11:44:24]wPrintStart [11:44:24]Write to MH i2c: 01 00 00 7F 10 8F [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 7F 10 00 00 00 00 00 FF 0F A4 [11:44:24]RasterBufferAndPrint [11:44:24]line Счет N : (1)215969 [11:44:24]line ИНН: 02508201610067 [11:44:24]line Контрольно-Кассовый Чек [11:44:24]line ПРОДАЖА [11:44:24]line ТРК (МРК, ГНК) : 22 [11:44:24]line Товар: 2710124130 [11:44:24]line Аи-92-К-5 [11:44:24]line 16.590 * 60.30 [11:44:24]line = 1000.38 [11:44:24]line НДС 12% НСП 1% [11:44:24]line > о реализуемом товаре [11:44:24]line ОКРУГЛЕНИЕ: -0.38 [11:44:24]line ИТОГО: 1000.00 [11:44:24]line Внесено: 1000.00 [11:44:24]line СДАЧА: 0.00 [11:44:24]line НСП 1% : 8.85 [11:44:24]line НДС 12% : 106.23 [11:44:24]line Наличными: 1000.00 [11:44:24]line Безнал.: 0.00 [11:44:24]line Место: АЗС № 102 "Партнер Нефть" [11:44:24]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:44:24]line СНО: Общий режим [11:44:24]line Чек 52 27.01.2024 11:44 [11:44:24]line Смена: 243 ФФД: 1.0 [11:44:25]line ЗНМ: 0300000040 [11:44:25]line РНМ: 0000000000092723 [11:44:25]line Версия ККМ: 001 [11:44:25]line ФМ: 0000000000875060 [11:44:25]line ФД: 48872 [11:44:25]line ФПД: 97677436289925 [11:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114426&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48872&fm=97677436289925&tin=02508201610067®Number=0000000000092723&sum=100000 [11:44:25]OFD Sender: Processing packet 48872 [packets to send 12, broken 11] [11:44:25]ProducePacketName [11:44:25]name=ofd_packets/00048872 [11:44:25]OFD Sender: To server: pG, [11:44:25]CommunicateWithHost lk.salyk.kg:30040 [11:44:25]ConnectInit lk.salyk.kg [11:44:25]written 0, free lines is 4095 [11:44:25]Connected sock=10 [11:44:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1A 58 07 01 99 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 9A EC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E8 BE 00 00 35 04 06 00 58 D6 4C E4 83 85 1F D1 C8 27 4F A6 20 47 [11:44:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 42 88 47 00 EC 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 35 30 36 30 10 04 04 00 E8 BE 00 00 F4 03 04 00 98 98 B4 65 B6 04 01 00 00 70 76 EE 9F CE 2C EC B0 [11:44:25]CommunicateWithHost err = 0 [11:44:25]CheckOFDResponse [11:44:25]1017 (14) - 77093643461234 [11:44:25]1041 (16) - 0000000000875060 [11:44:25]1040 (4) - 48872 [11:44:25]1012 (4) - 27.01.2024 05:46 [11:44:25]1206 (1) - 0 [11:44:25]OFD Sender: Remove packet 48872 [11:44:25]ProducePacketName [11:44:25]name=ofd_packets/00048872 [11:44:25]NVStorageDeleteData [11:44:25]Write to MH i2c: 01 00 00 AA 10 BA [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 AA 10 00 00 00 00 00 EB 0C B8 [11:44:25]RasterBufferAndPrint [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]line [11:44:25]written 0, free lines is 3313 [11:44:25]MH_Cut [11:44:25]Write to MH i2c: D1 01 00 B1 10 01 93 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 01 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: D1 01 00 B1 10 00 92 [11:44:25]Write to MH i2c: 01 00 00 B2 10 C2 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]OFD Sender: No OFD packet to send [11:44:26]*** Cut start [11:44:26]*** Partial cut [11:44:26]*** CUTSNS_PIN = 1 [11:44:26]*** CUTSNS_PIN = 0 [11:44:26]*** Brake cut motor [11:44:26]Read from MH i2c: 01 [11:44:26]MH_I2C_Read... [11:44:26]*** Stop cut motor [11:44:26]*** Cut end [11:44:26]Read from MH i2c: 01 07 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: 01 07 00 B2 10 00 00 00 00 00 FF 0F D7 [11:44:26]process_action close_receipt done [11:44:26]requested_data is exist [11:44:26]produce_requested_data [11:44:26]requested_item fm.sn is exist - process it [11:44:26]wFMCommunicate request_size=4 [11:44:26]MH_SAM_APDU [11:44:26]CAPDU: 80 11 00 00 [11:44:26]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:26]Read from MH i2c: E2 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 17 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8A [11:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:44:26]wFMCommunicate OK [11:44:26]requested_item fd.num is exist - process it [11:44:26]SAM_PROTO_GetFieldsCounters [11:44:26]wFMCommunicate request_size=4 [11:44:26]MH_SAM_APDU [11:44:26]CAPDU: 80 13 00 00 [11:44:26]Write to MH i2c: E2 08 00 B4 10 80 13 00 00 00 00 00 00 40 [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 62 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 62 00 B4 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E8 BE 00 00 0E 04 04 00 F3 00 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 8E [11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E8 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_GetFieldsCounters done [11:44:27]requested_item shift.num is exist - process it [11:44:27]requested_item shift.opened is exist - process it [11:44:27]req_shift_opened [11:44:27]FM_GetShiftState [11:44:27]SAM_PROTO_GetShiftState [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 13 01 00 [11:44:27]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0E 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D9 [11:44:27]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_GetShiftState done [11:44:27]FM_GetShiftState done [11:44:27]req_shift_opened done [11:44:27]requested_item shift.open_date is exist - process it [11:44:27]req_shift_open_date [11:44:27]req_shift_open_date done [11:44:27]produce_requested_data done [11:44:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48872,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:44:27]process_action_free close_receipt [11:44:27]json_value_free [11:44:27]json_value_free done [11:44:27]process_json_proto returns [11:44:27]Send response to host [11:44:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48872,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:44:27]free response buf [11:44:27]execute_script done [11:44:27]execute_script returns [11:44:27]free content buf [11:44:27]Sock 7.Close socket [11:44:27]Sock 7.Thread stoped [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46: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:20]accept exits with 9 [11:47:20]New connection [11:47:20]New thread 3066813796 created [11:47:20]Thread 3066670436 joined [11:47:20]Waiting for new connection... [11:47:20] Sock 9.Parse request [11:47:20]Sock 9.Check first char [11:47:20]Sock 9.First char is OK [11:47:20]request: POST /json_proto HTTP/1.0 [11:47:20]Method: POST [11:47:20]URL: /json_proto [11:47:20]Method is POST - this is cgi request [11:47:20]url: /json_proto [11:47:20]query_string will be loaded in cgi processing [11:47:20]execute_cgi json_proto POST (null) [11:47:20]execute_cgi path=json_proto method=POST [11:47:20]POST find Content-Length [11:47:20]Host: 172.17.56.67:8080 [11:47:20]Content-Length: 682 [11:47:20]Content-Type: application/json [11:47:20] [11:47:20]POST finish read [11:47:20]Found Content-Length = 682 [11:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:47:20]execute_script... [11:47: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)215970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:47:20]POST & json_proto [11:47:20]process_json_proto [11:47:20]json parsed OK: [11:47:20]protocol is kg_v1.0 [11:47:20]action value=close_receipt [11:47:20]process_action close_receipt [11:47:20]cmd_close_receipt [11:47:20]MH_GetDate [11:47:20]Write to MH i2c: F0 00 00 B6 10 B5 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 09 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: F0 09 00 B6 10 00 4B ED B4 65 26 5D 9E 65 95 [11:47:20]GetLastDocTimeStamp 1706355866 [11:47:20]current date 1706356043 [11:47:20]FM_GetShiftState [11:47:20]SAM_PROTO_GetShiftState [11:47:20]wFMCommunicate request_size=4 [11:47:20]MH_SAM_APDU [11:47:20]CAPDU: 80 13 01 00 [11:47:20]Write to MH i2c: E2 08 00 B7 10 80 13 01 00 00 00 00 00 44 [11:47:20]Write i2c OK [11:47:20]MH_I2C_Read... [11:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:20]Read from MH i2c: E2 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 [11:47:20]MH_I2C_Read... [11:47:20]Read from MH i2c: E2 0E 00 B7 10 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 DB [11:47:20]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:47:20]wFMCommunicate OK [11:47:20]SAM_PROTO_GetShiftState done [11:47:20]FM_GetShiftState done [11:47:20]opened in 1706313770 [11:47:20]opened+sec_in_day 1706400170 [11:47:20]quantity*price = 100037 [11:47:20]sum+1 = 100039 [11:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 53 27.01.2024 11:47 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48873 ФПД: 56119288724172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114723&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48873&fm=56119288724172&tin=02508201610067®Number=0000000000092723&sum=100000 [11:47:21]StoreToDocumentArchive [11:47:21]shift 243 fd 48873 [11:47:21]save to /storage/0243/doc_00048873 [11:47:21]save last doc name /storage/0243/doc_00048873 to /storage/kkm_last_doc_name [11:47:21]save OK [11:47:21]Clear old archive folders... [11:47:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:21]tlvbuf is B6F36850 [11:47:21]SAM_PROTO_ClearQueue [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 09 00 00 [11:47:21]Write to MH i2c: E2 08 00 C4 10 80 09 00 00 00 00 00 00 46 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]SAM_PROTO_ClearQueue done [11:47:21]KKMCreateOFDPacket [11:47:21]OFDProtocolAddRootSTLVToBuf [11:47:21]FM_MakeSignedData [11:47:21]FM_MakeSignedData [11:47:21]SAM_PROTO_SignData [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 0D 01 02 [11:47:21]Write to MH i2c: E2 08 00 C5 10 80 0D 01 02 00 00 00 00 4E [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]wFMCommunicate request_size=255 [11:47:21]MH_SAM_APDU [11:47: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 4B ED B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BE 00 00 35 04 06 00 33 [11:47:21]Write to MH i2c: E2 02 01 C6 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 4B ED B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BE 00 00 35 04 06 00 33 00 00 11 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]wFMCommunicate request_size=10 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 0D 02 02 05 0A 4A 44 FA CC [11:47:21]Write to MH i2c: E2 0D 00 C7 10 80 0D 02 02 05 00 0A 4A 44 FA CC 00 00 B9 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [11:47:21]RAPDU: 90 00 [11:47:21]wFMCommunicate OK [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 0D 03 02 [11:47:21]Write to MH i2c: E2 08 00 C8 10 80 0D 03 02 00 00 00 00 53 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 0B 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 0B 00 C8 10 00 C5 D6 39 97 16 EF 10 F0 90 00 C4 [11:47:21]RAPDU: C5 D6 39 97 16 EF 10 F0 90 00 [11:47:21]wFMCommunicate OK [11:47:21]SAM_PROTO_SignData done [11:47:21]FM_MakeSignedData done [11:47:21]CreateOFDProtocolMessage [11:47:21]wFMCommunicate request_size=4 [11:47:21]MH_SAM_APDU [11:47:21]CAPDU: 80 11 00 00 [11:47:21]Write to MH i2c: E2 08 00 C9 10 80 11 00 00 00 00 00 00 53 [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:21]Read from MH i2c: E2 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 17 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: E2 17 00 C9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A0 [11:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:47:21]wFMCommunicate OK [11:47:21]CreateOFDProtocolMessage done [11:47:21]OFDSenderStorePacket 48873 [11:47:21]StoreOFDPacket docnum=48873 [11:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A1 BA 07 01 6C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 4B ED B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BE 00 00 35 04 06 00 33 0A 4A 44 FA CC C5 D6 39 97 16 EF 10 F0 [11:47:21]CheckFolder [11:47:21]dirname=/storage/ofd_packets [11:47:21]CheckFolder done [11:47:21]ProducePacketName [11:47:21]name=ofd_packets/00048873 [11:47:21]NVStorageSaveData ofd_packets/00048873 [11:47:21]File name is /storage/ofd_packets/00048873 [11:47:21]Write 301 bytes [11:47:21]NVStorageSaveData done [11:47:21]OFDSenderStorePacket done [11:47:21]KKMCreateOFDPacket done [11:47:21]NVStorageSaveData kkm_last_timestamp [11:47:21]File name is /storage/kkm_last_timestamp [11:47:21]Write 4 bytes [11:47:21]NVStorageSaveData done [11:47:21]ExternCall_PrintAddStr [11:47:21]wPrintStart [11:47:21]Write to MH i2c: 01 00 00 CA 10 DA [11:47:21]Write i2c OK [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: 01 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: 01 07 00 [11:47:21]MH_I2C_Read... [11:47:21]Read from MH i2c: 01 07 00 CA 10 00 00 00 00 00 FF 0F EF [11:47:21]RasterBufferAndPrint [11:47:21]line Счет N : (1)215970 [11:47:21]line ИНН: 02508201610067 [11:47:21]line Контрольно-Кассовый Чек [11:47:21]line ПРОДАЖА [11:47:21]line ТРК (МРК, ГНК) : 12 [11:47:21]line Товар: 2710124130 [11:47:21]line Аи-92-К-5 [11:47:21]line 16.590 * 60.30 [11:47:21]line = 1000.38 [11:47:21]line НДС 12% НСП 1% [11:47:21]line > о реализуемом товаре [11:47:21]line ОКРУГЛЕНИЕ: -0.38 [11:47:21]line ИТОГО: 1000.00 [11:47:21]line Внесено: 1000.00 [11:47:21]line СДАЧА: 0.00 [11:47:21]line НСП 1% : 8.85 [11:47:21]line НДС 12% : 106.23 [11:47:21]line Наличными: 1000.00 [11:47:21]line Безнал.: 0.00 [11:47:21]line Место: АЗС № 102 "Партнер Нефть" [11:47:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:47:21]line СНО: Общий режим [11:47:21]line Чек 53 27.01.2024 11:47 [11:47:21]line Смена: 243 ФФД: 1.0 [11:47:21]line ЗНМ: 0300000040 [11:47:21]line РНМ: 0000000000092723 [11:47:21]line Версия ККМ: 001 [11:47:21]line ФМ: 0000000000875060 [11:47:21]line ФД: 48873 [11:47:21]line ФПД: 56119288724172 [11:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T114723&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48873&fm=56119288724172&tin=02508201610067®Number=0000000000092723&sum=100000 [11:47:22]OFD Sender: Processing packet 48873 [packets to send 12, broken 11] [11:47:22]ProducePacketName [11:47:22]name=ofd_packets/00048873 [11:47:22]OFD Sender: To server: pG, [11:47:22]CommunicateWithHost lk.salyk.kg:30040 [11:47:22]ConnectInit lk.salyk.kg [11:47:22]written 0, free lines is 4095 [11:47:22]Connected sock=10 [11:47:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A1 BA 07 01 6C 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 4B ED B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E9 BE 00 00 35 04 06 00 33 0A 4A 44 FA CC C5 D6 39 97 16 EF 10 F0 [11:47:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 BE 9C 47 00 10 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 35 30 36 30 10 04 04 00 E9 BE 00 00 F4 03 04 00 49 99 B4 65 B6 04 01 00 00 29 94 9A 82 E8 66 A7 05 [11:47:22]CommunicateWithHost err = 0 [11:47:22]CheckOFDResponse [11:47:22]1017 (14) - 77093643461234 [11:47:22]1041 (16) - 0000000000875060 [11:47:22]1040 (4) - 48873 [11:47:22]1012 (4) - 27.01.2024 05:48 [11:47:22]1206 (1) - 0 [11:47:22]OFD Sender: Remove packet 48873 [11:47:22]ProducePacketName [11:47:22]name=ofd_packets/00048873 [11:47:22]NVStorageDeleteData [11:47:22]Write to MH i2c: 01 00 00 F5 10 05 [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: 01 07 00 F5 10 00 00 00 00 00 EB 0C 03 [11:47:22]RasterBufferAndPrint [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]line [11:47:22]written 0, free lines is 3313 [11:47:22]MH_Cut [11:47:22]Write to MH i2c: D1 01 00 FC 10 01 DE [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 01 00 [11:47:22]MH_I2C_Read... [11:47:22]Read from MH i2c: D1 01 00 FC 10 00 DD [11:47:22]Write to MH i2c: 01 00 00 FD 10 0D [11:47:22]Write i2c OK [11:47:22]MH_I2C_Read... [11:47:22]OFD Sender: No OFD packet to send [11:47:23]*** Cut start [11:47:23]*** Partial cut [11:47:23]*** CUTSNS_PIN = 1 [11:47:23]*** CUTSNS_PIN = 0 [11:47:23]*** Brake cut motor [11:47:23]Read from MH i2c: 01 [11:47:23]*** Stop cut motor [11:47:23]*** Cut end [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: 01 07 00 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: 01 07 00 FD 10 00 00 00 00 00 FF 0F 22 [11:47:23]process_action close_receipt done [11:47:23]requested_data is exist [11:47:23]produce_requested_data [11:47:23]requested_item fm.sn is exist - process it [11:47:23]wFMCommunicate request_size=4 [11:47:23]MH_SAM_APDU [11:47:23]CAPDU: 80 11 00 00 [11:47:23]Write to MH i2c: E2 08 00 FE 10 80 11 00 00 00 00 00 00 88 [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:23]Read from MH i2c: E2 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 17 00 [11:47:23]MH_I2C_Read... [11:47:23]Read from MH i2c: E2 17 00 FE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D5 [11:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:47:23]wFMCommunicate OK [11:47:23]requested_item fd.num is exist - process it [11:47:23]SAM_PROTO_GetFieldsCounters [11:47:23]wFMCommunicate request_size=4 [11:47:23]MH_SAM_APDU [11:47:23]CAPDU: 80 13 00 00 [11:47:23]Write to MH i2c: E2 08 00 FF 10 80 13 00 00 00 00 00 00 8B [11:47:23]Write i2c OK [11:47:23]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 62 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 62 00 FF 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E9 BE 00 00 0E 04 04 00 F3 00 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 DD [11:47: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_GetFieldsCounters done [11:47:24]requested_item shift.num is exist - process it [11:47:24]requested_item shift.opened is exist - process it [11:47:24]req_shift_opened [11:47:24]FM_GetShiftState [11:47:24]SAM_PROTO_GetShiftState [11:47:24]wFMCommunicate request_size=4 [11:47:24]MH_SAM_APDU [11:47:24]CAPDU: 80 13 01 00 [11:47:24]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [11:47:24]Write i2c OK [11:47:24]MH_I2C_Read... [11:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:24]Read from MH i2c: E2 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 [11:47:24]MH_I2C_Read... [11:47:24]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 25 [11:47:24]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:47:24]wFMCommunicate OK [11:47:24]SAM_PROTO_GetShiftState done [11:47:24]FM_GetShiftState done [11:47:24]req_shift_opened done [11:47:24]requested_item shift.open_date is exist - process it [11:47:24]req_shift_open_date [11:47:24]req_shift_open_date done [11:47:24]produce_requested_data done [11:47:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48873,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:47:24]process_action_free close_receipt [11:47:24]json_value_free [11:47:24]json_value_free done [11:47:24]process_json_proto returns [11:47:24]Send response to host [11:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48873,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:47:24]free response buf [11:47:24]execute_script done [11:47:24]execute_script returns [11:47:24]free content buf [11:47:24]Sock 9.Close socket [11:47:24]Sock 9.Thread stoped [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:52:59]accept exits with 7 [11:52:59]New connection [11:52:59]New thread 3066670436 created [11:52:59]Thread 3066813796 joined [11:52:59]Waiting for new connection... [11:52:59] Sock 7.Parse request [11:52:59]Sock 7.Check first char [11:52:59]Sock 7.First char is OK [11:52:59]request: POST /json_proto HTTP/1.0 [11:52:59]Method: POST [11:52:59]URL: /json_proto [11:52:59]Method is POST - this is cgi request [11:52:59]url: /json_proto [11:52:59]query_string will be loaded in cgi processing [11:52:59]execute_cgi json_proto POST (null) [11:52:59]execute_cgi path=json_proto method=POST [11:52:59]POST find Content-Length [11:52:59]Host: 172.17.56.67:8080 [11:52:59]Content-Length: 677 [11:52:59]Content-Type: application/json [11:52:59] [11:52:59]POST finish read [11:52:59]Found Content-Length = 677 [11:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:59]execute_script... [11:52: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)215971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:59]POST & json_proto [11:52:59]process_json_proto [11:52:59]json parsed OK: [11:52:59]protocol is kg_v1.0 [11:52:59]action value=close_receipt [11:52:59]process_action close_receipt [11:52:59]cmd_close_receipt [11:52:59]MH_GetDate [11:52:59]Write to MH i2c: F0 00 00 01 11 01 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: F0 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: F0 09 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: F0 09 00 01 11 00 9F EE B4 65 26 5D 9E 65 36 [11:52:59]GetLastDocTimeStamp 1706356043 [11:52:59]current date 1706356383 [11:52:59]FM_GetShiftState [11:52:59]SAM_PROTO_GetShiftState [11:52:59]wFMCommunicate request_size=4 [11:52:59]MH_SAM_APDU [11:52:59]CAPDU: 80 13 01 00 [11:52:59]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [11:52:59]Write i2c OK [11:52:59]MH_I2C_Read... [11:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:59]Read from MH i2c: E2 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0E 00 [11:52:59]MH_I2C_Read... [11:52:59]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 27 [11:52:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:52:59]wFMCommunicate OK [11:52:59]SAM_PROTO_GetShiftState done [11:52:59]FM_GetShiftState done [11:52:59]opened in 1706313770 [11:52:59]opened+sec_in_day 1706400170 [11:52:59]quantity*price = 30029 [11:52:59]sum+1 = 30030 [11:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 54 27.01.2024 11:53 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48874 ФПД: 281301682412910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T115303&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48874&fm=281301682412910&tin=02508201610067®Number=0000000000092723&sum=30000 [11:53:01]StoreToDocumentArchive [11:53:01]shift 243 fd 48874 [11:53:01]save to /storage/0243/doc_00048874 [11:53:01]save last doc name /storage/0243/doc_00048874 to /storage/kkm_last_doc_name [11:53:01]save OK [11:53:01]Clear old archive folders... [11:53:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:01]tlvbuf is 0117D780 [11:53:01]SAM_PROTO_ClearQueue [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 09 00 00 [11:53:01]Write to MH i2c: E2 08 00 0F 11 80 09 00 00 00 00 00 00 92 [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [11:53:01]RAPDU: 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_ClearQueue done [11:53:01]KKMCreateOFDPacket [11:53:01]OFDProtocolAddRootSTLVToBuf [11:53:01]FM_MakeSignedData [11:53:01]FM_MakeSignedData [11:53:01]SAM_PROTO_SignData [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 0D 01 02 [11:53:01]Write to MH i2c: E2 08 00 10 11 80 0D 01 02 00 00 00 00 9A [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [11:53:01]RAPDU: 90 00 [11:53:01]wFMCommunicate OK [11:53:01]wFMCommunicate request_size=255 [11:53:01]MH_SAM_APDU [11:53: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9F EE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BE 00 00 35 04 06 00 FF [11:53:01]Write to MH i2c: E2 02 01 11 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9F EE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BE 00 00 35 04 06 00 FF 00 00 D6 [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [11:53:01]RAPDU: 90 00 [11:53:01]wFMCommunicate OK [11:53:01]wFMCommunicate request_size=10 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 0D 02 02 05 D7 A6 DA DD 6E [11:53:01]Write to MH i2c: E2 0D 00 12 11 80 0D 02 02 05 00 D7 A6 DA DD 6E 00 00 49 [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [11:53:01]RAPDU: 90 00 [11:53:01]wFMCommunicate OK [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 0D 03 02 [11:53:01]Write to MH i2c: E2 08 00 13 11 80 0D 03 02 00 00 00 00 9F [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0B 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 0B 00 13 11 00 CC 8F B3 E0 E6 45 25 34 90 00 12 [11:53:01]RAPDU: CC 8F B3 E0 E6 45 25 34 90 00 [11:53:01]wFMCommunicate OK [11:53:01]SAM_PROTO_SignData done [11:53:01]FM_MakeSignedData done [11:53:01]CreateOFDProtocolMessage [11:53:01]wFMCommunicate request_size=4 [11:53:01]MH_SAM_APDU [11:53:01]CAPDU: 80 11 00 00 [11:53:01]Write to MH i2c: E2 08 00 14 11 80 11 00 00 00 00 00 00 9F [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:01]Read from MH i2c: E2 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: E2 17 00 14 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EC [11:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:53:01]wFMCommunicate OK [11:53:01]CreateOFDProtocolMessage done [11:53:01]OFDSenderStorePacket 48874 [11:53:01]StoreOFDPacket docnum=48874 [11:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B9 5D 07 01 3B 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9F EE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BE 00 00 35 04 06 00 FF D7 A6 DA DD 6E CC 8F B3 E0 E6 45 25 34 [11:53:01]CheckFolder [11:53:01]dirname=/storage/ofd_packets [11:53:01]CheckFolder done [11:53:01]ProducePacketName [11:53:01]name=ofd_packets/00048874 [11:53:01]NVStorageSaveData ofd_packets/00048874 [11:53:01]File name is /storage/ofd_packets/00048874 [11:53:01]Write 301 bytes [11:53:01]NVStorageSaveData done [11:53:01]OFDSenderStorePacket done [11:53:01]KKMCreateOFDPacket done [11:53:01]NVStorageSaveData kkm_last_timestamp [11:53:01]File name is /storage/kkm_last_timestamp [11:53:01]Write 4 bytes [11:53:01]NVStorageSaveData done [11:53:01]ExternCall_PrintAddStr [11:53:01]wPrintStart [11:53:01]Write to MH i2c: 01 00 00 15 11 26 [11:53:01]Write i2c OK [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: 01 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: 01 07 00 [11:53:01]MH_I2C_Read... [11:53:01]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 FF 0F 3B [11:53:01]RasterBufferAndPrint [11:53:01]line Счет N : (1)215971 [11:53:01]line ИНН: 02508201610067 [11:53:01]line Контрольно-Кассовый Чек [11:53:01]line ПРОДАЖА [11:53:01]line ТРК (МРК, ГНК) : 12 [11:53:01]line Товар: 2710124130 [11:53:01]line Аи-92-К-5 [11:53:01]line 4.980 * 60.30 [11:53:01]line = 300.29 [11:53:01]line НДС 12% НСП 1% [11:53:01]line > о реализуемом товаре [11:53:01]line ОКРУГЛЕНИЕ: -0.29 [11:53:01]line ИТОГО: 300.00 [11:53:01]line Внесено: 300.00 [11:53:01]line СДАЧА: 0.00 [11:53:01]line НСП 1% : 2.66 [11:53:01]line НДС 12% : 31.89 [11:53:01]line Наличными: 300.00 [11:53:01]line Безнал.: 0.00 [11:53:01]line Место: АЗС № 102 "Партнер Нефть" [11:53:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:53:01]line СНО: Общий режим [11:53:01]line Чек 54 27.01.2024 11:53 [11:53:01]line Смена: 243 ФФД: 1.0 [11:53:01]line ЗНМ: 0300000040 [11:53:01]line РНМ: 0000000000092723 [11:53:01]line Версия ККМ: 001 [11:53:01]line ФМ: 0000000000875060 [11:53:01]line ФД: 48874 [11:53:01]line ФПД: 281301682412910 [11:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T115303&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48874&fm=281301682412910&tin=02508201610067®Number=0000000000092723&sum=30000 [11:53:01]OFD Sender: Processing packet 48874 [packets to send 12, broken 11] [11:53:01]ProducePacketName [11:53:01]name=ofd_packets/00048874 [11:53:01]OFD Sender: To server: pG, [11:53:01]CommunicateWithHost lk.salyk.kg:30040 [11:53:01]ConnectInit lk.salyk.kg [11:53:01]written 0, free lines is 4095 [11:53:01]Connected sock=10 [11:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B9 5D 07 01 3B 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 9F EE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EA BE 00 00 35 04 06 00 FF D7 A6 DA DD 6E CC 8F B3 E0 E6 45 25 34 [11:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 0E D3 47 00 3B 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 35 30 36 30 10 04 04 00 EA BE 00 00 F4 03 04 00 9D 9A B4 65 B6 04 01 00 00 CA 68 0F 2E 82 5F B5 FC [11:53:02]CommunicateWithHost err = 0 [11:53:02]CheckOFDResponse [11:53:02]1017 (14) - 77093643461234 [11:53:02]1041 (16) - 0000000000875060 [11:53:02]1040 (4) - 48874 [11:53:02]1012 (4) - 27.01.2024 05:54 [11:53:02]1206 (1) - 0 [11:53:02]OFD Sender: Remove packet 48874 [11:53:02]ProducePacketName [11:53:02]name=ofd_packets/00048874 [11:53:02]NVStorageDeleteData [11:53:02]Write to MH i2c: 01 00 00 40 11 51 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 07 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 EB 0C 4F [11:53:02]RasterBufferAndPrint [11:53:02]line [11:53:02]line [11:53:02]line [11:53:02]line [11:53:02]line [11:53:02]written 0, free lines is 3314 [11:53:02]MH_Cut [11:53:02]Write to MH i2c: D1 01 00 47 11 01 2A [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: D1 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: D1 01 00 [11:53:02]MH_I2C_Read... [11:53:02]Read from MH i2c: D1 01 00 47 11 00 29 [11:53:02]Write to MH i2c: 01 00 00 48 11 59 [11:53:02]Write i2c OK [11:53:02]MH_I2C_Read... [11:53:02]OFD Sender: No OFD packet to send [11:53:03]*** Cut start [11:53:03]*** Partial cut [11:53:03]*** CUTSNS_PIN = 1 [11:53:03]*** CUTSNS_PIN = 0 [11:53:03]*** Brake cut motor [11:53:03]Read from MH i2c: 01 [11:53:03]MH_I2C_Read... [11:53:03]*** Stop cut motor [11:53:03]*** Cut end [11:53:03]Read from MH i2c: 01 07 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [11:53:03]process_action close_receipt done [11:53:03]requested_data is exist [11:53:03]produce_requested_data [11:53:03]requested_item fm.sn is exist - process it [11:53:03]wFMCommunicate request_size=4 [11:53:03]MH_SAM_APDU [11:53:03]CAPDU: 80 11 00 00 [11:53:03]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:03]Read from MH i2c: E2 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 17 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 21 [11:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:53:03]wFMCommunicate OK [11:53:03]requested_item fd.num is exist - process it [11:53:03]SAM_PROTO_GetFieldsCounters [11:53:03]wFMCommunicate request_size=4 [11:53:03]MH_SAM_APDU [11:53:03]CAPDU: 80 13 00 00 [11:53:03]Write to MH i2c: E2 08 00 4A 11 80 13 00 00 00 00 00 00 D7 [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:03]Read from MH i2c: E2 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 62 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 62 00 4A 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EA BE 00 00 0E 04 04 00 F3 00 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 2D [11:53: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:03]wFMCommunicate OK [11:53:03]SAM_PROTO_GetFieldsCounters done [11:53:03]requested_item shift.num is exist - process it [11:53:03]requested_item shift.opened is exist - process it [11:53:03]req_shift_opened [11:53:03]FM_GetShiftState [11:53:03]SAM_PROTO_GetShiftState [11:53:03]wFMCommunicate request_size=4 [11:53:03]MH_SAM_APDU [11:53:03]CAPDU: 80 13 01 00 [11:53:03]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [11:53:03]Write i2c OK [11:53:03]MH_I2C_Read... [11:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:03]Read from MH i2c: E2 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 [11:53:03]MH_I2C_Read... [11:53:03]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 70 [11:53:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [11:53:03]wFMCommunicate OK [11:53:03]SAM_PROTO_GetShiftState done [11:53:03]FM_GetShiftState done [11:53:03]req_shift_opened done [11:53:03]requested_item shift.open_date is exist - process it [11:53:03]req_shift_open_date [11:53:03]req_shift_open_date done [11:53:03]produce_requested_data done [11:53:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48874,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [11:53:03]process_action_free close_receipt [11:53:03]json_value_free [11:53:03]json_value_free done [11:53:03]process_json_proto returns [11:53:03]Send response to host [11:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48874,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [11:53:03]free response buf [11:53:03]execute_script done [11:53:03]execute_script returns [11:53:03]free content buf [11:53:03]Sock 7.Close socket [11:53:03]Sock 7.Thread stoped [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]OFD Sender: No OFD packet to send [11:57:22]OFD Sender: No OFD packet to send [11:57:27]OFD Sender: No OFD packet to send [11:57:32]OFD Sender: No OFD packet to send [11:57:37]OFD Sender: No OFD packet to send [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59: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:32]accept exits with 9 [12:00:32]New connection [12:00:32]New thread 3066813796 created [12:00:32]Thread 3066670436 joined [12:00:32]Waiting for new connection... [12:00:32] Sock 9.Parse request [12:00:32]Sock 9.Check first char [12:00:32]Sock 9.First char is OK [12:00:32]request: POST /json_proto HTTP/1.0 [12:00:32]Method: POST [12:00:32]URL: /json_proto [12:00:32]Method is POST - this is cgi request [12:00:32]url: /json_proto [12:00:32]query_string will be loaded in cgi processing [12:00:32]execute_cgi json_proto POST (null) [12:00:32]execute_cgi path=json_proto method=POST [12:00:32]POST find Content-Length [12:00:32]Host: 172.17.56.67:8080 [12:00:32]Content-Length: 679 [12:00:32]Content-Type: application/json [12:00:32] [12:00:32]POST finish read [12:00:32]Found Content-Length = 679 [12:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:00:32]execute_script... [12:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:00:32]POST & json_proto [12:00:32]process_json_proto [12:00:32]json parsed OK: [12:00:32]protocol is kg_v1.0 [12:00:32]action value=close_receipt [12:00:32]process_action close_receipt [12:00:32]cmd_close_receipt [12:00:32]MH_GetDate [12:00:32]Write to MH i2c: F0 00 00 4C 11 4C [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 09 00 [12:00:32]MH_I2C_Read... [12:00:32]Read from MH i2c: F0 09 00 4C 11 00 64 F0 B4 65 26 5D 9E 65 48 [12:00:32]GetLastDocTimeStamp 1706356383 [12:00:32]current date 1706356836 [12:00:32]FM_GetShiftState [12:00:32]SAM_PROTO_GetShiftState [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 13 01 00 [12:00:32]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 72 [12:00:33]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_GetShiftState done [12:00:33]FM_GetShiftState done [12:00:33]opened in 1706313770 [12:00:33]opened+sec_in_day 1706400170 [12:00:33]quantity*price = 100026 [12:00:33]sum+1 = 100028 [12:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 55 27.01.2024 12:00 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48875 ФПД: 1442109623598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120036&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48875&fm=1442109623598&tin=02508201610067®Number=0000000000092723&sum=100000 [12:00:34]StoreToDocumentArchive [12:00:34]shift 243 fd 48875 [12:00:34]save to /storage/0243/doc_00048875 [12:00:34]save last doc name /storage/0243/doc_00048875 to /storage/kkm_last_doc_name [12:00:34]save OK [12:00:34]Clear old archive folders... [12:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:34]tlvbuf is 011B74D0 [12:00:34]SAM_PROTO_ClearQueue [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 09 00 00 [12:00:34]Write to MH i2c: E2 08 00 5A 11 80 09 00 00 00 00 00 00 DD [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]SAM_PROTO_ClearQueue done [12:00:34]KKMCreateOFDPacket [12:00:34]OFDProtocolAddRootSTLVToBuf [12:00:34]FM_MakeSignedData [12:00:34]FM_MakeSignedData [12:00:34]SAM_PROTO_SignData [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 0D 01 02 [12:00:34]Write to MH i2c: E2 08 00 5B 11 80 0D 01 02 00 00 00 00 E5 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]wFMCommunicate request_size=255 [12:00:34]MH_SAM_APDU [12:00: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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 64 F0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BE 00 00 35 04 06 00 01 4F C4 6E [12:00:34]Write to MH i2c: E2 02 01 5C 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 64 F0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BE 00 00 35 04 06 00 01 4F C4 6E 00 00 31 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]wFMCommunicate request_size=7 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 0D 02 02 02 8D 2E [12:00:34]Write to MH i2c: E2 0A 00 5D 11 80 0D 02 02 02 00 8D 2E 00 00 A7 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [12:00:34]RAPDU: 90 00 [12:00:34]wFMCommunicate OK [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 0D 03 02 [12:00:34]Write to MH i2c: E2 08 00 5E 11 80 0D 03 02 00 00 00 00 EA [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 0B 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 0B 00 5E 11 00 3A 9F 85 F8 DB 1A E9 33 90 00 52 [12:00:34]RAPDU: 3A 9F 85 F8 DB 1A E9 33 90 00 [12:00:34]wFMCommunicate OK [12:00:34]SAM_PROTO_SignData done [12:00:34]FM_MakeSignedData done [12:00:34]CreateOFDProtocolMessage [12:00:34]wFMCommunicate request_size=4 [12:00:34]MH_SAM_APDU [12:00:34]CAPDU: 80 11 00 00 [12:00:34]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:34]Read from MH i2c: E2 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 17 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 37 [12:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:00:34]wFMCommunicate OK [12:00:34]CreateOFDProtocolMessage done [12:00:34]OFDSenderStorePacket 48875 [12:00:34]StoreOFDPacket docnum=48875 [12:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 53 04 01 32 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 64 F0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BE 00 00 35 04 06 00 01 4F C4 6E 8D 2E 3A 9F 85 F8 DB 1A E9 33 [12:00:34]CheckFolder [12:00:34]dirname=/storage/ofd_packets [12:00:34]CheckFolder done [12:00:34]ProducePacketName [12:00:34]name=ofd_packets/00048875 [12:00:34]NVStorageSaveData ofd_packets/00048875 [12:00:34]File name is /storage/ofd_packets/00048875 [12:00:34]Write 298 bytes [12:00:34]NVStorageSaveData done [12:00:34]OFDSenderStorePacket done [12:00:34]KKMCreateOFDPacket done [12:00:34]NVStorageSaveData kkm_last_timestamp [12:00:34]File name is /storage/kkm_last_timestamp [12:00:34]Write 4 bytes [12:00:34]NVStorageSaveData done [12:00:34]ExternCall_PrintAddStr [12:00:34]wPrintStart [12:00:34]Write to MH i2c: 01 00 00 60 11 71 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [12:00:34]RasterBufferAndPrint [12:00:34]line Счет N : (1)215972 [12:00:34]line ИНН: 02508201610067 [12:00:34]line Контрольно-Кассовый Чек [12:00:34]line ПРОДАЖА [12:00:34]line ТРК (МРК, ГНК) : 11 [12:00:34]line Товар: 2710194210 [12:00:34]line ДТ-К-5 [12:00:34]line 14.310 * 69.90 [12:00:34]line = 1000.27 [12:00:34]line НДС 12% НСП 1% [12:00:34]line > о реализуемом товаре [12:00:34]line ОКРУГЛЕНИЕ: -0.27 [12:00:34]line ИТОГО: 1000.00 [12:00:34]line Внесено: 1000.00 [12:00:34]line СДАЧА: 0.00 [12:00:34]line НСП 1% : 8.85 [12:00:34]line НДС 12% : 106.22 [12:00:34]line Наличными: 1000.00 [12:00:34]line Безнал.: 0.00 [12:00:34]line Место: АЗС № 102 "Партнер Нефть" [12:00:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:00:34]line СНО: Общий режим [12:00:34]line Чек 55 27.01.2024 12:00 [12:00:34]line Смена: 243 ФФД: 1.0 [12:00:34]line ЗНМ: 0300000040 [12:00:34]line РНМ: 0000000000092723 [12:00:34]line Версия ККМ: 001 [12:00:34]line ФМ: 0000000000875060 [12:00:34]line ФД: 48875 [12:00:34]line ФПД: 1442109623598 [12:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120036&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48875&fm=1442109623598&tin=02508201610067®Number=0000000000092723&sum=100000 [12:00:34]OFD Sender: Processing packet 48875 [packets to send 12, broken 11] [12:00:34]ProducePacketName [12:00:34]name=ofd_packets/00048875 [12:00:34]OFD Sender: To server: pG, [12:00:34]CommunicateWithHost lk.salyk.kg:30040 [12:00:34]ConnectInit lk.salyk.kg [12:00:34]written 0, free lines is 4095 [12:00:35]Connected sock=7 [12:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 53 04 01 32 CC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 64 F0 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BE 00 00 35 04 06 00 01 4F C4 6E 8D 2E 3A 9F 85 F8 DB 1A E9 33 [12:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 6D 91 47 00 36 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EB BE 00 00 F4 03 04 00 62 9C B4 65 B6 04 01 00 00 56 BC DA EA 85 6A 4C 22 [12:00:35]CommunicateWithHost err = 0 [12:00:35]CheckOFDResponse [12:00:35]1017 (14) - 77093643461234 [12:00:35]1041 (16) - 0000000000875060 [12:00:35]1040 (4) - 48875 [12:00:35]1012 (4) - 27.01.2024 06:02 [12:00:35]1206 (1) - 0 [12:00:35]OFD Sender: Remove packet 48875 [12:00:35]ProducePacketName [12:00:35]name=ofd_packets/00048875 [12:00:35]NVStorageDeleteData [12:00:35]Write to MH i2c: 01 00 00 8B 11 9C [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 8B 11 00 00 00 00 00 E8 0C 97 [12:00:35]RasterBufferAndPrint [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]line [12:00:35]written 0, free lines is 3311 [12:00:35]MH_Cut [12:00:35]Write to MH i2c: D1 01 00 92 11 01 75 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 01 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: D1 01 00 92 11 00 74 [12:00:35]Write to MH i2c: 01 00 00 93 11 A4 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]OFD Sender: No OFD packet to send [12:00:36]*** Cut start [12:00:36]*** Partial cut [12:00:36]*** CUTSNS_PIN = 1 [12:00:36]*** CUTSNS_PIN = 0 [12:00:36]*** Brake cut motor [12:00:36]Read from MH i2c: 01 [12:00:36]MH_I2C_Read... [12:00:36]*** Stop cut motor [12:00:36]*** Cut end [12:00:36]Read from MH i2c: 01 07 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: 01 07 00 93 11 00 00 00 00 00 FF 0F B9 [12:00:36]process_action close_receipt done [12:00:36]requested_data is exist [12:00:36]produce_requested_data [12:00:36]requested_item fm.sn is exist - process it [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 11 00 00 [12:00:36]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6C [12:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:00:36]wFMCommunicate OK [12:00:36]requested_item fd.num is exist - process it [12:00:36]SAM_PROTO_GetFieldsCounters [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 00 00 [12:00:36]Write to MH i2c: E2 08 00 95 11 80 13 00 00 00 00 00 00 22 [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 62 00 95 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EB BE 00 00 0E 04 04 00 F3 00 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 7C [12:00: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetFieldsCounters done [12:00:36]requested_item shift.num is exist - process it [12:00:36]requested_item shift.opened is exist - process it [12:00:36]req_shift_opened [12:00:36]FM_GetShiftState [12:00:36]SAM_PROTO_GetShiftState [12:00:36]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 01 00 [12:00:36]Write to MH i2c: E2 08 00 96 11 80 13 01 00 00 00 00 00 24 [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 96 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 BB [12:00:36]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetShiftState done [12:00:36]FM_GetShiftState done [12:00:36]req_shift_opened done [12:00:36]requested_item shift.open_date is exist - process it [12:00:36]req_shift_open_date [12:00:36]req_shift_open_date done [12:00:36]produce_requested_data done [12:00:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48875,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:00:36]process_action_free close_receipt [12:00:36]json_value_free [12:00:36]json_value_free done [12:00:36]process_json_proto returns [12:00:36]Send response to host [12:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48875,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:00:36]free response buf [12:00:36]execute_script done [12:00:36]execute_script returns [12:00:36]free content buf [12:00:36]Sock 9.Close socket [12:00:36]Sock 9.Thread stoped [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:05]OFD Sender: No OFD packet to send [12:01:10]OFD Sender: No OFD packet to send [12:01:15]OFD Sender: No OFD packet to send [12:01:20]OFD Sender: No OFD packet to send [12:01:25]OFD Sender: No OFD packet to send [12:01:30]OFD Sender: No OFD packet to send [12:01:35]OFD Sender: No OFD packet to send [12:01:40]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:43]accept exits with 10 [12:03:43]New connection [12:03:43]New thread 3066670436 created [12:03:43]Thread 3066813796 joined [12:03:43]Waiting for new connection... [12:03:43] Sock 10.Parse request [12:03:43]Sock 10.Check first char [12:03:43]Sock 10.First char is OK [12:03:43]request: POST /json_proto HTTP/1.0 [12:03:43]Method: POST [12:03:43]URL: /json_proto [12:03:43]Method is POST - this is cgi request [12:03:43]url: /json_proto [12:03:43]query_string will be loaded in cgi processing [12:03:43]execute_cgi json_proto POST (null) [12:03:43]execute_cgi path=json_proto method=POST [12:03:43]POST find Content-Length [12:03:43]Host: 172.17.56.67:8080 [12:03:43]Content-Length: 677 [12:03:43]Content-Type: application/json [12:03:43] [12:03:43]POST finish read [12:03:43]Found Content-Length = 677 [12:03:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:43]execute_script... [12:03: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)215973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:43]POST & json_proto [12:03:43]process_json_proto [12:03:43]json parsed OK: [12:03:43]protocol is kg_v1.0 [12:03:43]action value=close_receipt [12:03:43]process_action close_receipt [12:03:43]cmd_close_receipt [12:03:43]MH_GetDate [12:03:43]Write to MH i2c: F0 00 00 97 11 97 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: F0 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: F0 09 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: F0 09 00 97 11 00 22 F1 B4 65 26 5D 9E 65 52 [12:03:43]GetLastDocTimeStamp 1706356836 [12:03:43]current date 1706357026 [12:03:43]FM_GetShiftState [12:03:43]SAM_PROTO_GetShiftState [12:03:43]wFMCommunicate request_size=4 [12:03:43]MH_SAM_APDU [12:03:43]CAPDU: 80 13 01 00 [12:03:43]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [12:03:43]Write i2c OK [12:03:43]MH_I2C_Read... [12:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:43]Read from MH i2c: E2 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0E 00 [12:03:43]MH_I2C_Read... [12:03:43]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 BD [12:03:43]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:03:43]wFMCommunicate OK [12:03:43]SAM_PROTO_GetShiftState done [12:03:43]FM_GetShiftState done [12:03:43]opened in 1706313770 [12:03:43]opened+sec_in_day 1706400170 [12:03:43]quantity*price = 40039 [12:03:43]sum+1 = 40040 [12:03:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 56 27.01.2024 12:03 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48876 ФПД: 161424409982562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120346&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48876&fm=161424409982562&tin=02508201610067®Number=0000000000092723&sum=40000 [12:03:44]StoreToDocumentArchive [12:03:44]shift 243 fd 48876 [12:03:44]save to /storage/0243/doc_00048876 [12:03:44]save last doc name /storage/0243/doc_00048876 to /storage/kkm_last_doc_name [12:03:44]save OK [12:03:44]Clear old archive folders... [12:03:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:44]tlvbuf is 011BE010 [12:03:44]SAM_PROTO_ClearQueue [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 09 00 00 [12:03:44]Write to MH i2c: E2 08 00 A5 11 80 09 00 00 00 00 00 00 28 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [12:03:44]RAPDU: 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_ClearQueue done [12:03:44]KKMCreateOFDPacket [12:03:44]OFDProtocolAddRootSTLVToBuf [12:03:44]FM_MakeSignedData [12:03:44]FM_MakeSignedData [12:03:44]SAM_PROTO_SignData [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 0D 01 02 [12:03:44]Write to MH i2c: E2 08 00 A6 11 80 0D 01 02 00 00 00 00 30 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [12:03:44]RAPDU: 90 00 [12:03:44]wFMCommunicate OK [12:03:44]wFMCommunicate request_size=255 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BE 00 00 35 04 06 00 92 [12:03:44]Write to MH i2c: E2 02 01 A7 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BE 00 00 35 04 06 00 92 00 00 3D [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [12:03:44]RAPDU: 90 00 [12:03:44]wFMCommunicate OK [12:03:44]wFMCommunicate request_size=10 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 0D 02 02 05 D0 8C 9D 76 62 [12:03:44]Write to MH i2c: E2 0D 00 A8 11 80 0D 02 02 05 00 D0 8C 9D 76 62 00 00 0E [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [12:03:44]RAPDU: 90 00 [12:03:44]wFMCommunicate OK [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 0D 03 02 [12:03:44]Write to MH i2c: E2 08 00 A9 11 80 0D 03 02 00 00 00 00 35 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0B 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 0B 00 A9 11 00 56 E4 6B E3 7A 28 D4 47 90 00 7B [12:03:44]RAPDU: 56 E4 6B E3 7A 28 D4 47 90 00 [12:03:44]wFMCommunicate OK [12:03:44]SAM_PROTO_SignData done [12:03:44]FM_MakeSignedData done [12:03:44]CreateOFDProtocolMessage [12:03:44]wFMCommunicate request_size=4 [12:03:44]MH_SAM_APDU [12:03:44]CAPDU: 80 11 00 00 [12:03:44]Write to MH i2c: E2 08 00 AA 11 80 11 00 00 00 00 00 00 35 [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:44]Read from MH i2c: E2 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 17 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: E2 17 00 AA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [12:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:03:44]wFMCommunicate OK [12:03:44]CreateOFDProtocolMessage done [12:03:44]OFDSenderStorePacket 48876 [12:03:44]StoreOFDPacket docnum=48876 [12:03:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 90 B4 07 01 5D 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BE 00 00 35 04 06 00 92 D0 8C 9D 76 62 56 E4 6B E3 7A 28 D4 47 [12:03:44]CheckFolder [12:03:44]dirname=/storage/ofd_packets [12:03:44]CheckFolder done [12:03:44]ProducePacketName [12:03:44]name=ofd_packets/00048876 [12:03:44]NVStorageSaveData ofd_packets/00048876 [12:03:44]File name is /storage/ofd_packets/00048876 [12:03:44]Write 301 bytes [12:03:44]NVStorageSaveData done [12:03:44]OFDSenderStorePacket done [12:03:44]KKMCreateOFDPacket done [12:03:44]NVStorageSaveData kkm_last_timestamp [12:03:44]File name is /storage/kkm_last_timestamp [12:03:44]Write 4 bytes [12:03:44]NVStorageSaveData done [12:03:44]ExternCall_PrintAddStr [12:03:44]wPrintStart [12:03:44]Write to MH i2c: 01 00 00 AB 11 BC [12:03:44]Write i2c OK [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 07 00 [12:03:44]MH_I2C_Read... [12:03:44]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 FF 0F D1 [12:03:44]RasterBufferAndPrint [12:03:44]line Счет N : (1)215973 [12:03:44]line ИНН: 02508201610067 [12:03:44]line Контрольно-Кассовый Чек [12:03:44]line ПРОДАЖА [12:03:44]line ТРК (МРК, ГНК) : 22 [12:03:44]line Товар: 2710124130 [12:03:44]line Аи-92-К-5 [12:03:44]line 6.640 * 60.30 [12:03:44]line = 400.39 [12:03:44]line НДС 12% НСП 1% [12:03:44]line > о реализуемом товаре [12:03:44]line ОКРУГЛЕНИЕ: -0.39 [12:03:44]line ИТОГО: 400.00 [12:03:44]line Внесено: 400.00 [12:03:44]line СДАЧА: 0.00 [12:03:44]line НСП 1% : 3.54 [12:03:44]line НДС 12% : 42.52 [12:03:44]line Наличными: 400.00 [12:03:44]line Безнал.: 0.00 [12:03:44]line Место: АЗС № 102 "Партнер Нефть" [12:03:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:03:44]line СНО: Общий режим [12:03:44]line Чек 56 27.01.2024 12:03 [12:03:44]line Смена: 243 ФФД: 1.0 [12:03:44]line ЗНМ: 0300000040 [12:03:44]line РНМ: 0000000000092723 [12:03:44]line Версия ККМ: 001 [12:03:44]line ФМ: 0000000000875060 [12:03:44]line ФД: 48876 [12:03:44]line ФПД: 161424409982562 [12:03:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120346&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48876&fm=161424409982562&tin=02508201610067®Number=0000000000092723&sum=40000 [12:03:45]OFD Sender: Processing packet 48876 [packets to send 12, broken 11] [12:03:45]ProducePacketName [12:03:45]name=ofd_packets/00048876 [12:03:45]OFD Sender: To server: pG, [12:03:45]CommunicateWithHost lk.salyk.kg:30040 [12:03:45]ConnectInit lk.salyk.kg [12:03:45]written 0, free lines is 4095 [12:03:45]Connected sock=9 [12:03:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 90 B4 07 01 5D 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 22 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BE 00 00 35 04 06 00 92 D0 8C 9D 76 62 56 E4 6B E3 7A 28 D4 47 [12:03:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D1 7D 47 00 33 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EC BE 00 00 F4 03 04 00 20 9D B4 65 B6 04 01 00 00 46 9D 4B 91 F1 B8 74 3D [12:03:45]CommunicateWithHost err = 0 [12:03:45]CheckOFDResponse [12:03:45]1017 (14) - 77093643461234 [12:03:45]1041 (16) - 0000000000875060 [12:03:45]1040 (4) - 48876 [12:03:45]1012 (4) - 27.01.2024 06:05 [12:03:45]1206 (1) - 0 [12:03:45]OFD Sender: Remove packet 48876 [12:03:45]ProducePacketName [12:03:45]name=ofd_packets/00048876 [12:03:45]NVStorageDeleteData [12:03:45]Write to MH i2c: 01 00 00 D6 11 E7 [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: 01 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: 01 07 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: 01 07 00 D6 11 00 00 00 00 00 EE 0C E8 [12:03:45]RasterBufferAndPrint [12:03:45]line [12:03:45]line [12:03:45]line [12:03:45]line [12:03:45]line [12:03:45]written 0, free lines is 3316 [12:03:45]MH_Cut [12:03:45]Write to MH i2c: D1 01 00 DD 11 01 C0 [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: D1 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: D1 01 00 [12:03:45]MH_I2C_Read... [12:03:45]Read from MH i2c: D1 01 00 DD 11 00 BF [12:03:45]Write to MH i2c: 01 00 00 DE 11 EF [12:03:45]Write i2c OK [12:03:45]MH_I2C_Read... [12:03:45]OFD Sender: No OFD packet to send [12:03:46]*** Cut start [12:03:46]*** Partial cut [12:03:46]*** CUTSNS_PIN = 1 [12:03:46]*** CUTSNS_PIN = 0 [12:03:46]*** Brake cut motor [12:03:46]Read from MH i2c: 01 [12:03:46]MH_I2C_Read... [12:03:46]*** Stop cut motor [12:03:46]*** Cut end [12:03:46]Read from MH i2c: 01 07 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: 01 07 00 DE 11 00 00 00 00 00 FF 0F 04 [12:03:46]process_action close_receipt done [12:03:46]requested_data is exist [12:03:46]produce_requested_data [12:03:46]requested_item fm.sn is exist - process it [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 11 00 00 [12:03:46]Write to MH i2c: E2 08 00 DF 11 80 11 00 00 00 00 00 00 6A [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 17 00 DF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B7 [12:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:03:46]wFMCommunicate OK [12:03:46]requested_item fd.num is exist - process it [12:03:46]SAM_PROTO_GetFieldsCounters [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 13 00 00 [12:03:46]Write to MH i2c: E2 08 00 E0 11 80 13 00 00 00 00 00 00 6D [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:46]Read from MH i2c: E2 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 62 00 [12:03:46]MH_I2C_Read... [12:03:46]Read from MH i2c: E2 62 00 E0 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EC BE 00 00 0E 04 04 00 F3 00 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 CB [12:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EC BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:46]wFMCommunicate OK [12:03:46]SAM_PROTO_GetFieldsCounters done [12:03:46]requested_item shift.num is exist - process it [12:03:46]requested_item shift.opened is exist - process it [12:03:46]req_shift_opened [12:03:46]FM_GetShiftState [12:03:46]SAM_PROTO_GetShiftState [12:03:46]wFMCommunicate request_size=4 [12:03:46]MH_SAM_APDU [12:03:46]CAPDU: 80 13 01 00 [12:03:46]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [12:03:46]Write i2c OK [12:03:46]MH_I2C_Read... [12:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:47]Read from MH i2c: E2 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 0E 00 [12:03:47]MH_I2C_Read... [12:03:47]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 06 [12:03:47]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:03:47]wFMCommunicate OK [12:03:47]SAM_PROTO_GetShiftState done [12:03:47]FM_GetShiftState done [12:03:47]req_shift_opened done [12:03:47]requested_item shift.open_date is exist - process it [12:03:47]req_shift_open_date [12:03:47]req_shift_open_date done [12:03:47]produce_requested_data done [12:03:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48876,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:03:47]process_action_free close_receipt [12:03:47]json_value_free [12:03:47]json_value_free done [12:03:47]process_json_proto returns [12:03:47]Send response to host [12:03:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48876,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:03:47]free response buf [12:03:47]execute_script done [12:03:47]execute_script returns [12:03:47]free content buf [12:03:47]Sock 10.Close socket [12:03:47]Sock 10.Thread stoped [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:34]accept exits with 7 [12:05:34]New connection [12:05:34]New thread 3066813796 created [12:05:34]Thread 3066670436 joined [12:05:34]Waiting for new connection... [12:05:34] Sock 7.Parse request [12:05:34]Sock 7.Check first char [12:05:34]Sock 7.First char is OK [12:05:34]request: POST /json_proto HTTP/1.0 [12:05:34]Method: POST [12:05:34]URL: /json_proto [12:05:34]Method is POST - this is cgi request [12:05:34]url: /json_proto [12:05:34]query_string will be loaded in cgi processing [12:05:34]execute_cgi json_proto POST (null) [12:05:34]execute_cgi path=json_proto method=POST [12:05:34]POST find Content-Length [12:05:34]Host: 172.17.56.67:8080 [12:05:34]Content-Length: 679 [12:05:34]Content-Type: application/json [12:05:34] [12:05:34]POST finish read [12:05:34]Found Content-Length = 679 [12:05:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:05:34]execute_script... [12:05: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)215974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "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:05:34]POST & json_proto [12:05:34]process_json_proto [12:05:34]json parsed OK: [12:05:34]protocol is kg_v1.0 [12:05:34]action value=close_receipt [12:05:34]process_action close_receipt [12:05:34]cmd_close_receipt [12:05:34]MH_GetDate [12:05:34]Write to MH i2c: F0 00 00 E2 11 E2 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: F0 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: F0 09 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: F0 09 00 E2 11 00 92 F1 B4 65 26 5D 9E 65 0D [12:05:34]GetLastDocTimeStamp 1706357026 [12:05:34]current date 1706357138 [12:05:34]FM_GetShiftState [12:05:34]SAM_PROTO_GetShiftState [12:05:34]wFMCommunicate request_size=4 [12:05:34]MH_SAM_APDU [12:05:34]CAPDU: 80 13 01 00 [12:05:34]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [12:05:34]Write i2c OK [12:05:34]MH_I2C_Read... [12:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:34]Read from MH i2c: E2 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 0E 00 [12:05:34]MH_I2C_Read... [12:05:34]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 08 [12:05:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:05:34]wFMCommunicate OK [12:05:34]SAM_PROTO_GetShiftState done [12:05:34]FM_GetShiftState done [12:05:34]opened in 1706313770 [12:05:34]opened+sec_in_day 1706400170 [12:05:34]quantity*price = 100026 [12:05:34]sum+1 = 100028 [12:05:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 57 27.01.2024 12:05 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48877 ФПД: 177557698806615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120538&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48877&fm=177557698806615&tin=02508201610067®Number=0000000000092723&sum=100000 [12:05:36]StoreToDocumentArchive [12:05:36]shift 243 fd 48877 [12:05:36]save to /storage/0243/doc_00048877 [12:05:36]save last doc name /storage/0243/doc_00048877 to /storage/kkm_last_doc_name [12:05:36]save OK [12:05:36]Clear old archive folders... [12:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:36]tlvbuf is 0134CF70 [12:05:36]SAM_PROTO_ClearQueue [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 09 00 00 [12:05:36]Write to MH i2c: E2 08 00 F0 11 80 09 00 00 00 00 00 00 73 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]SAM_PROTO_ClearQueue done [12:05:36]KKMCreateOFDPacket [12:05:36]OFDProtocolAddRootSTLVToBuf [12:05:36]FM_MakeSignedData [12:05:36]FM_MakeSignedData [12:05:36]SAM_PROTO_SignData [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 01 02 [12:05:36]Write to MH i2c: E2 08 00 F1 11 80 0D 01 02 00 00 00 00 7B [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]wFMCommunicate request_size=255 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 92 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BE 00 00 35 04 06 00 A1 7C DF 90 [12:05:36]Write to MH i2c: E2 02 01 F2 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 92 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BE 00 00 35 04 06 00 A1 7C DF 90 00 00 04 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]wFMCommunicate request_size=7 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 02 02 02 83 57 [12:05:36]Write to MH i2c: E2 0A 00 F3 11 80 0D 02 02 02 00 83 57 00 00 5C [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [12:05:36]RAPDU: 90 00 [12:05:36]wFMCommunicate OK [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 0D 03 02 [12:05:36]Write to MH i2c: E2 08 00 F4 11 80 0D 03 02 00 00 00 00 80 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 0B 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 0B 00 F4 11 00 CC DC 3A E0 E1 C6 A6 44 90 00 D4 [12:05:36]RAPDU: CC DC 3A E0 E1 C6 A6 44 90 00 [12:05:36]wFMCommunicate OK [12:05:36]SAM_PROTO_SignData done [12:05:36]FM_MakeSignedData done [12:05:36]CreateOFDProtocolMessage [12:05:36]wFMCommunicate request_size=4 [12:05:36]MH_SAM_APDU [12:05:36]CAPDU: 80 11 00 00 [12:05:36]Write to MH i2c: E2 08 00 F5 11 80 11 00 00 00 00 00 00 80 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:36]Read from MH i2c: E2 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 17 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: E2 17 00 F5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CD [12:05:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:05:36]wFMCommunicate OK [12:05:36]CreateOFDProtocolMessage done [12:05:36]OFDSenderStorePacket 48877 [12:05:36]StoreOFDPacket docnum=48877 [12:05:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 5C 12 04 01 A6 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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 92 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BE 00 00 35 04 06 00 A1 7C DF 90 83 57 CC DC 3A E0 E1 C6 A6 44 [12:05:36]CheckFolder [12:05:36]dirname=/storage/ofd_packets [12:05:36]CheckFolder done [12:05:36]ProducePacketName [12:05:36]name=ofd_packets/00048877 [12:05:36]NVStorageSaveData ofd_packets/00048877 [12:05:36]File name is /storage/ofd_packets/00048877 [12:05:36]Write 298 bytes [12:05:36]NVStorageSaveData done [12:05:36]OFDSenderStorePacket done [12:05:36]KKMCreateOFDPacket done [12:05:36]NVStorageSaveData kkm_last_timestamp [12:05:36]File name is /storage/kkm_last_timestamp [12:05:36]Write 4 bytes [12:05:36]NVStorageSaveData done [12:05:36]ExternCall_PrintAddStr [12:05:36]wPrintStart [12:05:36]Write to MH i2c: 01 00 00 F6 11 07 [12:05:36]Write i2c OK [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 [12:05:36]MH_I2C_Read... [12:05:36]Read from MH i2c: 01 07 00 F6 11 00 00 00 00 00 FF 0F 1C [12:05:36]RasterBufferAndPrint [12:05:36]line Счет N : (1)215974 [12:05:36]line ИНН: 02508201610067 [12:05:36]line Контрольно-Кассовый Чек [12:05:36]line ПРОДАЖА [12:05:36]line ТРК (МРК, ГНК) : 21 [12:05:36]line Товар: 2710194210 [12:05:36]line ДТ-К-5 [12:05:36]line 14.310 * 69.90 [12:05:36]line = 1000.27 [12:05:36]line НДС 12% НСП 1% [12:05:36]line > о реализуемом товаре [12:05:36]line ОКРУГЛЕНИЕ: -0.27 [12:05:36]line ИТОГО: 1000.00 [12:05:36]line Внесено: 1000.00 [12:05:36]line СДАЧА: 0.00 [12:05:36]line НСП 1% : 8.85 [12:05:36]line НДС 12% : 106.22 [12:05:36]line Наличными: 1000.00 [12:05:36]line Безнал.: 0.00 [12:05:36]line Место: АЗС № 102 "Партнер Нефть" [12:05:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:05:36]line СНО: Общий режим [12:05:36]line Чек 57 27.01.2024 12:05 [12:05:36]line Смена: 243 ФФД: 1.0 [12:05:36]line ЗНМ: 0300000040 [12:05:36]line РНМ: 0000000000092723 [12:05:36]line Версия ККМ: 001 [12:05:36]line ФМ: 0000000000875060 [12:05:36]line ФД: 48877 [12:05:36]line ФПД: 177557698806615 [12:05:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120538&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48877&fm=177557698806615&tin=02508201610067®Number=0000000000092723&sum=100000 [12:05:36]OFD Sender: Processing packet 48877 [packets to send 12, broken 11] [12:05:36]ProducePacketName [12:05:36]name=ofd_packets/00048877 [12:05:36]OFD Sender: To server: pG, [12:05:36]CommunicateWithHost lk.salyk.kg:30040 [12:05:36]ConnectInit lk.salyk.kg [12:05:36]written 0, free lines is 4095 [12:05:37]Connected sock=10 [12:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 5C 12 04 01 A6 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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 92 F1 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 ED BE 00 00 35 04 06 00 A1 7C DF 90 83 57 CC DC 3A E0 E1 C6 A6 44 [12:05:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 AA 0F 47 00 98 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 35 30 36 30 10 04 04 00 ED BE 00 00 F4 03 04 00 90 9D B4 65 B6 04 01 00 00 FC 48 1B B4 9A C6 2D 53 [12:05:37]CommunicateWithHost err = 0 [12:05:37]CheckOFDResponse [12:05:37]1017 (14) - 77093643461234 [12:05:37]1041 (16) - 0000000000875060 [12:05:37]1040 (4) - 48877 [12:05:37]1012 (4) - 27.01.2024 06:07 [12:05:37]1206 (1) - 0 [12:05:37]OFD Sender: Remove packet 48877 [12:05:37]ProducePacketName [12:05:37]name=ofd_packets/00048877 [12:05:37]NVStorageDeleteData [12:05:37]Write to MH i2c: 01 00 00 21 12 33 [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: 01 07 00 21 12 00 00 00 00 00 EC 0C 32 [12:05:37]RasterBufferAndPrint [12:05:37]line [12:05:37]line [12:05:37]line [12:05:37]line [12:05:37]line [12:05:37]written 0, free lines is 3317 [12:05:37]MH_Cut [12:05:37]Write to MH i2c: D1 01 00 28 12 01 0C [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: D1 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: D1 01 00 [12:05:37]MH_I2C_Read... [12:05:37]Read from MH i2c: D1 01 00 28 12 00 0B [12:05:37]Write to MH i2c: 01 00 00 29 12 3B [12:05:37]Write i2c OK [12:05:37]MH_I2C_Read... [12:05:37]OFD Sender: No OFD packet to send [12:05:38]*** Cut start [12:05:38]*** Partial cut [12:05:38]*** CUTSNS_PIN = 1 [12:05:38]*** CUTSNS_PIN = 0 [12:05:38]*** Brake cut motor [12:05:38]Read from MH i2c: 01 [12:05:38]MH_I2C_Read... [12:05:38]*** Stop cut motor [12:05:38]*** Cut end [12:05:38]Read from MH i2c: 01 07 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: 01 07 00 29 12 00 00 00 00 00 FF 0F 50 [12:05:38]process_action close_receipt done [12:05:38]requested_data is exist [12:05:38]produce_requested_data [12:05:38]requested_item fm.sn is exist - process it [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 11 00 00 [12:05:38]Write to MH i2c: E2 08 00 2A 12 80 11 00 00 00 00 00 00 B6 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 17 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 17 00 2A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [12:05:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:05:38]wFMCommunicate OK [12:05:38]requested_item fd.num is exist - process it [12:05:38]SAM_PROTO_GetFieldsCounters [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 13 00 00 [12:05:38]Write to MH i2c: E2 08 00 2B 12 80 13 00 00 00 00 00 00 B9 [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 62 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 62 00 2B 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 ED BE 00 00 0E 04 04 00 F3 00 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 1B [12:05: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 ED BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_GetFieldsCounters done [12:05:38]requested_item shift.num is exist - process it [12:05:38]requested_item shift.opened is exist - process it [12:05:38]req_shift_opened [12:05:38]FM_GetShiftState [12:05:38]SAM_PROTO_GetShiftState [12:05:38]wFMCommunicate request_size=4 [12:05:38]MH_SAM_APDU [12:05:38]CAPDU: 80 13 01 00 [12:05:38]Write to MH i2c: E2 08 00 2C 12 80 13 01 00 00 00 00 00 BB [12:05:38]Write i2c OK [12:05:38]MH_I2C_Read... [12:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:38]Read from MH i2c: E2 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0E 00 [12:05:38]MH_I2C_Read... [12:05:38]Read from MH i2c: E2 0E 00 2C 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 52 [12:05:38]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:05:38]wFMCommunicate OK [12:05:38]SAM_PROTO_GetShiftState done [12:05:38]FM_GetShiftState done [12:05:38]req_shift_opened done [12:05:38]requested_item shift.open_date is exist - process it [12:05:38]req_shift_open_date [12:05:38]req_shift_open_date done [12:05:38]produce_requested_data done [12:05:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48877,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:05:38]process_action_free close_receipt [12:05:38]json_value_free [12:05:38]json_value_free done [12:05:38]process_json_proto returns [12:05:38]Send response to host [12:05:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48877,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:05:38]free response buf [12:05:38]execute_script done [12:05:38]execute_script returns [12:05:38]free content buf [12:05:38]Sock 7.Close socket [12:05:38]Sock 7.Thread stoped [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:06]accept exits with 9 [12:09:06]New connection [12:09:06]New thread 3066670436 created [12:09:06]Thread 3066813796 joined [12:09:06]Waiting for new connection... [12:09:06] Sock 9.Parse request [12:09:06]Sock 9.Check first char [12:09:06]Sock 9.First char is OK [12:09:06]request: POST /json_proto HTTP/1.0 [12:09:06]Method: POST [12:09:06]URL: /json_proto [12:09:06]Method is POST - this is cgi request [12:09:06]url: /json_proto [12:09:06]query_string will be loaded in cgi processing [12:09:06]execute_cgi json_proto POST (null) [12:09:06]execute_cgi path=json_proto method=POST [12:09:06]POST find Content-Length [12:09:06]Host: 172.17.56.67:8080 [12:09:06]Content-Length: 679 [12:09:06]Content-Type: application/json [12:09:06] [12:09:06]POST finish read [12:09:06]Found Content-Length = 679 [12:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 35.770, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:06]execute_script... [12:09:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 35.770, "sum" : 2500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:06]POST & json_proto [12:09:06]process_json_proto [12:09:06]json parsed OK: [12:09:06]protocol is kg_v1.0 [12:09:06]action value=close_receipt [12:09:06]process_action close_receipt [12:09:06]cmd_close_receipt [12:09:06]MH_GetDate [12:09:06]Write to MH i2c: F0 00 00 2D 12 2E [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: F0 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: F0 09 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: F0 09 00 2D 12 00 66 F2 B4 65 26 5D 9E 65 2E [12:09:06]GetLastDocTimeStamp 1706357138 [12:09:06]current date 1706357350 [12:09:06]FM_GetShiftState [12:09:06]SAM_PROTO_GetShiftState [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 13 01 00 [12:09:06]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0E 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 54 [12:09:06]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_GetShiftState done [12:09:06]FM_GetShiftState done [12:09:06]opened in 1706313770 [12:09:06]opened+sec_in_day 1706400170 [12:09:06]quantity*price = 250032 [12:09:06]sum+1 = 250033 [12:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 58 27.01.2024 12:09 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48878 ФПД: 222658508721942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120910&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48878&fm=222658508721942&tin=02508201610067®Number=0000000000092723&sum=250000 [12:09:07]StoreToDocumentArchive [12:09:07]shift 243 fd 48878 [12:09:07]save to /storage/0243/doc_00048878 [12:09:07]save last doc name /storage/0243/doc_00048878 to /storage/kkm_last_doc_name [12:09:07]save OK [12:09:07]Clear old archive folders... [12:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:09:07]tlvbuf is 011C1A60 [12:09:07]SAM_PROTO_ClearQueue [12:09:07]wFMCommunicate request_size=4 [12:09:07]MH_SAM_APDU [12:09:07]CAPDU: 80 09 00 00 [12:09:07]Write to MH i2c: E2 08 00 3B 12 80 09 00 00 00 00 00 00 BF [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:07]Read from MH i2c: E2 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 03 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [12:09:07]RAPDU: 90 00 [12:09:07]wFMCommunicate OK [12:09:07]SAM_PROTO_ClearQueue done [12:09:07]KKMCreateOFDPacket [12:09:07]OFDProtocolAddRootSTLVToBuf [12:09:07]FM_MakeSignedData [12:09:07]FM_MakeSignedData [12:09:07]SAM_PROTO_SignData [12:09:07]wFMCommunicate request_size=4 [12:09:07]MH_SAM_APDU [12:09:07]CAPDU: 80 0D 01 02 [12:09:07]Write to MH i2c: E2 08 00 3C 12 80 0D 01 02 00 00 00 00 C7 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [12:09:08]RAPDU: 90 00 [12:09:08]wFMCommunicate OK [12:09:08]wFMCommunicate request_size=255 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 8B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BE 00 00 35 04 06 00 CA 81 B9 51 [12:09:08]Write to MH i2c: E2 02 01 3D 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 8B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BE 00 00 35 04 06 00 CA 81 B9 51 00 00 7E [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [12:09:08]RAPDU: 90 00 [12:09:08]wFMCommunicate OK [12:09:08]wFMCommunicate request_size=7 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 0D 02 02 02 8F 16 [12:09:08]Write to MH i2c: E2 0A 00 3E 12 80 0D 02 02 02 00 8F 16 00 00 73 [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [12:09:08]RAPDU: 90 00 [12:09:08]wFMCommunicate OK [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 0D 03 02 [12:09:08]Write to MH i2c: E2 08 00 3F 12 80 0D 03 02 00 00 00 00 CC [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0B 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0B 00 3F 12 00 D2 49 12 41 11 2D 7E 9D 90 00 94 [12:09:08]RAPDU: D2 49 12 41 11 2D 7E 9D 90 00 [12:09:08]wFMCommunicate OK [12:09:08]SAM_PROTO_SignData done [12:09:08]FM_MakeSignedData done [12:09:08]CreateOFDProtocolMessage [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 11 00 00 [12:09:08]Write to MH i2c: E2 08 00 40 12 80 11 00 00 00 00 00 00 CC [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 40 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 19 [12:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:09:08]wFMCommunicate OK [12:09:08]CreateOFDProtocolMessage done [12:09:08]OFDSenderStorePacket 48878 [12:09:08]StoreOFDPacket docnum=48878 [12:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 5F CA 04 01 D9 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 8B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BE 00 00 35 04 06 00 CA 81 B9 51 8F 16 D2 49 12 41 11 2D 7E 9D [12:09:08]CheckFolder [12:09:08]dirname=/storage/ofd_packets [12:09:08]CheckFolder done [12:09:08]ProducePacketName [12:09:08]name=ofd_packets/00048878 [12:09:08]NVStorageSaveData ofd_packets/00048878 [12:09:08]File name is /storage/ofd_packets/00048878 [12:09:08]Write 298 bytes [12:09:08]NVStorageSaveData done [12:09:08]OFDSenderStorePacket done [12:09:08]KKMCreateOFDPacket done [12:09:08]NVStorageSaveData kkm_last_timestamp [12:09:08]File name is /storage/kkm_last_timestamp [12:09:08]Write 4 bytes [12:09:08]NVStorageSaveData done [12:09:08]ExternCall_PrintAddStr [12:09:08]wPrintStart [12:09:08]Write to MH i2c: 01 00 00 41 12 53 [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 41 12 00 00 00 00 00 FF 0F 68 [12:09:08]RasterBufferAndPrint [12:09:08]line Счет N : (1)215975 [12:09:08]line ИНН: 02508201610067 [12:09:08]line Контрольно-Кассовый Чек [12:09:08]line ПРОДАЖА [12:09:08]line ТРК (МРК, ГНК) : 11 [12:09:08]line Товар: 2710194210 [12:09:08]line ДТ-К-5 [12:09:08]line 35.770 * 69.90 [12:09:08]line = 2500.32 [12:09:08]line НДС 12% НСП 1% [12:09:08]line > о реализуемом товаре [12:09:08]line ОКРУГЛЕНИЕ: -0.32 [12:09:08]line ИТОГО: 2500.00 [12:09:08]line Внесено: 2500.00 [12:09:08]line СДАЧА: 0.00 [12:09:08]line НСП 1% : 22.13 [12:09:08]line НДС 12% : 265.52 [12:09:08]line Наличными: 2500.00 [12:09:08]line Безнал.: 0.00 [12:09:08]line Место: АЗС № 102 "Партнер Нефть" [12:09:08]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:09:08]line СНО: Общий режим [12:09:08]line Чек 58 27.01.2024 12:09 [12:09:08]line Смена: 243 ФФД: 1.0 [12:09:08]line ЗНМ: 0300000040 [12:09:08]line РНМ: 0000000000092723 [12:09:08]line Версия ККМ: 001 [12:09:08]line ФМ: 0000000000875060 [12:09:08]line ФД: 48878 [12:09:08]line ФПД: 222658508721942 [12:09:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T120910&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48878&fm=222658508721942&tin=02508201610067®Number=0000000000092723&sum=250000 [12:09:08]OFD Sender: Processing packet 48878 [packets to send 12, broken 11] [12:09:08]ProducePacketName [12:09:08]name=ofd_packets/00048878 [12:09:08]OFD Sender: To server: pG, [12:09:08]CommunicateWithHost lk.salyk.kg:30040 [12:09:08]ConnectInit lk.salyk.kg [12:09:08]written 0, free lines is 4095 [12:09:08]Connected sock=10 [12:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 5F CA 04 01 D9 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 8B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 B0 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 66 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EE BE 00 00 35 04 06 00 CA 81 B9 51 8F 16 D2 49 12 41 11 2D 7E 9D [12:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1E 27 47 00 7C 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 35 30 36 30 10 04 04 00 EE BE 00 00 F4 03 04 00 64 9E B4 65 B6 04 01 00 00 0D 0C AA 7D F2 37 A0 87 [12:09:09]CommunicateWithHost err = 0 [12:09:09]CheckOFDResponse [12:09:09]1017 (14) - 77093643461234 [12:09:09]1041 (16) - 0000000000875060 [12:09:09]1040 (4) - 48878 [12:09:09]1012 (4) - 27.01.2024 06:10 [12:09:09]1206 (1) - 0 [12:09:09]OFD Sender: Remove packet 48878 [12:09:09]ProducePacketName [12:09:09]name=ofd_packets/00048878 [12:09:09]NVStorageDeleteData [12:09:09]Write to MH i2c: 01 00 00 6C 12 7E [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: 01 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: 01 07 00 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: 01 07 00 6C 12 00 00 00 00 00 FD 0C 8E [12:09:09]RasterBufferAndPrint [12:09:09]line [12:09:09]line [12:09:09]line [12:09:09]line [12:09:09]line [12:09:09]written 0, free lines is 3332 [12:09:09]MH_Cut [12:09:09]Write to MH i2c: D1 01 00 73 12 01 57 [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: D1 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: D1 01 00 [12:09:09]MH_I2C_Read... [12:09:09]Read from MH i2c: D1 01 00 73 12 00 56 [12:09:09]Write to MH i2c: 01 00 00 74 12 86 [12:09:09]Write i2c OK [12:09:09]MH_I2C_Read... [12:09:09]OFD Sender: No OFD packet to send [12:09:09]*** Cut start [12:09:09]*** Partial cut [12:09:09]*** CUTSNS_PIN = 1 [12:09:09]*** CUTSNS_PIN = 0 [12:09:10]*** Brake cut motor [12:09:10]Read from MH i2c: 01 [12:09:10]MH_I2C_Read... [12:09:10]*** Stop cut motor [12:09:10]*** Cut end [12:09:10]Read from MH i2c: 01 07 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: 01 07 00 74 12 00 00 00 00 00 FF 0F 9B [12:09:10]process_action close_receipt done [12:09:10]requested_data is exist [12:09:10]produce_requested_data [12:09:10]requested_item fm.sn is exist - process it [12:09:10]wFMCommunicate request_size=4 [12:09:10]MH_SAM_APDU [12:09:10]CAPDU: 80 11 00 00 [12:09:10]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [12:09:10]Write i2c OK [12:09:10]MH_I2C_Read... [12:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:10]Read from MH i2c: E2 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 17 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4E [12:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:09:10]wFMCommunicate OK [12:09:10]requested_item fd.num is exist - process it [12:09:10]SAM_PROTO_GetFieldsCounters [12:09:10]wFMCommunicate request_size=4 [12:09:10]MH_SAM_APDU [12:09:10]CAPDU: 80 13 00 00 [12:09:10]Write to MH i2c: E2 08 00 76 12 80 13 00 00 00 00 00 00 04 [12:09:10]Write i2c OK [12:09:10]MH_I2C_Read... [12:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:10]Read from MH i2c: E2 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 62 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 62 00 76 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EE BE 00 00 0E 04 04 00 F3 00 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 6A [12:09: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EE BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:10]wFMCommunicate OK [12:09:10]SAM_PROTO_GetFieldsCounters done [12:09:10]requested_item shift.num is exist - process it [12:09:10]requested_item shift.opened is exist - process it [12:09:10]req_shift_opened [12:09:10]FM_GetShiftState [12:09:10]SAM_PROTO_GetShiftState [12:09:10]wFMCommunicate request_size=4 [12:09:10]MH_SAM_APDU [12:09:10]CAPDU: 80 13 01 00 [12:09:10]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [12:09:10]Write i2c OK [12:09:10]MH_I2C_Read... [12:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:10]Read from MH i2c: E2 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 0E 00 [12:09:10]MH_I2C_Read... [12:09:10]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9D [12:09:10]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:09:10]wFMCommunicate OK [12:09:10]SAM_PROTO_GetShiftState done [12:09:10]FM_GetShiftState done [12:09:10]req_shift_opened done [12:09:10]requested_item shift.open_date is exist - process it [12:09:10]req_shift_open_date [12:09:10]req_shift_open_date done [12:09:10]produce_requested_data done [12:09:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48878,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:09:10]process_action_free close_receipt [12:09:10]json_value_free [12:09:10]json_value_free done [12:09:10]process_json_proto returns [12:09:10]Send response to host [12:09:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48878,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:09:10]free response buf [12:09:10]execute_script done [12:09:10]execute_script returns [12:09:10]free content buf [12:09:10]Sock 9.Close socket [12:09:10]Sock 9.Thread stoped [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:45]accept exits with 7 [12:10:45]New connection [12:10:45]New thread 3066813796 created [12:10:45]Thread 3066670436 joined [12:10:45]Waiting for new connection... [12:10:45] Sock 7.Parse request [12:10:45]Sock 7.Check first char [12:10:45]Sock 7.First char is OK [12:10:45]request: POST /json_proto HTTP/1.0 [12:10:45]Method: POST [12:10:45]URL: /json_proto [12:10:45]Method is POST - this is cgi request [12:10:45]url: /json_proto [12:10:45]query_string will be loaded in cgi processing [12:10:45]execute_cgi json_proto POST (null) [12:10:45]execute_cgi path=json_proto method=POST [12:10:45]POST find Content-Length [12:10:45]Host: 172.17.56.67:8080 [12:10:45]Content-Length: 677 [12:10:45]Content-Type: application/json [12:10:45] [12:10:45]POST finish read [12:10:45]Found Content-Length = 677 [12:10:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:45]execute_script... [12:10: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)215977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:45]POST & json_proto [12:10:45]process_json_proto [12:10:45]json parsed OK: [12:10:45]protocol is kg_v1.0 [12:10:45]action value=close_receipt [12:10:45]process_action close_receipt [12:10:45]cmd_close_receipt [12:10:45]MH_GetDate [12:10:45]Write to MH i2c: F0 00 00 78 12 79 [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: F0 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: F0 09 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: F0 09 00 78 12 00 C8 F2 B4 65 26 5D 9E 65 DB [12:10:45]GetLastDocTimeStamp 1706357350 [12:10:45]current date 1706357448 [12:10:45]FM_GetShiftState [12:10:45]SAM_PROTO_GetShiftState [12:10:45]wFMCommunicate request_size=4 [12:10:45]MH_SAM_APDU [12:10:45]CAPDU: 80 13 01 00 [12:10:45]Write to MH i2c: E2 08 00 79 12 80 13 01 00 00 00 00 00 08 [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:45]Read from MH i2c: E2 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 0E 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: E2 0E 00 79 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9F [12:10:45]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:10:45]wFMCommunicate OK [12:10:45]SAM_PROTO_GetShiftState done [12:10:45]FM_GetShiftState done [12:10:45]opened in 1706313770 [12:10:45]opened+sec_in_day 1706400170 [12:10:45]quantity*price = 30029 [12:10:45]sum+1 = 30030 [12:10:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 59 27.01.2024 12:10 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48879 ФПД: 264358747340764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121048&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48879&fm=264358747340764&tin=02508201610067®Number=0000000000092723&sum=30000 [12:10:46]StoreToDocumentArchive [12:10:46]shift 243 fd 48879 [12:10:46]save to /storage/0243/doc_00048879 [12:10:46]save last doc name /storage/0243/doc_00048879 to /storage/kkm_last_doc_name [12:10:46]save OK [12:10:46]Clear old archive folders... [12:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:46]tlvbuf is 01197F70 [12:10:46]SAM_PROTO_ClearQueue [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 09 00 00 [12:10:46]Write to MH i2c: E2 08 00 86 12 80 09 00 00 00 00 00 00 0A [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [12:10:46]RAPDU: 90 00 [12:10:46]wFMCommunicate OK [12:10:46]SAM_PROTO_ClearQueue done [12:10:46]KKMCreateOFDPacket [12:10:46]OFDProtocolAddRootSTLVToBuf [12:10:46]FM_MakeSignedData [12:10:46]FM_MakeSignedData [12:10:46]SAM_PROTO_SignData [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 0D 01 02 [12:10:46]Write to MH i2c: E2 08 00 87 12 80 0D 01 02 00 00 00 00 12 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [12:10:46]RAPDU: 90 00 [12:10:46]wFMCommunicate OK [12:10:46]wFMCommunicate request_size=255 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BE 00 00 35 04 06 00 F0 [12:10:46]Write to MH i2c: E2 02 01 88 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BE 00 00 35 04 06 00 F0 00 00 76 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [12:10:46]RAPDU: 90 00 [12:10:46]wFMCommunicate OK [12:10:46]wFMCommunicate request_size=10 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 0D 02 02 05 6E D1 3A 7F DC [12:10:46]Write to MH i2c: E2 0D 00 89 12 80 0D 02 02 05 00 6E D1 3A 7F DC 00 00 F3 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [12:10:46]RAPDU: 90 00 [12:10:46]wFMCommunicate OK [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 0D 03 02 [12:10:46]Write to MH i2c: E2 08 00 8A 12 80 0D 03 02 00 00 00 00 17 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0B 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0B 00 8A 12 00 27 18 8A 3B BF CB 1D 1D 90 00 E0 [12:10:46]RAPDU: 27 18 8A 3B BF CB 1D 1D 90 00 [12:10:46]wFMCommunicate OK [12:10:46]SAM_PROTO_SignData done [12:10:46]FM_MakeSignedData done [12:10:46]CreateOFDProtocolMessage [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 11 00 00 [12:10:46]Write to MH i2c: E2 08 00 8B 12 80 11 00 00 00 00 00 00 17 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 17 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 17 00 8B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [12:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:10:46]wFMCommunicate OK [12:10:46]CreateOFDProtocolMessage done [12:10:46]OFDSenderStorePacket 48879 [12:10:46]StoreOFDPacket docnum=48879 [12:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0A 77 07 01 CD 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BE 00 00 35 04 06 00 F0 6E D1 3A 7F DC 27 18 8A 3B BF CB 1D 1D [12:10:46]CheckFolder [12:10:46]dirname=/storage/ofd_packets [12:10:46]CheckFolder done [12:10:46]ProducePacketName [12:10:46]name=ofd_packets/00048879 [12:10:46]NVStorageSaveData ofd_packets/00048879 [12:10:46]File name is /storage/ofd_packets/00048879 [12:10:46]Write 301 bytes [12:10:46]NVStorageSaveData done [12:10:46]OFDSenderStorePacket done [12:10:46]KKMCreateOFDPacket done [12:10:46]NVStorageSaveData kkm_last_timestamp [12:10:46]File name is /storage/kkm_last_timestamp [12:10:46]Write 4 bytes [12:10:46]NVStorageSaveData done [12:10:46]ExternCall_PrintAddStr [12:10:46]wPrintStart [12:10:46]Write to MH i2c: 01 00 00 8C 12 9E [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: 01 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: 01 07 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FF 0F B3 [12:10:46]RasterBufferAndPrint [12:10:46]line Счет N : (1)215977 [12:10:46]line ИНН: 02508201610067 [12:10:46]line Контрольно-Кассовый Чек [12:10:46]line ПРОДАЖА [12:10:46]line ТРК (МРК, ГНК) : 22 [12:10:46]line Товар: 2710124130 [12:10:46]line Аи-92-К-5 [12:10:46]line 4.980 * 60.30 [12:10:46]line = 300.29 [12:10:47]line НДС 12% НСП 1% [12:10:47]line > о реализуемом товаре [12:10:47]line ОКРУГЛЕНИЕ: -0.29 [12:10:47]line ИТОГО: 300.00 [12:10:47]line Внесено: 300.00 [12:10:47]line СДАЧА: 0.00 [12:10:47]line НСП 1% : 2.66 [12:10:47]line НДС 12% : 31.89 [12:10:47]line Наличными: 300.00 [12:10:47]line Безнал.: 0.00 [12:10:47]line Место: АЗС № 102 "Партнер Нефть" [12:10:47]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:10:47]line СНО: Общий режим [12:10:47]line Чек 59 27.01.2024 12:10 [12:10:47]line Смена: 243 ФФД: 1.0 [12:10:47]line ЗНМ: 0300000040 [12:10:47]line РНМ: 0000000000092723 [12:10:47]line Версия ККМ: 001 [12:10:47]line ФМ: 0000000000875060 [12:10:47]line ФД: 48879 [12:10:47]line ФПД: 264358747340764 [12:10:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121048&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48879&fm=264358747340764&tin=02508201610067®Number=0000000000092723&sum=30000 [12:10:47]OFD Sender: Processing packet 48879 [packets to send 12, broken 11] [12:10:47]ProducePacketName [12:10:47]name=ofd_packets/00048879 [12:10:47]OFD Sender: To server: pG, [12:10:47]CommunicateWithHost lk.salyk.kg:30040 [12:10:47]ConnectInit lk.salyk.kg [12:10:47]written 0, free lines is 4095 [12:10:47]Connected sock=10 [12:10:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0A 77 07 01 CD 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C8 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BE 00 00 35 04 06 00 F0 6E D1 3A 7F DC 27 18 8A 3B BF CB 1D 1D [12:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 29 51 47 00 5B C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 EF BE 00 00 F4 03 04 00 C7 9E B4 65 B6 04 01 00 00 DD D9 F0 3C E5 6C 65 AD [12:10:47]CommunicateWithHost err = 0 [12:10:47]CheckOFDResponse [12:10:47]1017 (14) - 77093643461234 [12:10:47]1041 (16) - 0000000000875060 [12:10:47]1040 (4) - 48879 [12:10:47]1012 (4) - 27.01.2024 06:12 [12:10:47]1206 (1) - 0 [12:10:47]OFD Sender: Remove packet 48879 [12:10:47]ProducePacketName [12:10:47]name=ofd_packets/00048879 [12:10:47]NVStorageDeleteData [12:10:47]Write to MH i2c: 01 00 00 B7 12 C9 [12:10:47]Write i2c OK [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 07 00 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: 01 07 00 B7 12 00 00 00 00 00 F5 0C D1 [12:10:47]RasterBufferAndPrint [12:10:47]line [12:10:47]line [12:10:47]line [12:10:47]line [12:10:47]line [12:10:47]written 0, free lines is 3323 [12:10:47]MH_Cut [12:10:47]Write to MH i2c: D1 01 00 BE 12 01 A2 [12:10:47]Write i2c OK [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: D1 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: D1 01 00 [12:10:47]MH_I2C_Read... [12:10:47]Read from MH i2c: D1 01 00 BE 12 00 A1 [12:10:47]Write to MH i2c: 01 00 00 BF 12 D1 [12:10:47]Write i2c OK [12:10:47]MH_I2C_Read... [12:10:48]OFD Sender: No OFD packet to send [12:10:48]*** Cut start [12:10:48]*** Partial cut [12:10:48]*** CUTSNS_PIN = 1 [12:10:48]*** CUTSNS_PIN = 0 [12:10:48]*** Brake cut motor [12:10:49]Read from MH i2c: 01 [12:10:49]MH_I2C_Read... [12:10:49]*** Stop cut motor [12:10:49]*** Cut end [12:10:49]Read from MH i2c: 01 07 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [12:10:49]process_action close_receipt done [12:10:49]requested_data is exist [12:10:49]produce_requested_data [12:10:49]requested_item fm.sn is exist - process it [12:10:49]wFMCommunicate request_size=4 [12:10:49]MH_SAM_APDU [12:10:49]CAPDU: 80 11 00 00 [12:10:49]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:49]Read from MH i2c: E2 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 17 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 99 [12:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:10:49]wFMCommunicate OK [12:10:49]requested_item fd.num is exist - process it [12:10:49]SAM_PROTO_GetFieldsCounters [12:10:49]wFMCommunicate request_size=4 [12:10:49]MH_SAM_APDU [12:10:49]CAPDU: 80 13 00 00 [12:10:49]Write to MH i2c: E2 08 00 C1 12 80 13 00 00 00 00 00 00 4F [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:49]Read from MH i2c: E2 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 62 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 62 00 C1 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EF BE 00 00 0E 04 04 00 F3 00 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 B9 [12:10: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 EF BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:49]wFMCommunicate OK [12:10:49]SAM_PROTO_GetFieldsCounters done [12:10:49]requested_item shift.num is exist - process it [12:10:49]requested_item shift.opened is exist - process it [12:10:49]req_shift_opened [12:10:49]FM_GetShiftState [12:10:49]SAM_PROTO_GetShiftState [12:10:49]wFMCommunicate request_size=4 [12:10:49]MH_SAM_APDU [12:10:49]CAPDU: 80 13 01 00 [12:10:49]Write to MH i2c: E2 08 00 C2 12 80 13 01 00 00 00 00 00 51 [12:10:49]Write i2c OK [12:10:49]MH_I2C_Read... [12:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:49]Read from MH i2c: E2 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 0E 00 [12:10:49]MH_I2C_Read... [12:10:49]Read from MH i2c: E2 0E 00 C2 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E8 [12:10:49]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:10:49]wFMCommunicate OK [12:10:49]SAM_PROTO_GetShiftState done [12:10:49]FM_GetShiftState done [12:10:49]req_shift_opened done [12:10:49]requested_item shift.open_date is exist - process it [12:10:49]req_shift_open_date [12:10:49]req_shift_open_date done [12:10:49]produce_requested_data done [12:10:49]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48879,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:10:49]process_action_free close_receipt [12:10:49]json_value_free [12:10:49]json_value_free done [12:10:49]process_json_proto returns [12:10:49]Send response to host [12:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48879,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:10:49]free response buf [12:10:49]execute_script done [12:10:49]execute_script returns [12:10:49]free content buf [12:10:49]Sock 7.Close socket [12:10:49]Sock 7.Thread stoped [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:00]accept exits with 9 [12:11:00]New connection [12:11:00]New thread 3066670436 created [12:11:00]Thread 3066813796 joined [12:11:00]Waiting for new connection... [12:11:00] Sock 9.Parse request [12:11:00]Sock 9.Check first char [12:11:00]Sock 9.First char is OK [12:11:00]request: POST /json_proto HTTP/1.0 [12:11:00]Method: POST [12:11:00]URL: /json_proto [12:11:00]Method is POST - this is cgi request [12:11:00]url: /json_proto [12:11:00]query_string will be loaded in cgi processing [12:11:00]execute_cgi json_proto POST (null) [12:11:00]execute_cgi path=json_proto method=POST [12:11:00]POST find Content-Length [12:11:00]Host: 172.17.56.67:8080 [12:11:00]Content-Length: 682 [12:11:00]Content-Type: application/json [12:11:00] [12:11:00]POST finish read [12:11:00]Found Content-Length = 682 [12:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:11:00]execute_script... [12:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:11:00]POST & json_proto [12:11:00]process_json_proto [12:11:00]json parsed OK: [12:11:00]protocol is kg_v1.0 [12:11:00]action value=close_receipt [12:11:00]process_action close_receipt [12:11:00]cmd_close_receipt [12:11:00]MH_GetDate [12:11:00]Write to MH i2c: F0 00 00 C3 12 C4 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: F0 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: F0 09 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: F0 09 00 C3 12 00 D7 F2 B4 65 26 5D 9E 65 35 [12:11:00]GetLastDocTimeStamp 1706357448 [12:11:00]current date 1706357463 [12:11:00]FM_GetShiftState [12:11:00]SAM_PROTO_GetShiftState [12:11:00]wFMCommunicate request_size=4 [12:11:00]MH_SAM_APDU [12:11:00]CAPDU: 80 13 01 00 [12:11:00]Write to MH i2c: E2 08 00 C4 12 80 13 01 00 00 00 00 00 53 [12:11:00]Write i2c OK [12:11:00]MH_I2C_Read... [12:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:00]Read from MH i2c: E2 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0E 00 [12:11:00]MH_I2C_Read... [12:11:00]Read from MH i2c: E2 0E 00 C4 12 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 EA [12:11:00]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:11:00]wFMCommunicate OK [12:11:00]SAM_PROTO_GetShiftState done [12:11:00]FM_GetShiftState done [12:11:00]opened in 1706313770 [12:11:00]opened+sec_in_day 1706400170 [12:11:00]quantity*price = 100037 [12:11:00]sum+1 = 100039 [12:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 60 27.01.2024 12:11 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48880 ФПД: 118464925250570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121103&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48880&fm=118464925250570&tin=02508201610067®Number=0000000000092723&sum=100000 [12:11:01]StoreToDocumentArchive [12:11:01]shift 243 fd 48880 [12:11:01]save to /storage/0243/doc_00048880 [12:11:01]save last doc name /storage/0243/doc_00048880 to /storage/kkm_last_doc_name [12:11:01]save OK [12:11:01]Clear old archive folders... [12:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:01]tlvbuf is 0134CAB0 [12:11:01]SAM_PROTO_ClearQueue [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 09 00 00 [12:11:01]Write to MH i2c: E2 08 00 D1 12 80 09 00 00 00 00 00 00 55 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 D1 12 00 90 00 57 [12:11:01]RAPDU: 90 00 [12:11:01]wFMCommunicate OK [12:11:01]SAM_PROTO_ClearQueue done [12:11:01]KKMCreateOFDPacket [12:11:01]OFDProtocolAddRootSTLVToBuf [12:11:01]FM_MakeSignedData [12:11:01]FM_MakeSignedData [12:11:01]SAM_PROTO_SignData [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 0D 01 02 [12:11:01]Write to MH i2c: E2 08 00 D2 12 80 0D 01 02 00 00 00 00 5D [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [12:11:01]RAPDU: 90 00 [12:11:01]wFMCommunicate OK [12:11:01]wFMCommunicate request_size=255 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BE 00 00 35 04 06 00 6B [12:11:01]Write to MH i2c: E2 02 01 D3 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BE 00 00 35 04 06 00 6B 00 00 F7 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [12:11:01]RAPDU: 90 00 [12:11:01]wFMCommunicate OK [12:11:01]wFMCommunicate request_size=10 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 0D 02 02 05 BE 43 C9 B4 0A [12:11:01]Write to MH i2c: E2 0D 00 D4 12 80 0D 02 02 05 00 BE 43 C9 B4 0A 00 00 F2 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [12:11:01]RAPDU: 90 00 [12:11:01]wFMCommunicate OK [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 0D 03 02 [12:11:01]Write to MH i2c: E2 08 00 D5 12 80 0D 03 02 00 00 00 00 62 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 0B 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 0B 00 D5 12 00 3E 9F 88 74 19 80 F7 45 90 00 11 [12:11:01]RAPDU: 3E 9F 88 74 19 80 F7 45 90 00 [12:11:01]wFMCommunicate OK [12:11:01]SAM_PROTO_SignData done [12:11:01]FM_MakeSignedData done [12:11:01]CreateOFDProtocolMessage [12:11:01]wFMCommunicate request_size=4 [12:11:01]MH_SAM_APDU [12:11:01]CAPDU: 80 11 00 00 [12:11:01]Write to MH i2c: E2 08 00 D6 12 80 11 00 00 00 00 00 00 62 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:01]Read from MH i2c: E2 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 17 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: E2 17 00 D6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AF [12:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:11:01]wFMCommunicate OK [12:11:01]CreateOFDProtocolMessage done [12:11:01]OFDSenderStorePacket 48880 [12:11:01]StoreOFDPacket docnum=48880 [12:11:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FC 17 07 01 EE 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BE 00 00 35 04 06 00 6B BE 43 C9 B4 0A 3E 9F 88 74 19 80 F7 45 [12:11:01]CheckFolder [12:11:01]dirname=/storage/ofd_packets [12:11:01]CheckFolder done [12:11:01]ProducePacketName [12:11:01]name=ofd_packets/00048880 [12:11:01]NVStorageSaveData ofd_packets/00048880 [12:11:01]File name is /storage/ofd_packets/00048880 [12:11:01]Write 301 bytes [12:11:01]NVStorageSaveData done [12:11:01]OFDSenderStorePacket done [12:11:01]KKMCreateOFDPacket done [12:11:01]NVStorageSaveData kkm_last_timestamp [12:11:01]File name is /storage/kkm_last_timestamp [12:11:01]Write 4 bytes [12:11:01]NVStorageSaveData done [12:11:01]ExternCall_PrintAddStr [12:11:01]wPrintStart [12:11:01]Write to MH i2c: 01 00 00 D7 12 E9 [12:11:01]Write i2c OK [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 [12:11:01]MH_I2C_Read... [12:11:01]Read from MH i2c: 01 07 00 D7 12 00 00 00 00 00 FF 0F FE [12:11:01]RasterBufferAndPrint [12:11:01]line Счет N : (1)215976 [12:11:01]line ИНН: 02508201610067 [12:11:01]line Контрольно-Кассовый Чек [12:11:01]line ПРОДАЖА [12:11:01]line ТРК (МРК, ГНК) : 12 [12:11:01]line Товар: 2710124130 [12:11:01]line Аи-92-К-5 [12:11:01]line 16.590 * 60.30 [12:11:01]line = 1000.38 [12:11:01]line НДС 12% НСП 1% [12:11:01]line > о реализуемом товаре [12:11:01]line ОКРУГЛЕНИЕ: -0.38 [12:11:01]line ИТОГО: 1000.00 [12:11:01]line Внесено: 1000.00 [12:11:01]line СДАЧА: 0.00 [12:11:01]line НСП 1% : 8.85 [12:11:01]line НДС 12% : 106.23 [12:11:01]line Наличными: 1000.00 [12:11:01]line Безнал.: 0.00 [12:11:01]line Место: АЗС № 102 "Партнер Нефть" [12:11:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:11:01]line СНО: Общий режим [12:11:01]line Чек 60 27.01.2024 12:11 [12:11:01]line Смена: 243 ФФД: 1.0 [12:11:01]line ЗНМ: 0300000040 [12:11:01]line РНМ: 0000000000092723 [12:11:01]line Версия ККМ: 001 [12:11:01]line ФМ: 0000000000875060 [12:11:01]line ФД: 48880 [12:11:01]line ФПД: 118464925250570 [12:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121103&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48880&fm=118464925250570&tin=02508201610067®Number=0000000000092723&sum=100000 [12:11:02]OFD Sender: Processing packet 48880 [packets to send 12, broken 11] [12:11:02]ProducePacketName [12:11:02]name=ofd_packets/00048880 [12:11:02]OFD Sender: To server: pG, [12:11:02]CommunicateWithHost lk.salyk.kg:30040 [12:11:02]ConnectInit lk.salyk.kg [12:11:02]written 0, free lines is 4095 [12:11:02]Connected sock=10 [12:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FC 17 07 01 EE 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 D7 F2 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F0 BE 00 00 35 04 06 00 6B BE 43 C9 B4 0A 3E 9F 88 74 19 80 F7 45 [12:11:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E2 24 47 00 1F 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 35 30 36 30 10 04 04 00 F0 BE 00 00 F4 03 04 00 D6 9E B4 65 B6 04 01 00 00 05 B7 A5 3D 4E B7 B6 B1 [12:11:02]CommunicateWithHost err = 0 [12:11:02]CheckOFDResponse [12:11:02]1017 (14) - 77093643461234 [12:11:02]1041 (16) - 0000000000875060 [12:11:02]1040 (4) - 48880 [12:11:02]1012 (4) - 27.01.2024 06:12 [12:11:02]1206 (1) - 0 [12:11:02]OFD Sender: Remove packet 48880 [12:11:02]ProducePacketName [12:11:02]name=ofd_packets/00048880 [12:11:02]NVStorageDeleteData [12:11:02]Write to MH i2c: 01 00 00 02 13 15 [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: 01 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: 01 07 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 E8 0C 10 [12:11:02]RasterBufferAndPrint [12:11:02]line [12:11:02]line [12:11:02]line [12:11:02]line [12:11:02]line [12:11:02]written 0, free lines is 3310 [12:11:02]MH_Cut [12:11:02]Write to MH i2c: D1 01 00 09 13 01 EE [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: D1 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: D1 01 00 [12:11:02]MH_I2C_Read... [12:11:02]Read from MH i2c: D1 01 00 09 13 00 ED [12:11:02]Write to MH i2c: 01 00 00 0A 13 1D [12:11:02]Write i2c OK [12:11:02]MH_I2C_Read... [12:11:03]OFD Sender: No OFD packet to send [12:11:03]*** Cut start [12:11:03]*** Partial cut [12:11:03]*** CUTSNS_PIN = 1 [12:11:03]*** CUTSNS_PIN = 0 [12:11:03]*** Brake cut motor [12:11:03]Read from MH i2c: 01 [12:11:03]MH_I2C_Read... [12:11:03]*** Stop cut motor [12:11:03]*** Cut end [12:11:03]Read from MH i2c: 01 07 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [12:11:03]process_action close_receipt done [12:11:03]requested_data is exist [12:11:03]produce_requested_data [12:11:03]requested_item fm.sn is exist - process it [12:11:03]wFMCommunicate request_size=4 [12:11:03]MH_SAM_APDU [12:11:03]CAPDU: 80 11 00 00 [12:11:03]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:03]Read from MH i2c: E2 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 17 00 [12:11:03]MH_I2C_Read... [12:11:03]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E5 [12:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:11:03]wFMCommunicate OK [12:11:03]requested_item fd.num is exist - process it [12:11:03]SAM_PROTO_GetFieldsCounters [12:11:03]wFMCommunicate request_size=4 [12:11:03]MH_SAM_APDU [12:11:03]CAPDU: 80 13 00 00 [12:11:03]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [12:11:03]Write i2c OK [12:11:03]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 62 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 62 00 0C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F0 BE 00 00 0E 04 04 00 F3 00 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 09 [12:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F0 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_GetFieldsCounters done [12:11:04]requested_item shift.num is exist - process it [12:11:04]requested_item shift.opened is exist - process it [12:11:04]req_shift_opened [12:11:04]FM_GetShiftState [12:11:04]SAM_PROTO_GetShiftState [12:11:04]wFMCommunicate request_size=4 [12:11:04]MH_SAM_APDU [12:11:04]CAPDU: 80 13 01 00 [12:11:04]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [12:11:04]Write i2c OK [12:11:04]MH_I2C_Read... [12:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:04]Read from MH i2c: E2 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0E 00 [12:11:04]MH_I2C_Read... [12:11:04]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 34 [12:11:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:11:04]wFMCommunicate OK [12:11:04]SAM_PROTO_GetShiftState done [12:11:04]FM_GetShiftState done [12:11:04]req_shift_opened done [12:11:04]requested_item shift.open_date is exist - process it [12:11:04]req_shift_open_date [12:11:04]req_shift_open_date done [12:11:04]produce_requested_data done [12:11:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48880,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:11:04]process_action_free close_receipt [12:11:04]json_value_free [12:11:04]json_value_free done [12:11:04]process_json_proto returns [12:11:04]Send response to host [12:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48880,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:11:04]free response buf [12:11:04]execute_script done [12:11:04]execute_script returns [12:11:04]free content buf [12:11:04]Sock 9.Close socket [12:11:04]Sock 9.Thread stoped [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]accept exits with 7 [12:14:58]New connection [12:14:58]New thread 3066813796 created [12:14:58]Thread 3066670436 joined [12:14:58]Waiting for new connection... [12:14:58] Sock 7.Parse request [12:14:58]Sock 7.Check first char [12:14:58]Sock 7.First char is OK [12:14:58]request: POST /json_proto HTTP/1.0 [12:14:58]Method: POST [12:14:58]URL: /json_proto [12:14:58]Method is POST - this is cgi request [12:14:58]url: /json_proto [12:14:58]query_string will be loaded in cgi processing [12:14:58]execute_cgi json_proto POST (null) [12:14:58]execute_cgi path=json_proto method=POST [12:14:58]POST find Content-Length [12:14:58]Host: 172.17.56.67:8080 [12:14:58]Content-Length: 805 [12:14:58]Content-Type: application/json [12:14:58] [12:14:58]POST finish read [12:14:58]Found Content-Length = 805 [12:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.020, "sum" : 302.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 302.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:58]execute_script... [12:14: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)215978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.020, "sum" : 302.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 302.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:58]POST & json_proto [12:14:58]process_json_proto [12:14:58]json parsed OK: [12:14:58]protocol is kg_v1.0 [12:14:58]action value=close_receipt [12:14:58]process_action close_receipt [12:14:58]cmd_close_receipt [12:14:58]MH_GetDate [12:14:58]Write to MH i2c: F0 00 00 0E 13 10 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 09 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 09 00 0E 13 00 C5 F3 B4 65 26 5D 9E 65 70 [12:14:58]GetLastDocTimeStamp 1706357463 [12:14:58]current date 1706357701 [12:14:58]FM_GetShiftState [12:14:58]SAM_PROTO_GetShiftState [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 13 01 00 [12:14:58]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0E 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 36 [12:14:58]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:14:58]wFMCommunicate OK [12:14:58]SAM_PROTO_GetShiftState done [12:14:58]FM_GetShiftState done [12:14:58]opened in 1706313770 [12:14:58]opened+sec_in_day 1706400170 [12:14:58]quantity*price = 30270 [12:14:58]sum+1 = 30272 [12:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 302.71 НСП 1% : 2.68 НДС 12% : 32.15 Наличными: 0.00 Безнал.: 302.71 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 61 27.01.2024 12:15 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 48881 ФПД: 138037899871726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48881&fm=138037899871726&tin=02508201610067®Number=0000000000092723&sum=30271 [12:14:59]StoreToDocumentArchive [12:14:59]shift 243 fd 48881 [12:14:59]save to /storage/0243/doc_00048881 [12:14:59]save last doc name /storage/0243/doc_00048881 to /storage/kkm_last_doc_name [12:14:59]save OK [12:14:59]Clear old archive folders... [12:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:59]tlvbuf is 011B6E80 [12:14:59]SAM_PROTO_ClearQueue [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 09 00 00 [12:14:59]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_ClearQueue done [12:14:59]KKMCreateOFDPacket [12:14:59]OFDProtocolAddRootSTLVToBuf [12:14:59]FM_MakeSignedData [12:14:59]FM_MakeSignedData [12:14:59]SAM_PROTO_SignData [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 01 02 [12:14:59]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=255 [12:14:59]MH_SAM_APDU [12:14: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 9C 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 76 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C5 F3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BE 00 00 35 04 06 00 7D [12:14:59]Write to MH i2c: E2 02 01 1E 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 9C 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 76 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C5 F3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BE 00 00 35 04 06 00 7D 00 00 F3 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=10 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 02 02 05 8B 73 FC C5 EE [12:14:59]Write to MH i2c: E2 0D 00 1F 13 80 0D 02 02 05 00 8B 73 FC C5 EE 00 00 63 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [12:14:59]RAPDU: 90 00 [12:14:59]wFMCommunicate OK [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 0D 03 02 [12:14:59]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0B 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 0B 00 20 13 00 4C 84 99 D6 67 47 E9 DB 90 00 60 [12:14:59]RAPDU: 4C 84 99 D6 67 47 E9 DB 90 00 [12:14:59]wFMCommunicate OK [12:14:59]SAM_PROTO_SignData done [12:14:59]FM_MakeSignedData done [12:14:59]CreateOFDProtocolMessage [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 11 00 00 [12:14:59]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:59]Read from MH i2c: E2 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 17 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FB [12:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:14:59]wFMCommunicate OK [12:14:59]CreateOFDProtocolMessage done [12:14:59]OFDSenderStorePacket 48881 [12:14:59]StoreOFDPacket docnum=48881 [12:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 B5 07 01 31 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 76 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C5 F3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BE 00 00 35 04 06 00 7D 8B 73 FC C5 EE 4C 84 99 D6 67 47 E9 DB [12:14:59]CheckFolder [12:14:59]dirname=/storage/ofd_packets [12:14:59]CheckFolder done [12:14:59]ProducePacketName [12:14:59]name=ofd_packets/00048881 [12:14:59]NVStorageSaveData ofd_packets/00048881 [12:14:59]File name is /storage/ofd_packets/00048881 [12:14:59]Write 301 bytes [12:14:59]NVStorageSaveData done [12:14:59]OFDSenderStorePacket done [12:14:59]KKMCreateOFDPacket done [12:14:59]NVStorageSaveData kkm_last_timestamp [12:14:59]File name is /storage/kkm_last_timestamp [12:14:59]Write 4 bytes [12:14:59]NVStorageSaveData done [12:14:59]ExternCall_PrintAddStr [12:14:59]wPrintStart [12:14:59]Write to MH i2c: 01 00 00 22 13 35 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 [12:14:59]MH_I2C_Read... [12:14:59]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [12:14:59]RasterBufferAndPrint [12:14:59]line Счет N : (1)215978 [12:14:59]line ИНН: 02508201610067 [12:14:59]line Контрольно-Кассовый Чек [12:14:59]line ПРОДАЖА [12:14:59]line ТРК (МРК, ГНК) : 22 [12:14:59]line Товар: 2710124130 [12:14:59]line Аи-92-К-5 [12:14:59]line 5.020 * 60.30 [12:14:59]line = 302.71 [12:14:59]line НДС 12% НСП 1% [12:14:59]line > о реализуемом товаре [12:14:59]line ИТОГО: 302.71 [12:14:59]line НСП 1% : 2.68 [12:14:59]line НДС 12% : 32.15 [12:14:59]line Наличными: 0.00 [12:14:59]line Безнал.: 302.71 [12:14:59]line Место: АЗС № 102 "Партнер Нефть" [12:14:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:14:59]line СНО: Общий режим [12:14:59]line Чек 61 27.01.2024 12:15 [12:14:59]line Смена: 243 ФФД: 1.0 [12:14:59]line ЗНМ: 0300000040 [12:14:59]line РНМ: 0000000000092723 [12:14:59]line Версия ККМ: 001 [12:14:59]line Платежная система: О! деньги [12:14:59]line ФМ: 0000000000875060 [12:14:59]line ФД: 48881 [12:14:59]line ФПД: 138037899871726 [12:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T121501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48881&fm=138037899871726&tin=02508201610067®Number=0000000000092723&sum=30271 [12:15:00]OFD Sender: Processing packet 48881 [packets to send 12, broken 11] [12:15:00]ProducePacketName [12:15:00]name=ofd_packets/00048881 [12:15:00]OFD Sender: To server: pG, [12:15:00]CommunicateWithHost lk.salyk.kg:30040 [12:15:00]ConnectInit lk.salyk.kg [12:15:00]written 0, free lines is 4095 [12:15:00]Connected sock=10 [12:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 B5 07 01 31 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 76 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3F 76 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3F 76 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 C5 F3 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BE 00 00 35 04 06 00 7D 8B 73 FC C5 EE 4C 84 99 D6 67 47 E9 DB [12:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 ED 56 47 00 71 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F1 BE 00 00 F4 03 04 00 C3 9F B4 65 B6 04 01 00 00 BA BB 8E 91 B9 94 E0 BA [12:15:00]CommunicateWithHost err = 0 [12:15:00]CheckOFDResponse [12:15:00]1017 (14) - 77093643461234 [12:15:00]1041 (16) - 0000000000875060 [12:15:00]1040 (4) - 48881 [12:15:00]1012 (4) - 27.01.2024 06:16 [12:15:00]1206 (1) - 0 [12:15:00]OFD Sender: Remove packet 48881 [12:15:00]ProducePacketName [12:15:00]name=ofd_packets/00048881 [12:15:00]NVStorageDeleteData [12:15:00]Write to MH i2c: 01 00 00 4C 13 5F [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: 01 07 00 4C 13 00 00 00 00 00 02 0D 75 [12:15:00]RasterBufferAndPrint [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]line [12:15:00]written 0, free lines is 3336 [12:15:00]MH_Cut [12:15:00]Write to MH i2c: D1 01 00 53 13 01 38 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: D1 01 00 53 13 00 37 [12:15:00]Write to MH i2c: 01 00 00 54 13 67 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]OFD Sender: No OFD packet to send [12:15:01]*** Cut start [12:15:01]*** Partial cut [12:15:01]*** CUTSNS_PIN = 1 [12:15:01]*** CUTSNS_PIN = 0 [12:15:01]*** Brake cut motor [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]*** Stop cut motor [12:15:01]*** Cut end [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FF 0F 7C [12:15:01]process_action close_receipt done [12:15:01]requested_data is exist [12:15:01]produce_requested_data [12:15:01]requested_item fm.sn is exist - process it [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 11 00 00 [12:15:01]Write to MH i2c: E2 08 00 55 13 80 11 00 00 00 00 00 00 E2 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 55 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2F [12:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:15:01]wFMCommunicate OK [12:15:01]requested_item fd.num is exist - process it [12:15:01]SAM_PROTO_GetFieldsCounters [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 13 00 00 [12:15:01]Write to MH i2c: E2 08 00 56 13 80 13 00 00 00 00 00 00 E5 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 62 00 56 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F1 BE 00 00 0E 04 04 00 F3 00 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 57 [12:15: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F1 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetFieldsCounters done [12:15:02]requested_item shift.num is exist - process it [12:15:02]requested_item shift.opened is exist - process it [12:15:02]req_shift_opened [12:15:02]FM_GetShiftState [12:15:02]SAM_PROTO_GetShiftState [12:15:02]wFMCommunicate request_size=4 [12:15:02]MH_SAM_APDU [12:15:02]CAPDU: 80 13 01 00 [12:15:02]Write to MH i2c: E2 08 00 57 13 80 13 01 00 00 00 00 00 E7 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:02]Read from MH i2c: E2 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: E2 0E 00 57 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 7E [12:15:02]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:15:02]wFMCommunicate OK [12:15:02]SAM_PROTO_GetShiftState done [12:15:02]FM_GetShiftState done [12:15:02]req_shift_opened done [12:15:02]requested_item shift.open_date is exist - process it [12:15:02]req_shift_open_date [12:15:02]req_shift_open_date done [12:15:02]produce_requested_data done [12:15:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48881,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:15:02]process_action_free close_receipt [12:15:02]json_value_free [12:15:02]json_value_free done [12:15:02]process_json_proto returns [12:15:02]Send response to host [12:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48881,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:15:02]free response buf [12:15:02]execute_script done [12:15:02]execute_script returns [12:15:02]free content buf [12:15:02]Sock 7.Close socket [12:15:02]Sock 7.Thread stoped [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:25]OFD Sender: No OFD packet to send [12:15:30]OFD Sender: No OFD packet to send [12:15:35]OFD Sender: No OFD packet to send [12:15:40]OFD Sender: No OFD packet to send [12:15:45]OFD Sender: No OFD packet to send [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:08]accept exits with 9 [12:22:08]New connection [12:22:08]New thread 3066670436 created [12:22:08]Thread 3066813796 joined [12:22:08]Waiting for new connection... [12:22:08] Sock 9.Parse request [12:22:08]Sock 9.Check first char [12:22:08]Sock 9.First char is OK [12:22:08]request: POST /json_proto HTTP/1.0 [12:22:08]Method: POST [12:22:08]URL: /json_proto [12:22:08]Method is POST - this is cgi request [12:22:08]url: /json_proto [12:22:08]query_string will be loaded in cgi processing [12:22:08]execute_cgi json_proto POST (null) [12:22:08]execute_cgi path=json_proto method=POST [12:22:08]POST find Content-Length [12:22:08]Host: 172.17.56.67:8080 [12:22:08]Content-Length: 675 [12:22:08]Content-Type: application/json [12:22:08] [12:22:08]POST finish read [12:22:08]Found Content-Length = 675 [12:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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" ] } } [12:22:08]execute_script... [12:22: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)215979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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" ] } } [12:22:08]POST & json_proto [12:22:08]process_json_proto [12:22:08]json parsed OK: [12:22:08]protocol is kg_v1.0 [12:22:08]action value=close_receipt [12:22:08]process_action close_receipt [12:22:08]cmd_close_receipt [12:22:08]MH_GetDate [12:22:08]Write to MH i2c: F0 00 00 58 13 5A [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: F0 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: F0 09 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: F0 09 00 58 13 00 73 F5 B4 65 26 5D 9E 65 6A [12:22:08]GetLastDocTimeStamp 1706357701 [12:22:08]current date 1706358131 [12:22:08]FM_GetShiftState [12:22:08]SAM_PROTO_GetShiftState [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 13 01 00 [12:22:08]Write to MH i2c: E2 08 00 59 13 80 13 01 00 00 00 00 00 E9 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 0E 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 0E 00 59 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 80 [12:22:08]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:22:08]wFMCommunicate OK [12:22:08]SAM_PROTO_GetShiftState done [12:22:08]FM_GetShiftState done [12:22:08]opened in 1706313770 [12:22:08]opened+sec_in_day 1706400170 [12:22:08]quantity*price = 70039 [12:22:08]sum+1 = 70041 [12:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 62 27.01.2024 12:22 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48882 ФПД: 58892095196947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122211&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48882&fm=58892095196947&tin=02508201610067®Number=0000000000092723&sum=70000 [12:22:09]StoreToDocumentArchive [12:22:09]shift 243 fd 48882 [12:22:09]save to /storage/0243/doc_00048882 [12:22:09]save last doc name /storage/0243/doc_00048882 to /storage/kkm_last_doc_name [12:22:09]save OK [12:22:09]Clear old archive folders... [12:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:22:09]tlvbuf is 011B7380 [12:22:09]SAM_PROTO_ClearQueue [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 09 00 00 [12:22:09]Write to MH i2c: E2 08 00 66 13 80 09 00 00 00 00 00 00 EB [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_ClearQueue done [12:22:09]KKMCreateOFDPacket [12:22:09]OFDProtocolAddRootSTLVToBuf [12:22:09]FM_MakeSignedData [12:22:09]FM_MakeSignedData [12:22:09]SAM_PROTO_SignData [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 01 02 [12:22:09]Write to MH i2c: E2 08 00 67 13 80 0D 01 02 00 00 00 00 F3 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=255 [12:22:09]MH_SAM_APDU [12:22: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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 3E 00 00 00 F4 03 04 00 73 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BE 00 00 35 04 06 00 35 8F E2 6A [12:22:09]Write to MH i2c: E2 02 01 68 13 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 3E 00 00 00 F4 03 04 00 73 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BE 00 00 35 04 06 00 35 8F E2 6A 00 00 B5 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=7 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 02 02 02 0F 13 [12:22:09]Write to MH i2c: E2 0A 00 69 13 80 0D 02 02 02 00 0F 13 00 00 1C [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 69 13 00 90 00 F0 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 03 02 [12:22:09]Write to MH i2c: E2 08 00 6A 13 80 0D 03 02 00 00 00 00 F8 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 6A 13 00 B2 4F 2A BE 91 36 1C 7B 90 00 40 [12:22:09]RAPDU: B2 4F 2A BE 91 36 1C 7B 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_SignData done [12:22:09]FM_MakeSignedData done [12:22:09]CreateOFDProtocolMessage [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 11 00 00 [12:22:09]Write to MH i2c: E2 08 00 6B 13 80 11 00 00 00 00 00 00 F8 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 6B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [12:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:22:09]wFMCommunicate OK [12:22:09]CreateOFDProtocolMessage done [12:22:09]OFDSenderStorePacket 48882 [12:22:09]StoreOFDPacket docnum=48882 [12:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 02 1C 04 01 6D 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 3E 00 00 00 F4 03 04 00 73 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BE 00 00 35 04 06 00 35 8F E2 6A 0F 13 B2 4F 2A BE 91 36 1C 7B [12:22:09]CheckFolder [12:22:09]dirname=/storage/ofd_packets [12:22:09]CheckFolder done [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00048882 [12:22:09]NVStorageSaveData ofd_packets/00048882 [12:22:09]File name is /storage/ofd_packets/00048882 [12:22:09]Write 298 bytes [12:22:09]NVStorageSaveData done [12:22:09]OFDSenderStorePacket done [12:22:09]KKMCreateOFDPacket done [12:22:09]NVStorageSaveData kkm_last_timestamp [12:22:09]File name is /storage/kkm_last_timestamp [12:22:09]Write 4 bytes [12:22:09]NVStorageSaveData done [12:22:09]ExternCall_PrintAddStr [12:22:09]wPrintStart [12:22:09]Write to MH i2c: 01 00 00 6C 13 7F [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FF 0F 94 [12:22:09]RasterBufferAndPrint [12:22:09]line Счет N : (1)215979 [12:22:09]line ИНН: 02508201610067 [12:22:09]line Контрольно-Кассовый Чек [12:22:09]line ПРОДАЖА [12:22:09]line ТРК (МРК, ГНК) : 11 [12:22:09]line Товар: 2710194210 [12:22:09]line ДТ-К-5 [12:22:09]line 10.020 * 69.90 [12:22:09]line = 700.40 [12:22:09]line НДС 12% НСП 1% [12:22:09]line > о реализуемом товаре [12:22:09]line ОКРУГЛЕНИЕ: -0.40 [12:22:09]line ИТОГО: 700.00 [12:22:09]line Внесено: 700.00 [12:22:09]line СДАЧА: 0.00 [12:22:09]line НСП 1% : 6.20 [12:22:09]line НДС 12% : 74.38 [12:22:09]line Наличными: 700.00 [12:22:09]line Безнал.: 0.00 [12:22:09]line Место: АЗС № 102 "Партнер Нефть" [12:22:09]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:22:09]line СНО: Общий режим [12:22:09]line Чек 62 27.01.2024 12:22 [12:22:09]line Смена: 243 ФФД: 1.0 [12:22:09]line ЗНМ: 0300000040 [12:22:09]line РНМ: 0000000000092723 [12:22:09]line Версия ККМ: 001 [12:22:09]line ФМ: 0000000000875060 [12:22:09]line ФД: 48882 [12:22:09]line ФПД: 58892095196947 [12:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122211&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48882&fm=58892095196947&tin=02508201610067®Number=0000000000092723&sum=70000 [12:22:10]OFD Sender: Processing packet 48882 [packets to send 12, broken 11] [12:22:10]ProducePacketName [12:22:10]name=ofd_packets/00048882 [12:22:10]OFD Sender: To server: pG, [12:22:10]CommunicateWithHost lk.salyk.kg:30040 [12:22:10]ConnectInit lk.salyk.kg [12:22:10]written 0, free lines is 4095 [12:22:10]Connected sock=10 [12:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 02 1C 04 01 6D 16 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 3E 00 00 00 F4 03 04 00 73 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F2 BE 00 00 35 04 06 00 35 8F E2 6A 0F 13 B2 4F 2A BE 91 36 1C 7B [12:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 74 C3 47 00 CA 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 35 30 36 30 10 04 04 00 F2 BE 00 00 F4 03 04 00 72 A1 B4 65 B6 04 01 00 00 27 15 53 3F 29 10 26 8D [12:22:10]CommunicateWithHost err = 0 [12:22:10]CheckOFDResponse [12:22:10]1017 (14) - 77093643461234 [12:22:10]1041 (16) - 0000000000875060 [12:22:10]1040 (4) - 48882 [12:22:10]1012 (4) - 27.01.2024 06:23 [12:22:10]1206 (1) - 0 [12:22:10]OFD Sender: Remove packet 48882 [12:22:10]ProducePacketName [12:22:10]name=ofd_packets/00048882 [12:22:10]NVStorageDeleteData [12:22:10]Write to MH i2c: 01 00 00 97 13 AA [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: 01 07 00 97 13 00 00 00 00 00 F0 0C AD [12:22:10]RasterBufferAndPrint [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]line [12:22:10]written 0, free lines is 3321 [12:22:10]MH_Cut [12:22:10]Write to MH i2c: D1 01 00 9E 13 01 83 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 [12:22:10]MH_I2C_Read... [12:22:10]Read from MH i2c: D1 01 00 9E 13 00 82 [12:22:10]Write to MH i2c: 01 00 00 9F 13 B2 [12:22:10]Write i2c OK [12:22:10]MH_I2C_Read... [12:22:10]OFD Sender: No OFD packet to send [12:22:11]*** Cut start [12:22:11]*** Partial cut [12:22:11]*** CUTSNS_PIN = 1 [12:22:11]*** CUTSNS_PIN = 0 [12:22:11]*** Brake cut motor [12:22:11]Read from MH i2c: 01 [12:22:11]MH_I2C_Read... [12:22:11]*** Stop cut motor [12:22:11]*** Cut end [12:22:11]Read from MH i2c: 01 07 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 9F 13 00 00 00 00 00 FF 0F C7 [12:22:11]process_action close_receipt done [12:22:11]requested_data is exist [12:22:11]produce_requested_data [12:22:11]requested_item fm.sn is exist - process it [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 11 00 00 [12:22:11]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:11]Read from MH i2c: E2 17 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [12:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:22:11]wFMCommunicate OK [12:22:11]requested_item fd.num is exist - process it [12:22:11]SAM_PROTO_GetFieldsCounters [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 00 00 [12:22:11]Write to MH i2c: E2 08 00 A1 13 80 13 00 00 00 00 00 00 30 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 62 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 62 00 A1 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F2 BE 00 00 0E 04 04 00 F3 00 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 A6 [12:22: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F2 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_GetFieldsCounters done [12:22:12]requested_item shift.num is exist - process it [12:22:12]requested_item shift.opened is exist - process it [12:22:12]req_shift_opened [12:22:12]FM_GetShiftState [12:22:12]SAM_PROTO_GetShiftState [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 13 01 00 [12:22:12]Write to MH i2c: E2 08 00 A2 13 80 13 01 00 00 00 00 00 32 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 A2 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C9 [12:22:12]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_GetShiftState done [12:22:12]FM_GetShiftState done [12:22:12]req_shift_opened done [12:22:12]requested_item shift.open_date is exist - process it [12:22:12]req_shift_open_date [12:22:12]req_shift_open_date done [12:22:12]produce_requested_data done [12:22:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48882,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:22:12]process_action_free close_receipt [12:22:12]json_value_free [12:22:12]json_value_free done [12:22:12]process_json_proto returns [12:22:12]Send response to host [12:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48882,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:22:12]free response buf [12:22:12]execute_script done [12:22:12]execute_script returns [12:22:12]free content buf [12:22:12]Sock 9.Close socket [12:22:12]Sock 9.Thread stoped [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:23]accept exits with 7 [12:23:23]New connection [12:23:23]New thread 3066813796 created [12:23:23]Thread 3066670436 joined [12:23:23]Waiting for new connection... [12:23:23] Sock 7.Parse request [12:23:23]Sock 7.Check first char [12:23:23]Sock 7.First char is OK [12:23:23]request: POST /json_proto HTTP/1.0 [12:23:23]Method: POST [12:23:23]URL: /json_proto [12:23:23]Method is POST - this is cgi request [12:23:23]url: /json_proto [12:23:23]query_string will be loaded in cgi processing [12:23:23]execute_cgi json_proto POST (null) [12:23:23]execute_cgi path=json_proto method=POST [12:23:23]POST find Content-Length [12:23:23]Host: 172.17.56.67:8080 [12:23:23]Content-Length: 677 [12:23:23]Content-Type: application/json [12:23:23] [12:23:23]POST finish read [12:23:23]Found Content-Length = 677 [12:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [12:23:23]execute_script... [12:23: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)215980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [12:23:23]POST & json_proto [12:23:23]process_json_proto [12:23:23]json parsed OK: [12:23:23]protocol is kg_v1.0 [12:23:23]action value=close_receipt [12:23:23]process_action close_receipt [12:23:23]cmd_close_receipt [12:23:23]MH_GetDate [12:23:23]Write to MH i2c: F0 00 00 A3 13 A5 [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: F0 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: F0 09 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: F0 09 00 A3 13 00 BF F5 B4 65 26 5D 9E 65 01 [12:23:23]GetLastDocTimeStamp 1706358131 [12:23:23]current date 1706358207 [12:23:23]FM_GetShiftState [12:23:23]SAM_PROTO_GetShiftState [12:23:23]wFMCommunicate request_size=4 [12:23:23]MH_SAM_APDU [12:23:23]CAPDU: 80 13 01 00 [12:23:23]Write to MH i2c: E2 08 00 A4 13 80 13 01 00 00 00 00 00 34 [12:23:23]Write i2c OK [12:23:23]MH_I2C_Read... [12:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:23]Read from MH i2c: E2 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 0E 00 [12:23:23]MH_I2C_Read... [12:23:23]Read from MH i2c: E2 0E 00 A4 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 CB [12:23:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:23:23]wFMCommunicate OK [12:23:23]SAM_PROTO_GetShiftState done [12:23:23]FM_GetShiftState done [12:23:23]opened in 1706313770 [12:23:23]opened+sec_in_day 1706400170 [12:23:23]quantity*price = 10009 [12:23:23]sum+1 = 10011 [12:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.63 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 63 27.01.2024 12:23 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48883 ФПД: 158804572762557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122327&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48883&fm=158804572762557&tin=02508201610067®Number=0000000000092723&sum=10000 [12:23:25]StoreToDocumentArchive [12:23:25]shift 243 fd 48883 [12:23:25]save to /storage/0243/doc_00048883 [12:23:25]save last doc name /storage/0243/doc_00048883 to /storage/kkm_last_doc_name [12:23:25]save OK [12:23:25]Clear old archive folders... [12:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:25]tlvbuf is 011974A0 [12:23:25]SAM_PROTO_ClearQueue [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 09 00 00 [12:23:25]Write to MH i2c: E2 08 00 B1 13 80 09 00 00 00 00 00 00 36 [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]SAM_PROTO_ClearQueue done [12:23:25]KKMCreateOFDPacket [12:23:25]OFDProtocolAddRootSTLVToBuf [12:23:25]FM_MakeSignedData [12:23:25]FM_MakeSignedData [12:23:25]SAM_PROTO_SignData [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 0D 01 02 [12:23:25]Write to MH i2c: E2 08 00 B2 13 80 0D 01 02 00 00 00 00 3E [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]wFMCommunicate request_size=255 [12:23:25]MH_SAM_APDU [12:23: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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 3F 00 00 00 F4 03 04 00 BF F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BE 00 00 35 04 06 00 90 [12:23:25]Write to MH i2c: E2 02 01 B3 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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 3F 00 00 00 F4 03 04 00 BF F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BE 00 00 35 04 06 00 90 00 00 DA [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]wFMCommunicate request_size=10 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 0D 02 02 05 6E 92 25 F1 BD [12:23:25]Write to MH i2c: E2 0D 00 B4 13 80 0D 02 02 05 00 6E 92 25 F1 BD 00 00 1E [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 B4 13 00 90 00 3B [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 0D 03 02 [12:23:25]Write to MH i2c: E2 08 00 B5 13 80 0D 03 02 00 00 00 00 43 [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 0B 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 0B 00 B5 13 00 72 E0 61 A2 68 4A E9 28 90 00 5C [12:23:25]RAPDU: 72 E0 61 A2 68 4A E9 28 90 00 [12:23:25]wFMCommunicate OK [12:23:25]SAM_PROTO_SignData done [12:23:25]FM_MakeSignedData done [12:23:25]CreateOFDProtocolMessage [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 11 00 00 [12:23:25]Write to MH i2c: E2 08 00 B6 13 80 11 00 00 00 00 00 00 43 [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 17 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 17 00 B6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [12:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:23:25]wFMCommunicate OK [12:23:25]CreateOFDProtocolMessage done [12:23:25]OFDSenderStorePacket 48883 [12:23:25]StoreOFDPacket docnum=48883 [12:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 55 CF 07 01 72 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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 3F 00 00 00 F4 03 04 00 BF F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BE 00 00 35 04 06 00 90 6E 92 25 F1 BD 72 E0 61 A2 68 4A E9 28 [12:23:25]CheckFolder [12:23:25]dirname=/storage/ofd_packets [12:23:25]CheckFolder done [12:23:25]ProducePacketName [12:23:25]name=ofd_packets/00048883 [12:23:25]NVStorageSaveData ofd_packets/00048883 [12:23:25]File name is /storage/ofd_packets/00048883 [12:23:25]Write 301 bytes [12:23:25]NVStorageSaveData done [12:23:25]OFDSenderStorePacket done [12:23:25]KKMCreateOFDPacket done [12:23:25]NVStorageSaveData kkm_last_timestamp [12:23:25]File name is /storage/kkm_last_timestamp [12:23:25]Write 4 bytes [12:23:25]NVStorageSaveData done [12:23:25]ExternCall_PrintAddStr [12:23:25]wPrintStart [12:23:25]Write to MH i2c: 01 00 00 B7 13 CA [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: 01 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: 01 07 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: 01 07 00 B7 13 00 00 00 00 00 FF 0F DF [12:23:25]RasterBufferAndPrint [12:23:25]line Счет N : (1)215980 [12:23:25]line ИНН: 02508201610067 [12:23:25]line Контрольно-Кассовый Чек [12:23:25]line ПРОДАЖА [12:23:25]line ТРК (МРК, ГНК) : 22 [12:23:25]line Товар: 2710124130 [12:23:25]line Аи-92-К-5 [12:23:25]line 1.660 * 60.30 [12:23:25]line = 100.10 [12:23:25]line НДС 12% НСП 1% [12:23:25]line > о реализуемом товаре [12:23:25]line ОКРУГЛЕНИЕ: -0.10 [12:23:25]line ИТОГО: 100.00 [12:23:25]line Внесено: 100.00 [12:23:25]line СДАЧА: 0.00 [12:23:25]line НСП 1% : 0.89 [12:23:25]line НДС 12% : 10.63 [12:23:25]line Наличными: 100.00 [12:23:25]line Безнал.: 0.00 [12:23:25]line Место: АЗС № 102 "Партнер Нефть" [12:23:25]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:23:25]line СНО: Общий режим [12:23:25]line Чек 63 27.01.2024 12:23 [12:23:25]line Смена: 243 ФФД: 1.0 [12:23:25]line ЗНМ: 0300000040 [12:23:25]line РНМ: 0000000000092723 [12:23:25]line Версия ККМ: 001 [12:23:25]line ФМ: 0000000000875060 [12:23:25]line ФД: 48883 [12:23:25]line ФПД: 158804572762557 [12:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122327&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48883&fm=158804572762557&tin=02508201610067®Number=0000000000092723&sum=10000 [12:23:25]OFD Sender: Processing packet 48883 [packets to send 12, broken 11] [12:23:25]ProducePacketName [12:23:25]name=ofd_packets/00048883 [12:23:25]OFD Sender: To server: pG, [12:23:25]CommunicateWithHost lk.salyk.kg:30040 [12:23:25]ConnectInit lk.salyk.kg [12:23:25]written 0, free lines is 4095 [12:23:26]Connected sock=10 [12:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 55 CF 07 01 72 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 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 3F 00 00 00 F4 03 04 00 BF F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BE 00 00 35 04 06 00 90 6E 92 25 F1 BD 72 E0 61 A2 68 4A E9 28 [12:23:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D8 E7 47 00 B9 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F3 BE 00 00 F4 03 04 00 BD A1 B4 65 B6 04 01 00 00 77 00 5E DB 2B 21 99 87 [12:23:26]CommunicateWithHost err = 0 [12:23:26]CheckOFDResponse [12:23:26]1017 (14) - 77093643461234 [12:23:26]1041 (16) - 0000000000875060 [12:23:26]1040 (4) - 48883 [12:23:26]1012 (4) - 27.01.2024 06:25 [12:23:26]1206 (1) - 0 [12:23:26]OFD Sender: Remove packet 48883 [12:23:26]ProducePacketName [12:23:26]name=ofd_packets/00048883 [12:23:26]NVStorageDeleteData [12:23:26]Write to MH i2c: 01 00 00 E2 13 F5 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 ED 0C F5 [12:23:26]RasterBufferAndPrint [12:23:26]line [12:23:26]line [12:23:26]line [12:23:26]line [12:23:26]line [12:23:26]written 0, free lines is 3315 [12:23:26]MH_Cut [12:23:26]Write to MH i2c: D1 01 00 E9 13 01 CE [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: D1 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: D1 01 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: D1 01 00 E9 13 00 CD [12:23:26]Write to MH i2c: 01 00 00 EA 13 FD [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]OFD Sender: No OFD packet to send [12:23:27]*** Cut start [12:23:27]*** Partial cut [12:23:27]*** CUTSNS_PIN = 1 [12:23:27]*** CUTSNS_PIN = 0 [12:23:27]*** Brake cut motor [12:23:27]Read from MH i2c: 01 [12:23:27]MH_I2C_Read... [12:23:27]*** Stop cut motor [12:23:27]*** Cut end [12:23:27]Read from MH i2c: 01 07 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 07 00 EA 13 00 00 00 00 00 FF 0F 12 [12:23:27]process_action close_receipt done [12:23:27]requested_data is exist [12:23:27]produce_requested_data [12:23:27]requested_item fm.sn is exist - process it [12:23:27]wFMCommunicate request_size=4 [12:23:27]MH_SAM_APDU [12:23:27]CAPDU: 80 11 00 00 [12:23:27]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:27]Read from MH i2c: E2 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 17 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [12:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:23:27]wFMCommunicate OK [12:23:27]requested_item fd.num is exist - process it [12:23:27]SAM_PROTO_GetFieldsCounters [12:23:27]wFMCommunicate request_size=4 [12:23:27]MH_SAM_APDU [12:23:27]CAPDU: 80 13 00 00 [12:23:27]Write to MH i2c: E2 08 00 EC 13 80 13 00 00 00 00 00 00 7B [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:27]Read from MH i2c: E2 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 62 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 62 00 EC 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F3 BE 00 00 0E 04 04 00 F3 00 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 F5 [12:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F3 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:27]wFMCommunicate OK [12:23:27]SAM_PROTO_GetFieldsCounters done [12:23:27]requested_item shift.num is exist - process it [12:23:27]requested_item shift.opened is exist - process it [12:23:27]req_shift_opened [12:23:27]FM_GetShiftState [12:23:27]SAM_PROTO_GetShiftState [12:23:27]wFMCommunicate request_size=4 [12:23:27]MH_SAM_APDU [12:23:27]CAPDU: 80 13 01 00 [12:23:27]Write to MH i2c: E2 08 00 ED 13 80 13 01 00 00 00 00 00 7D [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:27]Read from MH i2c: E2 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 0E 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: E2 0E 00 ED 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 14 [12:23:27]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:23:27]wFMCommunicate OK [12:23:27]SAM_PROTO_GetShiftState done [12:23:27]FM_GetShiftState done [12:23:27]req_shift_opened done [12:23:27]requested_item shift.open_date is exist - process it [12:23:27]req_shift_open_date [12:23:27]req_shift_open_date done [12:23:27]produce_requested_data done [12:23:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48883,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:23:27]process_action_free close_receipt [12:23:27]json_value_free [12:23:27]json_value_free done [12:23:27]process_json_proto returns [12:23:27]Send response to host [12:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48883,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:23:27]free response buf [12:23:27]execute_script done [12:23:27]execute_script returns [12:23:27]free content buf [12:23:27]Sock 7.Close socket [12:23:27]Sock 7.Thread stoped [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:17]accept exits with 9 [12:24:17]New connection [12:24:17]New thread 3066670436 created [12:24:17]Thread 3066813796 joined [12:24:17]Waiting for new connection... [12:24:17] Sock 9.Parse request [12:24:17]Sock 9.Check first char [12:24:17]Sock 9.First char is OK [12:24:17]request: POST /json_proto HTTP/1.0 [12:24:17]Method: POST [12:24:17]URL: /json_proto [12:24:17]Method is POST - this is cgi request [12:24:17]url: /json_proto [12:24:17]query_string will be loaded in cgi processing [12:24:17]execute_cgi json_proto POST (null) [12:24:17]execute_cgi path=json_proto method=POST [12:24:17]POST find Content-Length [12:24:17]Host: 172.17.56.67:8080 [12:24:17]Content-Length: 677 [12:24:17]Content-Type: application/json [12:24:17] [12:24:17]POST finish read [12:24:17]Found Content-Length = 677 [12:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:17]execute_script... [12:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:17]POST & json_proto [12:24:17]process_json_proto [12:24:17]json parsed OK: [12:24:17]protocol is kg_v1.0 [12:24:17]action value=close_receipt [12:24:17]process_action close_receipt [12:24:17]cmd_close_receipt [12:24:17]MH_GetDate [12:24:17]Write to MH i2c: F0 00 00 EE 13 F0 [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: F0 09 00 EE 13 00 F4 F5 B4 65 26 5D 9E 65 81 [12:24:17]GetLastDocTimeStamp 1706358207 [12:24:17]current date 1706358260 [12:24:17]FM_GetShiftState [12:24:17]SAM_PROTO_GetShiftState [12:24:17]wFMCommunicate request_size=4 [12:24:17]MH_SAM_APDU [12:24:17]CAPDU: 80 13 01 00 [12:24:17]Write to MH i2c: E2 08 00 EF 13 80 13 01 00 00 00 00 00 7F [12:24:17]Write i2c OK [12:24:17]MH_I2C_Read... [12:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:17]Read from MH i2c: E2 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 [12:24:17]MH_I2C_Read... [12:24:17]Read from MH i2c: E2 0E 00 EF 13 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 16 [12:24:17]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:24:17]wFMCommunicate OK [12:24:17]SAM_PROTO_GetShiftState done [12:24:17]FM_GetShiftState done [12:24:17]opened in 1706313770 [12:24:17]opened+sec_in_day 1706400170 [12:24:17]quantity*price = 50049 [12:24:17]sum+1 = 50050 [12:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 64 27.01.2024 12:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48884 ФПД: 114953677172956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48884&fm=114953677172956&tin=02508201610067®Number=0000000000092723&sum=50000 [12:24:18]StoreToDocumentArchive [12:24:18]shift 243 fd 48884 [12:24:18]save to /storage/0243/doc_00048884 [12:24:18]save last doc name /storage/0243/doc_00048884 to /storage/kkm_last_doc_name [12:24:18]save OK [12:24:18]Clear old archive folders... [12:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:18]tlvbuf is 011B7410 [12:24:18]SAM_PROTO_ClearQueue [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 09 00 00 [12:24:18]Write to MH i2c: E2 08 00 FC 13 80 09 00 00 00 00 00 00 81 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]SAM_PROTO_ClearQueue done [12:24:18]KKMCreateOFDPacket [12:24:18]OFDProtocolAddRootSTLVToBuf [12:24:18]FM_MakeSignedData [12:24:18]FM_MakeSignedData [12:24:18]SAM_PROTO_SignData [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 01 02 [12:24:18]Write to MH i2c: E2 08 00 FD 13 80 0D 01 02 00 00 00 00 89 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 FD 13 00 90 00 84 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]wFMCommunicate request_size=255 [12:24:18]MH_SAM_APDU [12:24: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F4 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BE 00 00 35 04 06 00 68 [12:24:18]Write to MH i2c: E2 02 01 FE 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F4 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BE 00 00 35 04 06 00 68 00 00 08 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 FE 13 00 90 00 85 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]wFMCommunicate request_size=10 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 02 02 05 8C BD 17 F0 DC [12:24:18]Write to MH i2c: E2 0D 00 FF 13 80 0D 02 02 05 00 8C BD 17 F0 DC 00 00 C2 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 03 00 FF 13 00 90 00 86 [12:24:18]RAPDU: 90 00 [12:24:18]wFMCommunicate OK [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 0D 03 02 [12:24:18]Write to MH i2c: E2 08 00 00 14 80 0D 03 02 00 00 00 00 8F [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 0B 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 0B 00 00 14 00 15 90 3A 59 EE 2A 96 2B 90 00 A1 [12:24:18]RAPDU: 15 90 3A 59 EE 2A 96 2B 90 00 [12:24:18]wFMCommunicate OK [12:24:18]SAM_PROTO_SignData done [12:24:18]FM_MakeSignedData done [12:24:18]CreateOFDProtocolMessage [12:24:18]wFMCommunicate request_size=4 [12:24:18]MH_SAM_APDU [12:24:18]CAPDU: 80 11 00 00 [12:24:18]Write to MH i2c: E2 08 00 01 14 80 11 00 00 00 00 00 00 8F [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:18]Read from MH i2c: E2 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 17 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: E2 17 00 01 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DC [12:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:24:18]wFMCommunicate OK [12:24:18]CreateOFDProtocolMessage done [12:24:18]OFDSenderStorePacket 48884 [12:24:18]StoreOFDPacket docnum=48884 [12:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A1 76 07 01 8A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F4 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BE 00 00 35 04 06 00 68 8C BD 17 F0 DC 15 90 3A 59 EE 2A 96 2B [12:24:18]CheckFolder [12:24:18]dirname=/storage/ofd_packets [12:24:18]CheckFolder done [12:24:18]ProducePacketName [12:24:18]name=ofd_packets/00048884 [12:24:18]NVStorageSaveData ofd_packets/00048884 [12:24:18]File name is /storage/ofd_packets/00048884 [12:24:18]Write 301 bytes [12:24:18]NVStorageSaveData done [12:24:18]OFDSenderStorePacket done [12:24:18]KKMCreateOFDPacket done [12:24:18]NVStorageSaveData kkm_last_timestamp [12:24:18]File name is /storage/kkm_last_timestamp [12:24:18]Write 4 bytes [12:24:18]NVStorageSaveData done [12:24:18]ExternCall_PrintAddStr [12:24:18]wPrintStart [12:24:18]Write to MH i2c: 01 00 00 02 14 16 [12:24:18]Write i2c OK [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: 01 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: 01 07 00 [12:24:18]MH_I2C_Read... [12:24:18]Read from MH i2c: 01 07 00 02 14 00 00 00 00 00 FF 0F 2B [12:24:18]RasterBufferAndPrint [12:24:18]line Счет N : (1)215981 [12:24:18]line ИНН: 02508201610067 [12:24:18]line Контрольно-Кассовый Чек [12:24:18]line ПРОДАЖА [12:24:18]line ТРК (МРК, ГНК) : 12 [12:24:18]line Товар: 2710124130 [12:24:18]line Аи-92-К-5 [12:24:18]line 8.300 * 60.30 [12:24:18]line = 500.49 [12:24:18]line НДС 12% НСП 1% [12:24:18]line > о реализуемом товаре [12:24:18]line ОКРУГЛЕНИЕ: -0.49 [12:24:18]line ИТОГО: 500.00 [12:24:18]line Внесено: 500.00 [12:24:18]line СДАЧА: 0.00 [12:24:18]line НСП 1% : 4.43 [12:24:18]line НДС 12% : 53.15 [12:24:18]line Наличными: 500.00 [12:24:18]line Безнал.: 0.00 [12:24:18]line Место: АЗС № 102 "Партнер Нефть" [12:24:18]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:24:18]line СНО: Общий режим [12:24:18]line Чек 64 27.01.2024 12:24 [12:24:18]line Смена: 243 ФФД: 1.0 [12:24:18]line ЗНМ: 0300000040 [12:24:18]line РНМ: 0000000000092723 [12:24:18]line Версия ККМ: 001 [12:24:18]line ФМ: 0000000000875060 [12:24:18]line ФД: 48884 [12:24:18]line ФПД: 114953677172956 [12:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48884&fm=114953677172956&tin=02508201610067®Number=0000000000092723&sum=50000 [12:24:19]OFD Sender: Processing packet 48884 [packets to send 12, broken 11] [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00048884 [12:24:19]OFD Sender: To server: pG, [12:24:19]CommunicateWithHost lk.salyk.kg:30040 [12:24:19]ConnectInit lk.salyk.kg [12:24:19]written 0, free lines is 4095 [12:24:19]Connected sock=10 [12:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A1 76 07 01 8A 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F4 F5 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BE 00 00 35 04 06 00 68 8C BD 17 F0 DC 15 90 3A 59 EE 2A 96 2B [12:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 65 D4 47 00 A4 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F4 BE 00 00 F4 03 04 00 F3 A1 B4 65 B6 04 01 00 00 71 50 95 E3 23 D9 C6 D6 [12:24:19]CommunicateWithHost err = 0 [12:24:19]CheckOFDResponse [12:24:19]1017 (14) - 77093643461234 [12:24:19]1041 (16) - 0000000000875060 [12:24:19]1040 (4) - 48884 [12:24:19]1012 (4) - 27.01.2024 06:25 [12:24:19]1206 (1) - 0 [12:24:19]OFD Sender: Remove packet 48884 [12:24:19]ProducePacketName [12:24:19]name=ofd_packets/00048884 [12:24:19]NVStorageDeleteData [12:24:19]Write to MH i2c: 01 00 00 2D 14 41 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: 01 07 00 2D 14 00 00 00 00 00 ED 0C 41 [12:24:19]RasterBufferAndPrint [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]line [12:24:19]written 0, free lines is 3315 [12:24:19]MH_Cut [12:24:19]Write to MH i2c: D1 01 00 34 14 01 1A [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 01 00 [12:24:19]MH_I2C_Read... [12:24:19]Read from MH i2c: D1 01 00 34 14 00 19 [12:24:19]Write to MH i2c: 01 00 00 35 14 49 [12:24:19]Write i2c OK [12:24:19]MH_I2C_Read... [12:24:20]OFD Sender: No OFD packet to send [12:24:20]*** Cut start [12:24:20]*** Partial cut [12:24:20]*** CUTSNS_PIN = 1 [12:24:20]*** CUTSNS_PIN = 0 [12:24:20]*** Brake cut motor [12:24:20]Read from MH i2c: 01 [12:24:20]MH_I2C_Read... [12:24:21]*** Stop cut motor [12:24:21]*** Cut end [12:24:21]Read from MH i2c: 01 07 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 35 14 00 00 00 00 00 FF 0F 5E [12:24:21]process_action close_receipt done [12:24:21]requested_data is exist [12:24:21]produce_requested_data [12:24:21]requested_item fm.sn is exist - process it [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 11 00 00 [12:24:21]Write to MH i2c: E2 08 00 36 14 80 11 00 00 00 00 00 00 C4 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 36 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 11 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:24:21]wFMCommunicate OK [12:24:21]requested_item fd.num is exist - process it [12:24:21]SAM_PROTO_GetFieldsCounters [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 00 00 [12:24:21]Write to MH i2c: E2 08 00 37 14 80 13 00 00 00 00 00 00 C7 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 62 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 62 00 37 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F4 BE 00 00 0E 04 04 00 F3 00 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 45 [12:24: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F4 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetFieldsCounters done [12:24:21]requested_item shift.num is exist - process it [12:24:21]requested_item shift.opened is exist - process it [12:24:21]req_shift_opened [12:24:21]FM_GetShiftState [12:24:21]SAM_PROTO_GetShiftState [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 13 01 00 [12:24:21]Write to MH i2c: E2 08 00 38 14 80 13 01 00 00 00 00 00 C9 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0E 00 38 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 60 [12:24:21]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_GetShiftState done [12:24:21]FM_GetShiftState done [12:24:21]req_shift_opened done [12:24:21]requested_item shift.open_date is exist - process it [12:24:21]req_shift_open_date [12:24:21]req_shift_open_date done [12:24:21]produce_requested_data done [12:24:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48884,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:24:21]process_action_free close_receipt [12:24:21]json_value_free [12:24:21]json_value_free done [12:24:21]process_json_proto returns [12:24:21]Send response to host [12:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48884,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:24:21]free response buf [12:24:21]execute_script done [12:24:21]execute_script returns [12:24:21]free content buf [12:24:21]Sock 9.Close socket [12:24:21]Sock 9.Thread stoped [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:50]accept exits with 7 [12:24:50]New connection [12:24:50]New thread 3066813796 created [12:24:50]Thread 3066670436 joined [12:24:50]Waiting for new connection... [12:24:50] Sock 7.Parse request [12:24:50]Sock 7.Check first char [12:24:50]Sock 7.First char is OK [12:24:50]request: POST /json_proto HTTP/1.0 [12:24:50]Method: POST [12:24:50]URL: /json_proto [12:24:50]Method is POST - this is cgi request [12:24:50]url: /json_proto [12:24:50]query_string will be loaded in cgi processing [12:24:50]execute_cgi json_proto POST (null) [12:24:50]execute_cgi path=json_proto method=POST [12:24:50]POST find Content-Length [12:24:50]Host: 172.17.56.67:8080 [12:24:50]Content-Length: 682 [12:24:50]Content-Type: application/json [12:24:50] [12:24:50]POST finish read [12:24:50]Found Content-Length = 682 [12:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:24:50]execute_script... [12:24: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)215982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:24:50]POST & json_proto [12:24:50]process_json_proto [12:24:50]json parsed OK: [12:24:50]protocol is kg_v1.0 [12:24:50]action value=close_receipt [12:24:50]process_action close_receipt [12:24:50]cmd_close_receipt [12:24:50]MH_GetDate [12:24:50]Write to MH i2c: F0 00 00 39 14 3C [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: F0 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: F0 09 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: F0 09 00 39 14 00 15 F6 B4 65 26 5D 9E 65 EF [12:24:50]GetLastDocTimeStamp 1706358260 [12:24:50]current date 1706358293 [12:24:50]FM_GetShiftState [12:24:50]SAM_PROTO_GetShiftState [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 13 01 00 [12:24:50]Write to MH i2c: E2 08 00 3A 14 80 13 01 00 00 00 00 00 CB [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 0E 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 0E 00 3A 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 62 [12:24:50]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:24:50]wFMCommunicate OK [12:24:50]SAM_PROTO_GetShiftState done [12:24:50]FM_GetShiftState done [12:24:50]opened in 1706313770 [12:24:50]opened+sec_in_day 1706400170 [12:24:50]quantity*price = 100037 [12:24:50]sum+1 = 100039 [12:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 65 27.01.2024 12:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48885 ФПД: 93761904062510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122453&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48885&fm=93761904062510&tin=02508201610067®Number=0000000000092723&sum=100000 [12:24:51]StoreToDocumentArchive [12:24:51]shift 243 fd 48885 [12:24:51]save to /storage/0243/doc_00048885 [12:24:51]save last doc name /storage/0243/doc_00048885 to /storage/kkm_last_doc_name [12:24:51]save OK [12:24:51]Clear old archive folders... [12:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:51]tlvbuf is B6E86490 [12:24:51]SAM_PROTO_ClearQueue [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 09 00 00 [12:24:51]Write to MH i2c: E2 08 00 47 14 80 09 00 00 00 00 00 00 CD [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 47 14 00 90 00 CF [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]SAM_PROTO_ClearQueue done [12:24:51]KKMCreateOFDPacket [12:24:51]OFDProtocolAddRootSTLVToBuf [12:24:51]FM_MakeSignedData [12:24:51]FM_MakeSignedData [12:24:51]SAM_PROTO_SignData [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 01 02 [12:24:51]Write to MH i2c: E2 08 00 48 14 80 0D 01 02 00 00 00 00 D5 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 48 14 00 90 00 D0 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=255 [12:24:51]MH_SAM_APDU [12:24: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 F6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BE 00 00 35 04 06 00 55 [12:24:51]Write to MH i2c: E2 02 01 49 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 F6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BE 00 00 35 04 06 00 55 00 00 A5 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 49 14 00 90 00 D1 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=10 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 02 02 05 46 A4 FC 30 2E [12:24:51]Write to MH i2c: E2 0D 00 4A 14 80 0D 02 02 05 00 46 A4 FC 30 2E 00 00 26 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 03 00 4A 14 00 90 00 D2 [12:24:51]RAPDU: 90 00 [12:24:51]wFMCommunicate OK [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 0D 03 02 [12:24:51]Write to MH i2c: E2 08 00 4B 14 80 0D 03 02 00 00 00 00 DA [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 0B 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 0B 00 4B 14 00 47 AF 51 58 43 3B 28 84 90 00 A4 [12:24:51]RAPDU: 47 AF 51 58 43 3B 28 84 90 00 [12:24:51]wFMCommunicate OK [12:24:51]SAM_PROTO_SignData done [12:24:51]FM_MakeSignedData done [12:24:51]CreateOFDProtocolMessage [12:24:51]wFMCommunicate request_size=4 [12:24:51]MH_SAM_APDU [12:24:51]CAPDU: 80 11 00 00 [12:24:51]Write to MH i2c: E2 08 00 4C 14 80 11 00 00 00 00 00 00 DA [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:51]Read from MH i2c: E2 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: E2 17 00 4C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 27 [12:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:24:51]wFMCommunicate OK [12:24:51]CreateOFDProtocolMessage done [12:24:51]OFDSenderStorePacket 48885 [12:24:51]StoreOFDPacket docnum=48885 [12:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4A 51 07 01 87 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 F6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BE 00 00 35 04 06 00 55 46 A4 FC 30 2E 47 AF 51 58 43 3B 28 84 [12:24:51]CheckFolder [12:24:51]dirname=/storage/ofd_packets [12:24:51]CheckFolder done [12:24:51]ProducePacketName [12:24:51]name=ofd_packets/00048885 [12:24:51]NVStorageSaveData ofd_packets/00048885 [12:24:51]File name is /storage/ofd_packets/00048885 [12:24:51]Write 301 bytes [12:24:51]NVStorageSaveData done [12:24:51]OFDSenderStorePacket done [12:24:51]KKMCreateOFDPacket done [12:24:51]NVStorageSaveData kkm_last_timestamp [12:24:51]File name is /storage/kkm_last_timestamp [12:24:51]Write 4 bytes [12:24:51]NVStorageSaveData done [12:24:51]ExternCall_PrintAddStr [12:24:51]wPrintStart [12:24:51]Write to MH i2c: 01 00 00 4D 14 61 [12:24:51]Write i2c OK [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 07 00 [12:24:51]MH_I2C_Read... [12:24:51]Read from MH i2c: 01 07 00 4D 14 00 00 00 00 00 FF 0F 76 [12:24:51]RasterBufferAndPrint [12:24:51]line Счет N : (1)215982 [12:24:51]line ИНН: 02508201610067 [12:24:51]line Контрольно-Кассовый Чек [12:24:51]line ПРОДАЖА [12:24:51]line ТРК (МРК, ГНК) : 22 [12:24:51]line Товар: 2710124130 [12:24:51]line Аи-92-К-5 [12:24:51]line 16.590 * 60.30 [12:24:51]line = 1000.38 [12:24:51]line НДС 12% НСП 1% [12:24:51]line > о реализуемом товаре [12:24:51]line ОКРУГЛЕНИЕ: -0.38 [12:24:51]line ИТОГО: 1000.00 [12:24:51]line Внесено: 1000.00 [12:24:51]line СДАЧА: 0.00 [12:24:51]line НСП 1% : 8.85 [12:24:51]line НДС 12% : 106.23 [12:24:51]line Наличными: 1000.00 [12:24:51]line Безнал.: 0.00 [12:24:51]line Место: АЗС № 102 "Партнер Нефть" [12:24:51]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:24:51]line СНО: Общий режим [12:24:51]line Чек 65 27.01.2024 12:24 [12:24:51]line Смена: 243 ФФД: 1.0 [12:24:51]line ЗНМ: 0300000040 [12:24:51]line РНМ: 0000000000092723 [12:24:51]line Версия ККМ: 001 [12:24:51]line ФМ: 0000000000875060 [12:24:51]line ФД: 48885 [12:24:51]line ФПД: 93761904062510 [12:24:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T122453&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48885&fm=93761904062510&tin=02508201610067®Number=0000000000092723&sum=100000 [12:24:52]OFD Sender: Processing packet 48885 [packets to send 12, broken 11] [12:24:52]ProducePacketName [12:24:52]name=ofd_packets/00048885 [12:24:52]OFD Sender: To server: pG, [12:24:52]CommunicateWithHost lk.salyk.kg:30040 [12:24:52]ConnectInit lk.salyk.kg [12:24:52]written 0, free lines is 4095 [12:24:52]Connected sock=10 [12:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4A 51 07 01 87 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 15 F6 B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F5 BE 00 00 35 04 06 00 55 46 A4 FC 30 2E 47 AF 51 58 43 3B 28 84 [12:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 39 44 47 00 F1 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 35 30 36 30 10 04 04 00 F5 BE 00 00 F4 03 04 00 14 A2 B4 65 B6 04 01 00 00 0D 0E CE BE 38 B0 2A FF [12:24:52]CommunicateWithHost err = 0 [12:24:52]CheckOFDResponse [12:24:52]1017 (14) - 77093643461234 [12:24:52]1041 (16) - 0000000000875060 [12:24:52]1040 (4) - 48885 [12:24:52]1012 (4) - 27.01.2024 06:26 [12:24:52]1206 (1) - 0 [12:24:52]OFD Sender: Remove packet 48885 [12:24:52]ProducePacketName [12:24:52]name=ofd_packets/00048885 [12:24:52]NVStorageDeleteData [12:24:52]Write to MH i2c: 01 00 00 78 14 8C [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: 01 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: 01 07 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: 01 07 00 78 14 00 00 00 00 00 FB 0C 9A [12:24:52]RasterBufferAndPrint [12:24:52]line [12:24:52]line [12:24:52]line [12:24:52]line [12:24:52]line [12:24:52]written 0, free lines is 3329 [12:24:52]MH_Cut [12:24:52]Write to MH i2c: D1 01 00 7F 14 01 65 [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: D1 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: D1 01 00 [12:24:52]MH_I2C_Read... [12:24:52]Read from MH i2c: D1 01 00 7F 14 00 64 [12:24:52]Write to MH i2c: 01 00 00 80 14 94 [12:24:52]Write i2c OK [12:24:52]MH_I2C_Read... [12:24:53]OFD Sender: No OFD packet to send [12:24:53]*** Cut start [12:24:53]*** Partial cut [12:24:53]*** CUTSNS_PIN = 1 [12:24:53]*** CUTSNS_PIN = 0 [12:24:53]*** Brake cut motor [12:24:53]Read from MH i2c: 01 [12:24:53]MH_I2C_Read... [12:24:53]*** Stop cut motor [12:24:53]*** Cut end [12:24:53]Read from MH i2c: 01 07 00 [12:24:53]MH_I2C_Read... [12:24:53]Read from MH i2c: 01 07 00 80 14 00 00 00 00 00 FF 0F A9 [12:24:53]process_action close_receipt done [12:24:53]requested_data is exist [12:24:53]produce_requested_data [12:24:53]requested_item fm.sn is exist - process it [12:24:53]wFMCommunicate request_size=4 [12:24:53]MH_SAM_APDU [12:24:53]CAPDU: 80 11 00 00 [12:24:53]Write to MH i2c: E2 08 00 81 14 80 11 00 00 00 00 00 00 0F [12:24:53]Write i2c OK [12:24:53]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 17 00 81 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5C [12:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:24:54]wFMCommunicate OK [12:24:54]requested_item fd.num is exist - process it [12:24:54]SAM_PROTO_GetFieldsCounters [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 13 00 00 [12:24:54]Write to MH i2c: E2 08 00 82 14 80 13 00 00 00 00 00 00 12 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 62 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 62 00 82 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F5 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [12:24: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F5 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_GetFieldsCounters done [12:24:54]requested_item shift.num is exist - process it [12:24:54]requested_item shift.opened is exist - process it [12:24:54]req_shift_opened [12:24:54]FM_GetShiftState [12:24:54]SAM_PROTO_GetShiftState [12:24:54]wFMCommunicate request_size=4 [12:24:54]MH_SAM_APDU [12:24:54]CAPDU: 80 13 01 00 [12:24:54]Write to MH i2c: E2 08 00 83 14 80 13 01 00 00 00 00 00 14 [12:24:54]Write i2c OK [12:24:54]MH_I2C_Read... [12:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:54]Read from MH i2c: E2 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 [12:24:54]MH_I2C_Read... [12:24:54]Read from MH i2c: E2 0E 00 83 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AB [12:24:54]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:24:54]wFMCommunicate OK [12:24:54]SAM_PROTO_GetShiftState done [12:24:54]FM_GetShiftState done [12:24:54]req_shift_opened done [12:24:54]requested_item shift.open_date is exist - process it [12:24:54]req_shift_open_date [12:24:54]req_shift_open_date done [12:24:54]produce_requested_data done [12:24:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48885,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:24:54]process_action_free close_receipt [12:24:54]json_value_free [12:24:54]json_value_free done [12:24:54]process_json_proto returns [12:24:54]Send response to host [12:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48885,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:24:54]free response buf [12:24:54]execute_script done [12:24:54]execute_script returns [12:24:54]free content buf [12:24:54]Sock 7.Close socket [12:24:54]Sock 7.Thread stoped [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [12:27:43]OFD Sender: No OFD packet to send [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:22]accept exits with 9 [12:42:22]New connection [12:42:22]New thread 3066670436 created [12:42:22]Thread 3066813796 joined [12:42:22]Waiting for new connection... [12:42:22] Sock 9.Parse request [12:42:22]Sock 9.Check first char [12:42:22]Sock 9.First char is OK [12:42:22]request: POST /json_proto HTTP/1.0 [12:42:22]Method: POST [12:42:22]URL: /json_proto [12:42:22]Method is POST - this is cgi request [12:42:22]url: /json_proto [12:42:22]query_string will be loaded in cgi processing [12:42:22]execute_cgi json_proto POST (null) [12:42:22]execute_cgi path=json_proto method=POST [12:42:22]POST find Content-Length [12:42:22]Host: 172.17.56.67:8080 [12:42:22]Content-Length: 674 [12:42:22]Content-Type: application/json [12:42:22] [12:42:22]POST finish read [12:42:22]Found Content-Length = 674 [12:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.610, "sum" : 97.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 97.00, "payments": [ { "type": 0, "sum" : 97.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:22]execute_script... [12:42: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)215983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.610, "sum" : 97.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 97.00, "payments": [ { "type": 0, "sum" : 97.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:22]POST & json_proto [12:42:22]process_json_proto [12:42:22]json parsed OK: [12:42:22]protocol is kg_v1.0 [12:42:22]action value=close_receipt [12:42:22]process_action close_receipt [12:42:22]cmd_close_receipt [12:42:22]MH_GetDate [12:42:22]Write to MH i2c: F0 00 00 84 14 87 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: F0 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: F0 09 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: F0 09 00 84 14 00 31 FA B4 65 26 5D 9E 65 5A [12:42:22]GetLastDocTimeStamp 1706358293 [12:42:22]current date 1706359345 [12:42:22]FM_GetShiftState [12:42:22]SAM_PROTO_GetShiftState [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 13 01 00 [12:42:22]Write to MH i2c: E2 08 00 85 14 80 13 01 00 00 00 00 00 16 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0E 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0E 00 85 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AD [12:42:22]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_GetShiftState done [12:42:22]FM_GetShiftState done [12:42:22]opened in 1706313770 [12:42:22]opened+sec_in_day 1706400170 [12:42:22]quantity*price = 9708 [12:42:22]sum+1 = 9709 [12:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 97.00 Внесено: 100.00 СДАЧА: 3.00 НСП 1% : 0.86 НДС 12% : 10.31 Наличными: 97.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 66 27.01.2024 12:42 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48886 ФПД: 60997022833662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T124225&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48886&fm=60997022833662&tin=02508201610067®Number=0000000000092723&sum=9700 [12:42:23]StoreToDocumentArchive [12:42:23]shift 243 fd 48886 [12:42:23]save to /storage/0243/doc_00048886 [12:42:23]save last doc name /storage/0243/doc_00048886 to /storage/kkm_last_doc_name [12:42:23]save OK [12:42:23]Clear old archive folders... [12:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:23]tlvbuf is 01197580 [12:42:23]SAM_PROTO_ClearQueue [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 09 00 00 [12:42:23]Write to MH i2c: E2 08 00 92 14 80 09 00 00 00 00 00 00 18 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 92 14 00 90 00 1A [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]SAM_PROTO_ClearQueue done [12:42:23]KKMCreateOFDPacket [12:42:23]OFDProtocolAddRootSTLVToBuf [12:42:23]FM_MakeSignedData [12:42:23]FM_MakeSignedData [12:42:23]SAM_PROTO_SignData [12:42:23]wFMCommunicate request_size=4 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 0D 01 02 [12:42:23]Write to MH i2c: E2 08 00 93 14 80 0D 01 02 00 00 00 00 20 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 93 14 00 90 00 1B [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]wFMCommunicate request_size=255 [12:42:23]MH_SAM_APDU [12:42: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 4A 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 EC 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 04 00 00 00 00 07 04 06 00 E4 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 31 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BE 00 00 35 04 06 00 37 [12:42:23]Write to MH i2c: E2 02 01 94 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 4A 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 EC 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 04 00 00 00 00 07 04 06 00 E4 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 31 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BE 00 00 35 04 06 00 37 00 00 FF [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]OFD Sender: No OFD packet to send [12:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:23]Read from MH i2c: E2 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: E2 03 00 94 14 00 90 00 1C [12:42:23]RAPDU: 90 00 [12:42:23]wFMCommunicate OK [12:42:23]wFMCommunicate request_size=10 [12:42:23]MH_SAM_APDU [12:42:23]CAPDU: 80 0D 02 02 05 79 F9 E0 DB FE [12:42:23]Write to MH i2c: E2 0D 00 95 14 80 0D 02 02 05 00 79 F9 E0 DB FE 00 00 58 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 03 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 03 00 95 14 00 90 00 1D [12:42:24]RAPDU: 90 00 [12:42:24]wFMCommunicate OK [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 0D 03 02 [12:42:24]Write to MH i2c: E2 08 00 96 14 80 0D 03 02 00 00 00 00 25 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 0B 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 0B 00 96 14 00 10 0B 00 31 DB 57 6F 24 90 00 37 [12:42:24]RAPDU: 10 0B 00 31 DB 57 6F 24 90 00 [12:42:24]wFMCommunicate OK [12:42:24]SAM_PROTO_SignData done [12:42:24]FM_MakeSignedData done [12:42:24]CreateOFDProtocolMessage [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 11 00 00 [12:42:24]Write to MH i2c: E2 08 00 97 14 80 11 00 00 00 00 00 00 25 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 17 00 97 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [12:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:42:24]wFMCommunicate OK [12:42:24]CreateOFDProtocolMessage done [12:42:24]OFDSenderStorePacket 48886 [12:42:24]StoreOFDPacket docnum=48886 [12:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 D3 07 01 C5 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 EC 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 04 00 00 00 00 07 04 06 00 E4 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 31 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BE 00 00 35 04 06 00 37 79 F9 E0 DB FE 10 0B 00 31 DB 57 6F 24 [12:42:24]CheckFolder [12:42:24]dirname=/storage/ofd_packets [12:42:24]CheckFolder done [12:42:24]ProducePacketName [12:42:24]name=ofd_packets/00048886 [12:42:24]NVStorageSaveData ofd_packets/00048886 [12:42:24]File name is /storage/ofd_packets/00048886 [12:42:24]Write 301 bytes [12:42:24]NVStorageSaveData done [12:42:24]OFDSenderStorePacket done [12:42:24]KKMCreateOFDPacket done [12:42:24]NVStorageSaveData kkm_last_timestamp [12:42:24]File name is /storage/kkm_last_timestamp [12:42:24]Write 4 bytes [12:42:24]NVStorageSaveData done [12:42:24]ExternCall_PrintAddStr [12:42:24]wPrintStart [12:42:24]Write to MH i2c: 01 00 00 98 14 AC [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 98 14 00 00 00 00 00 FF 0F C1 [12:42:24]RasterBufferAndPrint [12:42:24]line Счет N : (1)215983 [12:42:24]line ИНН: 02508201610067 [12:42:24]line Контрольно-Кассовый Чек [12:42:24]line ПРОДАЖА [12:42:24]line ТРК (МРК, ГНК) : 12 [12:42:24]line Товар: 2710124130 [12:42:24]line Аи-92-К-5 [12:42:24]line 1.610 * 60.30 [12:42:24]line = 97.08 [12:42:24]line НДС 12% НСП 1% [12:42:24]line > о реализуемом товаре [12:42:24]line ОКРУГЛЕНИЕ: -0.08 [12:42:24]line ИТОГО: 97.00 [12:42:24]line Внесено: 100.00 [12:42:24]line СДАЧА: 3.00 [12:42:24]line НСП 1% : 0.86 [12:42:24]line НДС 12% : 10.31 [12:42:24]line Наличными: 97.00 [12:42:24]line Безнал.: 0.00 [12:42:24]line Место: АЗС № 102 "Партнер Нефть" [12:42:24]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:42:24]line СНО: Общий режим [12:42:24]line Чек 66 27.01.2024 12:42 [12:42:24]line Смена: 243 ФФД: 1.0 [12:42:24]line ЗНМ: 0300000040 [12:42:24]line РНМ: 0000000000092723 [12:42:24]line Версия ККМ: 001 [12:42:24]line ФМ: 0000000000875060 [12:42:24]line ФД: 48886 [12:42:24]line ФПД: 60997022833662 [12:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T124225&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48886&fm=60997022833662&tin=02508201610067®Number=0000000000092723&sum=9700 [12:42:24]OFD Sender: Processing packet 48886 [packets to send 12, broken 11] [12:42:24]ProducePacketName [12:42:24]name=ofd_packets/00048886 [12:42:24]OFD Sender: To server: pG, [12:42:24]CommunicateWithHost lk.salyk.kg:30040 [12:42:24]ConnectInit lk.salyk.kg [12:42:24]written 0, free lines is 4095 [12:42:24]Connected sock=10 [12:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 D3 07 01 C5 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4A 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 EC 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 04 00 00 00 00 07 04 06 00 E4 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 31 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F6 BE 00 00 35 04 06 00 37 79 F9 E0 DB FE 10 0B 00 31 DB 57 6F 24 [12:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EA C4 47 00 F9 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 35 30 36 30 10 04 04 00 F6 BE 00 00 F4 03 04 00 30 A6 B4 65 B6 04 01 00 00 00 4D C3 D6 7B C0 2E 4C [12:42:24]CommunicateWithHost err = 0 [12:42:24]CheckOFDResponse [12:42:24]1017 (14) - 77093643461234 [12:42:24]1041 (16) - 0000000000875060 [12:42:24]1040 (4) - 48886 [12:42:24]1012 (4) - 27.01.2024 06:44 [12:42:24]1206 (1) - 0 [12:42:24]OFD Sender: Remove packet 48886 [12:42:24]ProducePacketName [12:42:24]name=ofd_packets/00048886 [12:42:24]NVStorageDeleteData [12:42:24]Write to MH i2c: 01 00 00 C3 14 D7 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: 01 07 00 C3 14 00 00 00 00 00 E6 0C D0 [12:42:24]RasterBufferAndPrint [12:42:24]line [12:42:24]line [12:42:24]line [12:42:24]line [12:42:24]line [12:42:24]written 0, free lines is 3309 [12:42:24]MH_Cut [12:42:24]Write to MH i2c: D1 01 00 CA 14 01 B0 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: D1 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: D1 01 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: D1 01 00 CA 14 00 AF [12:42:24]Write to MH i2c: 01 00 00 CB 14 DF [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:25]OFD Sender: No OFD packet to send [12:42:25]*** Cut start [12:42:25]*** Partial cut [12:42:25]*** CUTSNS_PIN = 1 [12:42:25]*** CUTSNS_PIN = 0 [12:42:25]*** Brake cut motor [12:42:26]Read from MH i2c: 01 [12:42:26]MH_I2C_Read... [12:42:26]*** Stop cut motor [12:42:26]*** Cut end [12:42:26]Read from MH i2c: 01 07 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: 01 07 00 CB 14 00 00 00 00 00 FF 0F F4 [12:42:26]process_action close_receipt done [12:42:26]requested_data is exist [12:42:26]produce_requested_data [12:42:26]requested_item fm.sn is exist - process it [12:42:26]wFMCommunicate request_size=4 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 11 00 00 [12:42:26]Write to MH i2c: E2 08 00 CC 14 80 11 00 00 00 00 00 00 5A [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 17 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 17 00 CC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [12:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:42:26]wFMCommunicate OK [12:42:26]requested_item fd.num is exist - process it [12:42:26]SAM_PROTO_GetFieldsCounters [12:42:26]wFMCommunicate request_size=4 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 13 00 00 [12:42:26]Write to MH i2c: E2 08 00 CD 14 80 13 00 00 00 00 00 00 5D [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 62 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 62 00 CD 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F6 BE 00 00 0E 04 04 00 F3 00 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 E3 [12:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F6 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:26]wFMCommunicate OK [12:42:26]SAM_PROTO_GetFieldsCounters done [12:42:26]requested_item shift.num is exist - process it [12:42:26]requested_item shift.opened is exist - process it [12:42:26]req_shift_opened [12:42:26]FM_GetShiftState [12:42:26]SAM_PROTO_GetShiftState [12:42:26]wFMCommunicate request_size=4 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 13 01 00 [12:42:26]Write to MH i2c: E2 08 00 CE 14 80 13 01 00 00 00 00 00 5F [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 0E 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 0E 00 CE 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F6 [12:42:26]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:42:26]wFMCommunicate OK [12:42:26]SAM_PROTO_GetShiftState done [12:42:26]FM_GetShiftState done [12:42:26]req_shift_opened done [12:42:26]requested_item shift.open_date is exist - process it [12:42:26]req_shift_open_date [12:42:26]req_shift_open_date done [12:42:26]produce_requested_data done [12:42:26]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48886,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:42:26]process_action_free close_receipt [12:42:26]json_value_free [12:42:26]json_value_free done [12:42:26]process_json_proto returns [12:42:26]Send response to host [12:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48886,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:42:26]free response buf [12:42:26]execute_script done [12:42:26]execute_script returns [12:42:26]free content buf [12:42:26]Sock 9.Close socket [12:42:26]Sock 9.Thread stoped [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:01]accept exits with 7 [12:45:01]New connection [12:45:01]New thread 3066813796 created [12:45:01]Thread 3066670436 joined [12:45:01]Waiting for new connection... [12:45:01] Sock 7.Parse request [12:45:01]Sock 7.Check first char [12:45:01]Sock 7.First char is OK [12:45:01]request: POST /json_proto HTTP/1.0 [12:45:01]Method: POST [12:45:01]URL: /json_proto [12:45:01]Method is POST - this is cgi request [12:45:01]url: /json_proto [12:45:01]query_string will be loaded in cgi processing [12:45:01]execute_cgi json_proto POST (null) [12:45:01]execute_cgi path=json_proto method=POST [12:45:01]POST find Content-Length [12:45:01]Host: 172.17.56.67:8080 [12:45:01]Content-Length: 805 [12:45:01]Content-Type: application/json [12:45:01] [12:45:01]POST finish read [12:45:01]Found Content-Length = 805 [12:45:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.970, "sum" : 299.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 299.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]execute_script... [12:45: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)215984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.970, "sum" : 299.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 299.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:45:01]POST & json_proto [12:45:01]process_json_proto [12:45:01]json parsed OK: [12:45:01]protocol is kg_v1.0 [12:45:01]action value=close_receipt [12:45:01]process_action close_receipt [12:45:01]cmd_close_receipt [12:45:01]MH_GetDate [12:45:01]Write to MH i2c: F0 00 00 CF 14 D2 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: F0 09 00 CF 14 00 D0 FA B4 65 26 5D 9E 65 44 [12:45:01]GetLastDocTimeStamp 1706359345 [12:45:01]current date 1706359504 [12:45:01]FM_GetShiftState [12:45:01]SAM_PROTO_GetShiftState [12:45:01]wFMCommunicate request_size=4 [12:45:01]MH_SAM_APDU [12:45:01]CAPDU: 80 13 01 00 [12:45:01]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [12:45:01]Write i2c OK [12:45:01]MH_I2C_Read... [12:45:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:01]Read from MH i2c: E2 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 [12:45:01]MH_I2C_Read... [12:45:01]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F8 [12:45:01]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:45:01]wFMCommunicate OK [12:45:01]SAM_PROTO_GetShiftState done [12:45:01]FM_GetShiftState done [12:45:01]opened in 1706313770 [12:45:01]opened+sec_in_day 1706400170 [12:45:01]quantity*price = 29969 [12:45:01]sum+1 = 29970 [12:45:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 299.69 НСП 1% : 2.65 НДС 12% : 31.82 Наличными: 0.00 Безнал.: 299.69 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 67 27.01.2024 12:45 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 48887 ФПД: 37175040557022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T124504&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48887&fm=37175040557022&tin=02508201610067®Number=0000000000092723&sum=29969 [12:45:02]StoreToDocumentArchive [12:45:02]shift 243 fd 48887 [12:45:02]save to /storage/0243/doc_00048887 [12:45:02]save last doc name /storage/0243/doc_00048887 to /storage/kkm_last_doc_name [12:45:02]save OK [12:45:02]Clear old archive folders... [12:45:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:45:02]tlvbuf is 011C0F60 [12:45:02]SAM_PROTO_ClearQueue [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 09 00 00 [12:45:02]Write to MH i2c: E2 08 00 DD 14 80 09 00 00 00 00 00 00 63 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 DD 14 00 90 00 65 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]SAM_PROTO_ClearQueue done [12:45:02]KKMCreateOFDPacket [12:45:02]OFDProtocolAddRootSTLVToBuf [12:45:02]FM_MakeSignedData [12:45:02]FM_MakeSignedData [12:45:02]SAM_PROTO_SignData [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 0D 01 02 [12:45:02]Write to MH i2c: E2 08 00 DE 14 80 0D 01 02 00 00 00 00 6B [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 DE 14 00 90 00 66 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]wFMCommunicate request_size=255 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D0 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BE 00 00 35 04 06 00 21 [12:45:02]Write to MH i2c: E2 02 01 DF 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 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D0 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BE 00 00 35 04 06 00 21 00 00 94 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 DF 14 00 90 00 67 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]wFMCommunicate request_size=10 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 0D 02 02 05 CF 7D 16 3F DE [12:45:02]Write to MH i2c: E2 0D 00 E0 14 80 0D 02 02 05 00 CF 7D 16 3F DE 00 00 F7 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:45:02]Read from MH i2c: E2 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 [12:45:02]MH_I2C_Read... [12:45:02]Read from MH i2c: E2 03 00 E0 14 00 90 00 68 [12:45:02]RAPDU: 90 00 [12:45:02]wFMCommunicate OK [12:45:02]wFMCommunicate request_size=4 [12:45:02]MH_SAM_APDU [12:45:02]CAPDU: 80 0D 03 02 [12:45:02]Write to MH i2c: E2 08 00 E1 14 80 0D 03 02 00 00 00 00 70 [12:45:02]Write i2c OK [12:45:02]MH_I2C_Read... [12:45:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:45:02]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 0B 00 E1 14 00 C1 42 FA C8 B5 9E 46 81 90 00 50 [12:45:03]RAPDU: C1 42 FA C8 B5 9E 46 81 90 00 [12:45:03]wFMCommunicate OK [12:45:03]SAM_PROTO_SignData done [12:45:03]FM_MakeSignedData done [12:45:03]CreateOFDProtocolMessage [12:45:03]wFMCommunicate request_size=4 [12:45:03]MH_SAM_APDU [12:45:03]CAPDU: 80 11 00 00 [12:45:03]Write to MH i2c: E2 08 00 E2 14 80 11 00 00 00 00 00 00 70 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:03]Read from MH i2c: E2 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: E2 17 00 E2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [12:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:45:03]wFMCommunicate OK [12:45:03]CreateOFDProtocolMessage done [12:45:03]OFDSenderStorePacket 48887 [12:45:03]StoreOFDPacket docnum=48887 [12:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 57 5B 07 01 99 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D0 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BE 00 00 35 04 06 00 21 CF 7D 16 3F DE C1 42 FA C8 B5 9E 46 81 [12:45:03]CheckFolder [12:45:03]dirname=/storage/ofd_packets [12:45:03]CheckFolder done [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00048887 [12:45:03]NVStorageSaveData ofd_packets/00048887 [12:45:03]File name is /storage/ofd_packets/00048887 [12:45:03]Write 301 bytes [12:45:03]NVStorageSaveData done [12:45:03]OFDSenderStorePacket done [12:45:03]KKMCreateOFDPacket done [12:45:03]NVStorageSaveData kkm_last_timestamp [12:45:03]File name is /storage/kkm_last_timestamp [12:45:03]Write 4 bytes [12:45:03]NVStorageSaveData done [12:45:03]ExternCall_PrintAddStr [12:45:03]wPrintStart [12:45:03]Write to MH i2c: 01 00 00 E3 14 F7 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 E3 14 00 00 00 00 00 FF 0F 0C [12:45:03]RasterBufferAndPrint [12:45:03]line Счет N : (1)215984 [12:45:03]line ИНН: 02508201610067 [12:45:03]line Контрольно-Кассовый Чек [12:45:03]line ПРОДАЖА [12:45:03]line ТРК (МРК, ГНК) : 12 [12:45:03]line Товар: 2710124130 [12:45:03]line Аи-92-К-5 [12:45:03]line 4.970 * 60.30 [12:45:03]line = 299.69 [12:45:03]line НДС 12% НСП 1% [12:45:03]line > о реализуемом товаре [12:45:03]line ИТОГО: 299.69 [12:45:03]line НСП 1% : 2.65 [12:45:03]line НДС 12% : 31.82 [12:45:03]line Наличными: 0.00 [12:45:03]line Безнал.: 299.69 [12:45:03]line Место: АЗС № 102 "Партнер Нефть" [12:45:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:45:03]line СНО: Общий режим [12:45:03]line Чек 67 27.01.2024 12:45 [12:45:03]line Смена: 243 ФФД: 1.0 [12:45:03]line ЗНМ: 0300000040 [12:45:03]line РНМ: 0000000000092723 [12:45:03]line Версия ККМ: 001 [12:45:03]line Платежная система: О! деньги [12:45:03]line ФМ: 0000000000875060 [12:45:03]line ФД: 48887 [12:45:03]line ФПД: 37175040557022 [12:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T124504&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48887&fm=37175040557022&tin=02508201610067®Number=0000000000092723&sum=29969 [12:45:03]OFD Sender: Processing packet 48887 [packets to send 12, broken 11] [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00048887 [12:45:03]OFD Sender: To server: pG, [12:45:03]CommunicateWithHost lk.salyk.kg:30040 [12:45:03]ConnectInit lk.salyk.kg [12:45:03]written 0, free lines is 4095 [12:45:03]Connected sock=10 [12:45:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 57 5B 07 01 99 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 11 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 D0 FA B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F7 BE 00 00 35 04 06 00 21 CF 7D 16 3F DE C1 42 FA C8 B5 9E 46 81 [12:45:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D2 05 47 00 79 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 35 30 36 30 10 04 04 00 F7 BE 00 00 F4 03 04 00 CF A6 B4 65 B6 04 01 00 00 D1 DB D0 64 8E 01 A3 4A [12:45:03]CommunicateWithHost err = 0 [12:45:03]CheckOFDResponse [12:45:03]1017 (14) - 77093643461234 [12:45:03]1041 (16) - 0000000000875060 [12:45:03]1040 (4) - 48887 [12:45:03]1012 (4) - 27.01.2024 06:46 [12:45:03]1206 (1) - 0 [12:45:03]OFD Sender: Remove packet 48887 [12:45:03]ProducePacketName [12:45:03]name=ofd_packets/00048887 [12:45:03]NVStorageDeleteData [12:45:03]Write to MH i2c: 01 00 00 0D 15 22 [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: 01 07 00 0D 15 00 00 00 00 00 FE 0C 33 [12:45:03]RasterBufferAndPrint [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]line [12:45:03]written 0, free lines is 3335 [12:45:03]MH_Cut [12:45:03]Write to MH i2c: D1 01 00 14 15 01 FB [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 01 00 [12:45:03]MH_I2C_Read... [12:45:03]Read from MH i2c: D1 01 00 14 15 00 FA [12:45:03]Write to MH i2c: 01 00 00 15 15 2A [12:45:03]Write i2c OK [12:45:03]MH_I2C_Read... [12:45:04]OFD Sender: No OFD packet to send [12:45:04]*** Cut start [12:45:04]*** Partial cut [12:45:04]*** CUTSNS_PIN = 1 [12:45:04]*** CUTSNS_PIN = 0 [12:45:04]*** Brake cut motor [12:45:05]Read from MH i2c: 01 [12:45:05]MH_I2C_Read... [12:45:05]*** Stop cut motor [12:45:05]*** Cut end [12:45:05]Read from MH i2c: 01 07 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [12:45:05]process_action close_receipt done [12:45:05]requested_data is exist [12:45:05]produce_requested_data [12:45:05]requested_item fm.sn is exist - process it [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 11 00 00 [12:45:05]Write to MH i2c: E2 08 00 16 15 80 11 00 00 00 00 00 00 A5 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 17 00 16 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [12:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:45:05]wFMCommunicate OK [12:45:05]requested_item fd.num is exist - process it [12:45:05]SAM_PROTO_GetFieldsCounters [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 00 00 [12:45:05]Write to MH i2c: E2 08 00 17 15 80 13 00 00 00 00 00 00 A8 [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 62 00 17 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F7 BE 00 00 0E 04 04 00 F3 00 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 32 [12:45: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F7 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_GetFieldsCounters done [12:45:05]requested_item shift.num is exist - process it [12:45:05]requested_item shift.opened is exist - process it [12:45:05]req_shift_opened [12:45:05]FM_GetShiftState [12:45:05]SAM_PROTO_GetShiftState [12:45:05]wFMCommunicate request_size=4 [12:45:05]MH_SAM_APDU [12:45:05]CAPDU: 80 13 01 00 [12:45:05]Write to MH i2c: E2 08 00 18 15 80 13 01 00 00 00 00 00 AA [12:45:05]Write i2c OK [12:45:05]MH_I2C_Read... [12:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:45:05]Read from MH i2c: E2 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 [12:45:05]MH_I2C_Read... [12:45:05]Read from MH i2c: E2 0E 00 18 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 41 [12:45:05]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:45:05]wFMCommunicate OK [12:45:05]SAM_PROTO_GetShiftState done [12:45:05]FM_GetShiftState done [12:45:05]req_shift_opened done [12:45:05]requested_item shift.open_date is exist - process it [12:45:05]req_shift_open_date [12:45:05]req_shift_open_date done [12:45:05]produce_requested_data done [12:45:05]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48887,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:45:05]process_action_free close_receipt [12:45:05]json_value_free [12:45:05]json_value_free done [12:45:05]process_json_proto returns [12:45:05]Send response to host [12:45:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48887,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:45:05]free response buf [12:45:05]execute_script done [12:45:05]execute_script returns [12:45:05]free content buf [12:45:05]Sock 7.Close socket [12:45:05]Sock 7.Thread stoped [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:25]int [12:50:25]Write to MH i2c: 01 00 00 19 15 2E [12:50:25]*** FLAG_PRN_PAP1 set [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 19 15 00 01 00 00 00 FF 0F 44 [12:50:25]state=0 [12:50:25]No paper [12:50:25]int [12:50:25]Write to MH i2c: 01 00 00 1A 15 2F [12:50:25]*** FLAG_PRN_PAP2 set [12:50:25]Write i2c OK [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 [12:50:25]MH_I2C_Read... [12:50:25]Read from MH i2c: 01 07 00 1A 15 00 03 00 00 00 FF 0F 47 [12:50:25]state=0 [12:50:25]No paper [12:50:25]Cover opened [12:50:29]OFD Sender: No OFD packet to send [12:50:30]Write to MH i2c: 01 00 00 1B 15 30 [12:50:30]Write i2c OK [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: 01 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: 01 07 00 [12:50:30]MH_I2C_Read... [12:50:30]Read from MH i2c: 01 07 00 1B 15 00 03 00 00 00 FF 0F 48 [12:50:30]state=3 [12:50:30]No paper [12:50:30]Cover opened [12:50:34]OFD Sender: No OFD packet to send [12:50:35]Write to MH i2c: 01 00 00 1C 15 31 [12:50:35]Write i2c OK [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 07 00 [12:50:35]MH_I2C_Read... [12:50:35]Read from MH i2c: 01 07 00 1C 15 00 03 00 00 00 FF 0F 49 [12:50:35]state=3 [12:50:35]No paper [12:50:35]Cover opened [12:50:39]OFD Sender: No OFD packet to send [12:50:40]Write to MH i2c: 01 00 00 1D 15 32 [12:50:40]Write i2c OK [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 [12:50:40]MH_I2C_Read... [12:50:40]Read from MH i2c: 01 07 00 1D 15 00 03 00 00 00 FF 0F 4A [12:50:40]state=3 [12:50:40]No paper [12:50:40]Cover opened [12:50:44]OFD Sender: No OFD packet to send [12:50:45]Write to MH i2c: 01 00 00 1E 15 33 [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 1E 15 00 03 00 00 00 FF 0F 4B [12:50:45]state=3 [12:50:45]No paper [12:50:45]Cover opened [12:50:47]int [12:50:47]Write to MH i2c: 01 00 00 1F 15 34 [12:50:47]*** FLAG_PRN_PAP2 reset [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 1F 15 00 01 00 00 00 FF 0F 4A [12:50:47]state=3 [12:50:47]No paper [12:50:47]Cover closed [12:50:47]int [12:50:47]Write to MH i2c: 01 00 00 20 15 35 [12:50:47]*** FLAG_PRN_PAP2 set [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 20 15 00 03 00 00 00 FF 0F 4D [12:50:47]state=0 [12:50:47]No paper [12:50:47]Cover opened [12:50:48]int [12:50:48]Write to MH i2c: 01 00 00 21 15 36 [12:50:48]*** FLAG_PRN_PAP2 reset [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 21 15 00 01 00 00 00 FF 0F 4C [12:50:48]state=3 [12:50:48]No paper [12:50:48]Cover closed [12:50:48]int line is 0 - check status [12:50:48]Write to MH i2c: 01 00 00 22 15 37 [12:50:48]*** FLAG_PRN_PAP1 reset [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [12:50:48]state=0 [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]accept exits with 9 [12:54:09]New connection [12:54:09]New thread 3066670436 created [12:54:09]Thread 3066813796 joined [12:54:09]Waiting for new connection... [12:54:09] Sock 9.Parse request [12:54:09]Sock 9.Check first char [12:54:09]Sock 9.First char is OK [12:54:09]request: POST /json_proto HTTP/1.0 [12:54:09]Method: POST [12:54:09]URL: /json_proto [12:54:09]Method is POST - this is cgi request [12:54:09]url: /json_proto [12:54:09]query_string will be loaded in cgi processing [12:54:09]execute_cgi json_proto POST (null) [12:54:09]execute_cgi path=json_proto method=POST [12:54:09]POST find Content-Length [12:54:09]Host: 172.17.56.67:8080 [12:54:09]Content-Length: 677 [12:54:09]Content-Type: application/json [12:54:09] [12:54:09]POST finish read [12:54:09]Found Content-Length = 677 [12:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:09]execute_script... [12:54:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:09]POST & json_proto [12:54:09]process_json_proto [12:54:09]json parsed OK: [12:54:09]protocol is kg_v1.0 [12:54:09]action value=close_receipt [12:54:09]process_action close_receipt [12:54:09]cmd_close_receipt [12:54:09]MH_GetDate [12:54:09]Write to MH i2c: F0 00 00 23 15 27 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 09 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: F0 09 00 23 15 00 F4 FC B4 65 26 5D 9E 65 BF [12:54:09]GetLastDocTimeStamp 1706359504 [12:54:09]current date 1706360052 [12:54:09]FM_GetShiftState [12:54:09]SAM_PROTO_GetShiftState [12:54:09]wFMCommunicate request_size=4 [12:54:09]MH_SAM_APDU [12:54:09]CAPDU: 80 13 01 00 [12:54:09]Write to MH i2c: E2 08 00 24 15 80 13 01 00 00 00 00 00 B6 [12:54:09]Write i2c OK [12:54:09]MH_I2C_Read... [12:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:09]Read from MH i2c: E2 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 [12:54:09]MH_I2C_Read... [12:54:09]Read from MH i2c: E2 0E 00 24 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 4D [12:54:09]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:54:09]wFMCommunicate OK [12:54:09]SAM_PROTO_GetShiftState done [12:54:09]FM_GetShiftState done [12:54:09]opened in 1706313770 [12:54:09]opened+sec_in_day 1706400170 [12:54:09]quantity*price = 50049 [12:54:09]sum+1 = 50050 [12:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 68 27.01.2024 12:54 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48888 ФПД: 250839090855608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T125412&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48888&fm=250839090855608&tin=02508201610067®Number=0000000000092723&sum=50000 [12:54:10]StoreToDocumentArchive [12:54:10]shift 243 fd 48888 [12:54:10]save to /storage/0243/doc_00048888 [12:54:10]save last doc name /storage/0243/doc_00048888 to /storage/kkm_last_doc_name [12:54:10]save OK [12:54:10]Clear old archive folders... [12:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:10]tlvbuf is 011B4CD0 [12:54:10]SAM_PROTO_ClearQueue [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 09 00 00 [12:54:10]Write to MH i2c: E2 08 00 31 15 80 09 00 00 00 00 00 00 B8 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 31 15 00 90 00 BA [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]SAM_PROTO_ClearQueue done [12:54:10]KKMCreateOFDPacket [12:54:10]OFDProtocolAddRootSTLVToBuf [12:54:10]FM_MakeSignedData [12:54:10]FM_MakeSignedData [12:54:10]SAM_PROTO_SignData [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 01 02 [12:54:10]Write to MH i2c: E2 08 00 32 15 80 0D 01 02 00 00 00 00 C0 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=255 [12:54:10]MH_SAM_APDU [12:54: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 FC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BE 00 00 35 04 06 00 E4 [12:54:10]Write to MH i2c: E2 02 01 33 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 FC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BE 00 00 35 04 06 00 E4 00 00 CA [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 33 15 00 90 00 BC [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=10 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 02 02 05 23 06 E7 FE B8 [12:54:10]Write to MH i2c: E2 0D 00 34 15 80 0D 02 02 05 00 23 06 E7 FE B8 00 00 93 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 03 00 34 15 00 90 00 BD [12:54:10]RAPDU: 90 00 [12:54:10]wFMCommunicate OK [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 0D 03 02 [12:54:10]Write to MH i2c: E2 08 00 35 15 80 0D 03 02 00 00 00 00 C5 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 0B 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 0B 00 35 15 00 C4 E0 AE 84 5B 73 49 81 90 00 34 [12:54:10]RAPDU: C4 E0 AE 84 5B 73 49 81 90 00 [12:54:10]wFMCommunicate OK [12:54:10]SAM_PROTO_SignData done [12:54:10]FM_MakeSignedData done [12:54:10]CreateOFDProtocolMessage [12:54:10]wFMCommunicate request_size=4 [12:54:10]MH_SAM_APDU [12:54:10]CAPDU: 80 11 00 00 [12:54:10]Write to MH i2c: E2 08 00 36 15 80 11 00 00 00 00 00 00 C5 [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:10]Read from MH i2c: E2 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 17 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: E2 17 00 36 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 12 [12:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:54:10]wFMCommunicate OK [12:54:10]CreateOFDProtocolMessage done [12:54:10]OFDSenderStorePacket 48888 [12:54:10]StoreOFDPacket docnum=48888 [12:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A5 74 07 01 AD 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 FC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BE 00 00 35 04 06 00 E4 23 06 E7 FE B8 C4 E0 AE 84 5B 73 49 81 [12:54:10]CheckFolder [12:54:10]dirname=/storage/ofd_packets [12:54:10]CheckFolder done [12:54:10]ProducePacketName [12:54:10]name=ofd_packets/00048888 [12:54:10]NVStorageSaveData ofd_packets/00048888 [12:54:10]File name is /storage/ofd_packets/00048888 [12:54:10]Write 301 bytes [12:54:10]NVStorageSaveData done [12:54:10]OFDSenderStorePacket done [12:54:10]KKMCreateOFDPacket done [12:54:10]NVStorageSaveData kkm_last_timestamp [12:54:10]File name is /storage/kkm_last_timestamp [12:54:10]Write 4 bytes [12:54:10]NVStorageSaveData done [12:54:10]OFD Sender: Processing packet 48888 [packets to send 12, broken 11] [12:54:10]ProducePacketName [12:54:10]name=ofd_packets/00048888 [12:54:10]OFD Sender: To server: pG, [12:54:10]CommunicateWithHost lk.salyk.kg:30040 [12:54:10]ConnectInit lk.salyk.kg [12:54:10]ExternCall_PrintAddStr [12:54:10]wPrintStart [12:54:10]Write to MH i2c: 01 00 00 37 15 4C [12:54:10]Write i2c OK [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 [12:54:10]MH_I2C_Read... [12:54:10]Read from MH i2c: 01 07 00 37 15 00 00 00 00 00 FF 0F 61 [12:54:10]RasterBufferAndPrint [12:54:10]line Счет N : (1)215985 [12:54:10]line ИНН: 02508201610067 [12:54:10]line Контрольно-Кассовый Чек [12:54:10]line ПРОДАЖА [12:54:10]line ТРК (МРК, ГНК) : 12 [12:54:10]line Товар: 2710124130 [12:54:10]line Аи-92-К-5 [12:54:10]line 8.300 * 60.30 [12:54:10]line = 500.49 [12:54:10]line НДС 12% НСП 1% [12:54:10]line > о реализуемом товаре [12:54:10]line ОКРУГЛЕНИЕ: -0.49 [12:54:10]line ИТОГО: 500.00 [12:54:10]line Внесено: 500.00 [12:54:10]line СДАЧА: 0.00 [12:54:10]line НСП 1% : 4.43 [12:54:10]line НДС 12% : 53.15 [12:54:10]line Наличными: 500.00 [12:54:10]line Безнал.: 0.00 [12:54:10]line Место: АЗС № 102 "Партнер Нефть" [12:54:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:54:10]line СНО: Общий режим [12:54:10]line Чек 68 27.01.2024 12:54 [12:54:10]line Смена: 243 ФФД: 1.0 [12:54:10]line ЗНМ: 0300000040 [12:54:11]line РНМ: 0000000000092723 [12:54:11]line Версия ККМ: 001 [12:54:11]line ФМ: 0000000000875060 [12:54:11]line ФД: 48888 [12:54:11]line ФПД: 250839090855608 [12:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T125412&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48888&fm=250839090855608&tin=02508201610067®Number=0000000000092723&sum=50000 [12:54:11]Connected sock=11 [12:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A5 74 07 01 AD 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 FC B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BE 00 00 35 04 06 00 E4 23 06 E7 FE B8 C4 E0 AE 84 5B 73 49 81 [12:54:11]written 0, free lines is 4095 [12:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 43 67 47 00 98 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F8 BE 00 00 F4 03 04 00 F2 A8 B4 65 B6 04 01 00 00 C8 9A 6E 01 20 D0 90 B6 [12:54:11]CommunicateWithHost err = 0 [12:54:11]CheckOFDResponse [12:54:11]1017 (14) - 77093643461234 [12:54:11]1041 (16) - 0000000000875060 [12:54:11]1040 (4) - 48888 [12:54:11]1012 (4) - 27.01.2024 06:55 [12:54:11]1206 (1) - 0 [12:54:11]OFD Sender: Remove packet 48888 [12:54:11]ProducePacketName [12:54:11]name=ofd_packets/00048888 [12:54:11]NVStorageDeleteData [12:54:11]Write to MH i2c: 01 00 00 62 15 77 [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: 01 07 00 62 15 00 00 00 00 00 F4 0C 7E [12:54:11]RasterBufferAndPrint [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]line [12:54:11]written 0, free lines is 3322 [12:54:11]MH_Cut [12:54:11]Write to MH i2c: D1 01 00 69 15 01 50 [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 [12:54:11]MH_I2C_Read... [12:54:11]Read from MH i2c: D1 01 00 69 15 00 4F [12:54:11]Write to MH i2c: 01 00 00 6A 15 7F [12:54:11]Write i2c OK [12:54:11]MH_I2C_Read... [12:54:11]OFD Sender: No OFD packet to send [12:54:12]*** Cut start [12:54:12]*** Partial cut [12:54:12]*** CUTSNS_PIN = 1 [12:54:12]*** CUTSNS_PIN = 0 [12:54:12]*** Brake cut motor [12:54:12]Read from MH i2c: 01 [12:54:12]MH_I2C_Read... [12:54:12]*** Stop cut motor [12:54:12]*** Cut end [12:54:12]Read from MH i2c: 01 07 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: 01 07 00 6A 15 00 00 00 00 00 FF 0F 94 [12:54:12]process_action close_receipt done [12:54:12]requested_data is exist [12:54:12]produce_requested_data [12:54:12]requested_item fm.sn is exist - process it [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 11 00 00 [12:54:12]Write to MH i2c: E2 08 00 6B 15 80 11 00 00 00 00 00 00 FA [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:12]Read from MH i2c: E2 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 [12:54:12]MH_I2C_Read... [12:54:12]Read from MH i2c: E2 17 00 6B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 47 [12:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:54:12]wFMCommunicate OK [12:54:12]requested_item fd.num is exist - process it [12:54:12]SAM_PROTO_GetFieldsCounters [12:54:12]wFMCommunicate request_size=4 [12:54:12]MH_SAM_APDU [12:54:12]CAPDU: 80 13 00 00 [12:54:12]Write to MH i2c: E2 08 00 6C 15 80 13 00 00 00 00 00 00 FD [12:54:12]Write i2c OK [12:54:12]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 62 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 62 00 6C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F8 BE 00 00 0E 04 04 00 F3 00 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 8B [12:54: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F8 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetFieldsCounters done [12:54:13]requested_item shift.num is exist - process it [12:54:13]requested_item shift.opened is exist - process it [12:54:13]req_shift_opened [12:54:13]FM_GetShiftState [12:54:13]SAM_PROTO_GetShiftState [12:54:13]wFMCommunicate request_size=4 [12:54:13]MH_SAM_APDU [12:54:13]CAPDU: 80 13 01 00 [12:54:13]Write to MH i2c: E2 08 00 6D 15 80 13 01 00 00 00 00 00 FF [12:54:13]Write i2c OK [12:54:13]MH_I2C_Read... [12:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:13]Read from MH i2c: E2 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 [12:54:13]MH_I2C_Read... [12:54:13]Read from MH i2c: E2 0E 00 6D 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 96 [12:54:13]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:54:13]wFMCommunicate OK [12:54:13]SAM_PROTO_GetShiftState done [12:54:13]FM_GetShiftState done [12:54:13]req_shift_opened done [12:54:13]requested_item shift.open_date is exist - process it [12:54:13]req_shift_open_date [12:54:13]req_shift_open_date done [12:54:13]produce_requested_data done [12:54:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48888,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:54:13]process_action_free close_receipt [12:54:13]json_value_free [12:54:13]json_value_free done [12:54:13]process_json_proto returns [12:54:13]Send response to host [12:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48888,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:54:13]free response buf [12:54:13]execute_script done [12:54:13]execute_script returns [12:54:13]free content buf [12:54:13]Sock 9.Close socket [12:54:13]Sock 9.Thread stoped [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:37]accept exits with 7 [12:54:37]New connection [12:54:37]New thread 3066813796 created [12:54:37]Thread 3066670436 joined [12:54:37]Waiting for new connection... [12:54:37] Sock 7.Parse request [12:54:37]Sock 7.Check first char [12:54:37]Sock 7.First char is OK [12:54:37]request: POST /json_proto HTTP/1.0 [12:54:37]Method: POST [12:54:37]URL: /json_proto [12:54:37]Method is POST - this is cgi request [12:54:37]url: /json_proto [12:54:37]query_string will be loaded in cgi processing [12:54:37]execute_cgi json_proto POST (null) [12:54:37]execute_cgi path=json_proto method=POST [12:54:37]POST find Content-Length [12:54:37]Host: 172.17.56.67:8080 [12:54:37]Content-Length: 678 [12:54:37]Content-Type: application/json [12:54:37] [12:54:37]POST finish read [12:54:37]Found Content-Length = 678 [12:54:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 13.270, "sum" : 800.18, "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:54:37]execute_script... [12:54: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)215986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 13.270, "sum" : 800.18, "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:54:37]POST & json_proto [12:54:37]process_json_proto [12:54:37]json parsed OK: [12:54:37]protocol is kg_v1.0 [12:54:37]action value=close_receipt [12:54:37]process_action close_receipt [12:54:37]cmd_close_receipt [12:54:37]MH_GetDate [12:54:37]Write to MH i2c: F0 00 00 6E 15 72 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 09 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: F0 09 00 6E 15 00 10 FD B4 65 26 5D 9E 65 27 [12:54:37]GetLastDocTimeStamp 1706360052 [12:54:37]current date 1706360080 [12:54:37]FM_GetShiftState [12:54:37]SAM_PROTO_GetShiftState [12:54:37]wFMCommunicate request_size=4 [12:54:37]MH_SAM_APDU [12:54:37]CAPDU: 80 13 01 00 [12:54:37]Write to MH i2c: E2 08 00 6F 15 80 13 01 00 00 00 00 00 01 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0E 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0E 00 6F 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 98 [12:54:37]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:54:37]wFMCommunicate OK [12:54:37]SAM_PROTO_GetShiftState done [12:54:37]FM_GetShiftState done [12:54:37]opened in 1706313770 [12:54:37]opened+sec_in_day 1706400170 [12:54:37]quantity*price = 80018 [12:54:37]sum+1 = 80019 [12:54:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 69 27.01.2024 12:54 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48889 ФПД: 252627255109803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T125440&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48889&fm=252627255109803&tin=02508201610067®Number=0000000000092723&sum=80000 [12:54:38]StoreToDocumentArchive [12:54:38]shift 243 fd 48889 [12:54:38]save to /storage/0243/doc_00048889 [12:54:38]save last doc name /storage/0243/doc_00048889 to /storage/kkm_last_doc_name [12:54:38]save OK [12:54:38]Clear old archive folders... [12:54:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:38]tlvbuf is 01197A30 [12:54:38]SAM_PROTO_ClearQueue [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 09 00 00 [12:54:38]Write to MH i2c: E2 08 00 7C 15 80 09 00 00 00 00 00 00 03 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]SAM_PROTO_ClearQueue done [12:54:38]KKMCreateOFDPacket [12:54:38]OFDProtocolAddRootSTLVToBuf [12:54:38]FM_MakeSignedData [12:54:38]FM_MakeSignedData [12:54:38]SAM_PROTO_SignData [12:54:38]wFMCommunicate request_size=4 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 0D 01 02 [12:54:38]Write to MH i2c: E2 08 00 7D 15 80 0D 01 02 00 00 00 00 0B [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:38]Read from MH i2c: E2 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [12:54:38]RAPDU: 90 00 [12:54:38]wFMCommunicate OK [12:54:38]wFMCommunicate request_size=255 [12:54:38]MH_SAM_APDU [12:54:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 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 45 00 00 00 F4 03 04 00 10 FD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BE 00 00 35 04 06 00 E5 [12:54:38]Write to MH i2c: E2 02 01 7E 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 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 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 45 00 00 00 F4 03 04 00 10 FD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BE 00 00 35 04 06 00 E5 00 00 0A [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 03 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [12:54:39]RAPDU: 90 00 [12:54:39]wFMCommunicate OK [12:54:39]wFMCommunicate request_size=10 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 0D 02 02 05 C3 5D CD 28 AB [12:54:39]Write to MH i2c: E2 0D 00 7F 15 80 0D 02 02 05 00 C3 5D CD 28 AB 00 00 D8 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 03 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 03 00 7F 15 00 90 00 08 [12:54:39]RAPDU: 90 00 [12:54:39]wFMCommunicate OK [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 0D 03 02 [12:54:39]Write to MH i2c: E2 08 00 80 15 80 0D 03 02 00 00 00 00 10 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0B 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0B 00 80 15 00 60 A0 DE 8E E9 15 D7 E0 90 00 32 [12:54:39]RAPDU: 60 A0 DE 8E E9 15 D7 E0 90 00 [12:54:39]wFMCommunicate OK [12:54:39]SAM_PROTO_SignData done [12:54:39]FM_MakeSignedData done [12:54:39]CreateOFDProtocolMessage [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 11 00 00 [12:54:39]Write to MH i2c: E2 08 00 81 15 80 11 00 00 00 00 00 00 10 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 81 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5D [12:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:54:39]wFMCommunicate OK [12:54:39]CreateOFDProtocolMessage done [12:54:39]OFDSenderStorePacket 48889 [12:54:39]StoreOFDPacket docnum=48889 [12:54:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CD 85 07 01 04 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 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 45 00 00 00 F4 03 04 00 10 FD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BE 00 00 35 04 06 00 E5 C3 5D CD 28 AB 60 A0 DE 8E E9 15 D7 E0 [12:54:39]CheckFolder [12:54:39]dirname=/storage/ofd_packets [12:54:39]CheckFolder done [12:54:39]ProducePacketName [12:54:39]name=ofd_packets/00048889 [12:54:39]NVStorageSaveData ofd_packets/00048889 [12:54:39]File name is /storage/ofd_packets/00048889 [12:54:39]Write 301 bytes [12:54:39]NVStorageSaveData done [12:54:39]OFDSenderStorePacket done [12:54:39]KKMCreateOFDPacket done [12:54:39]NVStorageSaveData kkm_last_timestamp [12:54:39]File name is /storage/kkm_last_timestamp [12:54:39]Write 4 bytes [12:54:39]NVStorageSaveData done [12:54:39]ExternCall_PrintAddStr [12:54:39]wPrintStart [12:54:39]Write to MH i2c: 01 00 00 82 15 97 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 82 15 00 00 00 00 00 FF 0F AC [12:54:39]RasterBufferAndPrint [12:54:39]line Счет N : (1)215986 [12:54:39]line ИНН: 02508201610067 [12:54:39]line Контрольно-Кассовый Чек [12:54:39]line ПРОДАЖА [12:54:39]line ТРК (МРК, ГНК) : 22 [12:54:39]line Товар: 2710124130 [12:54:39]line Аи-92-К-5 [12:54:39]line 13.270 * 60.30 [12:54:39]line = 800.18 [12:54:39]line НДС 12% НСП 1% [12:54:39]line > о реализуемом товаре [12:54:39]line ОКРУГЛЕНИЕ: -0.18 [12:54:39]line ИТОГО: 800.00 [12:54:39]line Внесено: 800.00 [12:54:39]line СДАЧА: 0.00 [12:54:39]line НСП 1% : 7.08 [12:54:39]line НДС 12% : 84.97 [12:54:39]line Наличными: 800.00 [12:54:39]line Безнал.: 0.00 [12:54:39]line Место: АЗС № 102 "Партнер Нефть" [12:54:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:54:39]line СНО: Общий режим [12:54:39]line Чек 69 27.01.2024 12:54 [12:54:39]line Смена: 243 ФФД: 1.0 [12:54:39]line ЗНМ: 0300000040 [12:54:39]line РНМ: 0000000000092723 [12:54:39]line Версия ККМ: 001 [12:54:39]line ФМ: 0000000000875060 [12:54:39]line ФД: 48889 [12:54:39]line ФПД: 252627255109803 [12:54:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T125440&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48889&fm=252627255109803&tin=02508201610067®Number=0000000000092723&sum=80000 [12:54:39]OFD Sender: Processing packet 48889 [packets to send 12, broken 11] [12:54:39]ProducePacketName [12:54:39]name=ofd_packets/00048889 [12:54:39]OFD Sender: To server: pG, [12:54:39]CommunicateWithHost lk.salyk.kg:30040 [12:54:39]ConnectInit lk.salyk.kg [12:54:39]written 0, free lines is 4095 [12:54:39]Connected sock=10 [12:54:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CD 85 07 01 04 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 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 45 00 00 00 F4 03 04 00 10 FD B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 F9 BE 00 00 35 04 06 00 E5 C3 5D CD 28 AB 60 A0 DE 8E E9 15 D7 E0 [12:54:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 62 AB 47 00 DA 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 35 30 36 30 10 04 04 00 F9 BE 00 00 F4 03 04 00 0F A9 B4 65 B6 04 01 00 00 AF 7C D6 D3 11 97 F6 5A [12:54:39]CommunicateWithHost err = 0 [12:54:39]CheckOFDResponse [12:54:39]1017 (14) - 77093643461234 [12:54:39]1041 (16) - 0000000000875060 [12:54:39]1040 (4) - 48889 [12:54:39]1012 (4) - 27.01.2024 06:56 [12:54:39]1206 (1) - 0 [12:54:39]OFD Sender: Remove packet 48889 [12:54:39]ProducePacketName [12:54:39]name=ofd_packets/00048889 [12:54:39]NVStorageDeleteData [12:54:40]Write to MH i2c: 01 00 00 AD 15 C2 [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 07 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: 01 07 00 AD 15 00 00 00 00 00 EC 0C C1 [12:54:40]RasterBufferAndPrint [12:54:40]line [12:54:40]line [12:54:40]line [12:54:40]line [12:54:40]line [12:54:40]written 0, free lines is 3317 [12:54:40]MH_Cut [12:54:40]Write to MH i2c: D1 01 00 B4 15 01 9B [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: D1 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: D1 01 00 [12:54:40]MH_I2C_Read... [12:54:40]Read from MH i2c: D1 01 00 B4 15 00 9A [12:54:40]Write to MH i2c: 01 00 00 B5 15 CA [12:54:40]Write i2c OK [12:54:40]MH_I2C_Read... [12:54:40]OFD Sender: No OFD packet to send [12:54:40]*** Cut start [12:54:40]*** Partial cut [12:54:40]*** CUTSNS_PIN = 1 [12:54:40]*** CUTSNS_PIN = 0 [12:54:40]*** Brake cut motor [12:54:41]Read from MH i2c: 01 [12:54:41]MH_I2C_Read... [12:54:41]*** Stop cut motor [12:54:41]*** Cut end [12:54:41]Read from MH i2c: 01 07 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: 01 07 00 B5 15 00 00 00 00 00 FF 0F DF [12:54:41]process_action close_receipt done [12:54:41]requested_data is exist [12:54:41]produce_requested_data [12:54:41]requested_item fm.sn is exist - process it [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 11 00 00 [12:54:41]Write to MH i2c: E2 08 00 B6 15 80 11 00 00 00 00 00 00 45 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 17 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 17 00 B6 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 92 [12:54:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:54:41]wFMCommunicate OK [12:54:41]requested_item fd.num is exist - process it [12:54:41]SAM_PROTO_GetFieldsCounters [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 13 00 00 [12:54:41]Write to MH i2c: E2 08 00 B7 15 80 13 00 00 00 00 00 00 48 [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 62 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 62 00 B7 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F9 BE 00 00 0E 04 04 00 F3 00 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 DA [12:54: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 F9 BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:41]wFMCommunicate OK [12:54:41]SAM_PROTO_GetFieldsCounters done [12:54:41]requested_item shift.num is exist - process it [12:54:41]requested_item shift.opened is exist - process it [12:54:41]req_shift_opened [12:54:41]FM_GetShiftState [12:54:41]SAM_PROTO_GetShiftState [12:54:41]wFMCommunicate request_size=4 [12:54:41]MH_SAM_APDU [12:54:41]CAPDU: 80 13 01 00 [12:54:41]Write to MH i2c: E2 08 00 B8 15 80 13 01 00 00 00 00 00 4A [12:54:41]Write i2c OK [12:54:41]MH_I2C_Read... [12:54:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:41]Read from MH i2c: E2 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 0E 00 [12:54:41]MH_I2C_Read... [12:54:41]Read from MH i2c: E2 0E 00 B8 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E1 [12:54:41]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [12:54:41]wFMCommunicate OK [12:54:41]SAM_PROTO_GetShiftState done [12:54:41]FM_GetShiftState done [12:54:41]req_shift_opened done [12:54:41]requested_item shift.open_date is exist - process it [12:54:41]req_shift_open_date [12:54:41]req_shift_open_date done [12:54:41]produce_requested_data done [12:54:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48889,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [12:54:41]process_action_free close_receipt [12:54:41]json_value_free [12:54:41]json_value_free done [12:54:41]process_json_proto returns [12:54:41]Send response to host [12:54:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48889,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [12:54:41]free response buf [12:54:41]execute_script done [12:54:41]execute_script returns [12:54:41]free content buf [12:54:41]Sock 7.Close socket [12:54:41]Sock 7.Thread stoped [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56: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:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:28]accept exits with 9 [13:01:28]New connection [13:01:28]New thread 3066670436 created [13:01:28]Thread 3066813796 joined [13:01:28]Waiting for new connection... [13:01:28] Sock 9.Parse request [13:01:28]Sock 9.Check first char [13:01:28]Sock 9.First char is OK [13:01:28]request: POST /json_proto HTTP/1.0 [13:01:28]Method: POST [13:01:28]URL: /json_proto [13:01:28]Method is POST - this is cgi request [13:01:28]url: /json_proto [13:01:28]query_string will be loaded in cgi processing [13:01:28]execute_cgi json_proto POST (null) [13:01:28]execute_cgi path=json_proto method=POST [13:01:28]POST find Content-Length [13:01:28]Host: 172.17.56.67:8080 [13:01:28]Content-Length: 806 [13:01:28]Content-Type: application/json [13:01:28] [13:01:28]POST finish read [13:01:28]Found Content-Length = 806 [13:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.580, "sum" : 999.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 999.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:28]execute_script... [13:01:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.580, "sum" : 999.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 999.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:28]POST & json_proto [13:01:28]process_json_proto [13:01:28]json parsed OK: [13:01:28]protocol is kg_v1.0 [13:01:28]action value=close_receipt [13:01:28]process_action close_receipt [13:01:28]cmd_close_receipt [13:01:28]MH_GetDate [13:01:28]Write to MH i2c: F0 00 00 B9 15 BD [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: F0 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: F0 09 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: F0 09 00 B9 15 00 AC FE B4 65 26 5D 9E 65 0F [13:01:28]GetLastDocTimeStamp 1706360080 [13:01:28]current date 1706360492 [13:01:28]FM_GetShiftState [13:01:28]SAM_PROTO_GetShiftState [13:01:28]wFMCommunicate request_size=4 [13:01:28]MH_SAM_APDU [13:01:28]CAPDU: 80 13 01 00 [13:01:28]Write to MH i2c: E2 08 00 BA 15 80 13 01 00 00 00 00 00 4C [13:01:28]Write i2c OK [13:01:28]MH_I2C_Read... [13:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:28]Read from MH i2c: E2 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 0E 00 [13:01:28]MH_I2C_Read... [13:01:28]Read from MH i2c: E2 0E 00 BA 15 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E3 [13:01:28]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:01:28]wFMCommunicate OK [13:01:28]SAM_PROTO_GetShiftState done [13:01:28]FM_GetShiftState done [13:01:28]opened in 1706313770 [13:01:28]opened+sec_in_day 1706400170 [13:01:28]quantity*price = 99977 [13:01:28]sum+1 = 99978 [13:01:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.77 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 0.00 Безнал.: 999.77 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 70 27.01.2024 13:01 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 48890 ФПД: 217975731419071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130132&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48890&fm=217975731419071&tin=02508201610067®Number=0000000000092723&sum=99977 [13:01:29]StoreToDocumentArchive [13:01:29]shift 243 fd 48890 [13:01:29]save to /storage/0243/doc_00048890 [13:01:29]save last doc name /storage/0243/doc_00048890 to /storage/kkm_last_doc_name [13:01:29]save OK [13:01:29]Clear old archive folders... [13:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:29]tlvbuf is 011B70E0 [13:01:29]SAM_PROTO_ClearQueue [13:01:29]wFMCommunicate request_size=4 [13:01:29]MH_SAM_APDU [13:01:29]CAPDU: 80 09 00 00 [13:01:29]Write to MH i2c: E2 08 00 C7 15 80 09 00 00 00 00 00 00 4E [13:01:29]Write i2c OK [13:01:29]MH_I2C_Read... [13:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:29]Read from MH i2c: E2 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 03 00 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 03 00 C7 15 00 90 00 50 [13:01:29]RAPDU: 90 00 [13:01:29]wFMCommunicate OK [13:01:29]SAM_PROTO_ClearQueue done [13:01:29]KKMCreateOFDPacket [13:01:29]OFDProtocolAddRootSTLVToBuf [13:01:29]FM_MakeSignedData [13:01:29]FM_MakeSignedData [13:01:29]SAM_PROTO_SignData [13:01:29]wFMCommunicate request_size=4 [13:01:29]MH_SAM_APDU [13:01:29]CAPDU: 80 0D 01 02 [13:01:29]Write to MH i2c: E2 08 00 C8 15 80 0D 01 02 00 00 00 00 56 [13:01:29]Write i2c OK [13:01:29]MH_I2C_Read... [13:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:29]Read from MH i2c: E2 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 03 00 [13:01:29]MH_I2C_Read... [13:01:29]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [13:01:29]RAPDU: 90 00 [13:01:29]wFMCommunicate OK [13:01:29]wFMCommunicate request_size=255 [13:01:29]MH_SAM_APDU [13:01:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 89 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AC FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BE 00 00 35 04 06 00 C6 [13:01:29]Write to MH i2c: E2 02 01 C9 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 C4 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 89 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AC FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BE 00 00 35 04 06 00 C6 00 00 C5 [13:01:29]Write i2c OK [13:01:29]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 C9 15 00 90 00 52 [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]wFMCommunicate request_size=10 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 0D 02 02 05 3F 6E 0A 77 BF [13:01:30]Write to MH i2c: E2 0D 00 CA 15 80 0D 02 02 05 00 3F 6E 0A 77 BF 00 00 50 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 03 00 CA 15 00 90 00 53 [13:01:30]RAPDU: 90 00 [13:01:30]wFMCommunicate OK [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 0D 03 02 [13:01:30]Write to MH i2c: E2 08 00 CB 15 80 0D 03 02 00 00 00 00 5B [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0B 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 0B 00 CB 15 00 C4 5C 7A 71 F6 9E DF 1F 90 00 F9 [13:01:30]RAPDU: C4 5C 7A 71 F6 9E DF 1F 90 00 [13:01:30]wFMCommunicate OK [13:01:30]SAM_PROTO_SignData done [13:01:30]FM_MakeSignedData done [13:01:30]CreateOFDProtocolMessage [13:01:30]wFMCommunicate request_size=4 [13:01:30]MH_SAM_APDU [13:01:30]CAPDU: 80 11 00 00 [13:01:30]Write to MH i2c: E2 08 00 CC 15 80 11 00 00 00 00 00 00 5B [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:30]Read from MH i2c: E2 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: E2 17 00 [13:01:30]MH_I2C_Read... [13:01:30]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 35 30 36 30 90 00 A8 [13:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:01:30]wFMCommunicate OK [13:01:30]CreateOFDProtocolMessage done [13:01:30]OFDSenderStorePacket 48890 [13:01:30]StoreOFDPacket docnum=48890 [13:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 90 22 07 01 69 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 C4 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 89 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AC FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BE 00 00 35 04 06 00 C6 3F 6E 0A 77 BF C4 5C 7A 71 F6 9E DF 1F [13:01:30]CheckFolder [13:01:30]dirname=/storage/ofd_packets [13:01:30]CheckFolder done [13:01:30]ProducePacketName [13:01:30]name=ofd_packets/00048890 [13:01:30]NVStorageSaveData ofd_packets/00048890 [13:01:30]File name is /storage/ofd_packets/00048890 [13:01:30]Write 301 bytes [13:01:30]NVStorageSaveData done [13:01:30]OFDSenderStorePacket done [13:01:30]KKMCreateOFDPacket done [13:01:30]NVStorageSaveData kkm_last_timestamp [13:01:30]File name is /storage/kkm_last_timestamp [13:01:30]Write 4 bytes [13:01:30]NVStorageSaveData done [13:01:30]ExternCall_PrintAddStr [13:01:30]wPrintStart [13:01:30]Write to MH i2c: 01 00 00 CD 15 E2 [13:01:30]Write i2c OK [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 07 00 [13:01:30]MH_I2C_Read... [13:01:30]Read from MH i2c: 01 07 00 CD 15 00 00 00 00 00 FF 0F F7 [13:01:30]RasterBufferAndPrint [13:01:30]line Счет N : (1)215987 [13:01:30]line ИНН: 02508201610067 [13:01:30]line Контрольно-Кассовый Чек [13:01:30]line ПРОДАЖА [13:01:30]line ТРК (МРК, ГНК) : 22 [13:01:30]line Товар: 2710124130 [13:01:30]line Аи-92-К-5 [13:01:30]line 16.580 * 60.30 [13:01:30]line = 999.77 [13:01:30]line НДС 12% НСП 1% [13:01:30]line > о реализуемом товаре [13:01:30]line ИТОГО: 999.77 [13:01:30]line НСП 1% : 8.85 [13:01:30]line НДС 12% : 106.17 [13:01:30]line Наличными: 0.00 [13:01:30]line Безнал.: 999.77 [13:01:30]line Место: АЗС № 102 "Партнер Нефть" [13:01:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:01:30]line СНО: Общий режим [13:01:30]line Чек 70 27.01.2024 13:01 [13:01:30]line Смена: 243 ФФД: 1.0 [13:01:30]line ЗНМ: 0300000040 [13:01:30]line РНМ: 0000000000092723 [13:01:30]line Версия ККМ: 001 [13:01:30]line Платежная система: О! деньги [13:01:30]line ФМ: 0000000000875060 [13:01:30]line ФД: 48890 [13:01:30]line ФПД: 217975731419071 [13:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130132&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48890&fm=217975731419071&tin=02508201610067®Number=0000000000092723&sum=99977 [13:01:30]OFD Sender: Processing packet 48890 [packets to send 12, broken 11] [13:01:30]ProducePacketName [13:01:30]name=ofd_packets/00048890 [13:01:30]OFD Sender: To server: pG, [13:01:30]CommunicateWithHost lk.salyk.kg:30040 [13:01:30]ConnectInit lk.salyk.kg [13:01:30]written 0, free lines is 4095 [13:01:30]Connected sock=10 [13:01:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 90 22 07 01 69 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 C4 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 89 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 89 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 89 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 AC FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FA BE 00 00 35 04 06 00 C6 3F 6E 0A 77 BF C4 5C 7A 71 F6 9E DF 1F [13:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 01 D5 47 00 C5 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 35 30 36 30 10 04 04 00 FA BE 00 00 F4 03 04 00 AA AA B4 65 B6 04 01 00 00 4D EC AA 14 96 63 DA 30 [13:01:31]CommunicateWithHost err = 0 [13:01:31]CheckOFDResponse [13:01:31]1017 (14) - 77093643461234 [13:01:31]1041 (16) - 0000000000875060 [13:01:31]1040 (4) - 48890 [13:01:31]1012 (4) - 27.01.2024 07:03 [13:01:31]1206 (1) - 0 [13:01:31]OFD Sender: Remove packet 48890 [13:01:31]ProducePacketName [13:01:31]name=ofd_packets/00048890 [13:01:31]NVStorageDeleteData [13:01:31]Write to MH i2c: 01 00 00 F7 15 0C [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 07 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: 01 07 00 F7 15 00 00 00 00 00 10 0D 30 [13:01:31]RasterBufferAndPrint [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]line [13:01:31]written 0, free lines is 3351 [13:01:31]MH_Cut [13:01:31]Write to MH i2c: D1 01 00 FE 15 01 E5 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 01 00 [13:01:31]MH_I2C_Read... [13:01:31]Read from MH i2c: D1 01 00 FE 15 00 E4 [13:01:31]Write to MH i2c: 01 00 00 FF 15 14 [13:01:31]Write i2c OK [13:01:31]MH_I2C_Read... [13:01:31]OFD Sender: No OFD packet to send [13:01:31]*** Cut start [13:01:31]*** Partial cut [13:01:31]*** CUTSNS_PIN = 1 [13:01:31]*** CUTSNS_PIN = 0 [13:01:32]*** Brake cut motor [13:01:32]Read from MH i2c: 01 [13:01:32]MH_I2C_Read... [13:01:32]*** Stop cut motor [13:01:32]*** Cut end [13:01:32]Read from MH i2c: 01 07 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: 01 07 00 FF 15 00 00 00 00 00 FF 0F 29 [13:01:32]process_action close_receipt done [13:01:32]requested_data is exist [13:01:32]produce_requested_data [13:01:32]requested_item fm.sn is exist - process it [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 11 00 00 [13:01:32]Write to MH i2c: E2 08 00 00 16 80 11 00 00 00 00 00 00 90 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 17 00 00 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DD [13:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:01:32]wFMCommunicate OK [13:01:32]requested_item fd.num is exist - process it [13:01:32]SAM_PROTO_GetFieldsCounters [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 13 00 00 [13:01:32]Write to MH i2c: E2 08 00 01 16 80 13 00 00 00 00 00 00 93 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 62 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 62 00 01 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FA BE 00 00 0E 04 04 00 F3 00 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 29 [13:01: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FA BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_GetFieldsCounters done [13:01:32]requested_item shift.num is exist - process it [13:01:32]requested_item shift.opened is exist - process it [13:01:32]req_shift_opened [13:01:32]FM_GetShiftState [13:01:32]SAM_PROTO_GetShiftState [13:01:32]wFMCommunicate request_size=4 [13:01:32]MH_SAM_APDU [13:01:32]CAPDU: 80 13 01 00 [13:01:32]Write to MH i2c: E2 08 00 02 16 80 13 01 00 00 00 00 00 95 [13:01:32]Write i2c OK [13:01:32]MH_I2C_Read... [13:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:32]Read from MH i2c: E2 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0E 00 [13:01:32]MH_I2C_Read... [13:01:32]Read from MH i2c: E2 0E 00 02 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2C [13:01:32]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:01:32]wFMCommunicate OK [13:01:32]SAM_PROTO_GetShiftState done [13:01:32]FM_GetShiftState done [13:01:32]req_shift_opened done [13:01:32]requested_item shift.open_date is exist - process it [13:01:32]req_shift_open_date [13:01:32]req_shift_open_date done [13:01:32]produce_requested_data done [13:01:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48890,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:01:32]process_action_free close_receipt [13:01:32]json_value_free [13:01:32]json_value_free done [13:01:32]process_json_proto returns [13:01:32]Send response to host [13:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48890,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:01:32]free response buf [13:01:32]execute_script done [13:01:32]execute_script returns [13:01:32]free content buf [13:01:32]Sock 9.Close socket [13:01:32]Sock 9.Thread stoped [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:53]accept exits with 7 [13:01:53]New connection [13:01:53]New thread 3066813796 created [13:01:53]Thread 3066670436 joined [13:01:53]Waiting for new connection... [13:01:53] Sock 7.Parse request [13:01:53]Sock 7.Check first char [13:01:53]Sock 7.First char is OK [13:01:53]request: POST /json_proto HTTP/1.0 [13:01:53]Method: POST [13:01:53]URL: /json_proto [13:01:53]Method is POST - this is cgi request [13:01:53]url: /json_proto [13:01:53]query_string will be loaded in cgi processing [13:01:53]execute_cgi json_proto POST (null) [13:01:53]execute_cgi path=json_proto method=POST [13:01:53]POST find Content-Length [13:01:53]Host: 172.17.56.67:8080 [13:01:53]Content-Length: 677 [13:01:53]Content-Type: application/json [13:01:53] [13:01:53]POST finish read [13:01:53]Found Content-Length = 677 [13:01:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:53]execute_script... [13:01: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)215988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:53]POST & json_proto [13:01:53]process_json_proto [13:01:53]json parsed OK: [13:01:53]protocol is kg_v1.0 [13:01:53]action value=close_receipt [13:01:53]process_action close_receipt [13:01:53]cmd_close_receipt [13:01:53]MH_GetDate [13:01:53]Write to MH i2c: F0 00 00 03 16 08 [13:01:53]Write i2c OK [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 09 00 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: F0 09 00 03 16 00 C4 FE B4 65 26 5D 9E 65 72 [13:01:53]GetLastDocTimeStamp 1706360492 [13:01:53]current date 1706360516 [13:01:53]FM_GetShiftState [13:01:53]SAM_PROTO_GetShiftState [13:01:53]wFMCommunicate request_size=4 [13:01:53]MH_SAM_APDU [13:01:53]CAPDU: 80 13 01 00 [13:01:53]Write to MH i2c: E2 08 00 04 16 80 13 01 00 00 00 00 00 97 [13:01:53]Write i2c OK [13:01:53]MH_I2C_Read... [13:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:53]Read from MH i2c: E2 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 [13:01:53]MH_I2C_Read... [13:01:53]Read from MH i2c: E2 0E 00 04 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2E [13:01:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:01:53]wFMCommunicate OK [13:01:53]SAM_PROTO_GetShiftState done [13:01:53]FM_GetShiftState done [13:01:53]opened in 1706313770 [13:01:53]opened+sec_in_day 1706400170 [13:01:53]quantity*price = 20019 [13:01:53]sum+1 = 20021 [13:01:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 71 27.01.2024 13:01 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48891 ФПД: 28409018846865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48891&fm=28409018846865&tin=02508201610067®Number=0000000000092723&sum=20000 [13:01:54]StoreToDocumentArchive [13:01:54]shift 243 fd 48891 [13:01:54]save to /storage/0243/doc_00048891 [13:01:54]save last doc name /storage/0243/doc_00048891 to /storage/kkm_last_doc_name [13:01:54]save OK [13:01:54]Clear old archive folders... [13:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:54]tlvbuf is 01198080 [13:01:54]SAM_PROTO_ClearQueue [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 09 00 00 [13:01:54]Write to MH i2c: E2 08 00 11 16 80 09 00 00 00 00 00 00 99 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 11 16 00 90 00 9B [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_ClearQueue done [13:01:54]KKMCreateOFDPacket [13:01:54]OFDProtocolAddRootSTLVToBuf [13:01:54]FM_MakeSignedData [13:01:54]FM_MakeSignedData [13:01:54]SAM_PROTO_SignData [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 01 02 [13:01:54]Write to MH i2c: E2 08 00 12 16 80 0D 01 02 00 00 00 00 A1 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 12 16 00 90 00 9C [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=255 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BE 00 00 35 04 06 00 19 [13:01:54]Write to MH i2c: E2 02 01 13 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BE 00 00 35 04 06 00 19 00 00 98 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 13 16 00 90 00 9D [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=10 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 02 02 05 D6 7D 7A 0E 91 [13:01:54]Write to MH i2c: E2 0D 00 14 16 80 0D 02 02 05 00 D6 7D 7A 0E 91 00 00 1A [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 03 00 14 16 00 90 00 9E [13:01:54]RAPDU: 90 00 [13:01:54]wFMCommunicate OK [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 0D 03 02 [13:01:54]Write to MH i2c: E2 08 00 15 16 80 0D 03 02 00 00 00 00 A6 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0B 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 0B 00 15 16 00 6D 80 43 88 B9 BA 09 07 90 00 E2 [13:01:54]RAPDU: 6D 80 43 88 B9 BA 09 07 90 00 [13:01:54]wFMCommunicate OK [13:01:54]SAM_PROTO_SignData done [13:01:54]FM_MakeSignedData done [13:01:54]CreateOFDProtocolMessage [13:01:54]wFMCommunicate request_size=4 [13:01:54]MH_SAM_APDU [13:01:54]CAPDU: 80 11 00 00 [13:01:54]Write to MH i2c: E2 08 00 16 16 80 11 00 00 00 00 00 00 A6 [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:54]Read from MH i2c: E2 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: E2 17 00 16 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F3 [13:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:01:54]wFMCommunicate OK [13:01:54]CreateOFDProtocolMessage done [13:01:54]OFDSenderStorePacket 48891 [13:01:54]StoreOFDPacket docnum=48891 [13:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 14 5F 07 01 9A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BE 00 00 35 04 06 00 19 D6 7D 7A 0E 91 6D 80 43 88 B9 BA 09 07 [13:01:54]CheckFolder [13:01:54]dirname=/storage/ofd_packets [13:01:54]CheckFolder done [13:01:54]ProducePacketName [13:01:54]name=ofd_packets/00048891 [13:01:54]NVStorageSaveData ofd_packets/00048891 [13:01:54]File name is /storage/ofd_packets/00048891 [13:01:54]Write 301 bytes [13:01:54]NVStorageSaveData done [13:01:54]OFDSenderStorePacket done [13:01:54]KKMCreateOFDPacket done [13:01:54]NVStorageSaveData kkm_last_timestamp [13:01:54]File name is /storage/kkm_last_timestamp [13:01:54]Write 4 bytes [13:01:54]NVStorageSaveData done [13:01:54]ExternCall_PrintAddStr [13:01:54]wPrintStart [13:01:54]Write to MH i2c: 01 00 00 17 16 2D [13:01:54]Write i2c OK [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: 01 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: 01 07 00 [13:01:54]MH_I2C_Read... [13:01:54]Read from MH i2c: 01 07 00 17 16 00 00 00 00 00 FF 0F 42 [13:01:54]RasterBufferAndPrint [13:01:54]line Счет N : (1)215988 [13:01:54]line ИНН: 02508201610067 [13:01:54]line Контрольно-Кассовый Чек [13:01:54]line ПРОДАЖА [13:01:54]line ТРК (МРК, ГНК) : 12 [13:01:54]line Товар: 2710124130 [13:01:54]line Аи-92-К-5 [13:01:54]line 3.320 * 60.30 [13:01:54]line = 200.20 [13:01:54]line НДС 12% НСП 1% [13:01:54]line > о реализуемом товаре [13:01:54]line ОКРУГЛЕНИЕ: -0.20 [13:01:54]line ИТОГО: 200.00 [13:01:54]line Внесено: 200.00 [13:01:54]line СДАЧА: 0.00 [13:01:54]line НСП 1% : 1.77 [13:01:54]line НДС 12% : 21.26 [13:01:54]line Наличными: 200.00 [13:01:54]line Безнал.: 0.00 [13:01:54]line Место: АЗС № 102 "Партнер Нефть" [13:01:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:01:54]line СНО: Общий режим [13:01:54]line Чек 71 27.01.2024 13:01 [13:01:54]line Смена: 243 ФФД: 1.0 [13:01:54]line ЗНМ: 0300000040 [13:01:54]line РНМ: 0000000000092723 [13:01:54]line Версия ККМ: 001 [13:01:54]line ФМ: 0000000000875060 [13:01:54]line ФД: 48891 [13:01:54]line ФПД: 28409018846865 [13:01:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48891&fm=28409018846865&tin=02508201610067®Number=0000000000092723&sum=20000 [13:01:55]OFD Sender: Processing packet 48891 [packets to send 12, broken 11] [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00048891 [13:01:55]OFD Sender: To server: pG, [13:01:55]CommunicateWithHost lk.salyk.kg:30040 [13:01:55]ConnectInit lk.salyk.kg [13:01:55]written 0, free lines is 4095 [13:01:55]Connected sock=9 [13:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 14 5F 07 01 9A D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 C4 FE B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BE 00 00 35 04 06 00 19 D6 7D 7A 0E 91 6D 80 43 88 B9 BA 09 07 [13:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D4 24 47 00 09 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FB BE 00 00 F4 03 04 00 C3 AA B4 65 B6 04 01 00 00 88 2E A4 BE 6A 27 84 A7 [13:01:55]CommunicateWithHost err = 0 [13:01:55]CheckOFDResponse [13:01:55]1017 (14) - 77093643461234 [13:01:55]1041 (16) - 0000000000875060 [13:01:55]1040 (4) - 48891 [13:01:55]1012 (4) - 27.01.2024 07:03 [13:01:55]1206 (1) - 0 [13:01:55]OFD Sender: Remove packet 48891 [13:01:55]ProducePacketName [13:01:55]name=ofd_packets/00048891 [13:01:55]NVStorageDeleteData [13:01:55]Write to MH i2c: 01 00 00 42 16 58 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: 01 07 00 42 16 00 00 00 00 00 FA 0C 65 [13:01:55]RasterBufferAndPrint [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]line [13:01:55]written 0, free lines is 3332 [13:01:55]MH_Cut [13:01:55]Write to MH i2c: D1 01 00 49 16 01 31 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 01 00 [13:01:55]MH_I2C_Read... [13:01:55]Read from MH i2c: D1 01 00 49 16 00 30 [13:01:55]Write to MH i2c: 01 00 00 4A 16 60 [13:01:55]Write i2c OK [13:01:55]MH_I2C_Read... [13:01:56]OFD Sender: No OFD packet to send [13:01:56]*** Cut start [13:01:56]*** Partial cut [13:01:56]*** CUTSNS_PIN = 1 [13:01:56]*** CUTSNS_PIN = 0 [13:01:56]*** Brake cut motor [13:01:56]Read from MH i2c: 01 [13:01:56]MH_I2C_Read... [13:01:56]*** Stop cut motor [13:01:56]*** Cut end [13:01:56]Read from MH i2c: 01 07 00 [13:01:56]MH_I2C_Read... [13:01:56]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 FF 0F 75 [13:01:56]process_action close_receipt done [13:01:56]requested_data is exist [13:01:56]produce_requested_data [13:01:56]requested_item fm.sn is exist - process it [13:01:56]wFMCommunicate request_size=4 [13:01:56]MH_SAM_APDU [13:01:56]CAPDU: 80 11 00 00 [13:01:56]Write to MH i2c: E2 08 00 4B 16 80 11 00 00 00 00 00 00 DB [13:01:56]Write i2c OK [13:01:56]MH_I2C_Read... [13:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:56]Read from MH i2c: E2 [13:01:56]MH_I2C_Read... [13:01:56]Read from MH i2c: E2 17 00 [13:01:56]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 17 00 4B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 28 [13:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:01:57]wFMCommunicate OK [13:01:57]requested_item fd.num is exist - process it [13:01:57]SAM_PROTO_GetFieldsCounters [13:01:57]wFMCommunicate request_size=4 [13:01:57]MH_SAM_APDU [13:01:57]CAPDU: 80 13 00 00 [13:01:57]Write to MH i2c: E2 08 00 4C 16 80 13 00 00 00 00 00 00 DE [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:57]Read from MH i2c: E2 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 62 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 62 00 4C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FB BE 00 00 0E 04 04 00 F3 00 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 78 [13:01: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FB BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:57]wFMCommunicate OK [13:01:57]SAM_PROTO_GetFieldsCounters done [13:01:57]requested_item shift.num is exist - process it [13:01:57]requested_item shift.opened is exist - process it [13:01:57]req_shift_opened [13:01:57]FM_GetShiftState [13:01:57]SAM_PROTO_GetShiftState [13:01:57]wFMCommunicate request_size=4 [13:01:57]MH_SAM_APDU [13:01:57]CAPDU: 80 13 01 00 [13:01:57]Write to MH i2c: E2 08 00 4D 16 80 13 01 00 00 00 00 00 E0 [13:01:57]Write i2c OK [13:01:57]MH_I2C_Read... [13:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:57]Read from MH i2c: E2 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 0E 00 [13:01:57]MH_I2C_Read... [13:01:57]Read from MH i2c: E2 0E 00 4D 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 77 [13:01:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:01:57]wFMCommunicate OK [13:01:57]SAM_PROTO_GetShiftState done [13:01:57]FM_GetShiftState done [13:01:57]req_shift_opened done [13:01:57]requested_item shift.open_date is exist - process it [13:01:57]req_shift_open_date [13:01:57]req_shift_open_date done [13:01:57]produce_requested_data done [13:01:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48891,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:01:57]process_action_free close_receipt [13:01:57]json_value_free [13:01:57]json_value_free done [13:01:57]process_json_proto returns [13:01:57]Send response to host [13:01:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48891,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:01:57]free response buf [13:01:57]execute_script done [13:01:57]execute_script returns [13:01:57]free content buf [13:01:57]Sock 7.Close socket [13:01:57]Sock 7.Thread stoped [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:42]accept exits with 10 [13:06:42]New connection [13:06:42]New thread 3066670436 created [13:06:42]Thread 3066813796 joined [13:06:42]Waiting for new connection... [13:06:42] Sock 10.Parse request [13:06:42]Sock 10.Check first char [13:06:42]Sock 10.First char is OK [13:06:42]request: POST /json_proto HTTP/1.0 [13:06:42]Method: POST [13:06:42]URL: /json_proto [13:06:42]Method is POST - this is cgi request [13:06:42]url: /json_proto [13:06:42]query_string will be loaded in cgi processing [13:06:42]execute_cgi json_proto POST (null) [13:06:42]execute_cgi path=json_proto method=POST [13:06:42]POST find Content-Length [13:06:42]Host: 172.17.56.67:8080 [13:06:42]Content-Length: 677 [13:06:42]Content-Type: application/json [13:06:42] [13:06:42]POST finish read [13:06:42]Found Content-Length = 677 [13:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:42]execute_script... [13:06: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)215989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:42]POST & json_proto [13:06:42]process_json_proto [13:06:42]json parsed OK: [13:06:42]protocol is kg_v1.0 [13:06:42]action value=close_receipt [13:06:42]process_action close_receipt [13:06:42]cmd_close_receipt [13:06:42]MH_GetDate [13:06:42]Write to MH i2c: F0 00 00 4E 16 53 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 09 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: F0 09 00 4E 16 00 E6 FF B4 65 26 5D 9E 65 E0 [13:06:42]GetLastDocTimeStamp 1706360516 [13:06:42]current date 1706360806 [13:06:42]FM_GetShiftState [13:06:42]SAM_PROTO_GetShiftState [13:06:42]wFMCommunicate request_size=4 [13:06:42]MH_SAM_APDU [13:06:42]CAPDU: 80 13 01 00 [13:06:42]Write to MH i2c: E2 08 00 4F 16 80 13 01 00 00 00 00 00 E2 [13:06:42]Write i2c OK [13:06:42]MH_I2C_Read... [13:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:42]Read from MH i2c: E2 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0E 00 [13:06:42]MH_I2C_Read... [13:06:42]Read from MH i2c: E2 0E 00 4F 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 79 [13:06:42]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:06:42]wFMCommunicate OK [13:06:42]SAM_PROTO_GetShiftState done [13:06:42]FM_GetShiftState done [13:06:42]opened in 1706313770 [13:06:42]opened+sec_in_day 1706400170 [13:06:42]quantity*price = 60058 [13:06:42]sum+1 = 60060 [13:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 72 27.01.2024 13:06 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48892 ФПД: 155886019006046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130646&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48892&fm=155886019006046&tin=02508201610067®Number=0000000000092723&sum=60000 [13:06:43]StoreToDocumentArchive [13:06:43]shift 243 fd 48892 [13:06:43]save to /storage/0243/doc_00048892 [13:06:43]save last doc name /storage/0243/doc_00048892 to /storage/kkm_last_doc_name [13:06:43]save OK [13:06:43]Clear old archive folders... [13:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:43]tlvbuf is 0135CEF0 [13:06:43]SAM_PROTO_ClearQueue [13:06:43]wFMCommunicate request_size=4 [13:06:43]MH_SAM_APDU [13:06:43]CAPDU: 80 09 00 00 [13:06:43]Write to MH i2c: E2 08 00 5C 16 80 09 00 00 00 00 00 00 E4 [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:43]Read from MH i2c: E2 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 [13:06:43]MH_I2C_Read... [13:06:43]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [13:06:43]RAPDU: 90 00 [13:06:43]wFMCommunicate OK [13:06:43]SAM_PROTO_ClearQueue done [13:06:43]KKMCreateOFDPacket [13:06:43]OFDProtocolAddRootSTLVToBuf [13:06:43]FM_MakeSignedData [13:06:43]FM_MakeSignedData [13:06:43]SAM_PROTO_SignData [13:06:43]wFMCommunicate request_size=4 [13:06:43]MH_SAM_APDU [13:06:43]CAPDU: 80 0D 01 02 [13:06:43]Write to MH i2c: E2 08 00 5D 16 80 0D 01 02 00 00 00 00 EC [13:06:43]Write i2c OK [13:06:43]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 5D 16 00 90 00 E7 [13:06:44]RAPDU: 90 00 [13:06:44]wFMCommunicate OK [13:06:44]wFMCommunicate request_size=255 [13:06:44]MH_SAM_APDU [13:06: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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 FF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BE 00 00 35 04 06 00 8D [13:06:44]Write to MH i2c: E2 02 01 5E 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 FF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BE 00 00 35 04 06 00 8D 00 00 51 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [13:06:44]RAPDU: 90 00 [13:06:44]wFMCommunicate OK [13:06:44]wFMCommunicate request_size=10 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 0D 02 02 05 C7 0A C9 CE 5E [13:06:44]Write to MH i2c: E2 0D 00 5F 16 80 0D 02 02 05 00 C7 0A C9 CE 5E 00 00 BF [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [13:06:44]RAPDU: 90 00 [13:06:44]wFMCommunicate OK [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 0D 03 02 [13:06:44]Write to MH i2c: E2 08 00 60 16 80 0D 03 02 00 00 00 00 F1 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0B 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 0B 00 60 16 00 CC 38 50 41 11 80 8A E4 90 00 86 [13:06:44]RAPDU: CC 38 50 41 11 80 8A E4 90 00 [13:06:44]wFMCommunicate OK [13:06:44]SAM_PROTO_SignData done [13:06:44]FM_MakeSignedData done [13:06:44]CreateOFDProtocolMessage [13:06:44]wFMCommunicate request_size=4 [13:06:44]MH_SAM_APDU [13:06:44]CAPDU: 80 11 00 00 [13:06:44]Write to MH i2c: E2 08 00 61 16 80 11 00 00 00 00 00 00 F1 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:44]Read from MH i2c: E2 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: E2 17 00 61 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [13:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:06:44]wFMCommunicate OK [13:06:44]CreateOFDProtocolMessage done [13:06:44]OFDSenderStorePacket 48892 [13:06:44]StoreOFDPacket docnum=48892 [13:06:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 67 31 07 01 FF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 FF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BE 00 00 35 04 06 00 8D C7 0A C9 CE 5E CC 38 50 41 11 80 8A E4 [13:06:44]CheckFolder [13:06:44]dirname=/storage/ofd_packets [13:06:44]CheckFolder done [13:06:44]ProducePacketName [13:06:44]name=ofd_packets/00048892 [13:06:44]NVStorageSaveData ofd_packets/00048892 [13:06:44]File name is /storage/ofd_packets/00048892 [13:06:44]Write 301 bytes [13:06:44]NVStorageSaveData done [13:06:44]OFDSenderStorePacket done [13:06:44]KKMCreateOFDPacket done [13:06:44]NVStorageSaveData kkm_last_timestamp [13:06:44]File name is /storage/kkm_last_timestamp [13:06:44]Write 4 bytes [13:06:44]NVStorageSaveData done [13:06:44]ExternCall_PrintAddStr [13:06:44]wPrintStart [13:06:44]Write to MH i2c: 01 00 00 62 16 78 [13:06:44]Write i2c OK [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 [13:06:44]MH_I2C_Read... [13:06:44]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 FF 0F 8D [13:06:44]RasterBufferAndPrint [13:06:44]line Счет N : (1)215989 [13:06:44]line ИНН: 02508201610067 [13:06:44]line Контрольно-Кассовый Чек [13:06:44]line ПРОДАЖА [13:06:44]line ТРК (МРК, ГНК) : 22 [13:06:44]line Товар: 2710124130 [13:06:44]line Аи-92-К-5 [13:06:44]line 9.960 * 60.30 [13:06:44]line = 600.59 [13:06:44]line НДС 12% НСП 1% [13:06:44]line > о реализуемом товаре [13:06:44]line ОКРУГЛЕНИЕ: -0.59 [13:06:44]line ИТОГО: 600.00 [13:06:44]line Внесено: 600.00 [13:06:44]line СДАЧА: 0.00 [13:06:44]line НСП 1% : 5.31 [13:06:44]line НДС 12% : 63.78 [13:06:44]line Наличными: 600.00 [13:06:44]line Безнал.: 0.00 [13:06:44]line Место: АЗС № 102 "Партнер Нефть" [13:06:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:06:44]line СНО: Общий режим [13:06:44]line Чек 72 27.01.2024 13:06 [13:06:44]line Смена: 243 ФФД: 1.0 [13:06:44]line ЗНМ: 0300000040 [13:06:44]line РНМ: 0000000000092723 [13:06:44]line Версия ККМ: 001 [13:06:44]line ФМ: 0000000000875060 [13:06:44]line ФД: 48892 [13:06:44]line ФПД: 155886019006046 [13:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T130646&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48892&fm=155886019006046&tin=02508201610067®Number=0000000000092723&sum=60000 [13:06:44]OFD Sender: Processing packet 48892 [packets to send 12, broken 11] [13:06:44]ProducePacketName [13:06:44]name=ofd_packets/00048892 [13:06:44]OFD Sender: To server: pG, [13:06:44]CommunicateWithHost lk.salyk.kg:30040 [13:06:44]ConnectInit lk.salyk.kg [13:06:44]written 0, free lines is 4095 [13:06:44]Connected sock=9 [13:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 67 31 07 01 FF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 E6 FF B4 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FC BE 00 00 35 04 06 00 8D C7 0A C9 CE 5E CC 38 50 41 11 80 8A E4 [13:06:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C3 D7 47 00 FD 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 35 30 36 30 10 04 04 00 FC BE 00 00 F4 03 04 00 E4 AB B4 65 B6 04 01 00 00 B9 2D 33 49 4F FD A3 B2 [13:06:45]CommunicateWithHost err = 0 [13:06:45]CheckOFDResponse [13:06:45]1017 (14) - 77093643461234 [13:06:45]1041 (16) - 0000000000875060 [13:06:45]1040 (4) - 48892 [13:06:45]1012 (4) - 27.01.2024 07:08 [13:06:45]1206 (1) - 0 [13:06:45]OFD Sender: Remove packet 48892 [13:06:45]ProducePacketName [13:06:45]name=ofd_packets/00048892 [13:06:45]NVStorageDeleteData [13:06:45]Write to MH i2c: 01 00 00 8D 16 A3 [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: 01 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: 01 07 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: 01 07 00 8D 16 00 00 00 00 00 F2 0C A8 [13:06:45]RasterBufferAndPrint [13:06:45]line [13:06:45]line [13:06:45]line [13:06:45]line [13:06:45]line [13:06:45]written 0, free lines is 3320 [13:06:45]MH_Cut [13:06:45]Write to MH i2c: D1 01 00 94 16 01 7C [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: D1 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: D1 01 00 [13:06:45]MH_I2C_Read... [13:06:45]Read from MH i2c: D1 01 00 94 16 00 7B [13:06:45]Write to MH i2c: 01 00 00 95 16 AB [13:06:45]Write i2c OK [13:06:45]MH_I2C_Read... [13:06:45]OFD Sender: No OFD packet to send [13:06:45]*** Cut start [13:06:45]*** Partial cut [13:06:45]*** CUTSNS_PIN = 1 [13:06:45]*** CUTSNS_PIN = 0 [13:06:46]*** Brake cut motor [13:06:46]Read from MH i2c: 01 [13:06:46]MH_I2C_Read... [13:06:46]*** Stop cut motor [13:06:46]*** Cut end [13:06:46]Read from MH i2c: 01 07 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 FF 0F C0 [13:06:46]process_action close_receipt done [13:06:46]requested_data is exist [13:06:46]produce_requested_data [13:06:46]requested_item fm.sn is exist - process it [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 11 00 00 [13:06:46]Write to MH i2c: E2 08 00 96 16 80 11 00 00 00 00 00 00 26 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 17 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 17 00 96 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 73 [13:06:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:06:46]wFMCommunicate OK [13:06:46]requested_item fd.num is exist - process it [13:06:46]SAM_PROTO_GetFieldsCounters [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 13 00 00 [13:06:46]Write to MH i2c: E2 08 00 97 16 80 13 00 00 00 00 00 00 29 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 62 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 62 00 97 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FC BE 00 00 0E 04 04 00 F3 00 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 C7 [13:06: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FC BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:46]wFMCommunicate OK [13:06:46]SAM_PROTO_GetFieldsCounters done [13:06:46]requested_item shift.num is exist - process it [13:06:46]requested_item shift.opened is exist - process it [13:06:46]req_shift_opened [13:06:46]FM_GetShiftState [13:06:46]SAM_PROTO_GetShiftState [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 13 01 00 [13:06:46]Write to MH i2c: E2 08 00 98 16 80 13 01 00 00 00 00 00 2B [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 98 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C2 [13:06:46]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:06:46]wFMCommunicate OK [13:06:46]SAM_PROTO_GetShiftState done [13:06:46]FM_GetShiftState done [13:06:46]req_shift_opened done [13:06:46]requested_item shift.open_date is exist - process it [13:06:46]req_shift_open_date [13:06:46]req_shift_open_date done [13:06:46]produce_requested_data done [13:06:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48892,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:06:46]process_action_free close_receipt [13:06:46]json_value_free [13:06:46]json_value_free done [13:06:46]process_json_proto returns [13:06:46]Send response to host [13:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48892,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:06:46]free response buf [13:06:46]execute_script done [13:06:46]execute_script returns [13:06:46]free content buf [13:06:46]Sock 10.Close socket [13:06:46]Sock 10.Thread stoped [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:25]OFD Sender: No OFD packet to send [13:08:30]OFD Sender: No OFD packet to send [13:08:35]OFD Sender: No OFD packet to send [13:08:40]OFD Sender: No OFD packet to send [13:08:45]OFD Sender: No OFD packet to send [13:08:50]OFD Sender: No OFD packet to send [13:08:55]OFD Sender: No OFD packet to send [13:09:00]OFD Sender: No OFD packet to send [13:09:05]OFD Sender: No OFD packet to send [13:09:10]OFD Sender: No OFD packet to send [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:04]accept exits with 7 [13:10:04]New connection [13:10:04]New thread 3066813796 created [13:10:04]Thread 3066670436 joined [13:10:04]Waiting for new connection... [13:10:04] Sock 7.Parse request [13:10:04]Sock 7.Check first char [13:10:04]Sock 7.First char is OK [13:10:04]request: POST /json_proto HTTP/1.0 [13:10:04]Method: POST [13:10:04]URL: /json_proto [13:10:04]Method is POST - this is cgi request [13:10:04]url: /json_proto [13:10:04]query_string will be loaded in cgi processing [13:10:04]execute_cgi json_proto POST (null) [13:10:04]execute_cgi path=json_proto method=POST [13:10:04]POST find Content-Length [13:10:04]Host: 172.17.56.67:8080 [13:10:04]Content-Length: 677 [13:10:04]Content-Type: application/json [13:10:04] [13:10:04]POST finish read [13:10:04]Found Content-Length = 677 [13:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:04]execute_script... [13:10: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)215990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:04]POST & json_proto [13:10:04]process_json_proto [13:10:04]json parsed OK: [13:10:04]protocol is kg_v1.0 [13:10:04]action value=close_receipt [13:10:04]process_action close_receipt [13:10:04]cmd_close_receipt [13:10:04]MH_GetDate [13:10:04]Write to MH i2c: F0 00 00 99 16 9E [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 09 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 09 00 99 16 00 AF 00 B5 65 26 5D 9E 65 F6 [13:10:04]GetLastDocTimeStamp 1706360806 [13:10:04]current date 1706361007 [13:10:04]FM_GetShiftState [13:10:04]SAM_PROTO_GetShiftState [13:10:04]wFMCommunicate request_size=4 [13:10:04]MH_SAM_APDU [13:10:04]CAPDU: 80 13 01 00 [13:10:04]Write to MH i2c: E2 08 00 9A 16 80 13 01 00 00 00 00 00 2D [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0E 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0E 00 9A 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C4 [13:10:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:10:04]wFMCommunicate OK [13:10:04]SAM_PROTO_GetShiftState done [13:10:04]FM_GetShiftState done [13:10:04]opened in 1706313770 [13:10:04]opened+sec_in_day 1706400170 [13:10:04]quantity*price = 30029 [13:10:04]sum+1 = 30030 [13:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 73 27.01.2024 13:10 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48893 ФПД: 50713699787097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48893&fm=50713699787097&tin=02508201610067®Number=0000000000092723&sum=30000 [13:10:05]StoreToDocumentArchive [13:10:05]shift 243 fd 48893 [13:10:05]save to /storage/0243/doc_00048893 [13:10:05]save last doc name /storage/0243/doc_00048893 to /storage/kkm_last_doc_name [13:10:05]save OK [13:10:05]Clear old archive folders... [13:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:05]tlvbuf is 01197360 [13:10:05]SAM_PROTO_ClearQueue [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 09 00 00 [13:10:05]Write to MH i2c: E2 08 00 A7 16 80 09 00 00 00 00 00 00 2F [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]SAM_PROTO_ClearQueue done [13:10:05]KKMCreateOFDPacket [13:10:05]OFDProtocolAddRootSTLVToBuf [13:10:05]FM_MakeSignedData [13:10:05]FM_MakeSignedData [13:10:05]SAM_PROTO_SignData [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 01 02 [13:10:05]Write to MH i2c: E2 08 00 A8 16 80 0D 01 02 00 00 00 00 37 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=255 [13:10:05]MH_SAM_APDU [13:10: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AF 00 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BE 00 00 35 04 06 00 2E [13:10:05]Write to MH i2c: E2 02 01 A9 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AF 00 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BE 00 00 35 04 06 00 2E 00 00 EB [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=10 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 02 02 05 1F B4 0F A1 59 [13:10:05]Write to MH i2c: E2 0D 00 AA 16 80 0D 02 02 05 00 1F B4 0F A1 59 00 00 20 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 AA 16 00 90 00 34 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 03 02 [13:10:05]Write to MH i2c: E2 08 00 AB 16 80 0D 03 02 00 00 00 00 3C [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:05]OFD Sender: No OFD packet to send [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0B 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0B 00 AB 16 00 9D 84 56 99 BB 37 6F F6 90 00 A4 [13:10:05]RAPDU: 9D 84 56 99 BB 37 6F F6 90 00 [13:10:05]wFMCommunicate OK [13:10:05]SAM_PROTO_SignData done [13:10:05]FM_MakeSignedData done [13:10:05]CreateOFDProtocolMessage [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 11 00 00 [13:10:05]Write to MH i2c: E2 08 00 AC 16 80 11 00 00 00 00 00 00 3C [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 17 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 17 00 AC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [13:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:10:05]wFMCommunicate OK [13:10:05]CreateOFDProtocolMessage done [13:10:05]OFDSenderStorePacket 48893 [13:10:05]StoreOFDPacket docnum=48893 [13:10:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 66 F6 07 01 4B 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AF 00 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BE 00 00 35 04 06 00 2E 1F B4 0F A1 59 9D 84 56 99 BB 37 6F F6 [13:10:05]CheckFolder [13:10:05]dirname=/storage/ofd_packets [13:10:05]CheckFolder done [13:10:05]ProducePacketName [13:10:05]name=ofd_packets/00048893 [13:10:05]NVStorageSaveData ofd_packets/00048893 [13:10:05]File name is /storage/ofd_packets/00048893 [13:10:05]Write 301 bytes [13:10:05]NVStorageSaveData done [13:10:05]OFDSenderStorePacket done [13:10:05]KKMCreateOFDPacket done [13:10:05]NVStorageSaveData kkm_last_timestamp [13:10:05]File name is /storage/kkm_last_timestamp [13:10:05]Write 4 bytes [13:10:05]NVStorageSaveData done [13:10:05]ExternCall_PrintAddStr [13:10:05]wPrintStart [13:10:05]Write to MH i2c: 01 00 00 AD 16 C3 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 07 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: 01 07 00 AD 16 00 00 00 00 00 FF 0F D8 [13:10:05]RasterBufferAndPrint [13:10:05]line Счет N : (1)215990 [13:10:05]line ИНН: 02508201610067 [13:10:05]line Контрольно-Кассовый Чек [13:10:05]line ПРОДАЖА [13:10:05]line ТРК (МРК, ГНК) : 22 [13:10:05]line Товар: 2710124130 [13:10:05]line Аи-92-К-5 [13:10:05]line 4.980 * 60.30 [13:10:05]line = 300.29 [13:10:05]line НДС 12% НСП 1% [13:10:05]line > о реализуемом товаре [13:10:05]line ОКРУГЛЕНИЕ: -0.29 [13:10:05]line ИТОГО: 300.00 [13:10:05]line Внесено: 300.00 [13:10:05]line СДАЧА: 0.00 [13:10:05]line НСП 1% : 2.66 [13:10:05]line НДС 12% : 31.89 [13:10:05]line Наличными: 300.00 [13:10:05]line Безнал.: 0.00 [13:10:05]line Место: АЗС № 102 "Партнер Нефть" [13:10:05]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:10:05]line СНО: Общий режим [13:10:05]line Чек 73 27.01.2024 13:10 [13:10:05]line Смена: 243 ФФД: 1.0 [13:10:05]line ЗНМ: 0300000040 [13:10:05]line РНМ: 0000000000092723 [13:10:05]line Версия ККМ: 001 [13:10:05]line ФМ: 0000000000875060 [13:10:05]line ФД: 48893 [13:10:05]line ФПД: 50713699787097 [13:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48893&fm=50713699787097&tin=02508201610067®Number=0000000000092723&sum=30000 [13:10:06]OFD Sender: Processing packet 48893 [packets to send 12, broken 11] [13:10:06]ProducePacketName [13:10:06]name=ofd_packets/00048893 [13:10:06]OFD Sender: To server: pG, [13:10:06]CommunicateWithHost lk.salyk.kg:30040 [13:10:06]ConnectInit lk.salyk.kg [13:10:06]written 0, free lines is 4095 [13:10:06]Connected sock=10 [13:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 66 F6 07 01 4B 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 AF 00 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FD BE 00 00 35 04 06 00 2E 1F B4 0F A1 59 9D 84 56 99 BB 37 6F F6 [13:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E8 3C 47 00 F0 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 35 30 36 30 10 04 04 00 FD BE 00 00 F4 03 04 00 AE AC B4 65 B6 04 01 00 00 40 C1 13 28 D1 24 72 33 [13:10:06]CommunicateWithHost err = 0 [13:10:06]CheckOFDResponse [13:10:06]1017 (14) - 77093643461234 [13:10:06]1041 (16) - 0000000000875060 [13:10:06]1040 (4) - 48893 [13:10:06]1012 (4) - 27.01.2024 07:11 [13:10:06]1206 (1) - 0 [13:10:06]OFD Sender: Remove packet 48893 [13:10:06]ProducePacketName [13:10:06]name=ofd_packets/00048893 [13:10:06]NVStorageDeleteData [13:10:06]Write to MH i2c: 01 00 00 D8 16 EE [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 D8 16 00 00 00 00 00 F5 0C F6 [13:10:06]RasterBufferAndPrint [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]written 0, free lines is 3324 [13:10:06]MH_Cut [13:10:06]Write to MH i2c: D1 01 00 DF 16 01 C7 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 01 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 01 00 DF 16 00 C6 [13:10:06]Write to MH i2c: 01 00 00 E0 16 F6 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]OFD Sender: No OFD packet to send [13:10:07]*** Cut start [13:10:07]*** Partial cut [13:10:07]*** CUTSNS_PIN = 1 [13:10:07]*** CUTSNS_PIN = 0 [13:10:07]*** Brake cut motor [13:10:07]Read from MH i2c: 01 [13:10:07]MH_I2C_Read... [13:10:07]*** Stop cut motor [13:10:07]*** Cut end [13:10:07]Read from MH i2c: 01 07 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 07 00 E0 16 00 00 00 00 00 FF 0F 0B [13:10:07]process_action close_receipt done [13:10:07]requested_data is exist [13:10:07]produce_requested_data [13:10:07]requested_item fm.sn is exist - process it [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 11 00 00 [13:10:07]Write to MH i2c: E2 08 00 E1 16 80 11 00 00 00 00 00 00 71 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 E1 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [13:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:10:07]wFMCommunicate OK [13:10:07]requested_item fd.num is exist - process it [13:10:07]SAM_PROTO_GetFieldsCounters [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 13 00 00 [13:10:07]Write to MH i2c: E2 08 00 E2 16 80 13 00 00 00 00 00 00 74 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 62 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 62 00 E2 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FD BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [13: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FD BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_GetFieldsCounters done [13:10:08]requested_item shift.num is exist - process it [13:10:08]requested_item shift.opened is exist - process it [13:10:08]req_shift_opened [13:10:08]FM_GetShiftState [13:10:08]SAM_PROTO_GetShiftState [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 13 01 00 [13:10:08]Write to MH i2c: E2 08 00 E3 16 80 13 01 00 00 00 00 00 76 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 E3 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 0D [13:10:08]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_GetShiftState done [13:10:08]FM_GetShiftState done [13:10:08]req_shift_opened done [13:10:08]requested_item shift.open_date is exist - process it [13:10:08]req_shift_open_date [13:10:08]req_shift_open_date done [13:10:08]produce_requested_data done [13:10:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48893,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:10:08]process_action_free close_receipt [13:10:08]json_value_free [13:10:08]json_value_free done [13:10:08]process_json_proto returns [13:10:08]Send response to host [13:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48893,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:10:08]free response buf [13:10:08]execute_script done [13:10:08]execute_script returns [13:10:08]free content buf [13:10:08]Sock 7.Close socket [13:10:08]Sock 7.Thread stoped [13:10:10]int [13:10:10]Write to MH i2c: 01 00 00 E4 16 FA [13:10:10]*** FLAG_PRN_KEY set [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 E4 16 00 08 00 00 00 FF 0F 17 [13:10:10]state=0 [13:10:10]Key pressed [13:10:10]Feed [13:10:10]Write to MH i2c: D8 00 00 E5 16 D2 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D8 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D8 01 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: D8 01 00 E5 16 00 D3 [13:10:10]int [13:10:10]Write to MH i2c: 01 00 00 E6 16 FC [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 E6 16 00 48 00 00 00 3C 00 87 [13:10:10]state=2 [13:10:10]Key pressed [13:10:10]int [13:10:10]Write to MH i2c: 01 00 00 E7 16 FD [13:10:10]*** FLAG_PRN_KEY reset [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 E7 16 00 00 00 00 00 FD 0F 10 [13:10:10]state=2 [13:10:10]Stop feed [13:10:11]int [13:10:11]Write to MH i2c: 01 00 00 E8 16 FE [13:10:11]*** FLAG_PRN_KEY set [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 E8 16 00 08 00 00 00 FF 0F 1B [13:10:11]state=0 [13:10:11]Key pressed [13:10:11]Feed [13:10:11]Write to MH i2c: D8 00 00 E9 16 D6 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: D8 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: D8 01 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: D8 01 00 E9 16 00 D7 [13:10:11]int [13:10:11]Write to MH i2c: 01 00 00 EA 16 00 [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 EA 16 00 48 00 00 00 3C 00 8B [13:10:11]state=2 [13:10:11]Key pressed [13:10:11]int [13:10:11]Write to MH i2c: 01 00 00 EB 16 01 [13:10:11]*** FLAG_PRN_KEY reset [13:10:11]Write i2c OK [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 [13:10:11]MH_I2C_Read... [13:10:11]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 F7 0F 0E [13:10:11]state=2 [13:10:11]Stop feed [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:50]accept exits with 9 [13:12:50]New connection [13:12:50]New thread 3066670436 created [13:12:50]Thread 3066813796 joined [13:12:50]Waiting for new connection... [13:12:50] Sock 9.Parse request [13:12:50]Sock 9.Check first char [13:12:50]Sock 9.First char is OK [13:12:50]request: POST /json_proto HTTP/1.0 [13:12:50]Method: POST [13:12:50]URL: /json_proto [13:12:50]Method is POST - this is cgi request [13:12:50]url: /json_proto [13:12:50]query_string will be loaded in cgi processing [13:12:50]execute_cgi json_proto POST (null) [13:12:50]execute_cgi path=json_proto method=POST [13:12:50]POST find Content-Length [13:12:50]Host: 172.17.56.67:8080 [13:12:50]Content-Length: 682 [13:12:50]Content-Type: application/json [13:12:50] [13:12:50]POST finish read [13:12:50]Found Content-Length = 682 [13:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 28.200, "sum" : 1700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:50]execute_script... [13:12:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 28.200, "sum" : 1700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:50]POST & json_proto [13:12:50]process_json_proto [13:12:50]json parsed OK: [13:12:50]protocol is kg_v1.0 [13:12:50]action value=close_receipt [13:12:50]process_action close_receipt [13:12:50]cmd_close_receipt [13:12:50]MH_GetDate [13:12:50]Write to MH i2c: F0 00 00 EC 16 F1 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 09 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: F0 09 00 EC 16 00 55 01 B5 65 26 5D 9E 65 F0 [13:12:50]GetLastDocTimeStamp 1706361007 [13:12:50]current date 1706361173 [13:12:50]FM_GetShiftState [13:12:50]SAM_PROTO_GetShiftState [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 13 01 00 [13:12:50]Write to MH i2c: E2 08 00 ED 16 80 13 01 00 00 00 00 00 80 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0E 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0E 00 ED 16 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 17 [13:12:50]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_GetShiftState done [13:12:50]FM_GetShiftState done [13:12:50]opened in 1706313770 [13:12:50]opened+sec_in_day 1706400170 [13:12:50]quantity*price = 170046 [13:12:50]sum+1 = 170047 [13:12:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 74 27.01.2024 13:12 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48894 ФПД: 115729309398500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131253&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48894&fm=115729309398500&tin=02508201610067®Number=0000000000092723&sum=170000 [13:12:51]StoreToDocumentArchive [13:12:51]shift 243 fd 48894 [13:12:51]save to /storage/0243/doc_00048894 [13:12:51]save last doc name /storage/0243/doc_00048894 to /storage/kkm_last_doc_name [13:12:51]save OK [13:12:51]Clear old archive folders... [13:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:51]tlvbuf is 0135D530 [13:12:51]SAM_PROTO_ClearQueue [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 09 00 00 [13:12:51]Write to MH i2c: E2 08 00 FA 16 80 09 00 00 00 00 00 00 82 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]SAM_PROTO_ClearQueue done [13:12:51]KKMCreateOFDPacket [13:12:51]OFDProtocolAddRootSTLVToBuf [13:12:51]FM_MakeSignedData [13:12:51]FM_MakeSignedData [13:12:51]SAM_PROTO_SignData [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 01 02 [13:12:51]Write to MH i2c: E2 08 00 FB 16 80 0D 01 02 00 00 00 00 8A [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=255 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 6E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 55 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BE 00 00 35 04 06 00 69 [13:12:51]Write to MH i2c: E2 02 01 FC 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 28 6E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 55 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BE 00 00 35 04 06 00 69 00 00 7B [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=10 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 02 02 05 41 54 60 75 E4 [13:12:51]Write to MH i2c: E2 0D 00 FD 16 80 0D 02 02 05 00 41 54 60 75 E4 00 00 E5 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 03 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [13:12:52]RAPDU: 90 00 [13:12:52]wFMCommunicate OK [13:12:52]wFMCommunicate request_size=4 [13:12:52]MH_SAM_APDU [13:12:52]CAPDU: 80 0D 03 02 [13:12:52]Write to MH i2c: E2 08 00 FE 16 80 0D 03 02 00 00 00 00 8F [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 0B 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 0B 00 FE 16 00 70 6D FA 02 0C 8F AD DF 90 00 90 [13:12:52]RAPDU: 70 6D FA 02 0C 8F AD DF 90 00 [13:12:52]wFMCommunicate OK [13:12:52]SAM_PROTO_SignData done [13:12:52]FM_MakeSignedData done [13:12:52]CreateOFDProtocolMessage [13:12:52]wFMCommunicate request_size=4 [13:12:52]MH_SAM_APDU [13:12:52]CAPDU: 80 11 00 00 [13:12:52]Write to MH i2c: E2 08 00 FF 16 80 11 00 00 00 00 00 00 8F [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]OFD Sender: No OFD packet to send [13:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:52]Read from MH i2c: E2 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 17 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: E2 17 00 FF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DC [13:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:12:52]wFMCommunicate OK [13:12:52]CreateOFDProtocolMessage done [13:12:52]OFDSenderStorePacket 48894 [13:12:52]StoreOFDPacket docnum=48894 [13:12:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 EF 07 01 0B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 6E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 55 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BE 00 00 35 04 06 00 69 41 54 60 75 E4 70 6D FA 02 0C 8F AD DF [13:12:52]CheckFolder [13:12:52]dirname=/storage/ofd_packets [13:12:52]CheckFolder done [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00048894 [13:12:52]NVStorageSaveData ofd_packets/00048894 [13:12:52]File name is /storage/ofd_packets/00048894 [13:12:52]Write 301 bytes [13:12:52]NVStorageSaveData done [13:12:52]OFDSenderStorePacket done [13:12:52]KKMCreateOFDPacket done [13:12:52]NVStorageSaveData kkm_last_timestamp [13:12:52]File name is /storage/kkm_last_timestamp [13:12:52]Write 4 bytes [13:12:52]NVStorageSaveData done [13:12:52]ExternCall_PrintAddStr [13:12:52]wPrintStart [13:12:52]Write to MH i2c: 01 00 00 00 17 17 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [13:12:52]RasterBufferAndPrint [13:12:52]line Счет N : (1)215991 [13:12:52]line ИНН: 02508201610067 [13:12:52]line Контрольно-Кассовый Чек [13:12:52]line ПРОДАЖА [13:12:52]line ТРК (МРК, ГНК) : 22 [13:12:52]line Товар: 2710124130 [13:12:52]line Аи-92-К-5 [13:12:52]line 28.200 * 60.30 [13:12:52]line = 1700.46 [13:12:52]line НДС 12% НСП 1% [13:12:52]line > о реализуемом товаре [13:12:52]line ОКРУГЛЕНИЕ: -0.46 [13:12:52]line ИТОГО: 1700.00 [13:12:52]line Внесено: 1700.00 [13:12:52]line СДАЧА: 0.00 [13:12:52]line НСП 1% : 15.05 [13:12:52]line НДС 12% : 180.58 [13:12:52]line Наличными: 1700.00 [13:12:52]line Безнал.: 0.00 [13:12:52]line Место: АЗС № 102 "Партнер Нефть" [13:12:52]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:12:52]line СНО: Общий режим [13:12:52]line Чек 74 27.01.2024 13:12 [13:12:52]line Смена: 243 ФФД: 1.0 [13:12:52]line ЗНМ: 0300000040 [13:12:52]line РНМ: 0000000000092723 [13:12:52]line Версия ККМ: 001 [13:12:52]line ФМ: 0000000000875060 [13:12:52]line ФД: 48894 [13:12:52]line ФПД: 115729309398500 [13:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131253&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48894&fm=115729309398500&tin=02508201610067®Number=0000000000092723&sum=170000 [13:12:52]OFD Sender: Processing packet 48894 [packets to send 12, broken 11] [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00048894 [13:12:52]OFD Sender: To server: pG, [13:12:52]CommunicateWithHost lk.salyk.kg:30040 [13:12:52]ConnectInit lk.salyk.kg [13:12:52]written 0, free lines is 4095 [13:12:52]Connected sock=10 [13:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 EF 07 01 0B BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 28 6E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 55 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BE 00 00 35 04 06 00 69 41 54 60 75 E4 70 6D FA 02 0C 8F AD DF [13:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C0 2E 47 00 C4 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FE BE 00 00 F4 03 04 00 54 AD B4 65 B6 04 01 00 00 90 81 E6 CE 18 26 5E 64 [13:12:52]CommunicateWithHost err = 0 [13:12:52]CheckOFDResponse [13:12:52]1017 (14) - 77093643461234 [13:12:52]1041 (16) - 0000000000875060 [13:12:52]1040 (4) - 48894 [13:12:52]1012 (4) - 27.01.2024 07:14 [13:12:52]1206 (1) - 0 [13:12:52]OFD Sender: Remove packet 48894 [13:12:52]ProducePacketName [13:12:52]name=ofd_packets/00048894 [13:12:52]NVStorageDeleteData [13:12:52]Write to MH i2c: 01 00 00 2B 17 42 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 2B 17 00 00 00 00 00 F3 0C 48 [13:12:52]RasterBufferAndPrint [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]line [13:12:52]written 0, free lines is 3321 [13:12:52]MH_Cut [13:12:52]Write to MH i2c: D1 01 00 32 17 01 1B [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 01 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: D1 01 00 32 17 00 1A [13:12:52]Write to MH i2c: 01 00 00 33 17 4A [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:53]OFD Sender: No OFD packet to send [13:12:53]*** Cut start [13:12:53]*** Partial cut [13:12:53]*** CUTSNS_PIN = 1 [13:12:53]*** CUTSNS_PIN = 0 [13:12:53]*** Brake cut motor [13:12:54]Read from MH i2c: 01 [13:12:54]MH_I2C_Read... [13:12:54]*** Stop cut motor [13:12:54]*** Cut end [13:12:54]Read from MH i2c: 01 07 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: 01 07 00 33 17 00 00 00 00 00 FF 0F 5F [13:12:54]process_action close_receipt done [13:12:54]requested_data is exist [13:12:54]produce_requested_data [13:12:54]requested_item fm.sn is exist - process it [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 11 00 00 [13:12:54]Write to MH i2c: E2 08 00 34 17 80 11 00 00 00 00 00 00 C5 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 17 00 34 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 12 [13:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:12:54]wFMCommunicate OK [13:12:54]requested_item fd.num is exist - process it [13:12:54]SAM_PROTO_GetFieldsCounters [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 00 00 [13:12:54]Write to MH i2c: E2 08 00 35 17 80 13 00 00 00 00 00 00 C8 [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 62 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 62 00 35 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FE BE 00 00 0E 04 04 00 F3 00 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 6E [13:12: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FE BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_GetFieldsCounters done [13:12:54]requested_item shift.num is exist - process it [13:12:54]requested_item shift.opened is exist - process it [13:12:54]req_shift_opened [13:12:54]FM_GetShiftState [13:12:54]SAM_PROTO_GetShiftState [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 01 00 [13:12:54]Write to MH i2c: E2 08 00 36 17 80 13 01 00 00 00 00 00 CA [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 36 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 61 [13:12:54]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_GetShiftState done [13:12:54]FM_GetShiftState done [13:12:54]req_shift_opened done [13:12:54]requested_item shift.open_date is exist - process it [13:12:54]req_shift_open_date [13:12:54]req_shift_open_date done [13:12:54]produce_requested_data done [13:12:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48894,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:12:54]process_action_free close_receipt [13:12:54]json_value_free [13:12:54]json_value_free done [13:12:54]process_json_proto returns [13:12:54]Send response to host [13:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48894,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:12:54]free response buf [13:12:54]execute_script done [13:12:54]execute_script returns [13:12:54]free content buf [13:12:54]Sock 9.Close socket [13:12:54]Sock 9.Thread stoped [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:32]accept exits with 7 [13:15:32]New connection [13:15:32]New thread 3066813796 created [13:15:32]Thread 3066670436 joined [13:15:32]Waiting for new connection... [13:15:32] Sock 7.Parse request [13:15:32]Sock 7.Check first char [13:15:32]Sock 7.First char is OK [13:15:32]request: POST /json_proto HTTP/1.0 [13:15:32]Method: POST [13:15:32]URL: /json_proto [13:15:32]Method is POST - this is cgi request [13:15:32]url: /json_proto [13:15:32]query_string will be loaded in cgi processing [13:15:32]execute_cgi json_proto POST (null) [13:15:32]execute_cgi path=json_proto method=POST [13:15:32]POST find Content-Length [13:15:32]Host: 172.17.56.67:8080 [13:15:32]Content-Length: 677 [13:15:32]Content-Type: application/json [13:15:32] [13:15:32]POST finish read [13:15:32]Found Content-Length = 677 [13:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:32]execute_script... [13:15:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:32]POST & json_proto [13:15:32]process_json_proto [13:15:32]json parsed OK: [13:15:32]protocol is kg_v1.0 [13:15:32]action value=close_receipt [13:15:32]process_action close_receipt [13:15:32]cmd_close_receipt [13:15:32]MH_GetDate [13:15:32]Write to MH i2c: F0 00 00 37 17 3D [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 09 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: F0 09 00 37 17 00 F8 01 B5 65 26 5D 9E 65 DF [13:15:32]GetLastDocTimeStamp 1706361173 [13:15:32]current date 1706361336 [13:15:32]FM_GetShiftState [13:15:32]SAM_PROTO_GetShiftState [13:15:32]wFMCommunicate request_size=4 [13:15:32]MH_SAM_APDU [13:15:32]CAPDU: 80 13 01 00 [13:15:32]Write to MH i2c: E2 08 00 38 17 80 13 01 00 00 00 00 00 CC [13:15:32]Write i2c OK [13:15:32]MH_I2C_Read... [13:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:32]Read from MH i2c: E2 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 [13:15:32]MH_I2C_Read... [13:15:32]Read from MH i2c: E2 0E 00 38 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 63 [13:15:32]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:15:32]wFMCommunicate OK [13:15:32]SAM_PROTO_GetShiftState done [13:15:32]FM_GetShiftState done [13:15:32]opened in 1706313770 [13:15:32]opened+sec_in_day 1706400170 [13:15:32]quantity*price = 40039 [13:15:32]sum+1 = 40040 [13:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 75 27.01.2024 13:15 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48895 ФПД: 151972221988048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131536&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48895&fm=151972221988048&tin=02508201610067®Number=0000000000092723&sum=40000 [13:15:33]StoreToDocumentArchive [13:15:33]shift 243 fd 48895 [13:15:33]save to /storage/0243/doc_00048895 [13:15:33]save last doc name /storage/0243/doc_00048895 to /storage/kkm_last_doc_name [13:15:33]save OK [13:15:33]Clear old archive folders... [13:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:33]tlvbuf is 0134F280 [13:15:33]SAM_PROTO_ClearQueue [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 09 00 00 [13:15:33]Write to MH i2c: E2 08 00 45 17 80 09 00 00 00 00 00 00 CE [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 [13:15:33]MH_I2C_Read... [13:15:33]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [13:15:33]RAPDU: 90 00 [13:15:33]wFMCommunicate OK [13:15:33]SAM_PROTO_ClearQueue done [13:15:33]KKMCreateOFDPacket [13:15:33]OFDProtocolAddRootSTLVToBuf [13:15:33]FM_MakeSignedData [13:15:33]FM_MakeSignedData [13:15:33]SAM_PROTO_SignData [13:15:33]wFMCommunicate request_size=4 [13:15:33]MH_SAM_APDU [13:15:33]CAPDU: 80 0D 01 02 [13:15:33]Write to MH i2c: E2 08 00 46 17 80 0D 01 02 00 00 00 00 D6 [13:15:33]Write i2c OK [13:15:33]MH_I2C_Read... [13:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:33]Read from MH i2c: E2 [13:15:33]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=255 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F8 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BE 00 00 35 04 06 00 8A [13:15:34]Write to MH i2c: E2 02 01 47 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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F8 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BE 00 00 35 04 06 00 8A 00 00 E8 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 47 17 00 90 00 D2 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=10 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 02 02 05 37 CA 4E AC D0 [13:15:34]Write to MH i2c: E2 0D 00 48 17 80 0D 02 02 05 00 37 CA 4E AC D0 00 00 AE [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 03 00 48 17 00 90 00 D3 [13:15:34]RAPDU: 90 00 [13:15:34]wFMCommunicate OK [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 0D 03 02 [13:15:34]Write to MH i2c: E2 08 00 49 17 80 0D 03 02 00 00 00 00 DB [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0B 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 0B 00 49 17 00 E1 03 B2 C9 15 C8 99 3C 90 00 ED [13:15:34]RAPDU: E1 03 B2 C9 15 C8 99 3C 90 00 [13:15:34]wFMCommunicate OK [13:15:34]SAM_PROTO_SignData done [13:15:34]FM_MakeSignedData done [13:15:34]CreateOFDProtocolMessage [13:15:34]wFMCommunicate request_size=4 [13:15:34]MH_SAM_APDU [13:15:34]CAPDU: 80 11 00 00 [13:15:34]Write to MH i2c: E2 08 00 4A 17 80 11 00 00 00 00 00 00 DB [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:34]Read from MH i2c: E2 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: E2 17 00 4A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 28 [13:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:15:34]wFMCommunicate OK [13:15:34]CreateOFDProtocolMessage done [13:15:34]OFDSenderStorePacket 48895 [13:15:34]StoreOFDPacket docnum=48895 [13:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D3 E0 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F8 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BE 00 00 35 04 06 00 8A 37 CA 4E AC D0 E1 03 B2 C9 15 C8 99 3C [13:15:34]CheckFolder [13:15:34]dirname=/storage/ofd_packets [13:15:34]CheckFolder done [13:15:34]ProducePacketName [13:15:34]name=ofd_packets/00048895 [13:15:34]NVStorageSaveData ofd_packets/00048895 [13:15:34]File name is /storage/ofd_packets/00048895 [13:15:34]Write 301 bytes [13:15:34]NVStorageSaveData done [13:15:34]OFDSenderStorePacket done [13:15:34]KKMCreateOFDPacket done [13:15:34]NVStorageSaveData kkm_last_timestamp [13:15:34]File name is /storage/kkm_last_timestamp [13:15:34]Write 4 bytes [13:15:34]NVStorageSaveData done [13:15:34]ExternCall_PrintAddStr [13:15:34]wPrintStart [13:15:34]Write to MH i2c: 01 00 00 4B 17 62 [13:15:34]Write i2c OK [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 [13:15:34]MH_I2C_Read... [13:15:34]Read from MH i2c: 01 07 00 4B 17 00 00 00 00 00 FF 0F 77 [13:15:34]RasterBufferAndPrint [13:15:34]line Счет N : (1)215992 [13:15:34]line ИНН: 02508201610067 [13:15:34]line Контрольно-Кассовый Чек [13:15:34]line ПРОДАЖА [13:15:34]line ТРК (МРК, ГНК) : 12 [13:15:34]line Товар: 2710124130 [13:15:34]line Аи-92-К-5 [13:15:34]line 6.640 * 60.30 [13:15:34]line = 400.39 [13:15:34]line НДС 12% НСП 1% [13:15:34]line > о реализуемом товаре [13:15:34]line ОКРУГЛЕНИЕ: -0.39 [13:15:34]line ИТОГО: 400.00 [13:15:34]line Внесено: 400.00 [13:15:34]line СДАЧА: 0.00 [13:15:34]line НСП 1% : 3.54 [13:15:34]line НДС 12% : 42.52 [13:15:34]line Наличными: 400.00 [13:15:34]line Безнал.: 0.00 [13:15:34]line Место: АЗС № 102 "Партнер Нефть" [13:15:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:15:34]line СНО: Общий режим [13:15:34]line Чек 75 27.01.2024 13:15 [13:15:34]line Смена: 243 ФФД: 1.0 [13:15:34]line ЗНМ: 0300000040 [13:15:34]line РНМ: 0000000000092723 [13:15:34]line Версия ККМ: 001 [13:15:34]line ФМ: 0000000000875060 [13:15:34]line ФД: 48895 [13:15:34]line ФПД: 151972221988048 [13:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131536&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48895&fm=151972221988048&tin=02508201610067®Number=0000000000092723&sum=40000 [13:15:34]OFD Sender: Processing packet 48895 [packets to send 12, broken 11] [13:15:34]ProducePacketName [13:15:34]name=ofd_packets/00048895 [13:15:34]OFD Sender: To server: pG, [13:15:34]CommunicateWithHost lk.salyk.kg:30040 [13:15:34]ConnectInit lk.salyk.kg [13:15:34]written 0, free lines is 4095 [13:15:34]Connected sock=10 [13:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D3 E0 07 01 E4 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F8 01 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BE 00 00 35 04 06 00 8A 37 CA 4E AC D0 E1 03 B2 C9 15 C8 99 3C [13:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DE AA 47 00 4C E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 FF BE 00 00 F4 03 04 00 F6 AD B4 65 B6 04 01 00 00 15 D0 97 B1 D4 B7 94 1B [13:15:35]CommunicateWithHost err = 0 [13:15:35]CheckOFDResponse [13:15:35]1017 (14) - 77093643461234 [13:15:35]1041 (16) - 0000000000875060 [13:15:35]1040 (4) - 48895 [13:15:35]1012 (4) - 27.01.2024 07:17 [13:15:35]1206 (1) - 0 [13:15:35]OFD Sender: Remove packet 48895 [13:15:35]ProducePacketName [13:15:35]name=ofd_packets/00048895 [13:15:35]NVStorageDeleteData [13:15:35]Write to MH i2c: 01 00 00 76 17 8D [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: 01 07 00 76 17 00 00 00 00 00 EA 0C 8A [13:15:35]RasterBufferAndPrint [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]line [13:15:35]written 0, free lines is 3312 [13:15:35]MH_Cut [13:15:35]Write to MH i2c: D1 01 00 7D 17 01 66 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 01 00 [13:15:35]MH_I2C_Read... [13:15:35]Read from MH i2c: D1 01 00 7D 17 00 65 [13:15:35]Write to MH i2c: 01 00 00 7E 17 95 [13:15:35]Write i2c OK [13:15:35]MH_I2C_Read... [13:15:35]OFD Sender: No OFD packet to send [13:15:35]*** Cut start [13:15:35]*** Partial cut [13:15:35]*** CUTSNS_PIN = 1 [13:15:35]*** CUTSNS_PIN = 0 [13:15:36]*** Brake cut motor [13:15:36]Read from MH i2c: 01 [13:15:36]MH_I2C_Read... [13:15:36]*** Stop cut motor [13:15:36]*** Cut end [13:15:36]Read from MH i2c: 01 07 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 FF 0F AA [13:15:36]process_action close_receipt done [13:15:36]requested_data is exist [13:15:36]produce_requested_data [13:15:36]requested_item fm.sn is exist - process it [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 11 00 00 [13:15:36]Write to MH i2c: E2 08 00 7F 17 80 11 00 00 00 00 00 00 10 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 17 00 [13:15:36]MH_I2C_Read... [13:15:36]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 35 30 36 30 90 00 5D [13:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:15:36]wFMCommunicate OK [13:15:36]requested_item fd.num is exist - process it [13:15:36]SAM_PROTO_GetFieldsCounters [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 13 00 00 [13:15:36]Write to MH i2c: E2 08 00 80 17 80 13 00 00 00 00 00 00 13 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 62 00 [13:15:36]MH_I2C_Read... [13:15:36]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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FF BE 00 00 0E 04 04 00 F3 00 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 BD [13:15: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 FF BE 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:36]wFMCommunicate OK [13:15:36]SAM_PROTO_GetFieldsCounters done [13:15:36]requested_item shift.num is exist - process it [13:15:36]requested_item shift.opened is exist - process it [13:15:36]req_shift_opened [13:15:36]FM_GetShiftState [13:15:36]SAM_PROTO_GetShiftState [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 13 01 00 [13:15:36]Write to MH i2c: E2 08 00 81 17 80 13 01 00 00 00 00 00 15 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 81 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AC [13:15:36]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:15:36]wFMCommunicate OK [13:15:36]SAM_PROTO_GetShiftState done [13:15:36]FM_GetShiftState done [13:15:36]req_shift_opened done [13:15:36]requested_item shift.open_date is exist - process it [13:15:36]req_shift_open_date [13:15:36]req_shift_open_date done [13:15:36]produce_requested_data done [13:15:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48895,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:15:36]process_action_free close_receipt [13:15:36]json_value_free [13:15:36]json_value_free done [13:15:36]process_json_proto returns [13:15:36]Send response to host [13:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48895,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:15:36]free response buf [13:15:36]execute_script done [13:15:36]execute_script returns [13:15:36]free content buf [13:15:36]Sock 7.Close socket [13:15:36]Sock 7.Thread stoped [13:15:40]OFD Sender: No OFD packet to send [13:15:45]OFD Sender: No OFD packet to send [13:15:50]OFD Sender: No OFD packet to send [13:15:55]OFD Sender: No OFD packet to send [13:16:00]OFD Sender: No OFD packet to send [13:16:05]OFD Sender: No OFD packet to send [13:16:10]OFD Sender: No OFD packet to send [13:16:15]OFD Sender: No OFD packet to send [13:16:20]OFD Sender: No OFD packet to send [13:16:25]OFD Sender: No OFD packet to send [13:16:30]OFD Sender: No OFD packet to send [13:16:35]OFD Sender: No OFD packet to send [13:16:40]OFD Sender: No OFD packet to send [13:16:45]OFD Sender: No OFD packet to send [13:16:50]OFD Sender: No OFD packet to send [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:17]accept exits with 9 [13:17:17]New connection [13:17:17]New thread 3066670436 created [13:17:17]Thread 3066813796 joined [13:17:17]Waiting for new connection... [13:17:17] Sock 9.Parse request [13:17:17]Sock 9.Check first char [13:17:17]Sock 9.First char is OK [13:17:17]request: POST /json_proto HTTP/1.0 [13:17:17]Method: POST [13:17:17]URL: /json_proto [13:17:17]Method is POST - this is cgi request [13:17:17]url: /json_proto [13:17:17]query_string will be loaded in cgi processing [13:17:17]execute_cgi json_proto POST (null) [13:17:17]execute_cgi path=json_proto method=POST [13:17:17]POST find Content-Length [13:17:17]Host: 172.17.56.67:8080 [13:17:17]Content-Length: 677 [13:17:17]Content-Type: application/json [13:17:17] [13:17:17]POST finish read [13:17:17]Found Content-Length = 677 [13:17:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.160, "sum" : 190.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:17]execute_script... [13:17: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)215993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.160, "sum" : 190.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:17]POST & json_proto [13:17:17]process_json_proto [13:17:17]json parsed OK: [13:17:17]protocol is kg_v1.0 [13:17:17]action value=close_receipt [13:17:17]process_action close_receipt [13:17:17]cmd_close_receipt [13:17:17]MH_GetDate [13:17:17]Write to MH i2c: F0 00 00 82 17 88 [13:17:17]Write i2c OK [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: F0 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: F0 09 00 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: F0 09 00 82 17 00 61 02 B5 65 26 5D 9E 65 94 [13:17:17]GetLastDocTimeStamp 1706361336 [13:17:17]current date 1706361441 [13:17:17]FM_GetShiftState [13:17:17]SAM_PROTO_GetShiftState [13:17:17]wFMCommunicate request_size=4 [13:17:17]MH_SAM_APDU [13:17:17]CAPDU: 80 13 01 00 [13:17:17]Write to MH i2c: E2 08 00 83 17 80 13 01 00 00 00 00 00 17 [13:17:17]Write i2c OK [13:17:17]MH_I2C_Read... [13:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:17]Read from MH i2c: E2 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: E2 0E 00 [13:17:17]MH_I2C_Read... [13:17:17]Read from MH i2c: E2 0E 00 83 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 AE [13:17:17]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:17:17]wFMCommunicate OK [13:17:17]SAM_PROTO_GetShiftState done [13:17:17]FM_GetShiftState done [13:17:17]opened in 1706313770 [13:17:17]opened+sec_in_day 1706400170 [13:17:17]quantity*price = 19054 [13:17:17]sum+1 = 19056 [13:17:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.23 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 76 27.01.2024 13:17 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48896 ФПД: 79518640613564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131721&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48896&fm=79518640613564&tin=02508201610067®Number=0000000000092723&sum=19000 [13:17:19]StoreToDocumentArchive [13:17:19]shift 243 fd 48896 [13:17:19]save to /storage/0243/doc_00048896 [13:17:19]save last doc name /storage/0243/doc_00048896 to /storage/kkm_last_doc_name [13:17:19]save OK [13:17:19]Clear old archive folders... [13:17:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:19]tlvbuf is 0135D530 [13:17:19]SAM_PROTO_ClearQueue [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 09 00 00 [13:17:19]Write to MH i2c: E2 08 00 90 17 80 09 00 00 00 00 00 00 19 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 90 17 00 90 00 1B [13:17:19]RAPDU: 90 00 [13:17:19]wFMCommunicate OK [13:17:19]SAM_PROTO_ClearQueue done [13:17:19]KKMCreateOFDPacket [13:17:19]OFDProtocolAddRootSTLVToBuf [13:17:19]FM_MakeSignedData [13:17:19]FM_MakeSignedData [13:17:19]SAM_PROTO_SignData [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 0D 01 02 [13:17:19]Write to MH i2c: E2 08 00 91 17 80 0D 01 02 00 00 00 00 21 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 91 17 00 90 00 1C [13:17:19]RAPDU: 90 00 [13:17:19]wFMCommunicate OK [13:17:19]wFMCommunicate request_size=255 [13:17:19]MH_SAM_APDU [13:17: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 58 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6F 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 07 00 00 00 00 07 04 06 00 38 4A 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 61 02 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 BF 00 00 35 04 06 00 48 [13:17:19]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 58 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6F 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 07 00 00 00 00 07 04 06 00 38 4A 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 61 02 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 BF 00 00 35 04 06 00 48 00 00 43 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 92 17 00 90 00 1D [13:17:19]RAPDU: 90 00 [13:17:19]wFMCommunicate OK [13:17:19]wFMCommunicate request_size=10 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 0D 02 02 05 52 60 53 A8 BC [13:17:19]Write to MH i2c: E2 0D 00 93 17 80 0D 02 02 05 00 52 60 53 A8 BC 00 00 97 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 03 00 93 17 00 90 00 1E [13:17:19]RAPDU: 90 00 [13:17:19]wFMCommunicate OK [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 0D 03 02 [13:17:19]Write to MH i2c: E2 08 00 94 17 80 0D 03 02 00 00 00 00 26 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0B 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 0B 00 94 17 00 32 4B 1C C9 E5 45 11 87 90 00 4B [13:17:19]RAPDU: 32 4B 1C C9 E5 45 11 87 90 00 [13:17:19]wFMCommunicate OK [13:17:19]SAM_PROTO_SignData done [13:17:19]FM_MakeSignedData done [13:17:19]CreateOFDProtocolMessage [13:17:19]wFMCommunicate request_size=4 [13:17:19]MH_SAM_APDU [13:17:19]CAPDU: 80 11 00 00 [13:17:19]Write to MH i2c: E2 08 00 95 17 80 11 00 00 00 00 00 00 26 [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:19]Read from MH i2c: E2 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: E2 17 00 [13:17:19]MH_I2C_Read... [13:17:19]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 35 30 36 30 90 00 73 [13:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:17:19]wFMCommunicate OK [13:17:19]CreateOFDProtocolMessage done [13:17:19]OFDSenderStorePacket 48896 [13:17:19]StoreOFDPacket docnum=48896 [13:17:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A6 95 07 01 48 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6F 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 07 00 00 00 00 07 04 06 00 38 4A 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 61 02 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 BF 00 00 35 04 06 00 48 52 60 53 A8 BC 32 4B 1C C9 E5 45 11 87 [13:17:19]CheckFolder [13:17:19]dirname=/storage/ofd_packets [13:17:19]CheckFolder done [13:17:19]ProducePacketName [13:17:19]name=ofd_packets/00048896 [13:17:19]NVStorageSaveData ofd_packets/00048896 [13:17:19]File name is /storage/ofd_packets/00048896 [13:17:19]Write 301 bytes [13:17:19]NVStorageSaveData done [13:17:19]OFDSenderStorePacket done [13:17:19]KKMCreateOFDPacket done [13:17:19]NVStorageSaveData kkm_last_timestamp [13:17:19]File name is /storage/kkm_last_timestamp [13:17:19]Write 4 bytes [13:17:19]NVStorageSaveData done [13:17:19]ExternCall_PrintAddStr [13:17:19]wPrintStart [13:17:19]Write to MH i2c: 01 00 00 96 17 AD [13:17:19]Write i2c OK [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 07 00 [13:17:19]MH_I2C_Read... [13:17:19]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 FF 0F C2 [13:17:19]RasterBufferAndPrint [13:17:19]line Счет N : (1)215993 [13:17:19]line ИНН: 02508201610067 [13:17:19]line Контрольно-Кассовый Чек [13:17:19]line ПРОДАЖА [13:17:19]line ТРК (МРК, ГНК) : 12 [13:17:19]line Товар: 2710124130 [13:17:19]line Аи-92-К-5 [13:17:19]line 3.160 * 60.30 [13:17:19]line = 190.55 [13:17:19]line НДС 12% НСП 1% [13:17:19]line > о реализуемом товаре [13:17:19]line ОКРУГЛЕНИЕ: -0.55 [13:17:19]line ИТОГО: 190.00 [13:17:19]line Внесено: 190.00 [13:17:19]line СДАЧА: 0.00 [13:17:19]line НСП 1% : 1.69 [13:17:19]line НДС 12% : 20.23 [13:17:19]line Наличными: 190.00 [13:17:19]line Безнал.: 0.00 [13:17:19]line Место: АЗС № 102 "Партнер Нефть" [13:17:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:17:19]line СНО: Общий режим [13:17:19]line Чек 76 27.01.2024 13:17 [13:17:19]line Смена: 243 ФФД: 1.0 [13:17:19]line ЗНМ: 0300000040 [13:17:19]line РНМ: 0000000000092723 [13:17:19]line Версия ККМ: 001 [13:17:19]line ФМ: 0000000000875060 [13:17:19]line ФД: 48896 [13:17:19]line ФПД: 79518640613564 [13:17:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T131721&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48896&fm=79518640613564&tin=02508201610067®Number=0000000000092723&sum=19000 [13:17:19]OFD Sender: Processing packet 48896 [packets to send 12, broken 11] [13:17:19]ProducePacketName [13:17:19]name=ofd_packets/00048896 [13:17:19]OFD Sender: To server: pG, [13:17:19]CommunicateWithHost lk.salyk.kg:30040 [13:17:19]ConnectInit lk.salyk.kg [13:17:19]written 0, free lines is 4095 [13:17:20]Connected sock=10 [13:17:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A6 95 07 01 48 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 6F 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 07 00 00 00 00 07 04 06 00 38 4A 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 61 02 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 00 BF 00 00 35 04 06 00 48 52 60 53 A8 BC 32 4B 1C C9 E5 45 11 87 [13:17:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 B9 EC 47 00 C7 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 35 30 36 30 10 04 04 00 00 BF 00 00 F4 03 04 00 5F AE B4 65 B6 04 01 00 00 ED 3A A6 FE 3F 6C 47 9E [13:17:20]CommunicateWithHost err = 0 [13:17:20]CheckOFDResponse [13:17:20]1017 (14) - 77093643461234 [13:17:20]1041 (16) - 0000000000875060 [13:17:20]1040 (4) - 48896 [13:17:20]1012 (4) - 27.01.2024 07:18 [13:17:20]1206 (1) - 0 [13:17:20]OFD Sender: Remove packet 48896 [13:17:20]ProducePacketName [13:17:20]name=ofd_packets/00048896 [13:17:20]NVStorageDeleteData [13:17:20]Write to MH i2c: 01 00 00 C1 17 D8 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: 01 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: 01 07 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: 01 07 00 C1 17 00 00 00 00 00 E6 0C D1 [13:17:20]RasterBufferAndPrint [13:17:20]line [13:17:20]line [13:17:20]line [13:17:20]line [13:17:20]line [13:17:20]written 0, free lines is 3308 [13:17:20]MH_Cut [13:17:20]Write to MH i2c: D1 01 00 C8 17 01 B1 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: D1 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: D1 01 00 [13:17:20]MH_I2C_Read... [13:17:20]Read from MH i2c: D1 01 00 C8 17 00 B0 [13:17:20]Write to MH i2c: 01 00 00 C9 17 E0 [13:17:20]Write i2c OK [13:17:20]MH_I2C_Read... [13:17:20]OFD Sender: No OFD packet to send [13:17:21]*** Cut start [13:17:21]*** Partial cut [13:17:21]*** CUTSNS_PIN = 1 [13:17:21]*** CUTSNS_PIN = 0 [13:17:21]*** Brake cut motor [13:17:21]Read from MH i2c: 01 [13:17:21]MH_I2C_Read... [13:17:21]*** Stop cut motor [13:17:21]*** Cut end [13:17:21]Read from MH i2c: 01 07 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: 01 07 00 C9 17 00 00 00 00 00 FF 0F F5 [13:17:21]process_action close_receipt done [13:17:21]requested_data is exist [13:17:21]produce_requested_data [13:17:21]requested_item fm.sn is exist - process it [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 11 00 00 [13:17:21]Write to MH i2c: E2 08 00 CA 17 80 11 00 00 00 00 00 00 5B [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 17 00 CA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A8 [13:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:17:21]wFMCommunicate OK [13:17:21]requested_item fd.num is exist - process it [13:17:21]SAM_PROTO_GetFieldsCounters [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 13 00 00 [13:17:21]Write to MH i2c: E2 08 00 CB 17 80 13 00 00 00 00 00 00 5E [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 62 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 62 00 CB 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 00 BF 00 00 0E 04 04 00 F3 00 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 0D [13:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 00 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_GetFieldsCounters done [13:17:21]requested_item shift.num is exist - process it [13:17:21]requested_item shift.opened is exist - process it [13:17:21]req_shift_opened [13:17:21]FM_GetShiftState [13:17:21]SAM_PROTO_GetShiftState [13:17:21]wFMCommunicate request_size=4 [13:17:21]MH_SAM_APDU [13:17:21]CAPDU: 80 13 01 00 [13:17:21]Write to MH i2c: E2 08 00 CC 17 80 13 01 00 00 00 00 00 60 [13:17:21]Write i2c OK [13:17:21]MH_I2C_Read... [13:17:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:21]Read from MH i2c: E2 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 [13:17:21]MH_I2C_Read... [13:17:21]Read from MH i2c: E2 0E 00 CC 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F7 [13:17:21]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:17:21]wFMCommunicate OK [13:17:21]SAM_PROTO_GetShiftState done [13:17:21]FM_GetShiftState done [13:17:21]req_shift_opened done [13:17:21]requested_item shift.open_date is exist - process it [13:17:21]req_shift_open_date [13:17:21]req_shift_open_date done [13:17:21]produce_requested_data done [13:17:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48896,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:17:21]process_action_free close_receipt [13:17:21]json_value_free [13:17:21]json_value_free done [13:17:21]process_json_proto returns [13:17:21]Send response to host [13:17:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48896,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:17:21]free response buf [13:17:21]execute_script done [13:17:21]execute_script returns [13:17:21]free content buf [13:17:21]Sock 9.Close socket [13:17:21]Sock 9.Thread stoped [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:18]accept exits with 7 [13:23:18]New connection [13:23:18]New thread 3066813796 created [13:23:18]Thread 3066670436 joined [13:23:18]Waiting for new connection... [13:23:18] Sock 7.Parse request [13:23:18]Sock 7.Check first char [13:23:18]Sock 7.First char is OK [13:23:18]request: POST /json_proto HTTP/1.0 [13:23:18]Method: POST [13:23:18]URL: /json_proto [13:23:18]Method is POST - this is cgi request [13:23:18]url: /json_proto [13:23:18]query_string will be loaded in cgi processing [13:23:18]execute_cgi json_proto POST (null) [13:23:18]execute_cgi path=json_proto method=POST [13:23:18]POST find Content-Length [13:23:18]Host: 172.17.56.67:8080 [13:23:18]Content-Length: 805 [13:23:18]Content-Type: application/json [13:23:18] [13:23:18]POST finish read [13:23:18]Found Content-Length = 805 [13:23:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.630, "sum" : 399.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 399.79 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:18]execute_script... [13:23: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)215994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.630, "sum" : 399.79, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 399.79 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:18]POST & json_proto [13:23:18]process_json_proto [13:23:18]json parsed OK: [13:23:18]protocol is kg_v1.0 [13:23:18]action value=close_receipt [13:23:18]process_action close_receipt [13:23:18]cmd_close_receipt [13:23:18]MH_GetDate [13:23:18]Write to MH i2c: F0 00 00 CD 17 D3 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: F0 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: F0 09 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: F0 09 00 CD 17 00 C9 03 B5 65 26 5D 9E 65 48 [13:23:18]GetLastDocTimeStamp 1706361441 [13:23:18]current date 1706361801 [13:23:18]FM_GetShiftState [13:23:18]SAM_PROTO_GetShiftState [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 01 00 [13:23:18]Write to MH i2c: E2 08 00 CE 17 80 13 01 00 00 00 00 00 62 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 0E 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 0E 00 CE 17 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F9 [13:23:18]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:23:18]wFMCommunicate OK [13:23:18]SAM_PROTO_GetShiftState done [13:23:18]FM_GetShiftState done [13:23:18]opened in 1706313770 [13:23:18]opened+sec_in_day 1706400170 [13:23:18]quantity*price = 39978 [13:23:18]sum+1 = 39980 [13:23:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 399.79 НСП 1% : 3.54 НДС 12% : 42.46 Наличными: 0.00 Безнал.: 399.79 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 77 27.01.2024 13:23 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875060 ФД: 48897 ФПД: 10233794972814 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132321&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48897&fm=10233794972814&tin=02508201610067®Number=0000000000092723&sum=39979 [13:23:19]StoreToDocumentArchive [13:23:19]shift 243 fd 48897 [13:23:19]save to /storage/0243/doc_00048897 [13:23:19]save last doc name /storage/0243/doc_00048897 to /storage/kkm_last_doc_name [13:23:19]save OK [13:23:19]Clear old archive folders... [13:23:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:19]tlvbuf is 01197860 [13:23:19]SAM_PROTO_ClearQueue [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 09 00 00 [13:23:19]Write to MH i2c: E2 08 00 DB 17 80 09 00 00 00 00 00 00 64 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 DB 17 00 90 00 66 [13:23:19]RAPDU: 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_ClearQueue done [13:23:19]KKMCreateOFDPacket [13:23:19]OFDProtocolAddRootSTLVToBuf [13:23:19]FM_MakeSignedData [13:23:19]FM_MakeSignedData [13:23:19]SAM_PROTO_SignData [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 0D 01 02 [13:23:19]Write to MH i2c: E2 08 00 DC 17 80 0D 01 02 00 00 00 00 6C [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 DC 17 00 90 00 67 [13:23:19]RAPDU: 90 00 [13:23:19]wFMCommunicate OK [13:23:19]wFMCommunicate request_size=255 [13:23:19]MH_SAM_APDU [13:23: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 E6 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 96 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 03 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 BF 00 00 35 04 06 00 09 [13:23:19]Write to MH i2c: E2 02 01 DD 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 E6 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 96 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 03 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 BF 00 00 35 04 06 00 09 00 00 5F [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 DD 17 00 90 00 68 [13:23:19]RAPDU: 90 00 [13:23:19]wFMCommunicate OK [13:23:19]wFMCommunicate request_size=10 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 0D 02 02 05 4E BD B6 CC 8E [13:23:19]Write to MH i2c: E2 0D 00 DE 17 80 0D 02 02 05 00 4E BD B6 CC 8E 00 00 94 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 03 00 DE 17 00 90 00 69 [13:23:19]RAPDU: 90 00 [13:23:19]wFMCommunicate OK [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 0D 03 02 [13:23:19]Write to MH i2c: E2 08 00 DF 17 80 0D 03 02 00 00 00 00 71 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0B 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0B 00 DF 17 00 AA 56 D6 65 5A 32 F0 69 90 00 92 [13:23:19]RAPDU: AA 56 D6 65 5A 32 F0 69 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_SignData done [13:23:19]FM_MakeSignedData done [13:23:19]CreateOFDProtocolMessage [13:23:19]wFMCommunicate request_size=4 [13:23:19]MH_SAM_APDU [13:23:19]CAPDU: 80 11 00 00 [13:23:19]Write to MH i2c: E2 08 00 E0 17 80 11 00 00 00 00 00 00 71 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 17 00 E0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [13:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:23:19]wFMCommunicate OK [13:23:19]CreateOFDProtocolMessage done [13:23:19]OFDSenderStorePacket 48897 [13:23:19]StoreOFDPacket docnum=48897 [13:23:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 46 07 01 59 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 96 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 03 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 BF 00 00 35 04 06 00 09 4E BD B6 CC 8E AA 56 D6 65 5A 32 F0 69 [13:23:19]CheckFolder [13:23:19]dirname=/storage/ofd_packets [13:23:19]CheckFolder done [13:23:19]ProducePacketName [13:23:19]name=ofd_packets/00048897 [13:23:19]NVStorageSaveData ofd_packets/00048897 [13:23:19]File name is /storage/ofd_packets/00048897 [13:23:19]Write 301 bytes [13:23:19]NVStorageSaveData done [13:23:19]OFDSenderStorePacket done [13:23:19]KKMCreateOFDPacket done [13:23:19]NVStorageSaveData kkm_last_timestamp [13:23:19]File name is /storage/kkm_last_timestamp [13:23:19]Write 4 bytes [13:23:19]NVStorageSaveData done [13:23:19]ExternCall_PrintAddStr [13:23:19]wPrintStart [13:23:19]Write to MH i2c: 01 00 00 E1 17 F8 [13:23:19]Write i2c OK [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: 01 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: 01 07 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: 01 07 00 E1 17 00 00 00 00 00 FF 0F 0D [13:23:19]RasterBufferAndPrint [13:23:19]line Счет N : (1)215994 [13:23:19]line ИНН: 02508201610067 [13:23:19]line Контрольно-Кассовый Чек [13:23:19]line ПРОДАЖА [13:23:19]line ТРК (МРК, ГНК) : 22 [13:23:19]line Товар: 2710124130 [13:23:19]line Аи-92-К-5 [13:23:19]line 6.630 * 60.30 [13:23:19]line = 399.79 [13:23:19]line НДС 12% НСП 1% [13:23:19]line > о реализуемом товаре [13:23:19]line ИТОГО: 399.79 [13:23:19]line НСП 1% : 3.54 [13:23:19]line НДС 12% : 42.46 [13:23:19]line Наличными: 0.00 [13:23:19]line Безнал.: 399.79 [13:23:19]line Место: АЗС № 102 "Партнер Нефть" [13:23:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:23:19]line СНО: Общий режим [13:23:19]line Чек 77 27.01.2024 13:23 [13:23:19]line Смена: 243 ФФД: 1.0 [13:23:19]line ЗНМ: 0300000040 [13:23:19]line РНМ: 0000000000092723 [13:23:19]line Версия ККМ: 001 [13:23:19]line Платежная система: О! деньги [13:23:19]line ФМ: 0000000000875060 [13:23:19]line ФД: 48897 [13:23:19]line ФПД: 10233794972814 [13:23:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132321&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48897&fm=10233794972814&tin=02508201610067®Number=0000000000092723&sum=39979 [13:23:20]OFD Sender: Processing packet 48897 [packets to send 12, broken 11] [13:23:20]ProducePacketName [13:23:20]name=ofd_packets/00048897 [13:23:20]OFD Sender: To server: pG, [13:23:20]CommunicateWithHost lk.salyk.kg:30040 [13:23:20]ConnectInit lk.salyk.kg [13:23:20]written 0, free lines is 4095 [13:23:20]Connected sock=10 [13:23:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D0 46 07 01 59 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 2B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 96 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 03 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 BF 00 00 35 04 06 00 09 4E BD B6 CC 8E AA 56 D6 65 5A 32 F0 69 [13:23:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E9 0E 47 00 58 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 01 BF 00 00 F4 03 04 00 C8 AF B4 65 B6 04 01 00 00 F1 3C E7 4D 77 16 BA 68 [13:23:20]CommunicateWithHost err = 0 [13:23:20]CheckOFDResponse [13:23:20]1017 (14) - 77093643461234 [13:23:20]1041 (16) - 0000000000875060 [13:23:20]1040 (4) - 48897 [13:23:20]1012 (4) - 27.01.2024 07:24 [13:23:20]1206 (1) - 0 [13:23:20]OFD Sender: Remove packet 48897 [13:23:20]ProducePacketName [13:23:20]name=ofd_packets/00048897 [13:23:20]NVStorageDeleteData [13:23:20]Write to MH i2c: 01 00 00 0B 18 23 [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: 01 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: 01 07 00 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: 01 07 00 0B 18 00 00 00 00 00 0D 0D 44 [13:23:20]RasterBufferAndPrint [13:23:20]line [13:23:20]line [13:23:20]line [13:23:20]line [13:23:20]line [13:23:20]written 0, free lines is 3348 [13:23:20]MH_Cut [13:23:20]Write to MH i2c: D1 01 00 12 18 01 FC [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: D1 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: D1 01 00 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: D1 01 00 12 18 00 FB [13:23:20]Write to MH i2c: 01 00 00 13 18 2B [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:21]OFD Sender: No OFD packet to send [13:23:21]*** Cut start [13:23:21]*** Partial cut [13:23:21]*** CUTSNS_PIN = 1 [13:23:21]*** CUTSNS_PIN = 0 [13:23:21]*** Brake cut motor [13:23:21]Read from MH i2c: 01 [13:23:21]MH_I2C_Read... [13:23:21]*** Stop cut motor [13:23:21]*** Cut end [13:23:21]Read from MH i2c: 01 07 00 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: 01 07 00 13 18 00 00 00 00 00 FF 0F 40 [13:23:21]process_action close_receipt done [13:23:21]requested_data is exist [13:23:21]produce_requested_data [13:23:21]requested_item fm.sn is exist - process it [13:23:21]wFMCommunicate request_size=4 [13:23:21]MH_SAM_APDU [13:23:21]CAPDU: 80 11 00 00 [13:23:21]Write to MH i2c: E2 08 00 14 18 80 11 00 00 00 00 00 00 A6 [13:23:21]Write i2c OK [13:23:21]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 14 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F3 [13:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:23:22]wFMCommunicate OK [13:23:22]requested_item fd.num is exist - process it [13:23:22]SAM_PROTO_GetFieldsCounters [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 13 00 00 [13:23:22]Write to MH i2c: E2 08 00 15 18 80 13 00 00 00 00 00 00 A9 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 62 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 62 00 15 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 01 BF 00 00 0E 04 04 00 F3 00 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 5C [13: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 01 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:22]wFMCommunicate OK [13:23:22]SAM_PROTO_GetFieldsCounters done [13:23:22]requested_item shift.num is exist - process it [13:23:22]requested_item shift.opened is exist - process it [13:23:22]req_shift_opened [13:23:22]FM_GetShiftState [13:23:22]SAM_PROTO_GetShiftState [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 13 01 00 [13:23:22]Write to MH i2c: E2 08 00 16 18 80 13 01 00 00 00 00 00 AB [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0E 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0E 00 16 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 42 [13:23:22]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:23:22]wFMCommunicate OK [13:23:22]SAM_PROTO_GetShiftState done [13:23:22]FM_GetShiftState done [13:23:22]req_shift_opened done [13:23:22]requested_item shift.open_date is exist - process it [13:23:22]req_shift_open_date [13:23:22]req_shift_open_date done [13:23:22]produce_requested_data done [13:23:22]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48897,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:23:22]process_action_free close_receipt [13:23:22]json_value_free [13:23:22]json_value_free done [13:23:22]process_json_proto returns [13:23:22]Send response to host [13:23:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48897,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:23:22]free response buf [13:23:22]execute_script done [13:23:22]execute_script returns [13:23:22]free content buf [13:23:22]Sock 7.Close socket [13:23:22]Sock 7.Thread stoped [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:28]accept exits with 9 [13:24:28]New connection [13:24:28]New thread 3066670436 created [13:24:28]Thread 3066813796 joined [13:24:28]Waiting for new connection... [13:24:28] Sock 9.Parse request [13:24:28]Sock 9.Check first char [13:24:28]Sock 9.First char is OK [13:24:28]request: POST /json_proto HTTP/1.0 [13:24:28]Method: POST [13:24:28]URL: /json_proto [13:24:28]Method is POST - this is cgi request [13:24:28]url: /json_proto [13:24:28]query_string will be loaded in cgi processing [13:24:28]execute_cgi json_proto POST (null) [13:24:28]execute_cgi path=json_proto method=POST [13:24:28]POST find Content-Length [13:24:28]Host: 172.17.56.67:8080 [13:24:28]Content-Length: 677 [13:24:28]Content-Type: application/json [13:24:28] [13:24:28]POST finish read [13:24:28]Found Content-Length = 677 [13:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:28]execute_script... [13:24:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:28]POST & json_proto [13:24:28]process_json_proto [13:24:28]json parsed OK: [13:24:28]protocol is kg_v1.0 [13:24:28]action value=close_receipt [13:24:28]process_action close_receipt [13:24:28]cmd_close_receipt [13:24:28]MH_GetDate [13:24:28]Write to MH i2c: F0 00 00 17 18 1E [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: F0 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: F0 09 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: F0 09 00 17 18 00 10 04 B5 65 26 5D 9E 65 DB [13:24:28]GetLastDocTimeStamp 1706361801 [13:24:28]current date 1706361872 [13:24:28]FM_GetShiftState [13:24:28]SAM_PROTO_GetShiftState [13:24:28]wFMCommunicate request_size=4 [13:24:28]MH_SAM_APDU [13:24:28]CAPDU: 80 13 01 00 [13:24:28]Write to MH i2c: E2 08 00 18 18 80 13 01 00 00 00 00 00 AD [13:24:28]Write i2c OK [13:24:28]MH_I2C_Read... [13:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:28]Read from MH i2c: E2 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0E 00 [13:24:28]MH_I2C_Read... [13:24:28]Read from MH i2c: E2 0E 00 18 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 44 [13:24:28]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:24:28]wFMCommunicate OK [13:24:28]SAM_PROTO_GetShiftState done [13:24:28]FM_GetShiftState done [13:24:28]opened in 1706313770 [13:24:28]opened+sec_in_day 1706400170 [13:24:28]quantity*price = 50049 [13:24:28]sum+1 = 50050 [13:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 78 27.01.2024 13:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48898 ФПД: 164639878931404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48898&fm=164639878931404&tin=02508201610067®Number=0000000000092723&sum=50000 [13:24:29]StoreToDocumentArchive [13:24:29]shift 243 fd 48898 [13:24:29]save to /storage/0243/doc_00048898 [13:24:29]save last doc name /storage/0243/doc_00048898 to /storage/kkm_last_doc_name [13:24:29]save OK [13:24:29]Clear old archive folders... [13:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:29]tlvbuf is 011B46F0 [13:24:29]SAM_PROTO_ClearQueue [13:24:29]wFMCommunicate request_size=4 [13:24:29]MH_SAM_APDU [13:24:29]CAPDU: 80 09 00 00 [13:24:29]Write to MH i2c: E2 08 00 25 18 80 09 00 00 00 00 00 00 AF [13:24:29]Write i2c OK [13:24:29]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 25 18 00 90 00 B1 [13:24:30]RAPDU: 90 00 [13:24:30]wFMCommunicate OK [13:24:30]SAM_PROTO_ClearQueue done [13:24:30]KKMCreateOFDPacket [13:24:30]OFDProtocolAddRootSTLVToBuf [13:24:30]FM_MakeSignedData [13:24:30]FM_MakeSignedData [13:24:30]SAM_PROTO_SignData [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 0D 01 02 [13:24:30]Write to MH i2c: E2 08 00 26 18 80 0D 01 02 00 00 00 00 B7 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 26 18 00 90 00 B2 [13:24:30]RAPDU: 90 00 [13:24:30]wFMCommunicate OK [13:24:30]wFMCommunicate request_size=255 [13:24:30]MH_SAM_APDU [13:24: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 10 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 BF 00 00 35 04 06 00 95 [13:24:30]Write to MH i2c: E2 02 01 27 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 10 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 BF 00 00 35 04 06 00 95 00 00 AC [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 27 18 00 90 00 B3 [13:24:30]RAPDU: 90 00 [13:24:30]wFMCommunicate OK [13:24:30]wFMCommunicate request_size=10 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 0D 02 02 05 BD 35 7F E3 CC [13:24:30]Write to MH i2c: E2 0D 00 28 18 80 0D 02 02 05 00 BD 35 7F E3 CC 00 00 E4 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 03 00 28 18 00 90 00 B4 [13:24:30]RAPDU: 90 00 [13:24:30]wFMCommunicate OK [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 0D 03 02 [13:24:30]Write to MH i2c: E2 08 00 29 18 80 0D 03 02 00 00 00 00 BC [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 0B 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 0B 00 29 18 00 BB 9C C6 46 C8 27 1A 91 90 00 BA [13:24:30]RAPDU: BB 9C C6 46 C8 27 1A 91 90 00 [13:24:30]wFMCommunicate OK [13:24:30]SAM_PROTO_SignData done [13:24:30]FM_MakeSignedData done [13:24:30]CreateOFDProtocolMessage [13:24:30]wFMCommunicate request_size=4 [13:24:30]MH_SAM_APDU [13:24:30]CAPDU: 80 11 00 00 [13:24:30]Write to MH i2c: E2 08 00 2A 18 80 11 00 00 00 00 00 00 BC [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:30]Read from MH i2c: E2 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 17 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: E2 17 00 2A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 09 [13:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:24:30]wFMCommunicate OK [13:24:30]CreateOFDProtocolMessage done [13:24:30]OFDSenderStorePacket 48898 [13:24:30]StoreOFDPacket docnum=48898 [13:24:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7B 8D 07 01 C4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 10 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 BF 00 00 35 04 06 00 95 BD 35 7F E3 CC BB 9C C6 46 C8 27 1A 91 [13:24:30]CheckFolder [13:24:30]dirname=/storage/ofd_packets [13:24:30]CheckFolder done [13:24:30]ProducePacketName [13:24:30]name=ofd_packets/00048898 [13:24:30]NVStorageSaveData ofd_packets/00048898 [13:24:30]File name is /storage/ofd_packets/00048898 [13:24:30]Write 301 bytes [13:24:30]NVStorageSaveData done [13:24:30]OFDSenderStorePacket done [13:24:30]KKMCreateOFDPacket done [13:24:30]NVStorageSaveData kkm_last_timestamp [13:24:30]File name is /storage/kkm_last_timestamp [13:24:30]Write 4 bytes [13:24:30]NVStorageSaveData done [13:24:30]ExternCall_PrintAddStr [13:24:30]wPrintStart [13:24:30]Write to MH i2c: 01 00 00 2B 18 43 [13:24:30]Write i2c OK [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: 01 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: 01 07 00 [13:24:30]MH_I2C_Read... [13:24:30]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 FF 0F 58 [13:24:30]RasterBufferAndPrint [13:24:30]line Счет N : (1)215995 [13:24:30]line ИНН: 02508201610067 [13:24:30]line Контрольно-Кассовый Чек [13:24:30]line ПРОДАЖА [13:24:30]line ТРК (МРК, ГНК) : 22 [13:24:30]line Товар: 2710124130 [13:24:30]line Аи-92-К-5 [13:24:30]line 8.300 * 60.30 [13:24:30]line = 500.49 [13:24:30]line НДС 12% НСП 1% [13:24:30]line > о реализуемом товаре [13:24:30]line ОКРУГЛЕНИЕ: -0.49 [13:24:30]line ИТОГО: 500.00 [13:24:30]line Внесено: 500.00 [13:24:30]line СДАЧА: 0.00 [13:24:30]line НСП 1% : 4.43 [13:24:30]line НДС 12% : 53.15 [13:24:30]line Наличными: 500.00 [13:24:30]line Безнал.: 0.00 [13:24:30]line Место: АЗС № 102 "Партнер Нефть" [13:24:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:24:30]line СНО: Общий режим [13:24:30]line Чек 78 27.01.2024 13:24 [13:24:30]line Смена: 243 ФФД: 1.0 [13:24:30]line ЗНМ: 0300000040 [13:24:30]line РНМ: 0000000000092723 [13:24:30]line Версия ККМ: 001 [13:24:30]line ФМ: 0000000000875060 [13:24:30]line ФД: 48898 [13:24:30]line ФПД: 164639878931404 [13:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48898&fm=164639878931404&tin=02508201610067®Number=0000000000092723&sum=50000 [13:24:30]OFD Sender: Processing packet 48898 [packets to send 12, broken 11] [13:24:30]ProducePacketName [13:24:30]name=ofd_packets/00048898 [13:24:30]OFD Sender: To server: pG, [13:24:30]CommunicateWithHost lk.salyk.kg:30040 [13:24:30]ConnectInit lk.salyk.kg [13:24:30]written 0, free lines is 4095 [13:24:30]Connected sock=10 [13:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7B 8D 07 01 C4 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 10 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 BF 00 00 35 04 06 00 95 BD 35 7F E3 CC BB 9C C6 46 C8 27 1A 91 [13:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 95 0F 47 00 96 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 02 BF 00 00 F4 03 04 00 0E B0 B4 65 B6 04 01 00 00 D9 24 20 F4 C3 F0 B4 AF [13:24:31]CommunicateWithHost err = 0 [13:24:31]CheckOFDResponse [13:24:31]1017 (14) - 77093643461234 [13:24:31]1041 (16) - 0000000000875060 [13:24:31]1040 (4) - 48898 [13:24:31]1012 (4) - 27.01.2024 07:26 [13:24:31]1206 (1) - 0 [13:24:31]OFD Sender: Remove packet 48898 [13:24:31]ProducePacketName [13:24:31]name=ofd_packets/00048898 [13:24:31]NVStorageDeleteData [13:24:31]Write to MH i2c: 01 00 00 56 18 6E [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: 01 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: 01 07 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: 01 07 00 56 18 00 00 00 00 00 ED 0C 6E [13:24:31]RasterBufferAndPrint [13:24:31]line [13:24:31]line [13:24:31]line [13:24:31]line [13:24:31]line [13:24:31]written 0, free lines is 3315 [13:24:31]MH_Cut [13:24:31]Write to MH i2c: D1 01 00 5D 18 01 47 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: D1 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: D1 01 00 [13:24:31]MH_I2C_Read... [13:24:31]Read from MH i2c: D1 01 00 5D 18 00 46 [13:24:31]Write to MH i2c: 01 00 00 5E 18 76 [13:24:31]Write i2c OK [13:24:31]MH_I2C_Read... [13:24:31]OFD Sender: No OFD packet to send [13:24:31]*** Cut start [13:24:31]*** Partial cut [13:24:31]*** CUTSNS_PIN = 1 [13:24:32]*** CUTSNS_PIN = 0 [13:24:32]*** Brake cut motor [13:24:32]Read from MH i2c: 01 [13:24:32]MH_I2C_Read... [13:24:32]*** Stop cut motor [13:24:32]*** Cut end [13:24:32]Read from MH i2c: 01 07 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: 01 07 00 5E 18 00 00 00 00 00 FF 0F 8B [13:24:32]process_action close_receipt done [13:24:32]requested_data is exist [13:24:32]produce_requested_data [13:24:32]requested_item fm.sn is exist - process it [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 11 00 00 [13:24:32]Write to MH i2c: E2 08 00 5F 18 80 11 00 00 00 00 00 00 F1 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 17 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 17 00 5F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3E [13:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:24:32]wFMCommunicate OK [13:24:32]requested_item fd.num is exist - process it [13:24:32]SAM_PROTO_GetFieldsCounters [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 13 00 00 [13:24:32]Write to MH i2c: E2 08 00 60 18 80 13 00 00 00 00 00 00 F4 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 62 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 62 00 60 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 02 BF 00 00 0E 04 04 00 F3 00 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 AB [13:24: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 02 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:32]wFMCommunicate OK [13:24:32]SAM_PROTO_GetFieldsCounters done [13:24:32]requested_item shift.num is exist - process it [13:24:32]requested_item shift.opened is exist - process it [13:24:32]req_shift_opened [13:24:32]FM_GetShiftState [13:24:32]SAM_PROTO_GetShiftState [13:24:32]wFMCommunicate request_size=4 [13:24:32]MH_SAM_APDU [13:24:32]CAPDU: 80 13 01 00 [13:24:32]Write to MH i2c: E2 08 00 61 18 80 13 01 00 00 00 00 00 F6 [13:24:32]Write i2c OK [13:24:32]MH_I2C_Read... [13:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:32]Read from MH i2c: E2 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 0E 00 [13:24:32]MH_I2C_Read... [13:24:32]Read from MH i2c: E2 0E 00 61 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8D [13:24:32]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:24:32]wFMCommunicate OK [13:24:32]SAM_PROTO_GetShiftState done [13:24:32]FM_GetShiftState done [13:24:32]req_shift_opened done [13:24:32]requested_item shift.open_date is exist - process it [13:24:32]req_shift_open_date [13:24:32]req_shift_open_date done [13:24:32]produce_requested_data done [13:24:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48898,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:24:32]process_action_free close_receipt [13:24:32]json_value_free [13:24:32]json_value_free done [13:24:32]process_json_proto returns [13:24:32]Send response to host [13:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48898,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:24:32]free response buf [13:24:32]execute_script done [13:24:32]execute_script returns [13:24:32]free content buf [13:24:32]Sock 9.Close socket [13:24:32]Sock 9.Thread stoped [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26: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: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:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:27:59]accept exits with 7 [13:27:59]New connection [13:27:59]New thread 3066813796 created [13:27:59]Thread 3066670436 joined [13:27:59]Waiting for new connection... [13:27:59] Sock 7.Parse request [13:27:59]Sock 7.Check first char [13:27:59]Sock 7.First char is OK [13:27:59]request: POST /json_proto HTTP/1.0 [13:27:59]Method: POST [13:27:59]URL: /json_proto [13:27:59]Method is POST - this is cgi request [13:27:59]url: /json_proto [13:27:59]query_string will be loaded in cgi processing [13:27:59]execute_cgi json_proto POST (null) [13:27:59]execute_cgi path=json_proto method=POST [13:27:59]POST find Content-Length [13:27:59]Host: 172.17.56.67:8080 [13:27:59]Content-Length: 677 [13:27:59]Content-Type: application/json [13:27:59] [13:27:59]POST finish read [13:27:59]Found Content-Length = 677 [13:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:59]execute_script... [13:27: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)215996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:59]POST & json_proto [13:27:59]process_json_proto [13:27:59]json parsed OK: [13:27:59]protocol is kg_v1.0 [13:27:59]action value=close_receipt [13:27:59]process_action close_receipt [13:27:59]cmd_close_receipt [13:27:59]MH_GetDate [13:27:59]Write to MH i2c: F0 00 00 62 18 69 [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: F0 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: F0 09 00 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: F0 09 00 62 18 00 E2 04 B5 65 26 5D 9E 65 F8 [13:27:59]GetLastDocTimeStamp 1706361872 [13:27:59]current date 1706362082 [13:27:59]FM_GetShiftState [13:27:59]SAM_PROTO_GetShiftState [13:27:59]wFMCommunicate request_size=4 [13:27:59]MH_SAM_APDU [13:27:59]CAPDU: 80 13 01 00 [13:27:59]Write to MH i2c: E2 08 00 63 18 80 13 01 00 00 00 00 00 F8 [13:27:59]Write i2c OK [13:27:59]MH_I2C_Read... [13:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:59]Read from MH i2c: E2 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: E2 0E 00 [13:27:59]MH_I2C_Read... [13:27:59]Read from MH i2c: E2 0E 00 63 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8F [13:27:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:27:59]wFMCommunicate OK [13:27:59]SAM_PROTO_GetShiftState done [13:27:59]FM_GetShiftState done [13:27:59]opened in 1706313770 [13:27:59]opened+sec_in_day 1706400170 [13:27:59]quantity*price = 30029 [13:27:59]sum+1 = 30030 [13:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 79 27.01.2024 13:28 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48899 ФПД: 51356799181144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132802&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48899&fm=51356799181144&tin=02508201610067®Number=0000000000092723&sum=30000 [13:28:00]StoreToDocumentArchive [13:28:00]shift 243 fd 48899 [13:28:00]save to /storage/0243/doc_00048899 [13:28:00]save last doc name /storage/0243/doc_00048899 to /storage/kkm_last_doc_name [13:28:00]save OK [13:28:00]Clear old archive folders... [13:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:28:00]tlvbuf is 011973D0 [13:28:00]SAM_PROTO_ClearQueue [13:28:00]wFMCommunicate request_size=4 [13:28:00]MH_SAM_APDU [13:28:00]CAPDU: 80 09 00 00 [13:28:00]Write to MH i2c: E2 08 00 70 18 80 09 00 00 00 00 00 00 FA [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:00]Read from MH i2c: E2 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 70 18 00 90 00 FC [13:28:00]RAPDU: 90 00 [13:28:00]wFMCommunicate OK [13:28:00]SAM_PROTO_ClearQueue done [13:28:00]KKMCreateOFDPacket [13:28:00]OFDProtocolAddRootSTLVToBuf [13:28:00]FM_MakeSignedData [13:28:00]FM_MakeSignedData [13:28:00]SAM_PROTO_SignData [13:28:00]wFMCommunicate request_size=4 [13:28:00]MH_SAM_APDU [13:28:00]CAPDU: 80 0D 01 02 [13:28:00]Write to MH i2c: E2 08 00 71 18 80 0D 01 02 00 00 00 00 02 [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:00]Read from MH i2c: E2 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 71 18 00 90 00 FD [13:28:00]RAPDU: 90 00 [13:28:00]wFMCommunicate OK [13:28:00]wFMCommunicate request_size=255 [13:28:00]MH_SAM_APDU [13:28:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E2 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 BF 00 00 35 04 06 00 2E [13:28:00]Write to MH i2c: E2 02 01 72 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E2 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 BF 00 00 35 04 06 00 2E 00 00 FA [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:00]Read from MH i2c: E2 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 [13:28:00]MH_I2C_Read... [13:28:00]Read from MH i2c: E2 03 00 72 18 00 90 00 FE [13:28:00]RAPDU: 90 00 [13:28:00]wFMCommunicate OK [13:28:00]wFMCommunicate request_size=10 [13:28:00]MH_SAM_APDU [13:28:00]CAPDU: 80 0D 02 02 05 B5 6F C5 A1 58 [13:28:00]Write to MH i2c: E2 0D 00 73 18 80 0D 02 02 05 00 B5 6F C5 A1 58 00 00 F1 [13:28:00]Write i2c OK [13:28:00]MH_I2C_Read... [13:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 03 00 73 18 00 90 00 FF [13:28:01]RAPDU: 90 00 [13:28:01]wFMCommunicate OK [13:28:01]wFMCommunicate request_size=4 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 0D 03 02 [13:28:01]Write to MH i2c: E2 08 00 74 18 80 0D 03 02 00 00 00 00 07 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 0B 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 0B 00 74 18 00 C9 5C C0 77 6B E0 06 A3 90 00 58 [13:28:01]RAPDU: C9 5C C0 77 6B E0 06 A3 90 00 [13:28:01]wFMCommunicate OK [13:28:01]SAM_PROTO_SignData done [13:28:01]FM_MakeSignedData done [13:28:01]CreateOFDProtocolMessage [13:28:01]wFMCommunicate request_size=4 [13:28:01]MH_SAM_APDU [13:28:01]CAPDU: 80 11 00 00 [13:28:01]Write to MH i2c: E2 08 00 75 18 80 11 00 00 00 00 00 00 07 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:01]Read from MH i2c: E2 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 17 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: E2 17 00 75 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [13:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:28:01]wFMCommunicate OK [13:28:01]CreateOFDProtocolMessage done [13:28:01]OFDSenderStorePacket 48899 [13:28:01]StoreOFDPacket docnum=48899 [13:28:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 73 2A 07 01 C2 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E2 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 BF 00 00 35 04 06 00 2E B5 6F C5 A1 58 C9 5C C0 77 6B E0 06 A3 [13:28:01]CheckFolder [13:28:01]dirname=/storage/ofd_packets [13:28:01]CheckFolder done [13:28:01]ProducePacketName [13:28:01]name=ofd_packets/00048899 [13:28:01]NVStorageSaveData ofd_packets/00048899 [13:28:01]File name is /storage/ofd_packets/00048899 [13:28:01]Write 301 bytes [13:28:01]NVStorageSaveData done [13:28:01]OFDSenderStorePacket done [13:28:01]KKMCreateOFDPacket done [13:28:01]NVStorageSaveData kkm_last_timestamp [13:28:01]File name is /storage/kkm_last_timestamp [13:28:01]Write 4 bytes [13:28:01]NVStorageSaveData done [13:28:01]ExternCall_PrintAddStr [13:28:01]wPrintStart [13:28:01]Write to MH i2c: 01 00 00 76 18 8E [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 07 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 07 00 76 18 00 00 00 00 00 FF 0F A3 [13:28:01]RasterBufferAndPrint [13:28:01]line Счет N : (1)215996 [13:28:01]line ИНН: 02508201610067 [13:28:01]line Контрольно-Кассовый Чек [13:28:01]line ПРОДАЖА [13:28:01]line ТРК (МРК, ГНК) : 22 [13:28:01]line Товар: 2710124130 [13:28:01]line Аи-92-К-5 [13:28:01]line 4.980 * 60.30 [13:28:01]line = 300.29 [13:28:01]line НДС 12% НСП 1% [13:28:01]line > о реализуемом товаре [13:28:01]line ОКРУГЛЕНИЕ: -0.29 [13:28:01]line ИТОГО: 300.00 [13:28:01]line Внесено: 300.00 [13:28:01]line СДАЧА: 0.00 [13:28:01]line НСП 1% : 2.66 [13:28:01]line НДС 12% : 31.89 [13:28:01]line Наличными: 300.00 [13:28:01]line Безнал.: 0.00 [13:28:01]line Место: АЗС № 102 "Партнер Нефть" [13:28:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:28:01]line СНО: Общий режим [13:28:01]line Чек 79 27.01.2024 13:28 [13:28:01]line Смена: 243 ФФД: 1.0 [13:28:01]line ЗНМ: 0300000040 [13:28:01]line РНМ: 0000000000092723 [13:28:01]line Версия ККМ: 001 [13:28:01]line ФМ: 0000000000875060 [13:28:01]line ФД: 48899 [13:28:01]line ФПД: 51356799181144 [13:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T132802&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48899&fm=51356799181144&tin=02508201610067®Number=0000000000092723&sum=30000 [13:28:01]OFD Sender: Processing packet 48899 [packets to send 12, broken 11] [13:28:01]ProducePacketName [13:28:01]name=ofd_packets/00048899 [13:28:01]OFD Sender: To server: pG, [13:28:01]CommunicateWithHost lk.salyk.kg:30040 [13:28:01]ConnectInit lk.salyk.kg [13:28:01]written 0, free lines is 4095 [13:28:01]Connected sock=10 [13:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 73 2A 07 01 C2 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E2 04 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 BF 00 00 35 04 06 00 2E B5 6F C5 A1 58 C9 5C C0 77 6B E0 06 A3 [13:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 31 62 47 00 6C AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 03 BF 00 00 F4 03 04 00 E1 B0 B4 65 B6 04 01 00 00 B3 DE F3 1D 45 6B E3 0C [13:28:01]CommunicateWithHost err = 0 [13:28:01]CheckOFDResponse [13:28:01]1017 (14) - 77093643461234 [13:28:01]1041 (16) - 0000000000875060 [13:28:01]1040 (4) - 48899 [13:28:01]1012 (4) - 27.01.2024 07:29 [13:28:01]1206 (1) - 0 [13:28:01]OFD Sender: Remove packet 48899 [13:28:01]ProducePacketName [13:28:01]name=ofd_packets/00048899 [13:28:01]NVStorageDeleteData [13:28:01]Write to MH i2c: 01 00 00 A1 18 B9 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 07 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 EC 0C B8 [13:28:01]RasterBufferAndPrint [13:28:01]line [13:28:01]line [13:28:01]line [13:28:01]line [13:28:01]line [13:28:01]written 0, free lines is 3317 [13:28:01]MH_Cut [13:28:01]Write to MH i2c: D1 01 00 A8 18 01 92 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: D1 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: D1 01 00 [13:28:01]MH_I2C_Read... [13:28:01]Read from MH i2c: D1 01 00 A8 18 00 91 [13:28:01]Write to MH i2c: 01 00 00 A9 18 C1 [13:28:01]Write i2c OK [13:28:01]MH_I2C_Read... [13:28:02]OFD Sender: No OFD packet to send [13:28:02]*** Cut start [13:28:02]*** Partial cut [13:28:02]*** CUTSNS_PIN = 1 [13:28:02]*** CUTSNS_PIN = 0 [13:28:02]*** Brake cut motor [13:28:03]Read from MH i2c: 01 [13:28:03]MH_I2C_Read... [13:28:03]*** Stop cut motor [13:28:03]*** Cut end [13:28:03]Read from MH i2c: 01 07 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: 01 07 00 A9 18 00 00 00 00 00 FF 0F D6 [13:28:03]process_action close_receipt done [13:28:03]requested_data is exist [13:28:03]produce_requested_data [13:28:03]requested_item fm.sn is exist - process it [13:28:03]wFMCommunicate request_size=4 [13:28:03]MH_SAM_APDU [13:28:03]CAPDU: 80 11 00 00 [13:28:03]Write to MH i2c: E2 08 00 AA 18 80 11 00 00 00 00 00 00 3C [13:28:03]Write i2c OK [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 [13:28:03]MH_I2C_Read... [13:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:03]Read from MH i2c: E2 17 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 17 00 AA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [13:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:28:03]wFMCommunicate OK [13:28:03]requested_item fd.num is exist - process it [13:28:03]SAM_PROTO_GetFieldsCounters [13:28:03]wFMCommunicate request_size=4 [13:28:03]MH_SAM_APDU [13:28:03]CAPDU: 80 13 00 00 [13:28:03]Write to MH i2c: E2 08 00 AB 18 80 13 00 00 00 00 00 00 3F [13:28:03]Write i2c OK [13:28:03]MH_I2C_Read... [13:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:03]Read from MH i2c: E2 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 62 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 62 00 AB 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 BF 00 00 0E 04 04 00 F3 00 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 FA [13:28:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:03]wFMCommunicate OK [13:28:03]SAM_PROTO_GetFieldsCounters done [13:28:03]requested_item shift.num is exist - process it [13:28:03]requested_item shift.opened is exist - process it [13:28:03]req_shift_opened [13:28:03]FM_GetShiftState [13:28:03]SAM_PROTO_GetShiftState [13:28:03]wFMCommunicate request_size=4 [13:28:03]MH_SAM_APDU [13:28:03]CAPDU: 80 13 01 00 [13:28:03]Write to MH i2c: E2 08 00 AC 18 80 13 01 00 00 00 00 00 41 [13:28:03]Write i2c OK [13:28:03]MH_I2C_Read... [13:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:03]Read from MH i2c: E2 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 0E 00 [13:28:03]MH_I2C_Read... [13:28:03]Read from MH i2c: E2 0E 00 AC 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D8 [13:28:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:28:03]wFMCommunicate OK [13:28:03]SAM_PROTO_GetShiftState done [13:28:03]FM_GetShiftState done [13:28:03]req_shift_opened done [13:28:03]requested_item shift.open_date is exist - process it [13:28:03]req_shift_open_date [13:28:03]req_shift_open_date done [13:28:03]produce_requested_data done [13:28:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48899,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:28:03]process_action_free close_receipt [13:28:03]json_value_free [13:28:03]json_value_free done [13:28:03]process_json_proto returns [13:28:03]Send response to host [13:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48899,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:28:03]free response buf [13:28:03]execute_script done [13:28:03]execute_script returns [13:28:03]free content buf [13:28:03]Sock 7.Close socket [13:28:03]Sock 7.Thread stoped [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:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [13:30:44]New connection [13:30:44]New thread 3066670436 created [13:30:44]Thread 3066813796 joined [13:30:44]Waiting for new connection... [13:30:44] Sock 9.Parse request [13:30:44]Sock 9.Check first char [13:30:44]Sock 9.First char is OK [13:30:44]request: POST /json_proto HTTP/1.0 [13:30:44]Method: POST [13:30:44]URL: /json_proto [13:30:44]Method is POST - this is cgi request [13:30:44]url: /json_proto [13:30:44]query_string will be loaded in cgi processing [13:30:44]execute_cgi json_proto POST (null) [13:30:44]execute_cgi path=json_proto method=POST [13:30:44]POST find Content-Length [13:30:44]Host: 172.17.56.67:8080 [13:30:44]Content-Length: 215 [13:30:44]Content-Type: application/json [13:30:44] [13:30:44]POST finish read [13:30:44]Found Content-Length = 215 [13:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:44]execute_script... [13:30:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:30:44]POST & json_proto [13:30:44]process_json_proto [13:30:44]json parsed OK: [13:30:44]protocol is kg_v1.0 [13:30:44]action value=get_value [13:30:44]process_action get_value [13:30:44]cmd_get_value [13:30:44]process_action get_value done [13:30:44]requested_data is exist [13:30:44]produce_requested_data [13:30:44]requested_item kkm.sn is exist - process it [13:30:44]requested_item kkm.ver is exist - process it [13:30:44]requested_item fm.sn is exist - process it [13:30:44]wFMCommunicate request_size=4 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 11 00 00 [13:30:44]Write to MH i2c: E2 08 00 AD 18 80 11 00 00 00 00 00 00 3F [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 17 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 17 00 AD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8C [13:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:30:44]wFMCommunicate OK [13:30:44]requested_item fd.num is exist - process it [13:30:44]SAM_PROTO_GetFieldsCounters [13:30:44]wFMCommunicate request_size=4 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 13 00 00 [13:30:44]Write to MH i2c: E2 08 00 AE 18 80 13 00 00 00 00 00 00 42 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 62 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 62 00 AE 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 BF 00 00 0E 04 04 00 F3 00 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 FD [13:30: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 03 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:44]wFMCommunicate OK [13:30:44]SAM_PROTO_GetFieldsCounters done [13:30:44]requested_item shift.num is exist - process it [13:30:44]requested_item shift.opened is exist - process it [13:30:44]req_shift_opened [13:30:44]FM_GetShiftState [13:30:44]SAM_PROTO_GetShiftState [13:30:44]wFMCommunicate request_size=4 [13:30:44]MH_SAM_APDU [13:30:44]CAPDU: 80 13 01 00 [13:30:44]Write to MH i2c: E2 08 00 AF 18 80 13 01 00 00 00 00 00 44 [13:30:44]Write i2c OK [13:30:44]MH_I2C_Read... [13:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:44]Read from MH i2c: E2 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 0E 00 [13:30:44]MH_I2C_Read... [13:30:44]Read from MH i2c: E2 0E 00 AF 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 DB [13:30:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:30:44]wFMCommunicate OK [13:30:44]SAM_PROTO_GetShiftState done [13:30:44]FM_GetShiftState done [13:30:44]req_shift_opened done [13:30:44]requested_item shift.open_date is exist - process it [13:30:44]req_shift_open_date [13:30:44]req_shift_open_date done [13:30:44]produce_requested_data done [13:30:44]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48899,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:30:44]process_action_free get_value [13:30:44]json_value_free [13:30:44]json_value_free done [13:30:44]process_json_proto returns [13:30:44]Send response to host [13:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48899,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:30:44]free response buf [13:30:44]execute_script done [13:30:44]execute_script returns [13:30:44]free content buf [13:30:44]Sock 9.Close socket [13:30:44]Sock 9.Thread stoped [13:30:45]accept exits with 7 [13:30:45]New connection [13:30:45]New thread 3066813796 created [13:30:45]Thread 3066670436 joined [13:30:45]Waiting for new connection... [13:30:45] Sock 7.Parse request [13:30:45]Sock 7.Check first char [13:30:45]Sock 7.First char is OK [13:30:45]request: POST /json_proto HTTP/1.0 [13:30:45]Method: POST [13:30:45]URL: /json_proto [13:30:45]Method is POST - this is cgi request [13:30:45]url: /json_proto [13:30:45]query_string will be loaded in cgi processing [13:30:45]execute_cgi json_proto POST (null) [13:30:45]execute_cgi path=json_proto method=POST [13:30:45]POST find Content-Length [13:30:45]Host: 172.17.56.67:8080 [13:30:45]Content-Length: 331 [13:30:45]Content-Type: application/json [13:30:45] [13:30:45]POST finish read [13:30:45]Found Content-Length = 331 [13:30:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:30:45]execute_script... [13:30:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:30:45]POST & json_proto [13:30:45]process_json_proto [13:30:45]json parsed OK: [13:30:45]protocol is kg_v1.0 [13:30:45]action value=get_value [13:30:45]process_action get_value [13:30:45]cmd_get_value [13:30:45]process_action get_value done [13:30:45]requested_data is exist [13:30:45]produce_requested_data [13:30:45]requested_item fm.sale.total is exist - process it [13:30:45]SAM_PROTO_GetFMData [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 13 03 00 [13:30:45]Write to MH i2c: E2 08 00 B0 18 80 13 03 00 00 00 00 00 47 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 FD 00 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 FD 00 B0 18 00 BF 04 85 04 BB 04 6E 04 04 00 1F BD 00 00 69 04 A1 00 6F 04 04 00 1B BD 00 00 B1 04 04 00 F9 D1 63 BB 70 04 04 00 24 43 AD AE 72 04 04 00 D5 8E B6 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 CE E8 13 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 86 B3 A8 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 28 [13:30:45]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 1F BD 00 00 69 04 A1 00 6F 04 04 00 1B BD 00 00 B1 04 04 00 F9 D1 63 BB 70 04 04 00 24 43 AD AE 72 04 04 00 D5 8E B6 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 CE E8 13 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 86 B3 A8 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [13:30:45]wFMCommunicate OK [13:30:45]wFMCommunicate request_size=4 [13:30:45]MH_SAM_APDU [13:30:45]CAPDU: 80 17 00 00 [13:30:45]Write to MH i2c: E2 08 00 B1 18 80 17 00 00 00 00 00 00 49 [13:30:45]Write i2c OK [13:30:45]MH_I2C_Read... [13:30:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:45]Read from MH i2c: E2 [13:30:45]MH_I2C_Read... [13:30:45]Read from MH i2c: E2 FD 00 [13:30:45]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 FD 00 B1 18 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 F9 [13:30:46]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [13:30:46]wFMCommunicate OK [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 17 00 00 [13:30:46]Write to MH i2c: E2 08 00 B2 18 80 17 00 00 00 00 00 00 4A [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 FD 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 FD 00 B2 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EE [13:30:46]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [13:30:46]wFMCommunicate OK [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 17 00 00 [13:30:46]Write to MH i2c: E2 08 00 B3 18 80 17 00 00 00 00 00 00 4B [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 FD 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 FD 00 B3 18 00 00 04 F7 03 00 00 EF 03 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 90 00 C5 [13:30:46]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [13:30:46]wFMCommunicate OK [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 17 00 00 [13:30:46]Write to MH i2c: E2 08 00 B4 18 80 17 00 00 00 00 00 00 4C [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 [13:30:46]MH_I2C_Read... [13:30:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [13:30:46]Read from MH i2c: E2 DC 00 [13:30:46]MH_I2C_Read... [13:30:46]Read from MH i2c: E2 DC 00 B4 18 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 30 [13:30:46]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:30:46]wFMCommunicate OK [13:30:46]SAM_PROTO_GetFMData done [13:30:46]requested_item fm.sale_refund.total is exist - process it [13:30:46]requested_item fm.buy.total is exist - process it [13:30:46]requested_item shift.sale.total is exist - process it [13:30:46]SAM_PROTO_GetShiftData [13:30:46]wFMCommunicate request_size=4 [13:30:46]MH_SAM_APDU [13:30:46]CAPDU: 80 13 02 00 [13:30:46]Write to MH i2c: E2 08 00 B5 18 80 13 02 00 00 00 00 00 4B [13:30:46]Write i2c OK [13:30:46]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 B5 18 00 AE 04 AA 04 AA 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4F 00 00 00 B1 04 03 00 9A 08 43 70 04 03 00 04 C2 3E 72 04 03 00 96 46 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E 1F 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EF 97 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8D [13:30:47]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 4F 00 00 00 69 04 9B 00 6F 04 04 00 4F 00 00 00 B1 04 03 00 9A 08 43 70 04 03 00 04 C2 3E 72 04 03 00 96 46 04 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E 1F 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 EF 97 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 17 00 00 [13:30:47]Write to MH i2c: E2 08 00 B6 18 80 17 00 00 00 00 00 00 4E [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]OFD Sender: No OFD packet to send [13:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 B6 18 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 70 [13:30:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 17 00 00 [13:30:47]Write to MH i2c: E2 08 00 B7 18 80 17 00 00 00 00 00 00 4F [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:47]Read from MH i2c: E2 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 [13:30:47]MH_I2C_Read... [13:30:47]Read from MH i2c: E2 FD 00 B7 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 06 [13:30:47]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [13:30:47]wFMCommunicate OK [13:30:47]wFMCommunicate request_size=4 [13:30:47]MH_SAM_APDU [13:30:47]CAPDU: 80 17 00 00 [13:30:47]Write to MH i2c: E2 08 00 B8 18 80 17 00 00 00 00 00 00 50 [13:30:47]Write i2c OK [13:30:47]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 FD 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 FD 00 B8 18 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 C2 [13:30:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [13:30:48]wFMCommunicate OK [13:30:48]wFMCommunicate request_size=4 [13:30:48]MH_SAM_APDU [13:30:48]CAPDU: 80 17 00 00 [13:30:48]Write to MH i2c: E2 08 00 B9 18 80 17 00 00 00 00 00 00 51 [13:30:48]Write i2c OK [13:30:48]MH_I2C_Read... [13:30:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:30:48]Read from MH i2c: E2 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 CB 00 [13:30:48]MH_I2C_Read... [13:30:48]Read from MH i2c: E2 CB 00 B9 18 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 3A [13:30:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:30:48]wFMCommunicate OK [13:30:48]SAM_PROTO_GetShiftData done [13:30:48]requested_item shift.sale.total_cash is exist - process it [13:30:48]requested_item shift.sale_refund.total is exist - process it [13:30:48]requested_item shift.sale_refund.total_cash is exist - process it [13:30:48]requested_item shift.buy.total is exist - process it [13:30:48]requested_item shift.buy.total_cash is exist - process it [13:30:48]produce_requested_data done [13:30:48]produce_requested_data return {"fm.sale.total":31438812.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":43931.14,"shift.sale.total_cash":41129.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:30:48]process_action_free get_value [13:30:48]json_value_free [13:30:48]json_value_free done [13:30:48]process_json_proto returns [13:30:48]Send response to host [13:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31438812.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":43931.14,"shift.sale.total_cash":41129.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:30:48]free response buf [13:30:48]execute_script done [13:30:48]execute_script returns [13:30:48]free content buf [13:30:48]Sock 7.Close socket [13:30:48]Sock 7.Thread stoped [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:30]accept exits with 9 [13:32:30]New connection [13:32:30]New thread 3066670436 created [13:32:30]Thread 3066813796 joined [13:32:30]Waiting for new connection... [13:32:30] Sock 9.Parse request [13:32:30]Sock 9.Check first char [13:32:30]Sock 9.First char is OK [13:32:30]request: POST /json_proto HTTP/1.0 [13:32:30]Method: POST [13:32:30]URL: /json_proto [13:32:30]Method is POST - this is cgi request [13:32:30]url: /json_proto [13:32:30]query_string will be loaded in cgi processing [13:32:30]execute_cgi json_proto POST (null) [13:32:30]execute_cgi path=json_proto method=POST [13:32:30]POST find Content-Length [13:32:30]Host: 172.17.56.67:8080 [13:32:30]Content-Length: 677 [13:32:30]Content-Type: application/json [13:32:30] [13:32:30]POST finish read [13:32:30]Found Content-Length = 677 [13:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:30]execute_script... [13:32: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)215997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:30]POST & json_proto [13:32:30]process_json_proto [13:32:30]json parsed OK: [13:32:30]protocol is kg_v1.0 [13:32:30]action value=close_receipt [13:32:30]process_action close_receipt [13:32:30]cmd_close_receipt [13:32:30]MH_GetDate [13:32:30]Write to MH i2c: F0 00 00 BA 18 C1 [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: F0 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: F0 09 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: F0 09 00 BA 18 00 F1 05 B5 65 26 5D 9E 65 60 [13:32:30]GetLastDocTimeStamp 1706362082 [13:32:30]current date 1706362353 [13:32:30]FM_GetShiftState [13:32:30]SAM_PROTO_GetShiftState [13:32:30]wFMCommunicate request_size=4 [13:32:30]MH_SAM_APDU [13:32:30]CAPDU: 80 13 01 00 [13:32:30]Write to MH i2c: E2 08 00 BB 18 80 13 01 00 00 00 00 00 50 [13:32:30]Write i2c OK [13:32:30]MH_I2C_Read... [13:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:30]Read from MH i2c: E2 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 0E 00 [13:32:30]MH_I2C_Read... [13:32:30]Read from MH i2c: E2 0E 00 BB 18 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E7 [13:32:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:32:30]wFMCommunicate OK [13:32:30]SAM_PROTO_GetShiftState done [13:32:30]FM_GetShiftState done [13:32:30]opened in 1706313770 [13:32:30]opened+sec_in_day 1706400170 [13:32:30]quantity*price = 20019 [13:32:30]sum+1 = 20021 [13:32:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 80 27.01.2024 13:32 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48900 ФПД: 75734729341691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133233&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48900&fm=75734729341691&tin=02508201610067®Number=0000000000092723&sum=20000 [13:32:31]StoreToDocumentArchive [13:32:31]shift 243 fd 48900 [13:32:31]save to /storage/0243/doc_00048900 [13:32:31]save last doc name /storage/0243/doc_00048900 to /storage/kkm_last_doc_name [13:32:31]save OK [13:32:31]Clear old archive folders... [13:32:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:31]tlvbuf is 011B7BE0 [13:32:31]SAM_PROTO_ClearQueue [13:32:31]wFMCommunicate request_size=4 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 09 00 00 [13:32:31]Write to MH i2c: E2 08 00 C8 18 80 09 00 00 00 00 00 00 52 [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [13:32:31]RAPDU: 90 00 [13:32:31]wFMCommunicate OK [13:32:31]SAM_PROTO_ClearQueue done [13:32:31]KKMCreateOFDPacket [13:32:31]OFDProtocolAddRootSTLVToBuf [13:32:31]FM_MakeSignedData [13:32:31]FM_MakeSignedData [13:32:31]SAM_PROTO_SignData [13:32:31]wFMCommunicate request_size=4 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 0D 01 02 [13:32:31]Write to MH i2c: E2 08 00 C9 18 80 0D 01 02 00 00 00 00 5A [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 C9 18 00 90 00 55 [13:32:31]RAPDU: 90 00 [13:32:31]wFMCommunicate OK [13:32:31]wFMCommunicate request_size=255 [13:32:31]MH_SAM_APDU [13:32: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F1 05 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 BF 00 00 35 04 06 00 44 [13:32:31]Write to MH i2c: E2 02 01 CA 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F1 05 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 BF 00 00 35 04 06 00 44 00 00 C4 [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 CA 18 00 90 00 56 [13:32:31]RAPDU: 90 00 [13:32:31]wFMCommunicate OK [13:32:31]wFMCommunicate request_size=10 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 0D 02 02 05 E1 5D A3 BA FB [13:32:31]Write to MH i2c: E2 0D 00 CB 18 80 0D 02 02 05 00 E1 5D A3 BA FB 00 00 FD [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 03 00 CB 18 00 90 00 57 [13:32:31]RAPDU: 90 00 [13:32:31]wFMCommunicate OK [13:32:31]wFMCommunicate request_size=4 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 0D 03 02 [13:32:31]Write to MH i2c: E2 08 00 CC 18 80 0D 03 02 00 00 00 00 5F [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 0B 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 0B 00 CC 18 00 12 E4 B9 72 44 66 41 84 90 00 F0 [13:32:31]RAPDU: 12 E4 B9 72 44 66 41 84 90 00 [13:32:31]wFMCommunicate OK [13:32:31]SAM_PROTO_SignData done [13:32:31]FM_MakeSignedData done [13:32:31]CreateOFDProtocolMessage [13:32:31]wFMCommunicate request_size=4 [13:32:31]MH_SAM_APDU [13:32:31]CAPDU: 80 11 00 00 [13:32:31]Write to MH i2c: E2 08 00 CD 18 80 11 00 00 00 00 00 00 5F [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:31]Read from MH i2c: E2 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 17 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: E2 17 00 CD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [13:32:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:32:31]wFMCommunicate OK [13:32:31]CreateOFDProtocolMessage done [13:32:31]OFDSenderStorePacket 48900 [13:32:31]StoreOFDPacket docnum=48900 [13:32:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EE C3 07 01 D3 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F1 05 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 BF 00 00 35 04 06 00 44 E1 5D A3 BA FB 12 E4 B9 72 44 66 41 84 [13:32:31]CheckFolder [13:32:31]dirname=/storage/ofd_packets [13:32:31]CheckFolder done [13:32:31]ProducePacketName [13:32:31]name=ofd_packets/00048900 [13:32:31]NVStorageSaveData ofd_packets/00048900 [13:32:31]File name is /storage/ofd_packets/00048900 [13:32:31]Write 301 bytes [13:32:31]NVStorageSaveData done [13:32:31]OFDSenderStorePacket done [13:32:31]KKMCreateOFDPacket done [13:32:31]NVStorageSaveData kkm_last_timestamp [13:32:31]File name is /storage/kkm_last_timestamp [13:32:31]Write 4 bytes [13:32:31]NVStorageSaveData done [13:32:31]ExternCall_PrintAddStr [13:32:31]wPrintStart [13:32:31]Write to MH i2c: 01 00 00 CE 18 E6 [13:32:31]Write i2c OK [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: 01 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: 01 07 00 [13:32:31]MH_I2C_Read... [13:32:31]Read from MH i2c: 01 07 00 CE 18 00 00 00 00 00 FF 0F FB [13:32:31]RasterBufferAndPrint [13:32:31]line Счет N : (1)215997 [13:32:31]line ИНН: 02508201610067 [13:32:31]line Контрольно-Кассовый Чек [13:32:31]line ПРОДАЖА [13:32:31]line ТРК (МРК, ГНК) : 12 [13:32:31]line Товар: 2710124130 [13:32:31]line Аи-92-К-5 [13:32:31]line 3.320 * 60.30 [13:32:31]line = 200.20 [13:32:31]line НДС 12% НСП 1% [13:32:31]line > о реализуемом товаре [13:32:31]line ОКРУГЛЕНИЕ: -0.20 [13:32:31]line ИТОГО: 200.00 [13:32:31]line Внесено: 200.00 [13:32:31]line СДАЧА: 0.00 [13:32:31]line НСП 1% : 1.77 [13:32:31]line НДС 12% : 21.26 [13:32:31]line Наличными: 200.00 [13:32:31]line Безнал.: 0.00 [13:32:31]line Место: АЗС № 102 "Партнер Нефть" [13:32:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:32:31]line СНО: Общий режим [13:32:31]line Чек 80 27.01.2024 13:32 [13:32:31]line Смена: 243 ФФД: 1.0 [13:32:32]line ЗНМ: 0300000040 [13:32:32]line РНМ: 0000000000092723 [13:32:32]line Версия ККМ: 001 [13:32:32]line ФМ: 0000000000875060 [13:32:32]line ФД: 48900 [13:32:32]line ФПД: 75734729341691 [13:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133233&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48900&fm=75734729341691&tin=02508201610067®Number=0000000000092723&sum=20000 [13:32:32]OFD Sender: Processing packet 48900 [packets to send 12, broken 11] [13:32:32]ProducePacketName [13:32:32]name=ofd_packets/00048900 [13:32:32]OFD Sender: To server: pG, [13:32:32]CommunicateWithHost lk.salyk.kg:30040 [13:32:32]ConnectInit lk.salyk.kg [13:32:32]written 0, free lines is 4095 [13:32:32]Connected sock=10 [13:32:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EE C3 07 01 D3 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F1 05 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 04 BF 00 00 35 04 06 00 44 E1 5D A3 BA FB 12 E4 B9 72 44 66 41 84 [13:32:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F2 C7 47 00 C7 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 35 30 36 30 10 04 04 00 04 BF 00 00 F4 03 04 00 F0 B1 B4 65 B6 04 01 00 00 87 C3 51 7E A6 C9 E0 B9 [13:32:32]CommunicateWithHost err = 0 [13:32:32]CheckOFDResponse [13:32:32]1017 (14) - 77093643461234 [13:32:32]1041 (16) - 0000000000875060 [13:32:32]1040 (4) - 48900 [13:32:32]1012 (4) - 27.01.2024 07:34 [13:32:32]1206 (1) - 0 [13:32:32]OFD Sender: Remove packet 48900 [13:32:32]ProducePacketName [13:32:32]name=ofd_packets/00048900 [13:32:32]NVStorageDeleteData [13:32:32]Write to MH i2c: 01 00 00 F9 18 11 [13:32:32]Write i2c OK [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: 01 [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: 01 07 00 [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: 01 07 00 F9 18 00 00 00 00 00 E5 0C 09 [13:32:32]RasterBufferAndPrint [13:32:32]line [13:32:32]line [13:32:32]line [13:32:32]line [13:32:32]line [13:32:32]written 0, free lines is 3307 [13:32:32]MH_Cut [13:32:32]Write to MH i2c: D1 01 00 00 19 01 EB [13:32:32]Write i2c OK [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: D1 [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: D1 01 00 [13:32:32]MH_I2C_Read... [13:32:32]Read from MH i2c: D1 01 00 00 19 00 EA [13:32:32]Write to MH i2c: 01 00 00 01 19 1A [13:32:32]Write i2c OK [13:32:32]MH_I2C_Read... [13:32:32]OFD Sender: No OFD packet to send [13:32:33]*** Cut start [13:32:33]*** Partial cut [13:32:33]*** CUTSNS_PIN = 1 [13:32:33]*** CUTSNS_PIN = 0 [13:32:33]*** Brake cut motor [13:32:33]Read from MH i2c: 01 [13:32:33]MH_I2C_Read... [13:32:33]*** Stop cut motor [13:32:33]*** Cut end [13:32:33]Read from MH i2c: 01 07 00 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: 01 07 00 01 19 00 00 00 00 00 FF 0F 2F [13:32:33]process_action close_receipt done [13:32:33]requested_data is exist [13:32:33]produce_requested_data [13:32:33]requested_item fm.sn is exist - process it [13:32:33]wFMCommunicate request_size=4 [13:32:33]MH_SAM_APDU [13:32:33]CAPDU: 80 11 00 00 [13:32:33]Write to MH i2c: E2 08 00 02 19 80 11 00 00 00 00 00 00 95 [13:32:33]Write i2c OK [13:32:33]MH_I2C_Read... [13:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:33]Read from MH i2c: E2 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: E2 17 00 [13:32:33]MH_I2C_Read... [13:32:33]Read from MH i2c: E2 17 00 02 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E2 [13:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:32:33]wFMCommunicate OK [13:32:33]requested_item fd.num is exist - process it [13:32:33]SAM_PROTO_GetFieldsCounters [13:32:33]wFMCommunicate request_size=4 [13:32:33]MH_SAM_APDU [13:32:33]CAPDU: 80 13 00 00 [13:32:33]Write to MH i2c: E2 08 00 03 19 80 13 00 00 00 00 00 00 98 [13:32:33]Write i2c OK [13:32:33]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 62 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 62 00 03 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 BF 00 00 0E 04 04 00 F3 00 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 57 [13:32: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:34]wFMCommunicate OK [13:32:34]SAM_PROTO_GetFieldsCounters done [13:32:34]requested_item shift.num is exist - process it [13:32:34]requested_item shift.opened is exist - process it [13:32:34]req_shift_opened [13:32:34]FM_GetShiftState [13:32:34]SAM_PROTO_GetShiftState [13:32:34]wFMCommunicate request_size=4 [13:32:34]MH_SAM_APDU [13:32:34]CAPDU: 80 13 01 00 [13:32:34]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [13:32:34]Write i2c OK [13:32:34]MH_I2C_Read... [13:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:34]Read from MH i2c: E2 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 0E 00 [13:32:34]MH_I2C_Read... [13:32:34]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 31 [13:32:34]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:32:34]wFMCommunicate OK [13:32:34]SAM_PROTO_GetShiftState done [13:32:34]FM_GetShiftState done [13:32:34]req_shift_opened done [13:32:34]requested_item shift.open_date is exist - process it [13:32:34]req_shift_open_date [13:32:34]req_shift_open_date done [13:32:34]produce_requested_data done [13:32:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48900,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:32:34]process_action_free close_receipt [13:32:34]json_value_free [13:32:34]json_value_free done [13:32:34]process_json_proto returns [13:32:34]Send response to host [13:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48900,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:32:34]free response buf [13:32:34]execute_script done [13:32:34]execute_script returns [13:32:34]free content buf [13:32:34]Sock 9.Close socket [13:32:34]Sock 9.Thread stoped [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:01]accept exits with 7 [13:33:01]New connection [13:33:01]New thread 3066813796 created [13:33:01]Thread 3066670436 joined [13:33:01]Waiting for new connection... [13:33:01] Sock 7.Parse request [13:33:01]Sock 7.Check first char [13:33:01]Sock 7.First char is OK [13:33:01]request: POST /json_proto HTTP/1.0 [13:33:01]Method: POST [13:33:01]URL: /json_proto [13:33:01]Method is POST - this is cgi request [13:33:01]url: /json_proto [13:33:01]query_string will be loaded in cgi processing [13:33:01]execute_cgi json_proto POST (null) [13:33:01]execute_cgi path=json_proto method=POST [13:33:01]POST find Content-Length [13:33:01]Host: 172.17.56.67:8080 [13:33:01]Content-Length: 1175 [13:33:01]Content-Type: application/json [13:33:01] [13:33:01]POST finish read [13:33:01]Found Content-Length = 1175 [13:33:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0423\u043C\u043E\u0440\u043E\u0432 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)215998\u000A27.01.2024 13:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.000 x 60.30\u000A\u0418\u0422\u041E\u0413: 60.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:01]execute_script... [13:33:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0423\u043C\u043E\u0440\u043E\u0432 \u0421. \u000A\u0421\u0447\u0435\u0442 N : (1)215998\u000A27.01.2024 13:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 22\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 1.000 x 60.30\u000A\u0418\u0422\u041E\u0413: 60.30\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:01]POST & json_proto [13:33:01]process_json_proto [13:33:01]json parsed OK: [13:33:01]protocol is kg_v1.0 [13:33:01]action value=print_text [13:33:01]process_action print_text [13:33:01]cmd_print_text [13:33:01]ExternCall_PrintAddStr [13:33:01]wPrintStart [13:33:01]Write to MH i2c: 01 00 00 05 19 1E [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 07 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 07 00 05 19 00 00 00 00 00 FF 0F 33 [13:33:01]RasterBufferAndPrint [13:33:01]line *****ТОВАРНЫЙ ЧЕК***** [13:33:01]line АЗС 102 [13:33:01]line Партнер нефть [13:33:01]line 02508201610067 [13:33:01]line Кассир : Уморов С. [13:33:01]line Счет N : (1)215998 [13:33:01]line 27.01.2024 13:31 [13:33:01]line ПРОДАЖА [13:33:01]line ТРК (МРК, ГНК): 22 [13:33:01]line Вид ГСМ : 2710124130 [13:33:01]line Аи-92-К-5 [13:33:01]line 1.000 x 60.30 [13:33:01]line ИТОГ: 60.30 [13:33:01]line Тип оплаты: Технологический отпуск: [13:33:01]line ______________________ [13:33:01]line (подпись) [13:33:01]written 0, free lines is 4095 [13:33:01]Write to MH i2c: 01 00 00 18 19 31 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 07 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 07 00 18 19 00 00 00 00 00 28 0E 6E [13:33:01]RasterBufferAndPrint [13:33:01]line [13:33:01]line [13:33:01]line [13:33:01]line [13:33:01]line [13:33:01]written 0, free lines is 3626 [13:33:01]MH_Cut [13:33:01]Write to MH i2c: D1 01 00 1F 19 01 0A [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: D1 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: D1 01 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: D1 01 00 1F 19 00 09 [13:33:01]Write to MH i2c: 01 00 00 20 19 39 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** Cut start [13:33:01]*** Partial cut [13:33:01]*** CUTSNS_PIN = 1 [13:33:02]*** CUTSNS_PIN = 0 [13:33:02]*** Brake cut motor [13:33:02]Read from MH i2c: 01 [13:33:02]MH_I2C_Read... [13:33:02]*** Stop cut motor [13:33:02]*** Cut end [13:33:02]Read from MH i2c: 01 07 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: 01 07 00 20 19 00 00 00 00 00 FF 0F 4E [13:33:02]process_action print_text done [13:33:02]requested_data is exist [13:33:02]produce_requested_data [13:33:02]requested_item fm.sn is exist - process it [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 11 00 00 [13:33:02]Write to MH i2c: E2 08 00 21 19 80 11 00 00 00 00 00 00 B4 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 17 00 21 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [13:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:33:02]wFMCommunicate OK [13:33:02]requested_item fd.num is exist - process it [13:33:02]SAM_PROTO_GetFieldsCounters [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 13 00 00 [13:33:02]Write to MH i2c: E2 08 00 22 19 80 13 00 00 00 00 00 00 B7 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 62 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 62 00 22 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 BF 00 00 0E 04 04 00 F3 00 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 76 [13:33: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 04 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:02]wFMCommunicate OK [13:33:02]SAM_PROTO_GetFieldsCounters done [13:33:02]requested_item shift.num is exist - process it [13:33:02]requested_item shift.opened is exist - process it [13:33:02]req_shift_opened [13:33:02]FM_GetShiftState [13:33:02]SAM_PROTO_GetShiftState [13:33:02]wFMCommunicate request_size=4 [13:33:02]MH_SAM_APDU [13:33:02]CAPDU: 80 13 01 00 [13:33:02]Write to MH i2c: E2 08 00 23 19 80 13 01 00 00 00 00 00 B9 [13:33:02]Write i2c OK [13:33:02]MH_I2C_Read... [13:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:02]Read from MH i2c: E2 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0E 00 [13:33:02]MH_I2C_Read... [13:33:02]Read from MH i2c: E2 0E 00 23 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 50 [13:33:02]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:33:02]wFMCommunicate OK [13:33:02]SAM_PROTO_GetShiftState done [13:33:02]FM_GetShiftState done [13:33:02]req_shift_opened done [13:33:02]requested_item shift.open_date is exist - process it [13:33:02]req_shift_open_date [13:33:02]req_shift_open_date done [13:33:02]produce_requested_data done [13:33:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48900,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:33:02]process_action_free print_text [13:33:02]json_value_free [13:33:02]json_value_free done [13:33:02]process_json_proto returns [13:33:02]Send response to host [13:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48900,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:33:02]free response buf [13:33:02]execute_script done [13:33:02]execute_script returns [13:33:02]free content buf [13:33:02]Sock 7.Close socket [13:33:02]Sock 7.Thread stoped [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:33]accept exits with 9 [13:34:33]New connection [13:34:33]New thread 3066670436 created [13:34:33]Thread 3066813796 joined [13:34:33]Waiting for new connection... [13:34:33] Sock 9.Parse request [13:34:33]Sock 9.Check first char [13:34:33]Sock 9.First char is OK [13:34:33]request: POST /json_proto HTTP/1.0 [13:34:33]Method: POST [13:34:33]URL: /json_proto [13:34:33]Method is POST - this is cgi request [13:34:33]url: /json_proto [13:34:33]query_string will be loaded in cgi processing [13:34:33]execute_cgi json_proto POST (null) [13:34:33]execute_cgi path=json_proto method=POST [13:34:33]POST find Content-Length [13:34:33]Host: 172.17.56.67:8080 [13:34:33]Content-Length: 674 [13:34:33]Content-Type: application/json [13:34:33] [13:34:33]POST finish read [13:34:33]Found Content-Length = 674 [13:34:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)215999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "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:34:33]execute_script... [13:34: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)215999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "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:34:33]POST & json_proto [13:34:33]process_json_proto [13:34:33]json parsed OK: [13:34:33]protocol is kg_v1.0 [13:34:33]action value=close_receipt [13:34:33]process_action close_receipt [13:34:33]cmd_close_receipt [13:34:33]MH_GetDate [13:34:33]Write to MH i2c: F0 00 00 24 19 2C [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: F0 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: F0 09 00 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: F0 09 00 24 19 00 6D 06 B5 65 26 5D 9E 65 48 [13:34:33]GetLastDocTimeStamp 1706362353 [13:34:33]current date 1706362477 [13:34:33]FM_GetShiftState [13:34:33]SAM_PROTO_GetShiftState [13:34:33]wFMCommunicate request_size=4 [13:34:33]MH_SAM_APDU [13:34:33]CAPDU: 80 13 01 00 [13:34:33]Write to MH i2c: E2 08 00 25 19 80 13 01 00 00 00 00 00 BB [13:34:33]Write i2c OK [13:34:33]MH_I2C_Read... [13:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:33]Read from MH i2c: E2 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: E2 0E 00 [13:34:33]MH_I2C_Read... [13:34:33]Read from MH i2c: E2 0E 00 25 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 52 [13:34:33]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:34:33]wFMCommunicate OK [13:34:33]SAM_PROTO_GetShiftState done [13:34:33]FM_GetShiftState done [13:34:33]opened in 1706313770 [13:34:33]opened+sec_in_day 1706400170 [13:34:33]quantity*price = 50048 [13:34:33]sum+1 = 50049 [13:34:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 81 27.01.2024 13:34 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48901 ФПД: 36385094695129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133437&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48901&fm=36385094695129&tin=02508201610067®Number=0000000000092723&sum=50000 [13:34:34]StoreToDocumentArchive [13:34:34]shift 243 fd 48901 [13:34:34]save to /storage/0243/doc_00048901 [13:34:34]save last doc name /storage/0243/doc_00048901 to /storage/kkm_last_doc_name [13:34:34]save OK [13:34:34]Clear old archive folders... [13:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:34:34]tlvbuf is B6E86DF0 [13:34:34]SAM_PROTO_ClearQueue [13:34:34]wFMCommunicate request_size=4 [13:34:34]MH_SAM_APDU [13:34:34]CAPDU: 80 09 00 00 [13:34:34]Write to MH i2c: E2 08 00 32 19 80 09 00 00 00 00 00 00 BD [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:34]Read from MH i2c: E2 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 03 00 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 03 00 32 19 00 90 00 BF [13:34:34]RAPDU: 90 00 [13:34:34]wFMCommunicate OK [13:34:34]SAM_PROTO_ClearQueue done [13:34:34]KKMCreateOFDPacket [13:34:34]OFDProtocolAddRootSTLVToBuf [13:34:34]FM_MakeSignedData [13:34:34]FM_MakeSignedData [13:34:34]SAM_PROTO_SignData [13:34:34]wFMCommunicate request_size=4 [13:34:34]MH_SAM_APDU [13:34:34]CAPDU: 80 0D 01 02 [13:34:34]Write to MH i2c: E2 08 00 33 19 80 0D 01 02 00 00 00 00 C5 [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:34]Read from MH i2c: E2 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 03 00 [13:34:34]MH_I2C_Read... [13:34:34]Read from MH i2c: E2 03 00 33 19 00 90 00 C0 [13:34:34]RAPDU: 90 00 [13:34:34]wFMCommunicate OK [13:34:34]wFMCommunicate request_size=255 [13:34:34]MH_SAM_APDU [13:34: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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 6D 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 BF 00 00 35 04 06 00 21 17 90 A4 [13:34:34]Write to MH i2c: E2 02 01 34 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 6D 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 BF 00 00 35 04 06 00 21 17 90 A4 00 00 93 [13:34:34]Write i2c OK [13:34:34]MH_I2C_Read... [13:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:35]Read from MH i2c: E2 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 03 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 03 00 34 19 00 90 00 C1 [13:34:35]RAPDU: 90 00 [13:34:35]wFMCommunicate OK [13:34:35]wFMCommunicate request_size=7 [13:34:35]MH_SAM_APDU [13:34:35]CAPDU: 80 0D 02 02 02 F8 D9 [13:34:35]Write to MH i2c: E2 0A 00 35 19 80 0D 02 02 02 00 F8 D9 00 00 9D [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:35]Read from MH i2c: E2 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 03 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 03 00 35 19 00 90 00 C2 [13:34:35]RAPDU: 90 00 [13:34:35]wFMCommunicate OK [13:34:35]wFMCommunicate request_size=4 [13:34:35]MH_SAM_APDU [13:34:35]CAPDU: 80 0D 03 02 [13:34:35]Write to MH i2c: E2 08 00 36 19 80 0D 03 02 00 00 00 00 CA [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:35]Read from MH i2c: E2 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 0B 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 0B 00 36 19 00 ED FC A5 B6 FB 88 CE 28 90 00 88 [13:34:35]RAPDU: ED FC A5 B6 FB 88 CE 28 90 00 [13:34:35]wFMCommunicate OK [13:34:35]SAM_PROTO_SignData done [13:34:35]FM_MakeSignedData done [13:34:35]CreateOFDProtocolMessage [13:34:35]wFMCommunicate request_size=4 [13:34:35]MH_SAM_APDU [13:34:35]CAPDU: 80 11 00 00 [13:34:35]Write to MH i2c: E2 08 00 37 19 80 11 00 00 00 00 00 00 CA [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:35]Read from MH i2c: E2 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 17 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: E2 17 00 37 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [13:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:34:35]wFMCommunicate OK [13:34:35]CreateOFDProtocolMessage done [13:34:35]OFDSenderStorePacket 48901 [13:34:35]StoreOFDPacket docnum=48901 [13:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 00 04 01 83 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 6D 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 BF 00 00 35 04 06 00 21 17 90 A4 F8 D9 ED FC A5 B6 FB 88 CE 28 [13:34:35]CheckFolder [13:34:35]dirname=/storage/ofd_packets [13:34:35]CheckFolder done [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00048901 [13:34:35]NVStorageSaveData ofd_packets/00048901 [13:34:35]File name is /storage/ofd_packets/00048901 [13:34:35]Write 298 bytes [13:34:35]NVStorageSaveData done [13:34:35]OFDSenderStorePacket done [13:34:35]KKMCreateOFDPacket done [13:34:35]NVStorageSaveData kkm_last_timestamp [13:34:35]File name is /storage/kkm_last_timestamp [13:34:35]Write 4 bytes [13:34:35]NVStorageSaveData done [13:34:35]ExternCall_PrintAddStr [13:34:35]wPrintStart [13:34:35]Write to MH i2c: 01 00 00 38 19 51 [13:34:35]Write i2c OK [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: 01 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: 01 07 00 [13:34:35]MH_I2C_Read... [13:34:35]Read from MH i2c: 01 07 00 38 19 00 00 00 00 00 FF 0F 66 [13:34:35]RasterBufferAndPrint [13:34:35]line Счет N : (1)215999 [13:34:35]line ИНН: 02508201610067 [13:34:35]line Контрольно-Кассовый Чек [13:34:35]line ПРОДАЖА [13:34:35]line ТРК (МРК, ГНК) : 11 [13:34:35]line Товар: 2710194210 [13:34:35]line ДТ-К-5 [13:34:35]line 7.160 * 69.90 [13:34:35]line = 500.48 [13:34:35]line НДС 12% НСП 1% [13:34:35]line > о реализуемом товаре [13:34:35]line ОКРУГЛЕНИЕ: -0.48 [13:34:35]line ИТОГО: 500.00 [13:34:35]line Внесено: 500.00 [13:34:35]line СДАЧА: 0.00 [13:34:35]line НСП 1% : 4.43 [13:34:35]line НДС 12% : 53.15 [13:34:35]line Наличными: 500.00 [13:34:35]line Безнал.: 0.00 [13:34:35]line Место: АЗС № 102 "Партнер Нефть" [13:34:35]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:34:35]line СНО: Общий режим [13:34:35]line Чек 81 27.01.2024 13:34 [13:34:35]line Смена: 243 ФФД: 1.0 [13:34:35]line ЗНМ: 0300000040 [13:34:35]line РНМ: 0000000000092723 [13:34:35]line Версия ККМ: 001 [13:34:35]line ФМ: 0000000000875060 [13:34:35]line ФД: 48901 [13:34:35]line ФПД: 36385094695129 [13:34:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133437&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48901&fm=36385094695129&tin=02508201610067®Number=0000000000092723&sum=50000 [13:34:35]OFD Sender: Processing packet 48901 [packets to send 12, broken 11] [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00048901 [13:34:35]OFD Sender: To server: pG, [13:34:35]CommunicateWithHost lk.salyk.kg:30040 [13:34:35]ConnectInit lk.salyk.kg [13:34:35]written 0, free lines is 4095 [13:34:35]Connected sock=10 [13:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F5 00 04 01 83 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 6D 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 BF 00 00 35 04 06 00 21 17 90 A4 F8 D9 ED FC A5 B6 FB 88 CE 28 [13:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 07 98 47 00 76 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 05 BF 00 00 F4 03 04 00 6B B2 B4 65 B6 04 01 00 00 AC B1 15 D8 32 67 D6 55 [13:34:35]CommunicateWithHost err = 0 [13:34:35]CheckOFDResponse [13:34:35]1017 (14) - 77093643461234 [13:34:35]1041 (16) - 0000000000875060 [13:34:35]1040 (4) - 48901 [13:34:35]1012 (4) - 27.01.2024 07:36 [13:34:35]1206 (1) - 0 [13:34:35]OFD Sender: Remove packet 48901 [13:34:35]ProducePacketName [13:34:35]name=ofd_packets/00048901 [13:34:35]NVStorageDeleteData [13:34:36]Write to MH i2c: 01 00 00 63 19 7C [13:34:36]Write i2c OK [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: 01 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: 01 07 00 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 E0 0C 6F [13:34:36]RasterBufferAndPrint [13:34:36]line [13:34:36]line [13:34:36]line [13:34:36]line [13:34:36]line [13:34:36]written 0, free lines is 3305 [13:34:36]MH_Cut [13:34:36]Write to MH i2c: D1 01 00 6A 19 01 55 [13:34:36]Write i2c OK [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: D1 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: D1 01 00 [13:34:36]MH_I2C_Read... [13:34:36]Read from MH i2c: D1 01 00 6A 19 00 54 [13:34:36]Write to MH i2c: 01 00 00 6B 19 84 [13:34:36]Write i2c OK [13:34:36]MH_I2C_Read... [13:34:36]OFD Sender: No OFD packet to send [13:34:36]*** Cut start [13:34:36]*** Partial cut [13:34:36]*** CUTSNS_PIN = 1 [13:34:36]*** CUTSNS_PIN = 0 [13:34:37]*** Brake cut motor [13:34:37]Read from MH i2c: 01 [13:34:37]MH_I2C_Read... [13:34:37]*** Stop cut motor [13:34:37]*** Cut end [13:34:37]Read from MH i2c: 01 07 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: 01 07 00 6B 19 00 00 00 00 00 FF 0F 99 [13:34:37]process_action close_receipt done [13:34:37]requested_data is exist [13:34:37]produce_requested_data [13:34:37]requested_item fm.sn is exist - process it [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 11 00 00 [13:34:37]Write to MH i2c: E2 08 00 6C 19 80 11 00 00 00 00 00 00 FF [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 17 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 17 00 6C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [13:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:34:37]wFMCommunicate OK [13:34:37]requested_item fd.num is exist - process it [13:34:37]SAM_PROTO_GetFieldsCounters [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 13 00 00 [13:34:37]Write to MH i2c: E2 08 00 6D 19 80 13 00 00 00 00 00 00 02 [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 62 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 62 00 6D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 05 BF 00 00 0E 04 04 00 F3 00 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 C5 [13:34: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 05 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:37]wFMCommunicate OK [13:34:37]SAM_PROTO_GetFieldsCounters done [13:34:37]requested_item shift.num is exist - process it [13:34:37]requested_item shift.opened is exist - process it [13:34:37]req_shift_opened [13:34:37]FM_GetShiftState [13:34:37]SAM_PROTO_GetShiftState [13:34:37]wFMCommunicate request_size=4 [13:34:37]MH_SAM_APDU [13:34:37]CAPDU: 80 13 01 00 [13:34:37]Write to MH i2c: E2 08 00 6E 19 80 13 01 00 00 00 00 00 04 [13:34:37]Write i2c OK [13:34:37]MH_I2C_Read... [13:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:37]Read from MH i2c: E2 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 0E 00 [13:34:37]MH_I2C_Read... [13:34:37]Read from MH i2c: E2 0E 00 6E 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9B [13:34:37]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:34:37]wFMCommunicate OK [13:34:37]SAM_PROTO_GetShiftState done [13:34:37]FM_GetShiftState done [13:34:37]req_shift_opened done [13:34:37]requested_item shift.open_date is exist - process it [13:34:37]req_shift_open_date [13:34:37]req_shift_open_date done [13:34:37]produce_requested_data done [13:34:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48901,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:34:37]process_action_free close_receipt [13:34:37]json_value_free [13:34:37]json_value_free done [13:34:37]process_json_proto returns [13:34:37]Send response to host [13:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48901,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:34:37]free response buf [13:34:37]execute_script done [13:34:37]execute_script returns [13:34:37]free content buf [13:34:37]Sock 9.Close socket [13:34:37]Sock 9.Thread stoped [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:35]accept exits with 7 [13:35:35]New connection [13:35:35]New thread 3066813796 created [13:35:35]Thread 3066670436 joined [13:35:35]Waiting for new connection... [13:35:35] Sock 7.Parse request [13:35:35]Sock 7.Check first char [13:35:35]Sock 7.First char is OK [13:35:35]request: POST /json_proto HTTP/1.0 [13:35:35]Method: POST [13:35:35]URL: /json_proto [13:35:35]Method is POST - this is cgi request [13:35:35]url: /json_proto [13:35:35]query_string will be loaded in cgi processing [13:35:35]execute_cgi json_proto POST (null) [13:35:35]execute_cgi path=json_proto method=POST [13:35:35]POST find Content-Length [13:35:35]Host: 172.17.56.67:8080 [13:35:35]Content-Length: 675 [13:35:35]Content-Type: application/json [13:35:35] [13:35:35]POST finish read [13:35:35]Found Content-Length = 675 [13:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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:35:35]execute_script... [13:35: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)216000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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:35:35]POST & json_proto [13:35:35]process_json_proto [13:35:35]json parsed OK: [13:35:35]protocol is kg_v1.0 [13:35:35]action value=close_receipt [13:35:35]process_action close_receipt [13:35:35]cmd_close_receipt [13:35:35]MH_GetDate [13:35:35]Write to MH i2c: F0 00 00 6F 19 77 [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: F0 09 00 6F 19 00 AB 06 B5 65 26 5D 9E 65 D1 [13:35:35]GetLastDocTimeStamp 1706362477 [13:35:35]current date 1706362539 [13:35:35]FM_GetShiftState [13:35:35]SAM_PROTO_GetShiftState [13:35:35]wFMCommunicate request_size=4 [13:35:35]MH_SAM_APDU [13:35:35]CAPDU: 80 13 01 00 [13:35:35]Write to MH i2c: E2 08 00 70 19 80 13 01 00 00 00 00 00 06 [13:35:35]Write i2c OK [13:35:35]MH_I2C_Read... [13:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:35]Read from MH i2c: E2 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 [13:35:35]MH_I2C_Read... [13:35:35]Read from MH i2c: E2 0E 00 70 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 9D [13:35:35]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:35:35]wFMCommunicate OK [13:35:35]SAM_PROTO_GetShiftState done [13:35:35]FM_GetShiftState done [13:35:35]opened in 1706313770 [13:35:35]opened+sec_in_day 1706400170 [13:35:35]quantity*price = 70039 [13:35:35]sum+1 = 70041 [13:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 82 27.01.2024 13:35 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48902 ФПД: 257827503954795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48902&fm=257827503954795&tin=02508201610067®Number=0000000000092723&sum=70000 [13:35:36]StoreToDocumentArchive [13:35:36]shift 243 fd 48902 [13:35:36]save to /storage/0243/doc_00048902 [13:35:36]save last doc name /storage/0243/doc_00048902 to /storage/kkm_last_doc_name [13:35:36]save OK [13:35:36]Clear old archive folders... [13:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:35:36]tlvbuf is 0135CF60 [13:35:36]SAM_PROTO_ClearQueue [13:35:36]wFMCommunicate request_size=4 [13:35:36]MH_SAM_APDU [13:35:36]CAPDU: 80 09 00 00 [13:35:36]Write to MH i2c: E2 08 00 7D 19 80 09 00 00 00 00 00 00 08 [13:35:36]Write i2c OK [13:35:36]MH_I2C_Read... [13:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:36]Read from MH i2c: E2 [13:35:36]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 7D 19 00 90 00 0A [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]SAM_PROTO_ClearQueue done [13:35:37]KKMCreateOFDPacket [13:35:37]OFDProtocolAddRootSTLVToBuf [13:35:37]FM_MakeSignedData [13:35:37]FM_MakeSignedData [13:35:37]SAM_PROTO_SignData [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 01 02 [13:35:37]Write to MH i2c: E2 08 00 7E 19 80 0D 01 02 00 00 00 00 10 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 7E 19 00 90 00 0B [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=255 [13:35:37]MH_SAM_APDU [13:35: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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 52 00 00 00 F4 03 04 00 AB 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 BF 00 00 35 04 06 00 EA 7E 24 C9 [13:35:37]Write to MH i2c: E2 02 01 7F 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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 52 00 00 00 F4 03 04 00 AB 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 BF 00 00 35 04 06 00 EA 7E 24 C9 00 00 8A [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 7F 19 00 90 00 0C [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=7 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 02 02 02 5B 6B [13:35:37]Write to MH i2c: E2 0A 00 80 19 80 0D 02 02 02 00 5B 6B 00 00 DD [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 03 00 80 19 00 90 00 0D [13:35:37]RAPDU: 90 00 [13:35:37]wFMCommunicate OK [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 0D 03 02 [13:35:37]Write to MH i2c: E2 08 00 81 19 80 0D 03 02 00 00 00 00 15 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 0B 00 81 19 00 62 1E BF 7C 34 F1 28 78 90 00 96 [13:35:37]RAPDU: 62 1E BF 7C 34 F1 28 78 90 00 [13:35:37]wFMCommunicate OK [13:35:37]SAM_PROTO_SignData done [13:35:37]FM_MakeSignedData done [13:35:37]CreateOFDProtocolMessage [13:35:37]wFMCommunicate request_size=4 [13:35:37]MH_SAM_APDU [13:35:37]CAPDU: 80 11 00 00 [13:35:37]Write to MH i2c: E2 08 00 82 19 80 11 00 00 00 00 00 00 15 [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:37]Read from MH i2c: E2 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: E2 17 00 82 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 62 [13:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:35:37]wFMCommunicate OK [13:35:37]CreateOFDProtocolMessage done [13:35:37]OFDSenderStorePacket 48902 [13:35:37]StoreOFDPacket docnum=48902 [13:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 BD 24 04 01 E4 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 52 00 00 00 F4 03 04 00 AB 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 BF 00 00 35 04 06 00 EA 7E 24 C9 5B 6B 62 1E BF 7C 34 F1 28 78 [13:35:37]CheckFolder [13:35:37]dirname=/storage/ofd_packets [13:35:37]CheckFolder done [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00048902 [13:35:37]NVStorageSaveData ofd_packets/00048902 [13:35:37]File name is /storage/ofd_packets/00048902 [13:35:37]Write 298 bytes [13:35:37]NVStorageSaveData done [13:35:37]OFDSenderStorePacket done [13:35:37]KKMCreateOFDPacket done [13:35:37]NVStorageSaveData kkm_last_timestamp [13:35:37]File name is /storage/kkm_last_timestamp [13:35:37]Write 4 bytes [13:35:37]NVStorageSaveData done [13:35:37]ExternCall_PrintAddStr [13:35:37]wPrintStart [13:35:37]Write to MH i2c: 01 00 00 83 19 9C [13:35:37]Write i2c OK [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 [13:35:37]MH_I2C_Read... [13:35:37]Read from MH i2c: 01 07 00 83 19 00 00 00 00 00 FF 0F B1 [13:35:37]RasterBufferAndPrint [13:35:37]line Счет N : (1)216000 [13:35:37]line ИНН: 02508201610067 [13:35:37]line Контрольно-Кассовый Чек [13:35:37]line ПРОДАЖА [13:35:37]line ТРК (МРК, ГНК) : 21 [13:35:37]line Товар: 2710194210 [13:35:37]line ДТ-К-5 [13:35:37]line 10.020 * 69.90 [13:35:37]line = 700.40 [13:35:37]line НДС 12% НСП 1% [13:35:37]line > о реализуемом товаре [13:35:37]line ОКРУГЛЕНИЕ: -0.40 [13:35:37]line ИТОГО: 700.00 [13:35:37]line Внесено: 700.00 [13:35:37]line СДАЧА: 0.00 [13:35:37]line НСП 1% : 6.20 [13:35:37]line НДС 12% : 74.38 [13:35:37]line Наличными: 700.00 [13:35:37]line Безнал.: 0.00 [13:35:37]line Место: АЗС № 102 "Партнер Нефть" [13:35:37]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:35:37]line СНО: Общий режим [13:35:37]line Чек 82 27.01.2024 13:35 [13:35:37]line Смена: 243 ФФД: 1.0 [13:35:37]line ЗНМ: 0300000040 [13:35:37]line РНМ: 0000000000092723 [13:35:37]line Версия ККМ: 001 [13:35:37]line ФМ: 0000000000875060 [13:35:37]line ФД: 48902 [13:35:37]line ФПД: 257827503954795 [13:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T133539&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48902&fm=257827503954795&tin=02508201610067®Number=0000000000092723&sum=70000 [13:35:37]OFD Sender: Processing packet 48902 [packets to send 12, broken 11] [13:35:37]ProducePacketName [13:35:37]name=ofd_packets/00048902 [13:35:37]OFD Sender: To server: pG, [13:35:37]CommunicateWithHost lk.salyk.kg:30040 [13:35:37]ConnectInit lk.salyk.kg [13:35:37]written 0, free lines is 4095 [13:35:37]Connected sock=10 [13:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 BD 24 04 01 E4 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 52 00 00 00 F4 03 04 00 AB 06 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 BF 00 00 35 04 06 00 EA 7E 24 C9 5B 6B 62 1E BF 7C 34 F1 28 78 [13:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 67 67 47 00 F8 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 06 BF 00 00 F4 03 04 00 A9 B2 B4 65 B6 04 01 00 00 ED 29 68 93 01 96 22 7B [13:35:38]CommunicateWithHost err = 0 [13:35:38]CheckOFDResponse [13:35:38]1017 (14) - 77093643461234 [13:35:38]1041 (16) - 0000000000875060 [13:35:38]1040 (4) - 48902 [13:35:38]1012 (4) - 27.01.2024 07:37 [13:35:38]1206 (1) - 0 [13:35:38]OFD Sender: Remove packet 48902 [13:35:38]ProducePacketName [13:35:38]name=ofd_packets/00048902 [13:35:38]NVStorageDeleteData [13:35:38]Write to MH i2c: 01 00 00 AE 19 C7 [13:35:38]Write i2c OK [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: 01 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: 01 07 00 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: 01 07 00 AE 19 00 00 00 00 00 EC 0C C6 [13:35:38]RasterBufferAndPrint [13:35:38]line [13:35:38]line [13:35:38]line [13:35:38]line [13:35:38]line [13:35:38]written 0, free lines is 3314 [13:35:38]MH_Cut [13:35:38]Write to MH i2c: D1 01 00 B5 19 01 A0 [13:35:38]Write i2c OK [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 01 00 [13:35:38]MH_I2C_Read... [13:35:38]Read from MH i2c: D1 01 00 B5 19 00 9F [13:35:38]Write to MH i2c: 01 00 00 B6 19 CF [13:35:38]Write i2c OK [13:35:38]MH_I2C_Read... [13:35:38]OFD Sender: No OFD packet to send [13:35:38]*** Cut start [13:35:38]*** Partial cut [13:35:38]*** CUTSNS_PIN = 1 [13:35:38]*** CUTSNS_PIN = 0 [13:35:39]*** Brake cut motor [13:35:39]Read from MH i2c: 01 [13:35:39]MH_I2C_Read... [13:35:39]*** Stop cut motor [13:35:39]*** Cut end [13:35:39]Read from MH i2c: 01 07 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: 01 07 00 B6 19 00 00 00 00 00 FF 0F E4 [13:35:39]process_action close_receipt done [13:35:39]requested_data is exist [13:35:39]produce_requested_data [13:35:39]requested_item fm.sn is exist - process it [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 11 00 00 [13:35:39]Write to MH i2c: E2 08 00 B7 19 80 11 00 00 00 00 00 00 4A [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 17 00 B7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 97 [13:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:35:39]wFMCommunicate OK [13:35:39]requested_item fd.num is exist - process it [13:35:39]SAM_PROTO_GetFieldsCounters [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 00 00 [13:35:39]Write to MH i2c: E2 08 00 B8 19 80 13 00 00 00 00 00 00 4D [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 62 00 B8 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 06 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [13:35: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 06 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetFieldsCounters done [13:35:39]requested_item shift.num is exist - process it [13:35:39]requested_item shift.opened is exist - process it [13:35:39]req_shift_opened [13:35:39]FM_GetShiftState [13:35:39]SAM_PROTO_GetShiftState [13:35:39]wFMCommunicate request_size=4 [13:35:39]MH_SAM_APDU [13:35:39]CAPDU: 80 13 01 00 [13:35:39]Write to MH i2c: E2 08 00 B9 19 80 13 01 00 00 00 00 00 4F [13:35:39]Write i2c OK [13:35:39]MH_I2C_Read... [13:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:39]Read from MH i2c: E2 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 [13:35:39]MH_I2C_Read... [13:35:39]Read from MH i2c: E2 0E 00 B9 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E6 [13:35:39]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:35:39]wFMCommunicate OK [13:35:39]SAM_PROTO_GetShiftState done [13:35:39]FM_GetShiftState done [13:35:39]req_shift_opened done [13:35:39]requested_item shift.open_date is exist - process it [13:35:39]req_shift_open_date [13:35:39]req_shift_open_date done [13:35:39]produce_requested_data done [13:35:39]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48902,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:35:39]process_action_free close_receipt [13:35:39]json_value_free [13:35:39]json_value_free done [13:35:39]process_json_proto returns [13:35:39]Send response to host [13:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48902,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:35:39]free response buf [13:35:39]execute_script done [13:35:39]execute_script returns [13:35:39]free content buf [13:35:39]Sock 7.Close socket [13:35:39]Sock 7.Thread stoped [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:07]accept exits with 9 [13:47:07]New connection [13:47:07]New thread 3066670436 created [13:47:07]Thread 3066813796 joined [13:47:07]Waiting for new connection... [13:47:07] Sock 9.Parse request [13:47:07]Sock 9.Check first char [13:47:07]Sock 9.First char is OK [13:47:07]request: POST /json_proto HTTP/1.0 [13:47:07]Method: POST [13:47:07]URL: /json_proto [13:47:07]Method is POST - this is cgi request [13:47:07]url: /json_proto [13:47:07]query_string will be loaded in cgi processing [13:47:07]execute_cgi json_proto POST (null) [13:47:07]execute_cgi path=json_proto method=POST [13:47:07]POST find Content-Length [13:47:07]Host: 172.17.56.67:8080 [13:47:07]Content-Length: 640 [13:47:07]Content-Type: application/json [13:47:07] [13:47:07]POST finish read [13:47:07]Found Content-Length = 640 [13:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.000, "sum" : 603.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 603.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:07]execute_script... [13:47: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)216001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.000, "sum" : 603.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 603.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:07]POST & json_proto [13:47:07]process_json_proto [13:47:07]json parsed OK: [13:47:07]protocol is kg_v1.0 [13:47:07]action value=close_receipt [13:47:07]process_action close_receipt [13:47:07]cmd_close_receipt [13:47:07]MH_GetDate [13:47:07]Write to MH i2c: F0 00 00 BA 19 C2 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: F0 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: F0 09 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: F0 09 00 BA 19 00 5F 09 B5 65 26 5D 9E 65 D3 [13:47:07]GetLastDocTimeStamp 1706362539 [13:47:07]current date 1706363231 [13:47:07]FM_GetShiftState [13:47:07]SAM_PROTO_GetShiftState [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 13 01 00 [13:47:07]Write to MH i2c: E2 08 00 BB 19 80 13 01 00 00 00 00 00 51 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 BB 19 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E8 [13:47:07]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:47:07]wFMCommunicate OK [13:47:07]SAM_PROTO_GetShiftState done [13:47:07]FM_GetShiftState done [13:47:07]opened in 1706313770 [13:47:07]opened+sec_in_day 1706400170 [13:47:07]quantity*price = 60300 [13:47:07]sum+1 = 60301 [13:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 603.00 НСП 1% : 5.34 НДС 12% : 64.03 Наличными: 603.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 83 27.01.2024 13:47 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48903 ФПД: 185366693945622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T134711&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48903&fm=185366693945622&tin=02508201610067®Number=0000000000092723&sum=60300 [13:47:09]StoreToDocumentArchive [13:47:09]shift 243 fd 48903 [13:47:09]save to /storage/0243/doc_00048903 [13:47:09]save last doc name /storage/0243/doc_00048903 to /storage/kkm_last_doc_name [13:47:09]save OK [13:47:09]Clear old archive folders... [13:47:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:09]tlvbuf is B6E9FC00 [13:47:09]SAM_PROTO_ClearQueue [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 09 00 00 [13:47:09]Write to MH i2c: E2 08 00 C8 19 80 09 00 00 00 00 00 00 53 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 C8 19 00 90 00 55 [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]SAM_PROTO_ClearQueue done [13:47:09]KKMCreateOFDPacket [13:47:09]OFDProtocolAddRootSTLVToBuf [13:47:09]FM_MakeSignedData [13:47:09]FM_MakeSignedData [13:47:09]SAM_PROTO_SignData [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 01 02 [13:47:09]Write to MH i2c: E2 08 00 C9 19 80 0D 01 02 00 00 00 00 5B [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 C9 19 00 90 00 56 [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]wFMCommunicate request_size=255 [13:47:09]MH_SAM_APDU [13:47: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 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5F 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 BF 00 00 35 04 06 00 A8 [13:47:09]Write to MH i2c: E2 02 01 CA 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 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5F 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 BF 00 00 35 04 06 00 A8 00 00 08 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]OFD Sender: No OFD packet to send [13:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 CA 19 00 90 00 57 [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]wFMCommunicate request_size=10 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 02 02 05 97 0B F2 21 16 [13:47:09]Write to MH i2c: E2 0D 00 CB 19 80 0D 02 02 05 00 97 0B F2 21 16 00 00 33 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 03 00 CB 19 00 90 00 58 [13:47:09]RAPDU: 90 00 [13:47:09]wFMCommunicate OK [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 0D 03 02 [13:47:09]Write to MH i2c: E2 08 00 CC 19 80 0D 03 02 00 00 00 00 60 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 0B 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 0B 00 CC 19 00 65 8D DF 15 7B 3B AB 4A 90 00 F2 [13:47:09]RAPDU: 65 8D DF 15 7B 3B AB 4A 90 00 [13:47:09]wFMCommunicate OK [13:47:09]SAM_PROTO_SignData done [13:47:09]FM_MakeSignedData done [13:47:09]CreateOFDProtocolMessage [13:47:09]wFMCommunicate request_size=4 [13:47:09]MH_SAM_APDU [13:47:09]CAPDU: 80 11 00 00 [13:47:09]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:09]Read from MH i2c: E2 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 17 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: E2 17 00 CD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AD [13:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:47:09]wFMCommunicate OK [13:47:09]CreateOFDProtocolMessage done [13:47:09]OFDSenderStorePacket 48903 [13:47:09]StoreOFDPacket docnum=48903 [13:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 70 D6 07 01 2A 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 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5F 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 BF 00 00 35 04 06 00 A8 97 0B F2 21 16 65 8D DF 15 7B 3B AB 4A [13:47:09]CheckFolder [13:47:09]dirname=/storage/ofd_packets [13:47:09]CheckFolder done [13:47:09]ProducePacketName [13:47:09]name=ofd_packets/00048903 [13:47:09]NVStorageSaveData ofd_packets/00048903 [13:47:09]File name is /storage/ofd_packets/00048903 [13:47:09]Write 301 bytes [13:47:09]NVStorageSaveData done [13:47:09]OFDSenderStorePacket done [13:47:09]KKMCreateOFDPacket done [13:47:09]NVStorageSaveData kkm_last_timestamp [13:47:09]File name is /storage/kkm_last_timestamp [13:47:09]Write 4 bytes [13:47:09]NVStorageSaveData done [13:47:09]ExternCall_PrintAddStr [13:47:09]wPrintStart [13:47:09]Write to MH i2c: 01 00 00 CE 19 E7 [13:47:09]Write i2c OK [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: 01 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: 01 07 00 [13:47:09]MH_I2C_Read... [13:47:09]Read from MH i2c: 01 07 00 CE 19 00 00 00 00 00 FF 0F FC [13:47:09]RasterBufferAndPrint [13:47:09]line Счет N : (1)216001 [13:47:09]line ИНН: 02508201610067 [13:47:09]line Контрольно-Кассовый Чек [13:47:09]line ПРОДАЖА [13:47:09]line ТРК (МРК, ГНК) : 12 [13:47:09]line Товар: 2710124130 [13:47:09]line Аи-92-К-5 [13:47:09]line 10.000 * 60.30 [13:47:09]line = 603.00 [13:47:09]line НДС 12% НСП 1% [13:47:09]line > о реализуемом товаре [13:47:09]line ИТОГО: 603.00 [13:47:09]line НСП 1% : 5.34 [13:47:09]line НДС 12% : 64.03 [13:47:09]line Наличными: 603.00 [13:47:09]line Безнал.: 0.00 [13:47:09]line Место: АЗС № 102 "Партнер Нефть" [13:47:09]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:47:09]line СНО: Общий режим [13:47:09]line Чек 83 27.01.2024 13:47 [13:47:09]line Смена: 243 ФФД: 1.0 [13:47:09]line ЗНМ: 0300000040 [13:47:09]line РНМ: 0000000000092723 [13:47:09]line Версия ККМ: 001 [13:47:09]line ФМ: 0000000000875060 [13:47:09]line ФД: 48903 [13:47:09]line ФПД: 185366693945622 [13:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T134711&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48903&fm=185366693945622&tin=02508201610067®Number=0000000000092723&sum=60300 [13:47:09]OFD Sender: Processing packet 48903 [packets to send 12, broken 11] [13:47:09]ProducePacketName [13:47:09]name=ofd_packets/00048903 [13:47:09]OFD Sender: To server: pG, [13:47:09]CommunicateWithHost lk.salyk.kg:30040 [13:47:09]ConnectInit lk.salyk.kg [13:47:09]written 0, free lines is 4095 [13:47:09]Connected sock=10 [13:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 70 D6 07 01 2A 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 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 5F 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 BF 00 00 35 04 06 00 A8 97 0B F2 21 16 65 8D DF 15 7B 3B AB 4A [13:47:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 44 DE 47 00 BE C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 07 BF 00 00 F4 03 04 00 5D B5 B4 65 B6 04 01 00 00 9C 05 95 2E A9 2B DF 4D [13:47:10]CommunicateWithHost err = 0 [13:47:10]CheckOFDResponse [13:47:10]1017 (14) - 77093643461234 [13:47:10]1041 (16) - 0000000000875060 [13:47:10]1040 (4) - 48903 [13:47:10]1012 (4) - 27.01.2024 07:48 [13:47:10]1206 (1) - 0 [13:47:10]OFD Sender: Remove packet 48903 [13:47:10]ProducePacketName [13:47:10]name=ofd_packets/00048903 [13:47:10]NVStorageDeleteData [13:47:10]Write to MH i2c: 01 00 00 F6 19 0F [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: 01 07 00 F6 19 00 00 00 00 00 1B 0D 3E [13:47:10]RasterBufferAndPrint [13:47:10]line [13:47:10]line [13:47:10]line [13:47:10]line [13:47:10]line [13:47:10]written 0, free lines is 3361 [13:47:10]MH_Cut [13:47:10]Write to MH i2c: D1 01 00 FD 19 01 E8 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: D1 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: D1 01 00 [13:47:10]MH_I2C_Read... [13:47:10]Read from MH i2c: D1 01 00 FD 19 00 E7 [13:47:10]Write to MH i2c: 01 00 00 FE 19 17 [13:47:10]Write i2c OK [13:47:10]MH_I2C_Read... [13:47:10]OFD Sender: No OFD packet to send [13:47:10]*** Cut start [13:47:10]*** Partial cut [13:47:10]*** CUTSNS_PIN = 1 [13:47:11]*** CUTSNS_PIN = 0 [13:47:11]*** Brake cut motor [13:47:11]Read from MH i2c: 01 [13:47:11]MH_I2C_Read... [13:47:11]*** Stop cut motor [13:47:11]*** Cut end [13:47:11]Read from MH i2c: 01 07 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [13:47:11]process_action close_receipt done [13:47:11]requested_data is exist [13:47:11]produce_requested_data [13:47:11]requested_item fm.sn is exist - process it [13:47:11]wFMCommunicate request_size=4 [13:47:11]MH_SAM_APDU [13:47:11]CAPDU: 80 11 00 00 [13:47:11]Write to MH i2c: E2 08 00 FF 19 80 11 00 00 00 00 00 00 92 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:11]Read from MH i2c: E2 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 17 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 17 00 FF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DF [13:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:47:11]wFMCommunicate OK [13:47:11]requested_item fd.num is exist - process it [13:47:11]SAM_PROTO_GetFieldsCounters [13:47:11]wFMCommunicate request_size=4 [13:47:11]MH_SAM_APDU [13:47:11]CAPDU: 80 13 00 00 [13:47:11]Write to MH i2c: E2 08 00 00 1A 80 13 00 00 00 00 00 00 96 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:11]Read from MH i2c: E2 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 62 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 62 00 00 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 07 BF 00 00 0E 04 04 00 F3 00 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 61 [13:47: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 07 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:11]wFMCommunicate OK [13:47:11]SAM_PROTO_GetFieldsCounters done [13:47:11]requested_item shift.num is exist - process it [13:47:11]requested_item shift.opened is exist - process it [13:47:11]req_shift_opened [13:47:11]FM_GetShiftState [13:47:11]SAM_PROTO_GetShiftState [13:47:11]wFMCommunicate request_size=4 [13:47:11]MH_SAM_APDU [13:47:11]CAPDU: 80 13 01 00 [13:47:11]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [13:47:11]Write i2c OK [13:47:11]MH_I2C_Read... [13:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:11]Read from MH i2c: E2 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 0E 00 [13:47:11]MH_I2C_Read... [13:47:11]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2F [13:47:11]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:47:11]wFMCommunicate OK [13:47:11]SAM_PROTO_GetShiftState done [13:47:11]FM_GetShiftState done [13:47:11]req_shift_opened done [13:47:11]requested_item shift.open_date is exist - process it [13:47:11]req_shift_open_date [13:47:11]req_shift_open_date done [13:47:11]produce_requested_data done [13:47:11]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48903,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:47:11]process_action_free close_receipt [13:47:11]json_value_free [13:47:11]json_value_free done [13:47:11]process_json_proto returns [13:47:11]Send response to host [13:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48903,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:47:11]free response buf [13:47:11]execute_script done [13:47:11]execute_script returns [13:47:11]free content buf [13:47:11]Sock 9.Close socket [13:47:11]Sock 9.Thread stoped [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48: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]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:44]accept exits with 7 [13:49:44]New connection [13:49:44]New thread 3066813796 created [13:49:44]Thread 3066670436 joined [13:49:44]Waiting for new connection... [13:49:44] Sock 7.Parse request [13:49:44]Sock 7.Check first char [13:49:44]Sock 7.First char is OK [13:49:44]request: POST /json_proto HTTP/1.0 [13:49:44]Method: POST [13:49:44]URL: /json_proto [13:49:44]Method is POST - this is cgi request [13:49:44]url: /json_proto [13:49:44]query_string will be loaded in cgi processing [13:49:44]execute_cgi json_proto POST (null) [13:49:44]execute_cgi path=json_proto method=POST [13:49:44]POST find Content-Length [13:49:44]Host: 172.17.56.67:8080 [13:49:44]Content-Length: 677 [13:49:44]Content-Type: application/json [13:49:44] [13:49:44]POST finish read [13:49:44]Found Content-Length = 677 [13:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:44]execute_script... [13:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:44]POST & json_proto [13:49:44]process_json_proto [13:49:44]json parsed OK: [13:49:44]protocol is kg_v1.0 [13:49:44]action value=close_receipt [13:49:44]process_action close_receipt [13:49:44]cmd_close_receipt [13:49:44]MH_GetDate [13:49:44]Write to MH i2c: F0 00 00 02 1A 0B [13:49:44]Write i2c OK [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: F0 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: F0 09 00 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: F0 09 00 02 1A 00 FC 09 B5 65 26 5D 9E 65 B9 [13:49:44]GetLastDocTimeStamp 1706363231 [13:49:44]current date 1706363388 [13:49:44]FM_GetShiftState [13:49:44]SAM_PROTO_GetShiftState [13:49:44]wFMCommunicate request_size=4 [13:49:44]MH_SAM_APDU [13:49:44]CAPDU: 80 13 01 00 [13:49:44]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [13:49:44]Write i2c OK [13:49:44]MH_I2C_Read... [13:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:44]Read from MH i2c: E2 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: E2 0E 00 [13:49:44]MH_I2C_Read... [13:49:44]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 31 [13:49:44]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:49:44]wFMCommunicate OK [13:49:44]SAM_PROTO_GetShiftState done [13:49:44]FM_GetShiftState done [13:49:44]opened in 1706313770 [13:49:44]opened+sec_in_day 1706400170 [13:49:44]quantity*price = 50049 [13:49:44]sum+1 = 50050 [13:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 84 27.01.2024 13:49 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48904 ФПД: 234182622878747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T134948&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48904&fm=234182622878747&tin=02508201610067®Number=0000000000092723&sum=50000 [13:49:45]StoreToDocumentArchive [13:49:45]shift 243 fd 48904 [13:49:45]save to /storage/0243/doc_00048904 [13:49:45]save last doc name /storage/0243/doc_00048904 to /storage/kkm_last_doc_name [13:49:45]save OK [13:49:45]Clear old archive folders... [13:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:45]tlvbuf is 0134F3D0 [13:49:45]SAM_PROTO_ClearQueue [13:49:45]wFMCommunicate request_size=4 [13:49:45]MH_SAM_APDU [13:49:45]CAPDU: 80 09 00 00 [13:49:45]Write to MH i2c: E2 08 00 10 1A 80 09 00 00 00 00 00 00 9C [13:49:45]Write i2c OK [13:49:45]MH_I2C_Read... [13:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:45]Read from MH i2c: E2 [13:49:45]MH_I2C_Read... [13:49:45]Read from MH i2c: E2 03 00 [13:49:45]MH_I2C_Read... [13:49:45]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [13:49:45]RAPDU: 90 00 [13:49:45]wFMCommunicate OK [13:49:45]SAM_PROTO_ClearQueue done [13:49:45]KKMCreateOFDPacket [13:49:45]OFDProtocolAddRootSTLVToBuf [13:49:45]FM_MakeSignedData [13:49:45]FM_MakeSignedData [13:49:45]SAM_PROTO_SignData [13:49:45]wFMCommunicate request_size=4 [13:49:45]MH_SAM_APDU [13:49:45]CAPDU: 80 0D 01 02 [13:49:45]Write to MH i2c: E2 08 00 11 1A 80 0D 01 02 00 00 00 00 A4 [13:49:45]Write i2c OK [13:49:45]MH_I2C_Read... [13:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:45]Read from MH i2c: E2 [13:49:45]MH_I2C_Read... [13:49:45]Read from MH i2c: E2 03 00 [13:49:45]MH_I2C_Read... [13:49:45]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [13:49:45]RAPDU: 90 00 [13:49:45]wFMCommunicate OK [13:49:45]wFMCommunicate request_size=255 [13:49:45]MH_SAM_APDU [13:49:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 FC 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 BF 00 00 35 04 06 00 D4 [13:49:45]Write to MH i2c: E2 02 01 12 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 FC 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 BF 00 00 35 04 06 00 D4 00 00 D5 [13:49:45]Write i2c OK [13:49:45]MH_I2C_Read... [13:49:45]OFD Sender: No OFD packet to send [13:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 03 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [13:49:46]RAPDU: 90 00 [13:49:46]wFMCommunicate OK [13:49:46]wFMCommunicate request_size=10 [13:49:46]MH_SAM_APDU [13:49:46]CAPDU: 80 0D 02 02 05 FC E4 0C 9C 1B [13:49:46]Write to MH i2c: E2 0D 00 13 1A 80 0D 02 02 05 00 FC E4 0C 9C 1B 00 00 54 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 03 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [13:49:46]RAPDU: 90 00 [13:49:46]wFMCommunicate OK [13:49:46]wFMCommunicate request_size=4 [13:49:46]MH_SAM_APDU [13:49:46]CAPDU: 80 0D 03 02 [13:49:46]Write to MH i2c: E2 08 00 14 1A 80 0D 03 02 00 00 00 00 A9 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0B 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 0B 00 14 1A 00 BA 99 58 C2 6D F9 99 22 90 00 38 [13:49:46]RAPDU: BA 99 58 C2 6D F9 99 22 90 00 [13:49:46]wFMCommunicate OK [13:49:46]SAM_PROTO_SignData done [13:49:46]FM_MakeSignedData done [13:49:46]CreateOFDProtocolMessage [13:49:46]wFMCommunicate request_size=4 [13:49:46]MH_SAM_APDU [13:49:46]CAPDU: 80 11 00 00 [13:49:46]Write to MH i2c: E2 08 00 15 1A 80 11 00 00 00 00 00 00 A9 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:46]Read from MH i2c: E2 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 17 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: E2 17 00 15 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F6 [13:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:49:46]wFMCommunicate OK [13:49:46]CreateOFDProtocolMessage done [13:49:46]OFDSenderStorePacket 48904 [13:49:46]StoreOFDPacket docnum=48904 [13:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 70 85 07 01 09 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 FC 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 BF 00 00 35 04 06 00 D4 FC E4 0C 9C 1B BA 99 58 C2 6D F9 99 22 [13:49:46]CheckFolder [13:49:46]dirname=/storage/ofd_packets [13:49:46]CheckFolder done [13:49:46]ProducePacketName [13:49:46]name=ofd_packets/00048904 [13:49:46]NVStorageSaveData ofd_packets/00048904 [13:49:46]File name is /storage/ofd_packets/00048904 [13:49:46]Write 301 bytes [13:49:46]NVStorageSaveData done [13:49:46]OFDSenderStorePacket done [13:49:46]KKMCreateOFDPacket done [13:49:46]NVStorageSaveData kkm_last_timestamp [13:49:46]File name is /storage/kkm_last_timestamp [13:49:46]Write 4 bytes [13:49:46]NVStorageSaveData done [13:49:46]ExternCall_PrintAddStr [13:49:46]wPrintStart [13:49:46]Write to MH i2c: 01 00 00 16 1A 30 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 07 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [13:49:46]RasterBufferAndPrint [13:49:46]line Счет N : (1)216002 [13:49:46]line ИНН: 02508201610067 [13:49:46]line Контрольно-Кассовый Чек [13:49:46]line ПРОДАЖА [13:49:46]line ТРК (МРК, ГНК) : 12 [13:49:46]line Товар: 2710124130 [13:49:46]line Аи-92-К-5 [13:49:46]line 8.300 * 60.30 [13:49:46]line = 500.49 [13:49:46]line НДС 12% НСП 1% [13:49:46]line > о реализуемом товаре [13:49:46]line ОКРУГЛЕНИЕ: -0.49 [13:49:46]line ИТОГО: 500.00 [13:49:46]line Внесено: 500.00 [13:49:46]line СДАЧА: 0.00 [13:49:46]line НСП 1% : 4.43 [13:49:46]line НДС 12% : 53.15 [13:49:46]line Наличными: 500.00 [13:49:46]line Безнал.: 0.00 [13:49:46]line Место: АЗС № 102 "Партнер Нефть" [13:49:46]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:49:46]line СНО: Общий режим [13:49:46]line Чек 84 27.01.2024 13:49 [13:49:46]line Смена: 243 ФФД: 1.0 [13:49:46]line ЗНМ: 0300000040 [13:49:46]line РНМ: 0000000000092723 [13:49:46]line Версия ККМ: 001 [13:49:46]line ФМ: 0000000000875060 [13:49:46]line ФД: 48904 [13:49:46]line ФПД: 234182622878747 [13:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T134948&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48904&fm=234182622878747&tin=02508201610067®Number=0000000000092723&sum=50000 [13:49:46]OFD Sender: Processing packet 48904 [packets to send 12, broken 11] [13:49:46]ProducePacketName [13:49:46]name=ofd_packets/00048904 [13:49:46]OFD Sender: To server: pG, [13:49:46]CommunicateWithHost lk.salyk.kg:30040 [13:49:46]ConnectInit lk.salyk.kg [13:49:46]written 0, free lines is 4095 [13:49:46]Connected sock=10 [13:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 70 85 07 01 09 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 FC 09 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 BF 00 00 35 04 06 00 D4 FC E4 0C 9C 1B BA 99 58 C2 6D F9 99 22 [13:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 9B B5 47 00 7F C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 08 BF 00 00 F4 03 04 00 FA B5 B4 65 B6 04 01 00 00 1D 2E F1 C9 72 08 EC C9 [13:49:46]CommunicateWithHost err = 0 [13:49:46]CheckOFDResponse [13:49:46]1017 (14) - 77093643461234 [13:49:46]1041 (16) - 0000000000875060 [13:49:46]1040 (4) - 48904 [13:49:46]1012 (4) - 27.01.2024 07:51 [13:49:46]1206 (1) - 0 [13:49:46]OFD Sender: Remove packet 48904 [13:49:46]ProducePacketName [13:49:46]name=ofd_packets/00048904 [13:49:46]NVStorageDeleteData [13:49:46]Write to MH i2c: 01 00 00 41 1A 5B [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 07 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: 01 07 00 41 1A 00 00 00 00 00 ED 0C 5B [13:49:46]RasterBufferAndPrint [13:49:46]line [13:49:46]line [13:49:46]line [13:49:46]line [13:49:46]line [13:49:46]written 0, free lines is 3315 [13:49:46]MH_Cut [13:49:46]Write to MH i2c: D1 01 00 48 1A 01 34 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: D1 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: D1 01 00 [13:49:46]MH_I2C_Read... [13:49:46]Read from MH i2c: D1 01 00 48 1A 00 33 [13:49:46]Write to MH i2c: 01 00 00 49 1A 63 [13:49:46]Write i2c OK [13:49:46]MH_I2C_Read... [13:49:47]OFD Sender: No OFD packet to send [13:49:47]*** Cut start [13:49:47]*** Partial cut [13:49:47]*** CUTSNS_PIN = 1 [13:49:47]*** CUTSNS_PIN = 0 [13:49:47]*** Brake cut motor [13:49:48]Read from MH i2c: 01 [13:49:48]MH_I2C_Read... [13:49:48]*** Stop cut motor [13:49:48]*** Cut end [13:49:48]Read from MH i2c: 01 07 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [13:49:48]process_action close_receipt done [13:49:48]requested_data is exist [13:49:48]produce_requested_data [13:49:48]requested_item fm.sn is exist - process it [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 11 00 00 [13:49:48]Write to MH i2c: E2 08 00 4A 1A 80 11 00 00 00 00 00 00 DE [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 17 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 17 00 4A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [13:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:49:48]wFMCommunicate OK [13:49:48]requested_item fd.num is exist - process it [13:49:48]SAM_PROTO_GetFieldsCounters [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 13 00 00 [13:49:48]Write to MH i2c: E2 08 00 4B 1A 80 13 00 00 00 00 00 00 E1 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 62 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 62 00 4B 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 08 BF 00 00 0E 04 04 00 F3 00 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 B0 [13:49: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 08 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:48]wFMCommunicate OK [13:49:48]SAM_PROTO_GetFieldsCounters done [13:49:48]requested_item shift.num is exist - process it [13:49:48]requested_item shift.opened is exist - process it [13:49:48]req_shift_opened [13:49:48]FM_GetShiftState [13:49:48]SAM_PROTO_GetShiftState [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 13 01 00 [13:49:48]Write to MH i2c: E2 08 00 4C 1A 80 13 01 00 00 00 00 00 E3 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0E 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0E 00 4C 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 7A [13:49:48]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:49:48]wFMCommunicate OK [13:49:48]SAM_PROTO_GetShiftState done [13:49:48]FM_GetShiftState done [13:49:48]req_shift_opened done [13:49:48]requested_item shift.open_date is exist - process it [13:49:48]req_shift_open_date [13:49:48]req_shift_open_date done [13:49:48]produce_requested_data done [13:49:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48904,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:49:48]process_action_free close_receipt [13:49:48]json_value_free [13:49:48]json_value_free done [13:49:48]process_json_proto returns [13:49:48]Send response to host [13:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48904,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:49:48]free response buf [13:49:48]execute_script done [13:49:48]execute_script returns [13:49:48]free content buf [13:49:48]Sock 7.Close socket [13:49:48]Sock 7.Thread stoped [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:20]accept exits with 9 [13:52:20]New connection [13:52:20]New thread 3066670436 created [13:52:20]Thread 3066813796 joined [13:52:20]Waiting for new connection... [13:52:20] Sock 9.Parse request [13:52:20]Sock 9.Check first char [13:52:20]Sock 9.First char is OK [13:52:20]request: POST /json_proto HTTP/1.0 [13:52:20]Method: POST [13:52:20]URL: /json_proto [13:52:20]Method is POST - this is cgi request [13:52:20]url: /json_proto [13:52:20]query_string will be loaded in cgi processing [13:52:20]execute_cgi json_proto POST (null) [13:52:20]execute_cgi path=json_proto method=POST [13:52:20]POST find Content-Length [13:52:20]Host: 172.17.56.67:8080 [13:52:20]Content-Length: 677 [13:52:20]Content-Type: application/json [13:52:20] [13:52:20]POST finish read [13:52:20]Found Content-Length = 677 [13:52:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:20]execute_script... [13:52: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)216003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:20]POST & json_proto [13:52:20]process_json_proto [13:52:20]json parsed OK: [13:52:20]protocol is kg_v1.0 [13:52:20]action value=close_receipt [13:52:20]process_action close_receipt [13:52:20]cmd_close_receipt [13:52:20]MH_GetDate [13:52:20]Write to MH i2c: F0 00 00 4D 1A 56 [13:52:20]Write i2c OK [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 09 00 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: F0 09 00 4D 1A 00 98 0A B5 65 26 5D 9E 65 A1 [13:52:20]GetLastDocTimeStamp 1706363388 [13:52:20]current date 1706363544 [13:52:20]FM_GetShiftState [13:52:20]SAM_PROTO_GetShiftState [13:52:20]wFMCommunicate request_size=4 [13:52:20]MH_SAM_APDU [13:52:20]CAPDU: 80 13 01 00 [13:52:20]Write to MH i2c: E2 08 00 4E 1A 80 13 01 00 00 00 00 00 E5 [13:52:20]Write i2c OK [13:52:20]MH_I2C_Read... [13:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:20]Read from MH i2c: E2 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: E2 0E 00 [13:52:20]MH_I2C_Read... [13:52:20]Read from MH i2c: E2 0E 00 4E 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 7C [13:52:20]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:52:20]wFMCommunicate OK [13:52:20]SAM_PROTO_GetShiftState done [13:52:20]FM_GetShiftState done [13:52:20]opened in 1706313770 [13:52:20]opened+sec_in_day 1706400170 [13:52:20]quantity*price = 50049 [13:52:20]sum+1 = 50050 [13:52:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 85 27.01.2024 13:52 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48905 ФПД: 75377455659911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135224&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48905&fm=75377455659911&tin=02508201610067®Number=0000000000092723&sum=50000 [13:52:21]StoreToDocumentArchive [13:52:21]shift 243 fd 48905 [13:52:21]save to /storage/0243/doc_00048905 [13:52:21]save last doc name /storage/0243/doc_00048905 to /storage/kkm_last_doc_name [13:52:21]save OK [13:52:21]Clear old archive folders... [13:52:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:21]tlvbuf is 0134F280 [13:52:21]SAM_PROTO_ClearQueue [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 09 00 00 [13:52:21]Write to MH i2c: E2 08 00 5B 1A 80 09 00 00 00 00 00 00 E7 [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:21]Read from MH i2c: E2 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 [13:52:21]MH_I2C_Read... [13:52:21]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [13:52:21]RAPDU: 90 00 [13:52:21]wFMCommunicate OK [13:52:21]SAM_PROTO_ClearQueue done [13:52:21]KKMCreateOFDPacket [13:52:21]OFDProtocolAddRootSTLVToBuf [13:52:21]FM_MakeSignedData [13:52:21]FM_MakeSignedData [13:52:21]SAM_PROTO_SignData [13:52:21]wFMCommunicate request_size=4 [13:52:21]MH_SAM_APDU [13:52:21]CAPDU: 80 0D 01 02 [13:52:21]Write to MH i2c: E2 08 00 5C 1A 80 0D 01 02 00 00 00 00 EF [13:52:21]Write i2c OK [13:52:21]MH_I2C_Read... [13:52:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:22]Read from MH i2c: E2 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [13:52:22]RAPDU: 90 00 [13:52:22]wFMCommunicate OK [13:52:22]wFMCommunicate request_size=255 [13:52:22]MH_SAM_APDU [13:52: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 0A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 BF 00 00 35 04 06 00 44 [13:52:22]Write to MH i2c: E2 02 01 5D 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 0A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 BF 00 00 35 04 06 00 44 00 00 2F [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:22]Read from MH i2c: E2 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [13:52:22]RAPDU: 90 00 [13:52:22]wFMCommunicate OK [13:52:22]wFMCommunicate request_size=10 [13:52:22]MH_SAM_APDU [13:52:22]CAPDU: 80 0D 02 02 05 8E 2E 77 FB 87 [13:52:22]Write to MH i2c: E2 0D 00 5E 1A 80 0D 02 02 05 00 8E 2E 77 FB 87 00 00 B1 [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:22]Read from MH i2c: E2 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 03 00 5E 1A 00 90 00 EC [13:52:22]RAPDU: 90 00 [13:52:22]wFMCommunicate OK [13:52:22]wFMCommunicate request_size=4 [13:52:22]MH_SAM_APDU [13:52:22]CAPDU: 80 0D 03 02 [13:52:22]Write to MH i2c: E2 08 00 5F 1A 80 0D 03 02 00 00 00 00 F4 [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:22]Read from MH i2c: E2 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 0B 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 0B 00 5F 1A 00 42 63 70 A2 4A D4 29 D0 90 00 C3 [13:52:22]RAPDU: 42 63 70 A2 4A D4 29 D0 90 00 [13:52:22]wFMCommunicate OK [13:52:22]SAM_PROTO_SignData done [13:52:22]FM_MakeSignedData done [13:52:22]CreateOFDProtocolMessage [13:52:22]wFMCommunicate request_size=4 [13:52:22]MH_SAM_APDU [13:52:22]CAPDU: 80 11 00 00 [13:52:22]Write to MH i2c: E2 08 00 60 1A 80 11 00 00 00 00 00 00 F4 [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:22]Read from MH i2c: E2 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 17 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: E2 17 00 60 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 41 [13:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:52:22]wFMCommunicate OK [13:52:22]CreateOFDProtocolMessage done [13:52:22]OFDSenderStorePacket 48905 [13:52:22]StoreOFDPacket docnum=48905 [13:52:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 43 B0 07 01 E3 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 0A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 BF 00 00 35 04 06 00 44 8E 2E 77 FB 87 42 63 70 A2 4A D4 29 D0 [13:52:22]CheckFolder [13:52:22]dirname=/storage/ofd_packets [13:52:22]CheckFolder done [13:52:22]ProducePacketName [13:52:22]name=ofd_packets/00048905 [13:52:22]NVStorageSaveData ofd_packets/00048905 [13:52:22]File name is /storage/ofd_packets/00048905 [13:52:22]Write 301 bytes [13:52:22]NVStorageSaveData done [13:52:22]OFDSenderStorePacket done [13:52:22]KKMCreateOFDPacket done [13:52:22]NVStorageSaveData kkm_last_timestamp [13:52:22]File name is /storage/kkm_last_timestamp [13:52:22]Write 4 bytes [13:52:22]NVStorageSaveData done [13:52:22]ExternCall_PrintAddStr [13:52:22]wPrintStart [13:52:22]Write to MH i2c: 01 00 00 61 1A 7B [13:52:22]Write i2c OK [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 07 00 [13:52:22]MH_I2C_Read... [13:52:22]Read from MH i2c: 01 07 00 61 1A 00 00 00 00 00 FF 0F 90 [13:52:22]RasterBufferAndPrint [13:52:22]line Счет N : (1)216003 [13:52:22]line ИНН: 02508201610067 [13:52:22]line Контрольно-Кассовый Чек [13:52:22]line ПРОДАЖА [13:52:22]line ТРК (МРК, ГНК) : 22 [13:52:22]line Товар: 2710124130 [13:52:22]line Аи-92-К-5 [13:52:22]line 8.300 * 60.30 [13:52:22]line = 500.49 [13:52:22]line НДС 12% НСП 1% [13:52:22]line > о реализуемом товаре [13:52:22]line ОКРУГЛЕНИЕ: -0.49 [13:52:22]line ИТОГО: 500.00 [13:52:22]line Внесено: 500.00 [13:52:22]line СДАЧА: 0.00 [13:52:22]line НСП 1% : 4.43 [13:52:22]line НДС 12% : 53.15 [13:52:22]line Наличными: 500.00 [13:52:22]line Безнал.: 0.00 [13:52:22]line Место: АЗС № 102 "Партнер Нефть" [13:52:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:52:22]line СНО: Общий режим [13:52:22]line Чек 85 27.01.2024 13:52 [13:52:22]line Смена: 243 ФФД: 1.0 [13:52:22]line ЗНМ: 0300000040 [13:52:22]line РНМ: 0000000000092723 [13:52:22]line Версия ККМ: 001 [13:52:22]line ФМ: 0000000000875060 [13:52:22]line ФД: 48905 [13:52:22]line ФПД: 75377455659911 [13:52:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135224&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48905&fm=75377455659911&tin=02508201610067®Number=0000000000092723&sum=50000 [13:52:22]written 0, free lines is 4095 [13:52:22]OFD Sender: Processing packet 48905 [packets to send 12, broken 11] [13:52:22]ProducePacketName [13:52:22]name=ofd_packets/00048905 [13:52:22]OFD Sender: To server: pG, [13:52:22]CommunicateWithHost lk.salyk.kg:30040 [13:52:22]ConnectInit lk.salyk.kg [13:52:22]Connected sock=10 [13:52:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 43 B0 07 01 E3 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 98 0A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 09 BF 00 00 35 04 06 00 44 8E 2E 77 FB 87 42 63 70 A2 4A D4 29 D0 [13:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 95 E2 47 00 43 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 35 30 36 30 10 04 04 00 09 BF 00 00 F4 03 04 00 96 B6 B4 65 B6 04 01 00 00 76 E3 5A CC 27 7A 20 40 [13:52:23]CommunicateWithHost err = 0 [13:52:23]CheckOFDResponse [13:52:23]1017 (14) - 77093643461234 [13:52:23]1041 (16) - 0000000000875060 [13:52:23]1040 (4) - 48905 [13:52:23]1012 (4) - 27.01.2024 07:53 [13:52:23]1206 (1) - 0 [13:52:23]OFD Sender: Remove packet 48905 [13:52:23]ProducePacketName [13:52:23]name=ofd_packets/00048905 [13:52:23]NVStorageDeleteData [13:52:23]Write to MH i2c: 01 00 00 8C 1A A6 [13:52:23]Write i2c OK [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: 01 [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: 01 07 00 [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 E7 0C A0 [13:52:23]RasterBufferAndPrint [13:52:23]line [13:52:23]line [13:52:23]line [13:52:23]line [13:52:23]line [13:52:23]written 0, free lines is 3309 [13:52:23]MH_Cut [13:52:23]Write to MH i2c: D1 01 00 93 1A 01 7F [13:52:23]Write i2c OK [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: D1 [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: D1 01 00 [13:52:23]MH_I2C_Read... [13:52:23]Read from MH i2c: D1 01 00 93 1A 00 7E [13:52:23]Write to MH i2c: 01 00 00 94 1A AE [13:52:23]Write i2c OK [13:52:23]MH_I2C_Read... [13:52:23]OFD Sender: No OFD packet to send [13:52:23]*** Cut start [13:52:23]*** Partial cut [13:52:23]*** CUTSNS_PIN = 1 [13:52:23]*** CUTSNS_PIN = 0 [13:52:24]*** Brake cut motor [13:52:24]Read from MH i2c: 01 [13:52:24]MH_I2C_Read... [13:52:24]*** Stop cut motor [13:52:24]*** Cut end [13:52:24]Read from MH i2c: 01 07 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [13:52:24]process_action close_receipt done [13:52:24]requested_data is exist [13:52:24]produce_requested_data [13:52:24]requested_item fm.sn is exist - process it [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 11 00 00 [13:52:24]Write to MH i2c: E2 08 00 95 1A 80 11 00 00 00 00 00 00 29 [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 17 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 17 00 95 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 76 [13:52:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:52:24]wFMCommunicate OK [13:52:24]requested_item fd.num is exist - process it [13:52:24]SAM_PROTO_GetFieldsCounters [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 00 00 [13:52:24]Write to MH i2c: E2 08 00 96 1A 80 13 00 00 00 00 00 00 2C [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 62 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 62 00 96 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 09 BF 00 00 0E 04 04 00 F3 00 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 FF [13:52: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 09 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:24]wFMCommunicate OK [13:52:24]SAM_PROTO_GetFieldsCounters done [13:52:24]requested_item shift.num is exist - process it [13:52:24]requested_item shift.opened is exist - process it [13:52:24]req_shift_opened [13:52:24]FM_GetShiftState [13:52:24]SAM_PROTO_GetShiftState [13:52:24]wFMCommunicate request_size=4 [13:52:24]MH_SAM_APDU [13:52:24]CAPDU: 80 13 01 00 [13:52:24]Write to MH i2c: E2 08 00 97 1A 80 13 01 00 00 00 00 00 2E [13:52:24]Write i2c OK [13:52:24]MH_I2C_Read... [13:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:24]Read from MH i2c: E2 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 [13:52:24]MH_I2C_Read... [13:52:24]Read from MH i2c: E2 0E 00 97 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C5 [13:52:24]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:52:24]wFMCommunicate OK [13:52:24]SAM_PROTO_GetShiftState done [13:52:24]FM_GetShiftState done [13:52:24]req_shift_opened done [13:52:24]requested_item shift.open_date is exist - process it [13:52:24]req_shift_open_date [13:52:24]req_shift_open_date done [13:52:24]produce_requested_data done [13:52:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48905,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:52:24]process_action_free close_receipt [13:52:24]json_value_free [13:52:24]json_value_free done [13:52:24]process_json_proto returns [13:52:24]Send response to host [13:52:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48905,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:52:24]free response buf [13:52:24]execute_script done [13:52:24]execute_script returns [13:52:24]free content buf [13:52:24]Sock 9.Close socket [13:52:24]Sock 9.Thread stoped [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:04]accept exits with 7 [13:55:04]New connection [13:55:04]New thread 3066813796 created [13:55:04]Thread 3066670436 joined [13:55:04]Waiting for new connection... [13:55:04] Sock 7.Parse request [13:55:04]Sock 7.Check first char [13:55:04]Sock 7.First char is OK [13:55:04]request: POST /json_proto HTTP/1.0 [13:55:04]Method: POST [13:55:04]URL: /json_proto [13:55:04]Method is POST - this is cgi request [13:55:04]url: /json_proto [13:55:04]query_string will be loaded in cgi processing [13:55:04]execute_cgi json_proto POST (null) [13:55:04]execute_cgi path=json_proto method=POST [13:55:04]POST find Content-Length [13:55:04]Host: 172.17.56.67:8080 [13:55:04]Content-Length: 682 [13:55:04]Content-Type: application/json [13:55:04] [13:55:04]POST finish read [13:55:04]Found Content-Length = 682 [13:55:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:55:04]execute_script... [13:55: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)216004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "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:55:04]POST & json_proto [13:55:04]process_json_proto [13:55:04]json parsed OK: [13:55:04]protocol is kg_v1.0 [13:55:04]action value=close_receipt [13:55:04]process_action close_receipt [13:55:04]cmd_close_receipt [13:55:04]MH_GetDate [13:55:04]Write to MH i2c: F0 00 00 98 1A A1 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: F0 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: F0 09 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: F0 09 00 98 1A 00 3C 0B B5 65 26 5D 9E 65 91 [13:55:04]GetLastDocTimeStamp 1706363544 [13:55:04]current date 1706363708 [13:55:04]FM_GetShiftState [13:55:04]SAM_PROTO_GetShiftState [13:55:04]wFMCommunicate request_size=4 [13:55:04]MH_SAM_APDU [13:55:04]CAPDU: 80 13 01 00 [13:55:04]Write to MH i2c: E2 08 00 99 1A 80 13 01 00 00 00 00 00 30 [13:55:04]Write i2c OK [13:55:04]MH_I2C_Read... [13:55:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:04]Read from MH i2c: E2 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0E 00 [13:55:04]MH_I2C_Read... [13:55:04]Read from MH i2c: E2 0E 00 99 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C7 [13:55:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:55:04]wFMCommunicate OK [13:55:04]SAM_PROTO_GetShiftState done [13:55:04]FM_GetShiftState done [13:55:04]opened in 1706313770 [13:55:04]opened+sec_in_day 1706400170 [13:55:04]quantity*price = 100037 [13:55:04]sum+1 = 100039 [13:55:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 86 27.01.2024 13:55 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48906 ФПД: 210920386949260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48906&fm=210920386949260&tin=02508201610067®Number=0000000000092723&sum=100000 [13:55:05]StoreToDocumentArchive [13:55:05]shift 243 fd 48906 [13:55:05]save to /storage/0243/doc_00048906 [13:55:05]save last doc name /storage/0243/doc_00048906 to /storage/kkm_last_doc_name [13:55:05]save OK [13:55:05]Clear old archive folders... [13:55:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:05]tlvbuf is B6E9FDB0 [13:55:05]SAM_PROTO_ClearQueue [13:55:05]wFMCommunicate request_size=4 [13:55:05]MH_SAM_APDU [13:55:05]CAPDU: 80 09 00 00 [13:55:05]Write to MH i2c: E2 08 00 A6 1A 80 09 00 00 00 00 00 00 32 [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:05]Read from MH i2c: E2 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 03 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 03 00 A6 1A 00 90 00 34 [13:55:05]RAPDU: 90 00 [13:55:05]wFMCommunicate OK [13:55:05]SAM_PROTO_ClearQueue done [13:55:05]KKMCreateOFDPacket [13:55:05]OFDProtocolAddRootSTLVToBuf [13:55:05]FM_MakeSignedData [13:55:05]FM_MakeSignedData [13:55:05]SAM_PROTO_SignData [13:55:05]wFMCommunicate request_size=4 [13:55:05]MH_SAM_APDU [13:55:05]CAPDU: 80 0D 01 02 [13:55:05]Write to MH i2c: E2 08 00 A7 1A 80 0D 01 02 00 00 00 00 3A [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:05]Read from MH i2c: E2 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 03 00 [13:55:05]MH_I2C_Read... [13:55:05]Read from MH i2c: E2 03 00 A7 1A 00 90 00 35 [13:55:05]RAPDU: 90 00 [13:55:05]wFMCommunicate OK [13:55:05]wFMCommunicate request_size=255 [13:55:05]MH_SAM_APDU [13:55: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3C 0B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A BF 00 00 35 04 06 00 BF [13:55:05]Write to MH i2c: E2 02 01 A8 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3C 0B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A BF 00 00 35 04 06 00 BF 00 00 DC [13:55:05]Write i2c OK [13:55:05]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 A8 1A 00 90 00 36 [13:55:06]RAPDU: 90 00 [13:55:06]wFMCommunicate OK [13:55:06]wFMCommunicate request_size=10 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 0D 02 02 05 D4 BA BD 70 8C [13:55:06]Write to MH i2c: E2 0D 00 A9 1A 80 0D 02 02 05 00 D4 BA BD 70 8C 00 00 8E [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 03 00 A9 1A 00 90 00 37 [13:55:06]RAPDU: 90 00 [13:55:06]wFMCommunicate OK [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 0D 03 02 [13:55:06]Write to MH i2c: E2 08 00 AA 1A 80 0D 03 02 00 00 00 00 3F [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0B 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0B 00 AA 1A 00 5F 07 74 E6 08 D6 6A D1 90 00 19 [13:55:06]RAPDU: 5F 07 74 E6 08 D6 6A D1 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_SignData done [13:55:06]FM_MakeSignedData done [13:55:06]CreateOFDProtocolMessage [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 11 00 00 [13:55:06]Write to MH i2c: E2 08 00 AB 1A 80 11 00 00 00 00 00 00 3F [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 17 00 AB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8C [13:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:55:06]wFMCommunicate OK [13:55:06]CreateOFDProtocolMessage done [13:55:06]OFDSenderStorePacket 48906 [13:55:06]StoreOFDPacket docnum=48906 [13:55:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6F D8 07 01 50 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3C 0B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A BF 00 00 35 04 06 00 BF D4 BA BD 70 8C 5F 07 74 E6 08 D6 6A D1 [13:55:06]CheckFolder [13:55:06]dirname=/storage/ofd_packets [13:55:06]CheckFolder done [13:55:06]ProducePacketName [13:55:06]name=ofd_packets/00048906 [13:55:06]NVStorageSaveData ofd_packets/00048906 [13:55:06]File name is /storage/ofd_packets/00048906 [13:55:06]Write 301 bytes [13:55:06]NVStorageSaveData done [13:55:06]OFDSenderStorePacket done [13:55:06]KKMCreateOFDPacket done [13:55:06]NVStorageSaveData kkm_last_timestamp [13:55:06]File name is /storage/kkm_last_timestamp [13:55:06]Write 4 bytes [13:55:06]NVStorageSaveData done [13:55:06]ExternCall_PrintAddStr [13:55:06]wPrintStart [13:55:06]Write to MH i2c: 01 00 00 AC 1A C6 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 FF 0F DB [13:55:06]RasterBufferAndPrint [13:55:06]line Счет N : (1)216004 [13:55:06]line ИНН: 02508201610067 [13:55:06]line Контрольно-Кассовый Чек [13:55:06]line ПРОДАЖА [13:55:06]line ТРК (МРК, ГНК) : 22 [13:55:06]line Товар: 2710124130 [13:55:06]line Аи-92-К-5 [13:55:06]line 16.590 * 60.30 [13:55:06]line = 1000.38 [13:55:06]line НДС 12% НСП 1% [13:55:06]line > о реализуемом товаре [13:55:06]line ОКРУГЛЕНИЕ: -0.38 [13:55:06]line ИТОГО: 1000.00 [13:55:06]line Внесено: 1000.00 [13:55:06]line СДАЧА: 0.00 [13:55:06]line НСП 1% : 8.85 [13:55:06]line НДС 12% : 106.23 [13:55:06]line Наличными: 1000.00 [13:55:06]line Безнал.: 0.00 [13:55:06]line Место: АЗС № 102 "Партнер Нефть" [13:55:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:55:06]line СНО: Общий режим [13:55:06]line Чек 86 27.01.2024 13:55 [13:55:06]line Смена: 243 ФФД: 1.0 [13:55:06]line ЗНМ: 0300000040 [13:55:06]line РНМ: 0000000000092723 [13:55:06]line Версия ККМ: 001 [13:55:06]line ФМ: 0000000000875060 [13:55:06]line ФД: 48906 [13:55:06]line ФПД: 210920386949260 [13:55:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48906&fm=210920386949260&tin=02508201610067®Number=0000000000092723&sum=100000 [13:55:06]OFD Sender: Processing packet 48906 [packets to send 12, broken 11] [13:55:06]ProducePacketName [13:55:06]name=ofd_packets/00048906 [13:55:06]OFD Sender: To server: pG, [13:55:06]CommunicateWithHost lk.salyk.kg:30040 [13:55:06]ConnectInit lk.salyk.kg [13:55:06]written 0, free lines is 4095 [13:55:06]Connected sock=10 [13:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6F D8 07 01 50 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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 3C 0B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A BF 00 00 35 04 06 00 BF D4 BA BD 70 8C 5F 07 74 E6 08 D6 6A D1 [13:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 9B AE 47 00 D8 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0A BF 00 00 F4 03 04 00 3A B7 B4 65 B6 04 01 00 00 B3 45 CE CB 55 D7 9F 8A [13:55:06]CommunicateWithHost err = 0 [13:55:06]CheckOFDResponse [13:55:06]1017 (14) - 77093643461234 [13:55:06]1041 (16) - 0000000000875060 [13:55:06]1040 (4) - 48906 [13:55:06]1012 (4) - 27.01.2024 07:56 [13:55:06]1206 (1) - 0 [13:55:06]OFD Sender: Remove packet 48906 [13:55:06]ProducePacketName [13:55:06]name=ofd_packets/00048906 [13:55:06]NVStorageDeleteData [13:55:07]Write to MH i2c: 01 00 00 D7 1A F1 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 D7 1A 00 00 00 00 00 EC 0C F0 [13:55:07]RasterBufferAndPrint [13:55:07]line [13:55:07]line [13:55:07]line [13:55:07]line [13:55:07]line [13:55:07]written 0, free lines is 3315 [13:55:07]MH_Cut [13:55:07]Write to MH i2c: D1 01 00 DE 1A 01 CA [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: D1 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: D1 01 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: D1 01 00 DE 1A 00 C9 [13:55:07]Write to MH i2c: 01 00 00 DF 1A F9 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]OFD Sender: No OFD packet to send [13:55:07]*** Cut start [13:55:07]*** Partial cut [13:55:07]*** CUTSNS_PIN = 1 [13:55:07]*** CUTSNS_PIN = 0 [13:55:07]*** Brake cut motor [13:55:08]Read from MH i2c: 01 [13:55:08]MH_I2C_Read... [13:55:08]*** Stop cut motor [13:55:08]*** Cut end [13:55:08]Read from MH i2c: 01 07 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [13:55:08]process_action close_receipt done [13:55:08]requested_data is exist [13:55:08]produce_requested_data [13:55:08]requested_item fm.sn is exist - process it [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 11 00 00 [13:55:08]Write to MH i2c: E2 08 00 E0 1A 80 11 00 00 00 00 00 00 74 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 17 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 17 00 E0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C1 [13:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:55:08]wFMCommunicate OK [13:55:08]requested_item fd.num is exist - process it [13:55:08]SAM_PROTO_GetFieldsCounters [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 13 00 00 [13:55:08]Write to MH i2c: E2 08 00 E1 1A 80 13 00 00 00 00 00 00 77 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 62 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 62 00 E1 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0A BF 00 00 0E 04 04 00 F3 00 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 4E [13:55: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0A BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:08]wFMCommunicate OK [13:55:08]SAM_PROTO_GetFieldsCounters done [13:55:08]requested_item shift.num is exist - process it [13:55:08]requested_item shift.opened is exist - process it [13:55:08]req_shift_opened [13:55:08]FM_GetShiftState [13:55:08]SAM_PROTO_GetShiftState [13:55:08]wFMCommunicate request_size=4 [13:55:08]MH_SAM_APDU [13:55:08]CAPDU: 80 13 01 00 [13:55:08]Write to MH i2c: E2 08 00 E2 1A 80 13 01 00 00 00 00 00 79 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:08]Read from MH i2c: E2 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0E 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: E2 0E 00 E2 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 10 [13:55:08]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:55:08]wFMCommunicate OK [13:55:08]SAM_PROTO_GetShiftState done [13:55:08]FM_GetShiftState done [13:55:08]req_shift_opened done [13:55:08]requested_item shift.open_date is exist - process it [13:55:08]req_shift_open_date [13:55:08]req_shift_open_date done [13:55:08]produce_requested_data done [13:55:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48906,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:55:08]process_action_free close_receipt [13:55:08]json_value_free [13:55:08]json_value_free done [13:55:08]process_json_proto returns [13:55:08]Send response to host [13:55:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48906,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:55:08]free response buf [13:55:08]execute_script done [13:55:08]execute_script returns [13:55:08]free content buf [13:55:08]Sock 7.Close socket [13:55:08]Sock 7.Thread stoped [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:23]accept exits with 9 [13:58:23]New connection [13:58:23]New thread 3066670436 created [13:58:23]Thread 3066813796 joined [13:58:23]Waiting for new connection... [13:58:23] Sock 9.Parse request [13:58:23]Sock 9.Check first char [13:58:23]Sock 9.First char is OK [13:58:23]request: POST /json_proto HTTP/1.0 [13:58:23]Method: POST [13:58:23]URL: /json_proto [13:58:23]Method is POST - this is cgi request [13:58:23]url: /json_proto [13:58:23]query_string will be loaded in cgi processing [13:58:23]execute_cgi json_proto POST (null) [13:58:23]execute_cgi path=json_proto method=POST [13:58:23]POST find Content-Length [13:58:23]Host: 172.17.56.67:8080 [13:58:23]Content-Length: 679 [13:58:23]Content-Type: application/json [13:58:23] [13:58:23]POST finish read [13:58:23]Found Content-Length = 679 [13:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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:58:23]execute_script... [13:58: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)216005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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:58:23]POST & json_proto [13:58:23]process_json_proto [13:58:23]json parsed OK: [13:58:23]protocol is kg_v1.0 [13:58:23]action value=close_receipt [13:58:23]process_action close_receipt [13:58:23]cmd_close_receipt [13:58:23]MH_GetDate [13:58:23]Write to MH i2c: F0 00 00 E3 1A EC [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 E3 1A 00 03 0C B5 65 26 5D 9E 65 A4 [13:58:23]GetLastDocTimeStamp 1706363708 [13:58:23]current date 1706363907 [13:58:23]FM_GetShiftState [13:58:23]SAM_PROTO_GetShiftState [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 01 00 [13:58:23]Write to MH i2c: E2 08 00 E4 1A 80 13 01 00 00 00 00 00 7B [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 E4 1A 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 12 [13:58:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_GetShiftState done [13:58:23]FM_GetShiftState done [13:58:23]opened in 1706313770 [13:58:23]opened+sec_in_day 1706400170 [13:58:23]quantity*price = 150005 [13:58:23]sum+1 = 150006 [13:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 87 27.01.2024 13:58 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48907 ФПД: 3658561450647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48907&fm=3658561450647&tin=02508201610067®Number=0000000000092723&sum=150000 [13:58:24]StoreToDocumentArchive [13:58:24]shift 243 fd 48907 [13:58:24]save to /storage/0243/doc_00048907 [13:58:24]save last doc name /storage/0243/doc_00048907 to /storage/kkm_last_doc_name [13:58:24]save OK [13:58:24]Clear old archive folders... [13:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:24]tlvbuf is 0134F280 [13:58:24]SAM_PROTO_ClearQueue [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 09 00 00 [13:58:24]Write to MH i2c: E2 08 00 F1 1A 80 09 00 00 00 00 00 00 7D [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 F1 1A 00 90 00 7F [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_ClearQueue done [13:58:24]KKMCreateOFDPacket [13:58:24]OFDProtocolAddRootSTLVToBuf [13:58:24]FM_MakeSignedData [13:58:24]FM_MakeSignedData [13:58:24]SAM_PROTO_SignData [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 01 02 [13:58:24]Write to MH i2c: E2 08 00 F2 1A 80 0D 01 02 00 00 00 00 85 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 F2 1A 00 90 00 80 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]wFMCommunicate request_size=255 [13:58:24]MH_SAM_APDU [13:58: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 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 57 00 00 00 F4 03 04 00 03 0C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B BF 00 00 35 04 06 00 03 53 D3 41 [13:58:24]Write to MH i2c: E2 02 01 F3 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 57 00 00 00 F4 03 04 00 03 0C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B BF 00 00 35 04 06 00 03 53 D3 41 00 00 73 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 F3 1A 00 90 00 81 [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=7 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 02 02 02 72 97 [13:58:25]Write to MH i2c: E2 0A 00 F4 1A 80 0D 02 02 02 00 72 97 00 00 95 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 F4 1A 00 90 00 82 [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 03 02 [13:58:25]Write to MH i2c: E2 08 00 F5 1A 80 0D 03 02 00 00 00 00 8A [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 F5 1A 00 F1 B7 BD 04 D3 3C 82 AD 90 00 32 [13:58:25]RAPDU: F1 B7 BD 04 D3 3C 82 AD 90 00 [13:58:25]wFMCommunicate OK [13:58:25]SAM_PROTO_SignData done [13:58:25]FM_MakeSignedData done [13:58:25]CreateOFDProtocolMessage [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 11 00 00 [13:58:25]Write to MH i2c: E2 08 00 F6 1A 80 11 00 00 00 00 00 00 8A [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 17 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 17 00 F6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D7 [13:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:58:25]wFMCommunicate OK [13:58:25]CreateOFDProtocolMessage done [13:58:25]OFDSenderStorePacket 48907 [13:58:25]StoreOFDPacket docnum=48907 [13:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 97 BA 04 01 09 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 57 00 00 00 F4 03 04 00 03 0C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B BF 00 00 35 04 06 00 03 53 D3 41 72 97 F1 B7 BD 04 D3 3C 82 AD [13:58:25]CheckFolder [13:58:25]dirname=/storage/ofd_packets [13:58:25]CheckFolder done [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00048907 [13:58:25]NVStorageSaveData ofd_packets/00048907 [13:58:25]File name is /storage/ofd_packets/00048907 [13:58:25]Write 298 bytes [13:58:25]NVStorageSaveData done [13:58:25]OFDSenderStorePacket done [13:58:25]KKMCreateOFDPacket done [13:58:25]NVStorageSaveData kkm_last_timestamp [13:58:25]File name is /storage/kkm_last_timestamp [13:58:25]Write 4 bytes [13:58:25]NVStorageSaveData done [13:58:25]ExternCall_PrintAddStr [13:58:25]wPrintStart [13:58:25]Write to MH i2c: 01 00 00 F7 1A 11 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 F7 1A 00 00 00 00 00 FF 0F 26 [13:58:25]RasterBufferAndPrint [13:58:25]line Счет N : (1)216005 [13:58:25]line ИНН: 02508201610067 [13:58:25]line Контрольно-Кассовый Чек [13:58:25]line ПРОДАЖА [13:58:25]line ТРК (МРК, ГНК) : 11 [13:58:25]line Товар: 2710194210 [13:58:25]line ДТ-К-5 [13:58:25]line 21.460 * 69.90 [13:58:25]line = 1500.05 [13:58:25]line НДС 12% НСП 1% [13:58:25]line > о реализуемом товаре [13:58:25]line ОКРУГЛЕНИЕ: -0.05 [13:58:25]line ИТОГО: 1500.00 [13:58:25]line Внесено: 1500.00 [13:58:25]line СДАЧА: 0.00 [13:58:25]line НСП 1% : 13.27 [13:58:25]line НДС 12% : 159.30 [13:58:25]line Наличными: 1500.00 [13:58:25]line Безнал.: 0.00 [13:58:25]line Место: АЗС № 102 "Партнер Нефть" [13:58:25]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:58:25]line СНО: Общий режим [13:58:25]line Чек 87 27.01.2024 13:58 [13:58:25]line Смена: 243 ФФД: 1.0 [13:58:25]line ЗНМ: 0300000040 [13:58:25]line РНМ: 0000000000092723 [13:58:25]line Версия ККМ: 001 [13:58:25]line ФМ: 0000000000875060 [13:58:25]line ФД: 48907 [13:58:25]line ФПД: 3658561450647 [13:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T135827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48907&fm=3658561450647&tin=02508201610067®Number=0000000000092723&sum=150000 [13:58:25]OFD Sender: Processing packet 48907 [packets to send 12, broken 11] [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00048907 [13:58:25]OFD Sender: To server: pG, [13:58:25]CommunicateWithHost lk.salyk.kg:30040 [13:58:25]ConnectInit lk.salyk.kg [13:58:25]written 0, free lines is 4095 [13:58:25]Connected sock=10 [13:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 97 BA 04 01 09 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 57 00 00 00 F4 03 04 00 03 0C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B BF 00 00 35 04 06 00 03 53 D3 41 72 97 F1 B7 BD 04 D3 3C 82 AD [13:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 46 1A 47 00 C0 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0B BF 00 00 F4 03 04 00 01 B8 B4 65 B6 04 01 00 00 42 91 79 19 BD 01 08 1B [13:58:25]CommunicateWithHost err = 0 [13:58:25]CheckOFDResponse [13:58:25]1017 (14) - 77093643461234 [13:58:25]1041 (16) - 0000000000875060 [13:58:25]1040 (4) - 48907 [13:58:25]1012 (4) - 27.01.2024 08:00 [13:58:25]1206 (1) - 0 [13:58:25]OFD Sender: Remove packet 48907 [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00048907 [13:58:25]NVStorageDeleteData [13:58:26]Write to MH i2c: 01 00 00 22 1B 3D [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 22 1B 00 00 00 00 00 F1 0C 41 [13:58:26]RasterBufferAndPrint [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]written 0, free lines is 3320 [13:58:26]MH_Cut [13:58:26]Write to MH i2c: D1 01 00 29 1B 01 16 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 01 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 01 00 29 1B 00 15 [13:58:26]Write to MH i2c: 01 00 00 2A 1B 45 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]OFD Sender: No OFD packet to send [13:58:26]*** Cut start [13:58:26]*** Partial cut [13:58:26]*** CUTSNS_PIN = 1 [13:58:26]*** CUTSNS_PIN = 0 [13:58:26]*** Brake cut motor [13:58:27]Read from MH i2c: 01 [13:58:27]MH_I2C_Read... [13:58:27]*** Stop cut motor [13:58:27]*** Cut end [13:58:27]Read from MH i2c: 01 07 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [13:58:27]process_action close_receipt done [13:58:27]requested_data is exist [13:58:27]produce_requested_data [13:58:27]requested_item fm.sn is exist - process it [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 11 00 00 [13:58:27]Write to MH i2c: E2 08 00 2B 1B 80 11 00 00 00 00 00 00 C0 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 2B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0D [13:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:58:27]wFMCommunicate OK [13:58:27]requested_item fd.num is exist - process it [13:58:27]SAM_PROTO_GetFieldsCounters [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 00 00 [13:58:27]Write to MH i2c: E2 08 00 2C 1B 80 13 00 00 00 00 00 00 C3 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 2C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0B BF 00 00 0E 04 04 00 F3 00 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 9E [13:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0B BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetFieldsCounters done [13:58:27]requested_item shift.num is exist - process it [13:58:27]requested_item shift.opened is exist - process it [13:58:27]req_shift_opened [13:58:27]FM_GetShiftState [13:58:27]SAM_PROTO_GetShiftState [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 01 00 [13:58:27]Write to MH i2c: E2 08 00 2D 1B 80 13 01 00 00 00 00 00 C5 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 2D 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 5C [13:58:27]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetShiftState done [13:58:27]FM_GetShiftState done [13:58:27]req_shift_opened done [13:58:27]requested_item shift.open_date is exist - process it [13:58:27]req_shift_open_date [13:58:27]req_shift_open_date done [13:58:27]produce_requested_data done [13:58:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48907,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [13:58:27]process_action_free close_receipt [13:58:27]json_value_free [13:58:27]json_value_free done [13:58:27]process_json_proto returns [13:58:27]Send response to host [13:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48907,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [13:58:27]free response buf [13:58:27]execute_script done [13:58:27]execute_script returns [13:58:27]free content buf [13:58:27]Sock 9.Close socket [13:58:27]Sock 9.Thread stoped [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:09]accept exits with 7 [14:03:09]New connection [14:03:09]New thread 3066813796 created [14:03:09]Thread 3066670436 joined [14:03:09]Waiting for new connection... [14:03:09] Sock 7.Parse request [14:03:09]Sock 7.Check first char [14:03:09]Sock 7.First char is OK [14:03:09]request: POST /json_proto HTTP/1.0 [14:03:09]Method: POST [14:03:09]URL: /json_proto [14:03:09]Method is POST - this is cgi request [14:03:09]url: /json_proto [14:03:09]query_string will be loaded in cgi processing [14:03:09]execute_cgi json_proto POST (null) [14:03:09]execute_cgi path=json_proto method=POST [14:03:09]POST find Content-Length [14:03:09]Host: 172.17.56.67:8080 [14:03:09]Content-Length: 682 [14:03:09]Content-Type: application/json [14:03:09] [14:03:09]POST finish read [14:03:09]Found Content-Length = 682 [14:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 80.100, "sum" : 4830.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4830.00, "total" : 4830.00, "payments": [ { "type": 0, "sum" : 4830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:09]execute_script... [14:03: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)216006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 80.100, "sum" : 4830.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4830.00, "total" : 4830.00, "payments": [ { "type": 0, "sum" : 4830.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:09]POST & json_proto [14:03:09]process_json_proto [14:03:09]json parsed OK: [14:03:09]protocol is kg_v1.0 [14:03:09]action value=close_receipt [14:03:09]process_action close_receipt [14:03:09]cmd_close_receipt [14:03:09]MH_GetDate [14:03:09]Write to MH i2c: F0 00 00 2E 1B 38 [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: F0 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: F0 09 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: F0 09 00 2E 1B 00 21 0D B5 65 26 5D 9E 65 0F [14:03:09]GetLastDocTimeStamp 1706363907 [14:03:09]current date 1706364193 [14:03:09]FM_GetShiftState [14:03:09]SAM_PROTO_GetShiftState [14:03:09]wFMCommunicate request_size=4 [14:03:09]MH_SAM_APDU [14:03:09]CAPDU: 80 13 01 00 [14:03:09]Write to MH i2c: E2 08 00 2F 1B 80 13 01 00 00 00 00 00 C7 [14:03:09]Write i2c OK [14:03:09]MH_I2C_Read... [14:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:09]Read from MH i2c: E2 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 0E 00 [14:03:09]MH_I2C_Read... [14:03:09]Read from MH i2c: E2 0E 00 2F 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 5E [14:03:09]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:03:09]wFMCommunicate OK [14:03:09]SAM_PROTO_GetShiftState done [14:03:09]FM_GetShiftState done [14:03:09]opened in 1706313770 [14:03:09]opened+sec_in_day 1706400170 [14:03:09]quantity*price = 483003 [14:03:09]sum+1 = 483004 [14:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 4830.00 Внесено: 4830.00 СДАЧА: 0.00 НСП 1% : 42.74 НДС 12% : 512.92 Наличными: 4830.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 88 27.01.2024 14:03 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48908 ФПД: 207595857983239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T140313&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48908&fm=207595857983239&tin=02508201610067®Number=0000000000092723&sum=483000 [14:03:10]StoreToDocumentArchive [14:03:10]shift 243 fd 48908 [14:03:10]save to /storage/0243/doc_00048908 [14:03:10]save last doc name /storage/0243/doc_00048908 to /storage/kkm_last_doc_name [14:03:10]save OK [14:03:10]Clear old archive folders... [14:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:10]tlvbuf is B6E86DC0 [14:03:10]SAM_PROTO_ClearQueue [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 09 00 00 [14:03:10]Write to MH i2c: E2 08 00 3C 1B 80 09 00 00 00 00 00 00 C9 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:10]Read from MH i2c: E2 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 03 00 [14:03:10]MH_I2C_Read... [14:03:10]Read from MH i2c: E2 03 00 3C 1B 00 90 00 CB [14:03:10]RAPDU: 90 00 [14:03:10]wFMCommunicate OK [14:03:10]SAM_PROTO_ClearQueue done [14:03:10]KKMCreateOFDPacket [14:03:10]OFDProtocolAddRootSTLVToBuf [14:03:10]FM_MakeSignedData [14:03:10]FM_MakeSignedData [14:03:10]SAM_PROTO_SignData [14:03:10]wFMCommunicate request_size=4 [14:03:10]MH_SAM_APDU [14:03:10]CAPDU: 80 0D 01 02 [14:03:10]Write to MH i2c: E2 08 00 3D 1B 80 0D 01 02 00 00 00 00 D1 [14:03:10]Write i2c OK [14:03:10]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 3D 1B 00 90 00 CC [14:03:11]RAPDU: 90 00 [14:03:11]wFMCommunicate OK [14:03:11]wFMCommunicate request_size=255 [14:03:11]MH_SAM_APDU [14:03: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 E4 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB 5E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 5E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C C8 00 00 00 00 07 04 06 00 B8 5E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 21 0D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C BF 00 00 35 04 06 00 BC [14:03:11]Write to MH i2c: E2 02 01 3E 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 E4 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB 5E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 5E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C C8 00 00 00 00 07 04 06 00 B8 5E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 21 0D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C BF 00 00 35 04 06 00 BC 00 00 EF [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 3E 1B 00 90 00 CD [14:03:11]RAPDU: 90 00 [14:03:11]wFMCommunicate OK [14:03:11]wFMCommunicate request_size=10 [14:03:11]MH_SAM_APDU [14:03:11]CAPDU: 80 0D 02 02 05 CE AD 5F 37 07 [14:03:11]Write to MH i2c: E2 0D 00 3F 1B 80 0D 02 02 05 00 CE AD 5F 37 07 00 00 F6 [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 03 00 3F 1B 00 90 00 CE [14:03:11]RAPDU: 90 00 [14:03:11]wFMCommunicate OK [14:03:11]wFMCommunicate request_size=4 [14:03:11]MH_SAM_APDU [14:03:11]CAPDU: 80 0D 03 02 [14:03:11]Write to MH i2c: E2 08 00 40 1B 80 0D 03 02 00 00 00 00 D6 [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0B 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 0B 00 40 1B 00 16 56 8F 2F 7F 73 0E B1 90 00 B2 [14:03:11]RAPDU: 16 56 8F 2F 7F 73 0E B1 90 00 [14:03:11]wFMCommunicate OK [14:03:11]SAM_PROTO_SignData done [14:03:11]FM_MakeSignedData done [14:03:11]CreateOFDProtocolMessage [14:03:11]wFMCommunicate request_size=4 [14:03:11]MH_SAM_APDU [14:03:11]CAPDU: 80 11 00 00 [14:03:11]Write to MH i2c: E2 08 00 41 1B 80 11 00 00 00 00 00 00 D6 [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:11]Read from MH i2c: E2 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 17 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: E2 17 00 41 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 23 [14:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:11]wFMCommunicate OK [14:03:11]CreateOFDProtocolMessage done [14:03:11]OFDSenderStorePacket 48908 [14:03:11]StoreOFDPacket docnum=48908 [14:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 27 63 07 01 06 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB 5E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 5E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C C8 00 00 00 00 07 04 06 00 B8 5E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 21 0D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C BF 00 00 35 04 06 00 BC CE AD 5F 37 07 16 56 8F 2F 7F 73 0E B1 [14:03:11]CheckFolder [14:03:11]dirname=/storage/ofd_packets [14:03:11]CheckFolder done [14:03:11]ProducePacketName [14:03:11]name=ofd_packets/00048908 [14:03:11]NVStorageSaveData ofd_packets/00048908 [14:03:11]File name is /storage/ofd_packets/00048908 [14:03:11]Write 301 bytes [14:03:11]NVStorageSaveData done [14:03:11]OFDSenderStorePacket done [14:03:11]KKMCreateOFDPacket done [14:03:11]NVStorageSaveData kkm_last_timestamp [14:03:11]File name is /storage/kkm_last_timestamp [14:03:11]Write 4 bytes [14:03:11]NVStorageSaveData done [14:03:11]ExternCall_PrintAddStr [14:03:11]wPrintStart [14:03:11]Write to MH i2c: 01 00 00 42 1B 5D [14:03:11]Write i2c OK [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: 01 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: 01 07 00 [14:03:11]MH_I2C_Read... [14:03:11]Read from MH i2c: 01 07 00 42 1B 00 00 00 00 00 FF 0F 72 [14:03:11]RasterBufferAndPrint [14:03:11]line Счет N : (1)216006 [14:03:11]line ИНН: 02508201610067 [14:03:11]line Контрольно-Кассовый Чек [14:03:11]line ПРОДАЖА [14:03:11]line ТРК (МРК, ГНК) : 22 [14:03:11]line Товар: 2710124130 [14:03:11]line Аи-92-К-5 [14:03:11]line 80.100 * 60.30 [14:03:11]line = 4830.03 [14:03:11]line НДС 12% НСП 1% [14:03:11]line > о реализуемом товаре [14:03:11]line ОКРУГЛЕНИЕ: -0.03 [14:03:11]line ИТОГО: 4830.00 [14:03:11]line Внесено: 4830.00 [14:03:11]line СДАЧА: 0.00 [14:03:11]line НСП 1% : 42.74 [14:03:11]line НДС 12% : 512.92 [14:03:11]line Наличными: 4830.00 [14:03:11]line Безнал.: 0.00 [14:03:11]line Место: АЗС № 102 "Партнер Нефть" [14:03:11]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:03:11]line СНО: Общий режим [14:03:11]line Чек 88 27.01.2024 14:03 [14:03:11]line Смена: 243 ФФД: 1.0 [14:03:11]line ЗНМ: 0300000040 [14:03:11]line РНМ: 0000000000092723 [14:03:11]line Версия ККМ: 001 [14:03:11]line ФМ: 0000000000875060 [14:03:11]line ФД: 48908 [14:03:11]line ФПД: 207595857983239 [14:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T140313&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48908&fm=207595857983239&tin=02508201610067®Number=0000000000092723&sum=483000 [14:03:11]OFD Sender: Processing packet 48908 [packets to send 12, broken 11] [14:03:11]ProducePacketName [14:03:11]name=ofd_packets/00048908 [14:03:11]OFD Sender: To server: pG, [14:03:11]CommunicateWithHost lk.salyk.kg:30040 [14:03:11]ConnectInit lk.salyk.kg [14:03:11]written 0, free lines is 4095 [14:03:11]Connected sock=9 [14:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 27 63 07 01 06 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BB 5E 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 5E 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C C8 00 00 00 00 07 04 06 00 B8 5E 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 21 0D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C BF 00 00 35 04 06 00 BC CE AD 5F 37 07 16 56 8F 2F 7F 73 0E B1 [14:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 9D 1A 47 00 D5 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0C BF 00 00 F4 03 04 00 1F B9 B4 65 B6 04 01 00 00 43 34 BF DD 0A 77 B4 5E [14:03:12]CommunicateWithHost err = 0 [14:03:12]CheckOFDResponse [14:03:12]1017 (14) - 77093643461234 [14:03:12]1041 (16) - 0000000000875060 [14:03:12]1040 (4) - 48908 [14:03:12]1012 (4) - 27.01.2024 08:04 [14:03:12]1206 (1) - 0 [14:03:12]OFD Sender: Remove packet 48908 [14:03:12]ProducePacketName [14:03:12]name=ofd_packets/00048908 [14:03:12]NVStorageDeleteData [14:03:12]Write to MH i2c: 01 00 00 6D 1B 88 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: 01 07 00 6D 1B 00 00 00 00 00 F9 0C 94 [14:03:12]RasterBufferAndPrint [14:03:12]line [14:03:12]line [14:03:12]line [14:03:12]line [14:03:12]line [14:03:12]written 0, free lines is 3327 [14:03:12]MH_Cut [14:03:12]Write to MH i2c: D1 01 00 74 1B 01 61 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: D1 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: D1 01 00 [14:03:12]MH_I2C_Read... [14:03:12]Read from MH i2c: D1 01 00 74 1B 00 60 [14:03:12]Write to MH i2c: 01 00 00 75 1B 90 [14:03:12]Write i2c OK [14:03:12]MH_I2C_Read... [14:03:12]OFD Sender: No OFD packet to send [14:03:12]*** Cut start [14:03:12]*** Partial cut [14:03:12]*** CUTSNS_PIN = 1 [14:03:12]*** CUTSNS_PIN = 0 [14:03:13]*** Brake cut motor [14:03:13]Read from MH i2c: 01 [14:03:13]MH_I2C_Read... [14:03:13]*** Stop cut motor [14:03:13]*** Cut end [14:03:13]Read from MH i2c: 01 07 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [14:03:13]process_action close_receipt done [14:03:13]requested_data is exist [14:03:13]produce_requested_data [14:03:13]requested_item fm.sn is exist - process it [14:03:13]wFMCommunicate request_size=4 [14:03:13]MH_SAM_APDU [14:03:13]CAPDU: 80 11 00 00 [14:03:13]Write to MH i2c: E2 08 00 76 1B 80 11 00 00 00 00 00 00 0B [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:13]Read from MH i2c: E2 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: E2 17 00 [14:03:13]MH_I2C_Read... [14:03:13]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 35 30 36 30 90 00 58 [14:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:13]wFMCommunicate OK [14:03:13]requested_item fd.num is exist - process it [14:03:13]SAM_PROTO_GetFieldsCounters [14:03:13]wFMCommunicate request_size=4 [14:03:13]MH_SAM_APDU [14:03:13]CAPDU: 80 13 00 00 [14:03:13]Write to MH i2c: E2 08 00 77 1B 80 13 00 00 00 00 00 00 0E [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:13]Read from MH i2c: E2 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: E2 62 00 [14:03:13]MH_I2C_Read... [14:03:13]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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0C BF 00 00 0E 04 04 00 F3 00 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 ED [14:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0C BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:13]wFMCommunicate OK [14:03:13]SAM_PROTO_GetFieldsCounters done [14:03:13]requested_item shift.num is exist - process it [14:03:13]requested_item shift.opened is exist - process it [14:03:13]req_shift_opened [14:03:13]FM_GetShiftState [14:03:13]SAM_PROTO_GetShiftState [14:03:13]wFMCommunicate request_size=4 [14:03:13]MH_SAM_APDU [14:03:13]CAPDU: 80 13 01 00 [14:03:13]Write to MH i2c: E2 08 00 78 1B 80 13 01 00 00 00 00 00 10 [14:03:13]Write i2c OK [14:03:13]MH_I2C_Read... [14:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:13]Read from MH i2c: E2 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: E2 0E 00 [14:03:13]MH_I2C_Read... [14:03:13]Read from MH i2c: E2 0E 00 78 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A7 [14:03:13]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:03:13]wFMCommunicate OK [14:03:13]SAM_PROTO_GetShiftState done [14:03:13]FM_GetShiftState done [14:03:13]req_shift_opened done [14:03:13]requested_item shift.open_date is exist - process it [14:03:13]req_shift_open_date [14:03:13]req_shift_open_date done [14:03:13]produce_requested_data done [14:03:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48908,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:03:13]process_action_free close_receipt [14:03:13]json_value_free [14:03:13]json_value_free done [14:03:13]process_json_proto returns [14:03:13]Send response to host [14:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48908,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:03:13]free response buf [14:03:13]execute_script done [14:03:13]execute_script returns [14:03:13]free content buf [14:03:13]Sock 7.Close socket [14:03:13]Sock 7.Thread stoped [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:47]OFD Sender: No OFD packet to send [14:05:52]OFD Sender: No OFD packet to send [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:19]accept exits with 10 [14:14:19]New connection [14:14:19]New thread 3066670436 created [14:14:19]Thread 3066813796 joined [14:14:19]Waiting for new connection... [14:14:19] Sock 10.Parse request [14:14:19]Sock 10.Check first char [14:14:19]Sock 10.First char is OK [14:14:19]request: POST /json_proto HTTP/1.0 [14:14:19]Method: POST [14:14:19]URL: /json_proto [14:14:19]Method is POST - this is cgi request [14:14:19]url: /json_proto [14:14:19]query_string will be loaded in cgi processing [14:14:19]execute_cgi json_proto POST (null) [14:14:19]execute_cgi path=json_proto method=POST [14:14:19]POST find Content-Length [14:14:19]Host: 172.17.56.67:8080 [14:14:19]Content-Length: 674 [14:14:19]Content-Type: application/json [14:14:19] [14:14:19]POST finish read [14:14:19]Found Content-Length = 674 [14:14:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.010, "sum" : 350.20, "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" ] } } [14:14:19]execute_script... [14:14: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)216007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.010, "sum" : 350.20, "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" ] } } [14:14:19]POST & json_proto [14:14:19]process_json_proto [14:14:19]json parsed OK: [14:14:19]protocol is kg_v1.0 [14:14:19]action value=close_receipt [14:14:19]process_action close_receipt [14:14:19]cmd_close_receipt [14:14:19]MH_GetDate [14:14:19]Write to MH i2c: F0 00 00 79 1B 83 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: F0 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: F0 09 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: F0 09 00 79 1B 00 BF 0F B5 65 26 5D 9E 65 FA [14:14:20]GetLastDocTimeStamp 1706364193 [14:14:20]current date 1706364863 [14:14:20]FM_GetShiftState [14:14:20]SAM_PROTO_GetShiftState [14:14:20]wFMCommunicate request_size=4 [14:14:20]MH_SAM_APDU [14:14:20]CAPDU: 80 13 01 00 [14:14:20]Write to MH i2c: E2 08 00 7A 1B 80 13 01 00 00 00 00 00 12 [14:14:20]Write i2c OK [14:14:20]MH_I2C_Read... [14:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:20]Read from MH i2c: E2 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 0E 00 [14:14:20]MH_I2C_Read... [14:14:20]Read from MH i2c: E2 0E 00 7A 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A9 [14:14:20]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:14:20]wFMCommunicate OK [14:14:20]SAM_PROTO_GetShiftState done [14:14:20]FM_GetShiftState done [14:14:20]opened in 1706313770 [14:14:20]opened+sec_in_day 1706400170 [14:14:20]quantity*price = 35019 [14:14:20]sum+1 = 35021 [14:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 89 27.01.2024 14:14 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48909 ФПД: 56234790582789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T141423&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48909&fm=56234790582789&tin=02508201610067®Number=0000000000092723&sum=35000 [14:14:21]StoreToDocumentArchive [14:14:21]shift 243 fd 48909 [14:14:21]save to /storage/0243/doc_00048909 [14:14:21]save last doc name /storage/0243/doc_00048909 to /storage/kkm_last_doc_name [14:14:21]save OK [14:14:21]Clear old archive folders... [14:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:14:21]tlvbuf is 0134F280 [14:14:21]SAM_PROTO_ClearQueue [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 09 00 00 [14:14:21]Write to MH i2c: E2 08 00 87 1B 80 09 00 00 00 00 00 00 14 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 87 1B 00 90 00 16 [14:14:21]RAPDU: 90 00 [14:14:21]wFMCommunicate OK [14:14:21]SAM_PROTO_ClearQueue done [14:14:21]KKMCreateOFDPacket [14:14:21]OFDProtocolAddRootSTLVToBuf [14:14:21]FM_MakeSignedData [14:14:21]FM_MakeSignedData [14:14:21]SAM_PROTO_SignData [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 0D 01 02 [14:14:21]Write to MH i2c: E2 08 00 88 1B 80 0D 01 02 00 00 00 00 1C [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 88 1B 00 90 00 17 [14:14:21]RAPDU: 90 00 [14:14:21]wFMCommunicate OK [14:14:21]wFMCommunicate request_size=255 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 CC 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 87 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 59 00 00 00 F4 03 04 00 BF 0F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D BF 00 00 35 04 06 00 33 25 2E B7 [14:14:21]Write to MH i2c: E2 02 01 89 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 92 13 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 CC 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 87 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 59 00 00 00 F4 03 04 00 BF 0F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D BF 00 00 35 04 06 00 33 25 2E B7 00 00 5C [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 89 1B 00 90 00 18 [14:14:21]RAPDU: 90 00 [14:14:21]wFMCommunicate OK [14:14:21]wFMCommunicate request_size=7 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 0D 02 02 02 7A 05 [14:14:21]Write to MH i2c: E2 0A 00 8A 1B 80 0D 02 02 02 00 7A 05 00 00 A2 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 03 00 8A 1B 00 90 00 19 [14:14:21]RAPDU: 90 00 [14:14:21]wFMCommunicate OK [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 0D 03 02 [14:14:21]Write to MH i2c: E2 08 00 8B 1B 80 0D 03 02 00 00 00 00 21 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 0B 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 0B 00 8B 1B 00 F2 92 66 B8 48 A8 2B 8B 90 00 6A [14:14:21]RAPDU: F2 92 66 B8 48 A8 2B 8B 90 00 [14:14:21]wFMCommunicate OK [14:14:21]SAM_PROTO_SignData done [14:14:21]FM_MakeSignedData done [14:14:21]CreateOFDProtocolMessage [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 11 00 00 [14:14:21]Write to MH i2c: E2 08 00 8C 1B 80 11 00 00 00 00 00 00 21 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 17 00 [14:14:21]MH_I2C_Read... [14:14:21]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 35 30 36 30 90 00 6E [14:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:14:21]wFMCommunicate OK [14:14:21]CreateOFDProtocolMessage done [14:14:21]OFDSenderStorePacket 48909 [14:14:21]StoreOFDPacket docnum=48909 [14:14:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B3 16 04 01 24 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 CC 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 87 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 59 00 00 00 F4 03 04 00 BF 0F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D BF 00 00 35 04 06 00 33 25 2E B7 7A 05 F2 92 66 B8 48 A8 2B 8B [14:14:21]CheckFolder [14:14:21]dirname=/storage/ofd_packets [14:14:21]CheckFolder done [14:14:21]ProducePacketName [14:14:21]name=ofd_packets/00048909 [14:14:21]NVStorageSaveData ofd_packets/00048909 [14:14:21]File name is /storage/ofd_packets/00048909 [14:14:21]Write 298 bytes [14:14:21]NVStorageSaveData done [14:14:21]OFDSenderStorePacket done [14:14:21]KKMCreateOFDPacket done [14:14:21]NVStorageSaveData kkm_last_timestamp [14:14:21]File name is /storage/kkm_last_timestamp [14:14:21]Write 4 bytes [14:14:21]NVStorageSaveData done [14:14:21]ExternCall_PrintAddStr [14:14:21]wPrintStart [14:14:21]Write to MH i2c: 01 00 00 8D 1B A8 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: 01 07 00 8D 1B 00 00 00 00 00 FF 0F BD [14:14:21]RasterBufferAndPrint [14:14:21]line Счет N : (1)216007 [14:14:21]line ИНН: 02508201610067 [14:14:21]line Контрольно-Кассовый Чек [14:14:21]line ПРОДАЖА [14:14:21]line ТРК (МРК, ГНК) : 11 [14:14:21]line Товар: 2710194210 [14:14:21]line ДТ-К-5 [14:14:21]line 5.010 * 69.90 [14:14:21]line = 350.20 [14:14:21]line НДС 12% НСП 1% [14:14:21]line > о реализуемом товаре [14:14:21]line ОКРУГЛЕНИЕ: -0.20 [14:14:21]line ИТОГО: 350.00 [14:14:21]line Внесено: 350.00 [14:14:21]line СДАЧА: 0.00 [14:14:21]line НСП 1% : 3.10 [14:14:21]line НДС 12% : 37.19 [14:14:21]line Наличными: 350.00 [14:14:21]line Безнал.: 0.00 [14:14:21]line Место: АЗС № 102 "Партнер Нефть" [14:14:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:14:21]line СНО: Общий режим [14:14:21]line Чек 89 27.01.2024 14:14 [14:14:21]line Смена: 243 ФФД: 1.0 [14:14:21]line ЗНМ: 0300000040 [14:14:21]line РНМ: 0000000000092723 [14:14:21]line Версия ККМ: 001 [14:14:21]line ФМ: 0000000000875060 [14:14:21]line ФД: 48909 [14:14:21]line ФПД: 56234790582789 [14:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T141423&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48909&fm=56234790582789&tin=02508201610067®Number=0000000000092723&sum=35000 [14:14:22]OFD Sender: Processing packet 48909 [packets to send 12, broken 11] [14:14:22]ProducePacketName [14:14:22]name=ofd_packets/00048909 [14:14:22]OFD Sender: To server: pG, [14:14:22]CommunicateWithHost lk.salyk.kg:30040 [14:14:22]ConnectInit lk.salyk.kg [14:14:22]written 0, free lines is 4095 [14:14:22]Connected sock=11 [14:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B3 16 04 01 24 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 13 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 CC 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 87 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 59 00 00 00 F4 03 04 00 BF 0F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0D BF 00 00 35 04 06 00 33 25 2E B7 7A 05 F2 92 66 B8 48 A8 2B 8B [14:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 46 BC 47 00 25 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 35 30 36 30 10 04 04 00 0D BF 00 00 F4 03 04 00 BE BB B4 65 B6 04 01 00 00 0D C7 AA 7D 77 CC 11 FD [14:14:22]CommunicateWithHost err = 0 [14:14:22]CheckOFDResponse [14:14:22]1017 (14) - 77093643461234 [14:14:22]1041 (16) - 0000000000875060 [14:14:22]1040 (4) - 48909 [14:14:22]1012 (4) - 27.01.2024 08:15 [14:14:22]1206 (1) - 0 [14:14:22]OFD Sender: Remove packet 48909 [14:14:22]ProducePacketName [14:14:22]name=ofd_packets/00048909 [14:14:22]NVStorageDeleteData [14:14:22]Write to MH i2c: 01 00 00 B8 1B D3 [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: 01 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: 01 07 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: 01 07 00 B8 1B 00 00 00 00 00 F9 0C DF [14:14:22]RasterBufferAndPrint [14:14:22]line [14:14:22]line [14:14:22]line [14:14:22]line [14:14:22]line [14:14:22]written 0, free lines is 3328 [14:14:22]MH_Cut [14:14:22]Write to MH i2c: D1 01 00 BF 1B 01 AC [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: D1 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: D1 01 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: D1 01 00 BF 1B 00 AB [14:14:22]Write to MH i2c: 01 00 00 C0 1B DB [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]OFD Sender: No OFD packet to send [14:14:23]*** Cut start [14:14:23]*** Partial cut [14:14:23]*** CUTSNS_PIN = 1 [14:14:23]*** CUTSNS_PIN = 0 [14:14:23]*** Brake cut motor [14:14:23]Read from MH i2c: 01 [14:14:23]MH_I2C_Read... [14:14:23]*** Stop cut motor [14:14:23]*** Cut end [14:14:23]Read from MH i2c: 01 07 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 FF 0F F0 [14:14:23]process_action close_receipt done [14:14:23]requested_data is exist [14:14:23]produce_requested_data [14:14:23]requested_item fm.sn is exist - process it [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 11 00 00 [14:14:23]Write to MH i2c: E2 08 00 C1 1B 80 11 00 00 00 00 00 00 56 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 17 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 17 00 C1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A3 [14:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:14:23]wFMCommunicate OK [14:14:23]requested_item fd.num is exist - process it [14:14:23]SAM_PROTO_GetFieldsCounters [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 13 00 00 [14:14:23]Write to MH i2c: E2 08 00 C2 1B 80 13 00 00 00 00 00 00 59 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 62 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 62 00 C2 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0D BF 00 00 0E 04 04 00 F3 00 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 3C [14: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0D BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:23]wFMCommunicate OK [14:14:23]SAM_PROTO_GetFieldsCounters done [14:14:23]requested_item shift.num is exist - process it [14:14:23]requested_item shift.opened is exist - process it [14:14:23]req_shift_opened [14:14:23]FM_GetShiftState [14:14:23]SAM_PROTO_GetShiftState [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 13 01 00 [14:14:23]Write to MH i2c: E2 08 00 C3 1B 80 13 01 00 00 00 00 00 5B [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0E 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0E 00 C3 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F2 [14:14:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:14:23]wFMCommunicate OK [14:14:23]SAM_PROTO_GetShiftState done [14:14:23]FM_GetShiftState done [14:14:23]req_shift_opened done [14:14:23]requested_item shift.open_date is exist - process it [14:14:23]req_shift_open_date [14:14:23]req_shift_open_date done [14:14:23]produce_requested_data done [14:14:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48909,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:14:23]process_action_free close_receipt [14:14:23]json_value_free [14:14:23]json_value_free done [14:14:23]process_json_proto returns [14:14:23]Send response to host [14:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48909,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:14:23]free response buf [14:14:23]execute_script done [14:14:23]execute_script returns [14:14:23]free content buf [14:14:23]Sock 10.Close socket [14:14:23]Sock 10.Thread stoped [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:16]accept exits with 7 [14:23:16]New connection [14:23:16]New thread 3066813796 created [14:23:16]Thread 3066670436 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.56.67:8080 [14:23:16]Content-Length: 682 [14:23:16]Content-Type: application/json [14:23:16] [14:23:16]POST finish read [14:23:16]Found Content-Length = 682 [14:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "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" ] } } [14:23:16]execute_script... [14:23: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)216008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "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" ] } } [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=close_receipt [14:23:16]process_action close_receipt [14:23:16]cmd_close_receipt [14:23:16]MH_GetDate [14:23:16]Write to MH i2c: F0 00 00 C4 1B CE [14:23:16]Write i2c OK [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 09 00 [14:23:16]MH_I2C_Read... [14:23:16]Read from MH i2c: F0 09 00 C4 1B 00 D7 11 B5 65 26 5D 9E 65 5F [14:23:16]GetLastDocTimeStamp 1706364863 [14:23:16]current date 1706365399 [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 C5 1B 80 13 01 00 00 00 00 00 5D [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 C5 1B 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F4 [14:23:16]RAPDU: 09 00 01 2A 48 B4 65 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]opened in 1706313770 [14:23:16]opened+sec_in_day 1706400170 [14:23:16]quantity*price = 150026 [14:23:16]sum+1 = 150027 [14:23:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 90 27.01.2024 14:23 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48910 ФПД: 260188591879940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142319&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48910&fm=260188591879940&tin=02508201610067®Number=0000000000092723&sum=150000 [14:23:17]StoreToDocumentArchive [14:23:17]shift 243 fd 48910 [14:23:17]save to /storage/0243/doc_00048910 [14:23:17]save last doc name /storage/0243/doc_00048910 to /storage/kkm_last_doc_name [14:23:17]save OK [14:23:17]Clear old archive folders... [14:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:17]tlvbuf is B6E86DF0 [14:23:17]SAM_PROTO_ClearQueue [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 09 00 00 [14:23:17]Write to MH i2c: E2 08 00 D2 1B 80 09 00 00 00 00 00 00 5F [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 D2 1B 00 90 00 61 [14:23:17]RAPDU: 90 00 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_ClearQueue done [14:23:17]KKMCreateOFDPacket [14:23:17]OFDProtocolAddRootSTLVToBuf [14:23:17]FM_MakeSignedData [14:23:17]FM_MakeSignedData [14:23:17]SAM_PROTO_SignData [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 0D 01 02 [14:23:17]Write to MH i2c: E2 08 00 D3 1B 80 0D 01 02 00 00 00 00 67 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 D3 1B 00 90 00 62 [14:23:17]RAPDU: 90 00 [14:23:17]wFMCommunicate OK [14:23:17]wFMCommunicate request_size=255 [14:23:17]MH_SAM_APDU [14:23: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 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 11 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E BF 00 00 35 04 06 00 EC [14:23:17]Write to MH i2c: E2 02 01 D4 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 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 11 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E BF 00 00 35 04 06 00 EC 00 00 22 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 D4 1B 00 90 00 63 [14:23:17]RAPDU: 90 00 [14:23:17]wFMCommunicate OK [14:23:17]wFMCommunicate request_size=10 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 0D 02 02 05 A3 E0 97 F7 04 [14:23:17]Write to MH i2c: E2 0D 00 D5 1B 80 0D 02 02 05 00 A3 E0 97 F7 04 00 00 89 [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 03 00 D5 1B 00 90 00 64 [14:23:17]RAPDU: 90 00 [14:23:17]wFMCommunicate OK [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 0D 03 02 [14:23:17]Write to MH i2c: E2 08 00 D6 1B 80 0D 03 02 00 00 00 00 6C [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0B 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 0B 00 D6 1B 00 31 E7 AA 53 C8 50 7A BF 90 00 D3 [14:23:17]RAPDU: 31 E7 AA 53 C8 50 7A BF 90 00 [14:23:17]wFMCommunicate OK [14:23:17]SAM_PROTO_SignData done [14:23:17]FM_MakeSignedData done [14:23:17]CreateOFDProtocolMessage [14:23:17]wFMCommunicate request_size=4 [14:23:17]MH_SAM_APDU [14:23:17]CAPDU: 80 11 00 00 [14:23:17]Write to MH i2c: E2 08 00 D7 1B 80 11 00 00 00 00 00 00 6C [14:23:17]Write i2c OK [14:23:17]MH_I2C_Read... [14:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:17]Read from MH i2c: E2 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 17 00 [14:23:17]MH_I2C_Read... [14:23:17]Read from MH i2c: E2 17 00 D7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B9 [14:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:23:17]wFMCommunicate OK [14:23:17]CreateOFDProtocolMessage done [14:23:17]OFDSenderStorePacket 48910 [14:23:17]StoreOFDPacket docnum=48910 [14:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CF 7E 07 01 6D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 11 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E BF 00 00 35 04 06 00 EC A3 E0 97 F7 04 31 E7 AA 53 C8 50 7A BF [14:23:17]CheckFolder [14:23:17]dirname=/storage/ofd_packets [14:23:17]CheckFolder done [14:23:17]ProducePacketName [14:23:17]name=ofd_packets/00048910 [14:23:17]NVStorageSaveData ofd_packets/00048910 [14:23:17]File name is /storage/ofd_packets/00048910 [14:23:17]Write 301 bytes [14:23:17]NVStorageSaveData done [14:23:17]OFDSenderStorePacket done [14:23:17]KKMCreateOFDPacket done [14:23:17]NVStorageSaveData kkm_last_timestamp [14:23:17]File name is /storage/kkm_last_timestamp [14:23:17]Write 4 bytes [14:23:17]NVStorageSaveData done [14:23:17]ExternCall_PrintAddStr [14:23:17]wPrintStart [14:23:17]Write to MH i2c: 01 00 00 D8 1B F3 [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]Read from MH i2c: 01 07 00 D8 1B 00 00 00 00 00 FF 0F 08 [14:23:17]RasterBufferAndPrint [14:23:17]line Счет N : (1)216008 [14:23:17]line ИНН: 02508201610067 [14:23:17]line Контрольно-Кассовый Чек [14:23:17]line ПРОДАЖА [14:23:17]line ТРК (МРК, ГНК) : 22 [14:23:17]line Товар: 2710124130 [14:23:17]line Аи-92-К-5 [14:23:17]line 24.880 * 60.30 [14:23:17]line = 1500.26 [14:23:17]line НДС 12% НСП 1% [14:23:17]line > о реализуемом товаре [14:23:17]line ОКРУГЛЕНИЕ: -0.26 [14:23:17]line ИТОГО: 1500.00 [14:23:17]line Внесено: 1500.00 [14:23:17]line СДАЧА: 0.00 [14:23:17]line НСП 1% : 13.28 [14:23:17]line НДС 12% : 159.32 [14:23:17]line Наличными: 1500.00 [14:23:17]line Безнал.: 0.00 [14:23:17]line Место: АЗС № 102 "Партнер Нефть" [14:23:17]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:23:17]line СНО: Общий режим [14:23:17]line Чек 90 27.01.2024 14:23 [14:23:17]line Смена: 243 ФФД: 1.0 [14:23:17]line ЗНМ: 0300000040 [14:23:17]line РНМ: 0000000000092723 [14:23:17]line Версия ККМ: 001 [14:23:17]line ФМ: 0000000000875060 [14:23:17]line ФД: 48910 [14:23:17]line ФПД: 260188591879940 [14:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142319&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48910&fm=260188591879940&tin=02508201610067®Number=0000000000092723&sum=150000 [14:23:18]OFD Sender: Processing packet 48910 [packets to send 12, broken 11] [14:23:18]ProducePacketName [14:23:18]name=ofd_packets/00048910 [14:23:18]OFD Sender: To server: pG, [14:23:18]CommunicateWithHost lk.salyk.kg:30040 [14:23:18]ConnectInit lk.salyk.kg [14:23:18]written 0, free lines is 4095 [14:23:18]Connected sock=10 [14:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CF 7E 07 01 6D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 11 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E BF 00 00 35 04 06 00 EC A3 E0 97 F7 04 31 E7 AA 53 C8 50 7A BF [14:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4C 16 47 00 67 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0E BF 00 00 F4 03 04 00 D6 BD B4 65 B6 04 01 00 00 70 F4 92 E8 85 78 17 6F [14:23:18]CommunicateWithHost err = 0 [14:23:18]CheckOFDResponse [14:23:18]1017 (14) - 77093643461234 [14:23:18]1041 (16) - 0000000000875060 [14:23:18]1040 (4) - 48910 [14:23:18]1012 (4) - 27.01.2024 08:24 [14:23:18]1206 (1) - 0 [14:23:18]OFD Sender: Remove packet 48910 [14:23:18]ProducePacketName [14:23:18]name=ofd_packets/00048910 [14:23:18]NVStorageDeleteData [14:23:18]Write to MH i2c: 01 00 00 03 1C 1F [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 07 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: 01 07 00 03 1C 00 00 00 00 00 F7 0C 29 [14:23:18]RasterBufferAndPrint [14:23:18]line [14:23:18]line [14:23:18]line [14:23:18]line [14:23:18]line [14:23:18]written 0, free lines is 3326 [14:23:18]MH_Cut [14:23:18]Write to MH i2c: D1 01 00 0A 1C 01 F8 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: D1 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: D1 01 00 [14:23:18]MH_I2C_Read... [14:23:18]Read from MH i2c: D1 01 00 0A 1C 00 F7 [14:23:18]Write to MH i2c: 01 00 00 0B 1C 27 [14:23:18]Write i2c OK [14:23:18]MH_I2C_Read... [14:23:18]OFD Sender: No OFD packet to send [14:23:19]*** Cut start [14:23:19]*** Partial cut [14:23:19]*** CUTSNS_PIN = 1 [14:23:19]*** CUTSNS_PIN = 0 [14:23:19]*** Brake cut motor [14:23:19]Read from MH i2c: 01 [14:23:19]MH_I2C_Read... [14:23:19]*** Stop cut motor [14:23:19]*** Cut end [14:23:19]Read from MH i2c: 01 07 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: 01 07 00 0B 1C 00 00 00 00 00 FF 0F 3C [14:23:19]process_action close_receipt done [14:23:19]requested_data is exist [14:23:19]produce_requested_data [14:23:19]requested_item fm.sn is exist - process it [14:23:19]wFMCommunicate request_size=4 [14:23:19]MH_SAM_APDU [14:23:19]CAPDU: 80 11 00 00 [14:23:19]Write to MH i2c: E2 08 00 0C 1C 80 11 00 00 00 00 00 00 A2 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 [14:23:19]MH_I2C_Read... [14:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:19]Read from MH i2c: E2 17 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 17 00 0C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EF [14:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:23:19]wFMCommunicate OK [14:23:19]requested_item fd.num is exist - process it [14:23:19]SAM_PROTO_GetFieldsCounters [14:23:19]wFMCommunicate request_size=4 [14:23:19]MH_SAM_APDU [14:23:19]CAPDU: 80 13 00 00 [14:23:19]Write to MH i2c: E2 08 00 0D 1C 80 13 00 00 00 00 00 00 A5 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:19]Read from MH i2c: E2 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 62 00 [14:23:19]MH_I2C_Read... [14:23:19]Read from MH i2c: E2 62 00 0D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0E BF 00 00 0E 04 04 00 F3 00 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 8C [14:23: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0E BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:19]wFMCommunicate OK [14:23:19]SAM_PROTO_GetFieldsCounters done [14:23:19]requested_item shift.num is exist - process it [14:23:19]requested_item shift.opened is exist - process it [14:23:19]req_shift_opened [14:23:19]FM_GetShiftState [14:23:19]SAM_PROTO_GetShiftState [14:23:19]wFMCommunicate request_size=4 [14:23:19]MH_SAM_APDU [14:23:19]CAPDU: 80 13 01 00 [14:23:19]Write to MH i2c: E2 08 00 0E 1C 80 13 01 00 00 00 00 00 A7 [14:23:19]Write i2c OK [14:23:19]MH_I2C_Read... [14:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:20]Read from MH i2c: E2 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 0E 00 [14:23:20]MH_I2C_Read... [14:23:20]Read from MH i2c: E2 0E 00 0E 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 3E [14:23:20]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:23:20]wFMCommunicate OK [14:23:20]SAM_PROTO_GetShiftState done [14:23:20]FM_GetShiftState done [14:23:20]req_shift_opened done [14:23:20]requested_item shift.open_date is exist - process it [14:23:20]req_shift_open_date [14:23:20]req_shift_open_date done [14:23:20]produce_requested_data done [14:23:20]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48910,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:23:20]process_action_free close_receipt [14:23:20]json_value_free [14:23:20]json_value_free done [14:23:20]process_json_proto returns [14:23:20]Send response to host [14:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48910,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:23:20]free response buf [14:23:20]execute_script done [14:23:20]execute_script returns [14:23:20]free content buf [14:23:20]Sock 7.Close socket [14:23:20]Sock 7.Thread stoped [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]accept exits with 9 [14:24:53]New connection [14:24:53]New thread 3066670436 created [14:24:53]Thread 3066813796 joined [14:24:53]Waiting for new connection... [14:24:53] Sock 9.Parse request [14:24:53]Sock 9.Check first char [14:24:53]Sock 9.First char is OK [14:24:53]request: POST /json_proto HTTP/1.0 [14:24:53]Method: POST [14:24:53]URL: /json_proto [14:24:53]Method is POST - this is cgi request [14:24:53]url: /json_proto [14:24:53]query_string will be loaded in cgi processing [14:24:53]execute_cgi json_proto POST (null) [14:24:53]execute_cgi path=json_proto method=POST [14:24:53]POST find Content-Length [14:24:53]Host: 172.17.56.67:8080 [14:24:53]Content-Length: 863 [14:24:53]Content-Type: application/json [14:24:53] [14:24:53]POST finish read [14:24:53]Found Content-Length = 863 [14:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:53]execute_script... [14:24:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:53]POST & json_proto [14:24:53]process_json_proto [14:24:53]json parsed OK: [14:24:53]protocol is kg_v1.0 [14:24:53]action value=close_receipt [14:24:53]process_action close_receipt [14:24:53]cmd_close_receipt [14:24:53]MH_GetDate [14:24:53]Write to MH i2c: F0 00 00 0F 1C 1A [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: F0 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: F0 09 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: F0 09 00 0F 1C 00 39 12 B5 65 26 5D 9E 65 0E [14:24:53]GetLastDocTimeStamp 1706365399 [14:24:53]current date 1706365497 [14:24:53]FM_GetShiftState [14:24:53]SAM_PROTO_GetShiftState [14:24:53]wFMCommunicate request_size=4 [14:24:53]MH_SAM_APDU [14:24:53]CAPDU: 80 13 01 00 [14:24:53]Write to MH i2c: E2 08 00 10 1C 80 13 01 00 00 00 00 00 A9 [14:24:53]Write i2c OK [14:24:53]MH_I2C_Read... [14:24:53]OFD Sender: No OFD packet to send [14:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:53]Read from MH i2c: E2 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0E 00 [14:24:53]MH_I2C_Read... [14:24:53]Read from MH i2c: E2 0E 00 10 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 40 [14:24:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:24:53]wFMCommunicate OK [14:24:53]SAM_PROTO_GetShiftState done [14:24:53]FM_GetShiftState done [14:24:53]opened in 1706313770 [14:24:53]opened+sec_in_day 1706400170 [14:24:53]quantity*price = 30029 [14:24:53]sum+1 = 30030 [14:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.29 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.29 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 91 27.01.2024 14:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000875060 ФД: 48911 ФПД: 82952116408502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142457&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48911&fm=82952116408502&tin=02508201610067®Number=0000000000092723&sum=30029 [14:24:55]StoreToDocumentArchive [14:24:55]shift 243 fd 48911 [14:24:55]save to /storage/0243/doc_00048911 [14:24:55]save last doc name /storage/0243/doc_00048911 to /storage/kkm_last_doc_name [14:24:55]save OK [14:24:55]Clear old archive folders... [14:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:55]tlvbuf is 01197620 [14:24:55]SAM_PROTO_ClearQueue [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 09 00 00 [14:24:55]Write to MH i2c: E2 08 00 1D 1C 80 09 00 00 00 00 00 00 AB [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 1D 1C 00 90 00 AD [14:24:55]RAPDU: 90 00 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_ClearQueue done [14:24:55]KKMCreateOFDPacket [14:24:55]OFDProtocolAddRootSTLVToBuf [14:24:55]FM_MakeSignedData [14:24:55]FM_MakeSignedData [14:24:55]SAM_PROTO_SignData [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 0D 01 02 [14:24:55]Write to MH i2c: E2 08 00 1E 1C 80 0D 01 02 00 00 00 00 B3 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 1E 1C 00 90 00 AE [14:24:55]RAPDU: 90 00 [14:24:55]wFMCommunicate OK [14:24:55]wFMCommunicate request_size=255 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 39 12 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F BF 00 00 35 04 06 00 4B [14:24:55]Write to MH i2c: E2 02 01 1F 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 39 12 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F BF 00 00 35 04 06 00 4B 00 00 7F [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 1F 1C 00 90 00 AF [14:24:55]RAPDU: 90 00 [14:24:55]wFMCommunicate OK [14:24:55]wFMCommunicate request_size=10 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 0D 02 02 05 71 CB 6E 90 B6 [14:24:55]Write to MH i2c: E2 0D 00 20 1C 80 0D 02 02 05 00 71 CB 6E 90 B6 00 00 B0 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 03 00 20 1C 00 90 00 B0 [14:24:55]RAPDU: 90 00 [14:24:55]wFMCommunicate OK [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 0D 03 02 [14:24:55]Write to MH i2c: E2 08 00 21 1C 80 0D 03 02 00 00 00 00 B8 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0B 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 0B 00 21 1C 00 D8 E7 6D 2B 9B BB A9 02 90 00 11 [14:24:55]RAPDU: D8 E7 6D 2B 9B BB A9 02 90 00 [14:24:55]wFMCommunicate OK [14:24:55]SAM_PROTO_SignData done [14:24:55]FM_MakeSignedData done [14:24:55]CreateOFDProtocolMessage [14:24:55]wFMCommunicate request_size=4 [14:24:55]MH_SAM_APDU [14:24:55]CAPDU: 80 11 00 00 [14:24:55]Write to MH i2c: E2 08 00 22 1C 80 11 00 00 00 00 00 00 B8 [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:55]Read from MH i2c: E2 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 17 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: E2 17 00 22 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 05 [14:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:24:55]wFMCommunicate OK [14:24:55]CreateOFDProtocolMessage done [14:24:55]OFDSenderStorePacket 48911 [14:24:55]StoreOFDPacket docnum=48911 [14:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E5 3D 07 01 65 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 39 12 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F BF 00 00 35 04 06 00 4B 71 CB 6E 90 B6 D8 E7 6D 2B 9B BB A9 02 [14:24:55]CheckFolder [14:24:55]dirname=/storage/ofd_packets [14:24:55]CheckFolder done [14:24:55]ProducePacketName [14:24:55]name=ofd_packets/00048911 [14:24:55]NVStorageSaveData ofd_packets/00048911 [14:24:55]File name is /storage/ofd_packets/00048911 [14:24:55]Write 301 bytes [14:24:55]NVStorageSaveData done [14:24:55]OFDSenderStorePacket done [14:24:55]KKMCreateOFDPacket done [14:24:55]NVStorageSaveData kkm_last_timestamp [14:24:55]File name is /storage/kkm_last_timestamp [14:24:55]Write 4 bytes [14:24:55]NVStorageSaveData done [14:24:55]ExternCall_PrintAddStr [14:24:55]wPrintStart [14:24:55]Write to MH i2c: 01 00 00 23 1C 3F [14:24:55]Write i2c OK [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: 01 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: 01 07 00 [14:24:55]MH_I2C_Read... [14:24:55]Read from MH i2c: 01 07 00 23 1C 00 00 00 00 00 FF 0F 54 [14:24:55]RasterBufferAndPrint [14:24:55]line Счет N : (1)216009 [14:24:55]line ИНН: 02508201610067 [14:24:55]line Контрольно-Кассовый Чек [14:24:55]line ПРОДАЖА [14:24:55]line ТРК (МРК, ГНК) : 12 [14:24:55]line Товар: 2710124130 [14:24:55]line Аи-92-К-5 [14:24:55]line 4.980 * 60.30 [14:24:55]line = 300.29 [14:24:55]line НДС 12% НСП 1% [14:24:55]line > о реализуемом товаре [14:24:55]line ИТОГО: 300.29 [14:24:55]line НСП 1% : 2.66 [14:24:55]line НДС 12% : 31.89 [14:24:55]line Наличными: 0.00 [14:24:55]line Безнал.: 300.29 [14:24:55]line Место: АЗС № 102 "Партнер Нефть" [14:24:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:24:55]line СНО: Общий режим [14:24:55]line Чек 91 27.01.2024 14:24 [14:24:55]line Смена: 243 ФФД: 1.0 [14:24:55]line ЗНМ: 0300000040 [14:24:55]line РНМ: 0000000000092723 [14:24:55]line Версия ККМ: 001 [14:24:55]line Платежная система: Кыргызкоммерцбанк [14:24:55]line ФМ: 0000000000875060 [14:24:55]line ФД: 48911 [14:24:55]line ФПД: 82952116408502 [14:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142457&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48911&fm=82952116408502&tin=02508201610067®Number=0000000000092723&sum=30029 [14:24:55]OFD Sender: Processing packet 48911 [packets to send 12, broken 11] [14:24:55]ProducePacketName [14:24:55]name=ofd_packets/00048911 [14:24:55]OFD Sender: To server: pG, [14:24:55]CommunicateWithHost lk.salyk.kg:30040 [14:24:55]ConnectInit lk.salyk.kg [14:24:55]written 0, free lines is 4095 [14:24:56]Connected sock=10 [14:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E5 3D 07 01 65 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 39 12 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F BF 00 00 35 04 06 00 4B 71 CB 6E 90 B6 D8 E7 6D 2B 9B BB A9 02 [14:24:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 94 4A 47 00 79 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 0F BF 00 00 F4 03 04 00 37 BE B4 65 B6 04 01 00 00 8C D9 57 82 B1 BB 8D 5D [14:24:56]CommunicateWithHost err = 0 [14:24:56]CheckOFDResponse [14:24:56]1017 (14) - 77093643461234 [14:24:56]1041 (16) - 0000000000875060 [14:24:56]1040 (4) - 48911 [14:24:56]1012 (4) - 27.01.2024 08:26 [14:24:56]1206 (1) - 0 [14:24:56]OFD Sender: Remove packet 48911 [14:24:56]ProducePacketName [14:24:56]name=ofd_packets/00048911 [14:24:56]NVStorageDeleteData [14:24:56]Write to MH i2c: 01 00 00 4D 1C 69 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 07 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: 01 07 00 4D 1C 00 00 00 00 00 13 0D 90 [14:24:56]RasterBufferAndPrint [14:24:56]line [14:24:56]line [14:24:56]line [14:24:56]line [14:24:56]line [14:24:56]written 0, free lines is 3353 [14:24:56]MH_Cut [14:24:56]Write to MH i2c: D1 01 00 54 1C 01 42 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: D1 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: D1 01 00 [14:24:56]MH_I2C_Read... [14:24:56]Read from MH i2c: D1 01 00 54 1C 00 41 [14:24:56]Write to MH i2c: 01 00 00 55 1C 71 [14:24:56]Write i2c OK [14:24:56]MH_I2C_Read... [14:24:56]OFD Sender: No OFD packet to send [14:24:57]*** Cut start [14:24:57]*** Partial cut [14:24:57]*** CUTSNS_PIN = 1 [14:24:57]*** CUTSNS_PIN = 0 [14:24:57]*** Brake cut motor [14:24:57]Read from MH i2c: 01 [14:24:57]MH_I2C_Read... [14:24:57]*** Stop cut motor [14:24:57]*** Cut end [14:24:57]Read from MH i2c: 01 07 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 FF 0F 86 [14:24:57]process_action close_receipt done [14:24:57]requested_data is exist [14:24:57]produce_requested_data [14:24:57]requested_item fm.sn is exist - process it [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 11 00 00 [14:24:57]Write to MH i2c: E2 08 00 56 1C 80 11 00 00 00 00 00 00 EC [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 17 00 56 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 39 [14:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:24:57]wFMCommunicate OK [14:24:57]requested_item fd.num is exist - process it [14:24:57]SAM_PROTO_GetFieldsCounters [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 13 00 00 [14:24:57]Write to MH i2c: E2 08 00 57 1C 80 13 00 00 00 00 00 00 EF [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 62 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 62 00 57 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0F BF 00 00 0E 04 04 00 F3 00 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 DA [14:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 0F BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_GetFieldsCounters done [14:24:57]requested_item shift.num is exist - process it [14:24:57]requested_item shift.opened is exist - process it [14:24:57]req_shift_opened [14:24:57]FM_GetShiftState [14:24:57]SAM_PROTO_GetShiftState [14:24:57]wFMCommunicate request_size=4 [14:24:57]MH_SAM_APDU [14:24:57]CAPDU: 80 13 01 00 [14:24:57]Write to MH i2c: E2 08 00 58 1C 80 13 01 00 00 00 00 00 F1 [14:24:57]Write i2c OK [14:24:57]MH_I2C_Read... [14:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:57]Read from MH i2c: E2 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0E 00 [14:24:57]MH_I2C_Read... [14:24:57]Read from MH i2c: E2 0E 00 58 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 88 [14:24:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:24:57]wFMCommunicate OK [14:24:57]SAM_PROTO_GetShiftState done [14:24:57]FM_GetShiftState done [14:24:57]req_shift_opened done [14:24:57]requested_item shift.open_date is exist - process it [14:24:57]req_shift_open_date [14:24:57]req_shift_open_date done [14:24:57]produce_requested_data done [14:24:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48911,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:24:57]process_action_free close_receipt [14:24:57]json_value_free [14:24:57]json_value_free done [14:24:57]process_json_proto returns [14:24:57]Send response to host [14:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48911,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:24:57]free response buf [14:24:57]execute_script done [14:24:57]execute_script returns [14:24:57]free content buf [14:24:57]Sock 9.Close socket [14:24:57]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:49]accept exits with 7 [14:29:49]New connection [14:29:49]New thread 3066813796 created [14:29:49]Thread 3066670436 joined [14:29:49]Waiting for new connection... [14:29:49] Sock 7.Parse request [14:29:49]Sock 7.Check first char [14:29:49]Sock 7.First char is OK [14:29:49]request: POST /json_proto HTTP/1.0 [14:29:49]Method: POST [14:29:49]URL: /json_proto [14:29:49]Method is POST - this is cgi request [14:29:49]url: /json_proto [14:29:49]query_string will be loaded in cgi processing [14:29:49]execute_cgi json_proto POST (null) [14:29:49]execute_cgi path=json_proto method=POST [14:29:49]POST find Content-Length [14:29:49]Host: 172.17.56.67:8080 [14:29:49]Content-Length: 679 [14:29:49]Content-Type: application/json [14:29:49] [14:29:49]POST finish read [14:29:49]Found Content-Length = 679 [14:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [14:29:49]execute_script... [14:29: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)216010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "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" ] } } [14:29:49]POST & json_proto [14:29:49]process_json_proto [14:29:49]json parsed OK: [14:29:49]protocol is kg_v1.0 [14:29:49]action value=close_receipt [14:29:49]process_action close_receipt [14:29:49]cmd_close_receipt [14:29:49]MH_GetDate [14:29:49]Write to MH i2c: F0 00 00 59 1C 64 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: F0 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: F0 09 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: F0 09 00 59 1C 00 60 13 B5 65 26 5D 9E 65 80 [14:29:49]GetLastDocTimeStamp 1706365497 [14:29:49]current date 1706365792 [14:29:49]FM_GetShiftState [14:29:49]SAM_PROTO_GetShiftState [14:29:49]wFMCommunicate request_size=4 [14:29:49]MH_SAM_APDU [14:29:49]CAPDU: 80 13 01 00 [14:29:49]Write to MH i2c: E2 08 00 5A 1C 80 13 01 00 00 00 00 00 F3 [14:29:49]Write i2c OK [14:29:49]MH_I2C_Read... [14:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:49]Read from MH i2c: E2 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0E 00 [14:29:49]MH_I2C_Read... [14:29:49]Read from MH i2c: E2 0E 00 5A 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 8A [14:29:49]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:29:49]wFMCommunicate OK [14:29:49]SAM_PROTO_GetShiftState done [14:29:49]FM_GetShiftState done [14:29:49]opened in 1706313770 [14:29:49]opened+sec_in_day 1706400170 [14:29:49]quantity*price = 150005 [14:29:49]sum+1 = 150006 [14:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 92 27.01.2024 14:29 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48912 ФПД: 133126309845919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142952&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48912&fm=133126309845919&tin=02508201610067®Number=0000000000092723&sum=150000 [14:29:50]StoreToDocumentArchive [14:29:50]shift 243 fd 48912 [14:29:50]save to /storage/0243/doc_00048912 [14:29:50]save last doc name /storage/0243/doc_00048912 to /storage/kkm_last_doc_name [14:29:50]save OK [14:29:50]Clear old archive folders... [14:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:29:50]tlvbuf is 011B7230 [14:29:50]SAM_PROTO_ClearQueue [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 09 00 00 [14:29:50]Write to MH i2c: E2 08 00 67 1C 80 09 00 00 00 00 00 00 F5 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 67 1C 00 90 00 F7 [14:29:50]RAPDU: 90 00 [14:29:50]wFMCommunicate OK [14:29:50]SAM_PROTO_ClearQueue done [14:29:50]KKMCreateOFDPacket [14:29:50]OFDProtocolAddRootSTLVToBuf [14:29:50]FM_MakeSignedData [14:29:50]FM_MakeSignedData [14:29:50]SAM_PROTO_SignData [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 0D 01 02 [14:29:50]Write to MH i2c: E2 08 00 68 1C 80 0D 01 02 00 00 00 00 FD [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 68 1C 00 90 00 F8 [14:29:50]RAPDU: 90 00 [14:29:50]wFMCommunicate OK [14:29:50]wFMCommunicate request_size=255 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 5C 00 00 00 F4 03 04 00 60 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 BF 00 00 35 04 06 00 79 13 E2 68 [14:29:50]Write to MH i2c: E2 02 01 69 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 5C 00 00 00 F4 03 04 00 60 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 BF 00 00 35 04 06 00 79 13 E2 68 00 00 C5 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 69 1C 00 90 00 F9 [14:29:50]RAPDU: 90 00 [14:29:50]wFMCommunicate OK [14:29:50]wFMCommunicate request_size=7 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 0D 02 02 02 9B 9F [14:29:50]Write to MH i2c: E2 0A 00 6A 1C 80 0D 02 02 02 00 9B 9F 00 00 3E [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 03 00 6A 1C 00 90 00 FA [14:29:50]RAPDU: 90 00 [14:29:50]wFMCommunicate OK [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 0D 03 02 [14:29:50]Write to MH i2c: E2 08 00 6B 1C 80 0D 03 02 00 00 00 00 02 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 0B 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 0B 00 6B 1C 00 91 FD 6F 96 F8 B9 85 61 90 00 2D [14:29:50]RAPDU: 91 FD 6F 96 F8 B9 85 61 90 00 [14:29:50]wFMCommunicate OK [14:29:50]SAM_PROTO_SignData done [14:29:50]FM_MakeSignedData done [14:29:50]CreateOFDProtocolMessage [14:29:50]wFMCommunicate request_size=4 [14:29:50]MH_SAM_APDU [14:29:50]CAPDU: 80 11 00 00 [14:29:50]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:50]Read from MH i2c: E2 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 17 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4F [14:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:29:50]wFMCommunicate OK [14:29:50]CreateOFDProtocolMessage done [14:29:50]OFDSenderStorePacket 48912 [14:29:50]StoreOFDPacket docnum=48912 [14:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 36 1B 04 01 33 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 5C 00 00 00 F4 03 04 00 60 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 BF 00 00 35 04 06 00 79 13 E2 68 9B 9F 91 FD 6F 96 F8 B9 85 61 [14:29:50]CheckFolder [14:29:50]dirname=/storage/ofd_packets [14:29:50]CheckFolder done [14:29:50]ProducePacketName [14:29:50]name=ofd_packets/00048912 [14:29:50]NVStorageSaveData ofd_packets/00048912 [14:29:50]File name is /storage/ofd_packets/00048912 [14:29:50]Write 298 bytes [14:29:50]NVStorageSaveData done [14:29:50]OFDSenderStorePacket done [14:29:50]KKMCreateOFDPacket done [14:29:50]NVStorageSaveData kkm_last_timestamp [14:29:50]File name is /storage/kkm_last_timestamp [14:29:50]Write 4 bytes [14:29:50]NVStorageSaveData done [14:29:50]ExternCall_PrintAddStr [14:29:50]wPrintStart [14:29:50]Write to MH i2c: 01 00 00 6D 1C 89 [14:29:50]Write i2c OK [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 07 00 [14:29:50]MH_I2C_Read... [14:29:50]Read from MH i2c: 01 07 00 6D 1C 00 00 00 00 00 FF 0F 9E [14:29:50]RasterBufferAndPrint [14:29:50]line Счет N : (1)216010 [14:29:50]line ИНН: 02508201610067 [14:29:50]line Контрольно-Кассовый Чек [14:29:50]line ПРОДАЖА [14:29:50]line ТРК (МРК, ГНК) : 11 [14:29:50]line Товар: 2710194210 [14:29:50]line ДТ-К-5 [14:29:50]line 21.460 * 69.90 [14:29:50]line = 1500.05 [14:29:50]line НДС 12% НСП 1% [14:29:50]line > о реализуемом товаре [14:29:50]line ОКРУГЛЕНИЕ: -0.05 [14:29:50]line ИТОГО: 1500.00 [14:29:50]line Внесено: 1500.00 [14:29:50]line СДАЧА: 0.00 [14:29:50]line НСП 1% : 13.27 [14:29:50]line НДС 12% : 159.30 [14:29:50]line Наличными: 1500.00 [14:29:50]line Безнал.: 0.00 [14:29:50]line Место: АЗС № 102 "Партнер Нефть" [14:29:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:29:50]line СНО: Общий режим [14:29:50]line Чек 92 27.01.2024 14:29 [14:29:50]line Смена: 243 ФФД: 1.0 [14:29:50]line ЗНМ: 0300000040 [14:29:50]line РНМ: 0000000000092723 [14:29:50]line Версия ККМ: 001 [14:29:50]line ФМ: 0000000000875060 [14:29:50]line ФД: 48912 [14:29:50]line ФПД: 133126309845919 [14:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T142952&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48912&fm=133126309845919&tin=02508201610067®Number=0000000000092723&sum=150000 [14:29:51]OFD Sender: Processing packet 48912 [packets to send 12, broken 11] [14:29:51]ProducePacketName [14:29:51]name=ofd_packets/00048912 [14:29:51]OFD Sender: To server: pG, [14:29:51]CommunicateWithHost lk.salyk.kg:30040 [14:29:51]ConnectInit lk.salyk.kg [14:29:51]written 0, free lines is 4095 [14:29:51]Connected sock=10 [14:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 36 1B 04 01 33 EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 5C 00 00 00 F4 03 04 00 60 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 10 BF 00 00 35 04 06 00 79 13 E2 68 9B 9F 91 FD 6F 96 F8 B9 85 61 [14:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 18 B8 47 00 99 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 35 30 36 30 10 04 04 00 10 BF 00 00 F4 03 04 00 5F BF B4 65 B6 04 01 00 00 7F F1 88 31 1E F3 E0 F4 [14:29:51]CommunicateWithHost err = 0 [14:29:51]CheckOFDResponse [14:29:51]1017 (14) - 77093643461234 [14:29:51]1041 (16) - 0000000000875060 [14:29:51]1040 (4) - 48912 [14:29:51]1012 (4) - 27.01.2024 08:31 [14:29:51]1206 (1) - 0 [14:29:51]OFD Sender: Remove packet 48912 [14:29:51]ProducePacketName [14:29:51]name=ofd_packets/00048912 [14:29:51]NVStorageDeleteData [14:29:51]Write to MH i2c: 01 00 00 98 1C B4 [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 07 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: 01 07 00 98 1C 00 00 00 00 00 EC 0C B3 [14:29:51]RasterBufferAndPrint [14:29:51]line [14:29:51]line [14:29:51]line [14:29:51]line [14:29:51]line [14:29:51]written 0, free lines is 3314 [14:29:51]MH_Cut [14:29:51]Write to MH i2c: D1 01 00 9F 1C 01 8D [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: D1 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: D1 01 00 [14:29:51]MH_I2C_Read... [14:29:51]Read from MH i2c: D1 01 00 9F 1C 00 8C [14:29:51]Write to MH i2c: 01 00 00 A0 1C BC [14:29:51]Write i2c OK [14:29:51]MH_I2C_Read... [14:29:51]OFD Sender: No OFD packet to send [14:29:52]*** Cut start [14:29:52]*** Partial cut [14:29:52]*** CUTSNS_PIN = 1 [14:29:52]*** CUTSNS_PIN = 0 [14:29:52]*** Brake cut motor [14:29:52]Read from MH i2c: 01 [14:29:52]MH_I2C_Read... [14:29:52]*** Stop cut motor [14:29:52]*** Cut end [14:29:52]Read from MH i2c: 01 07 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: 01 07 00 A0 1C 00 00 00 00 00 FF 0F D1 [14:29:52]process_action close_receipt done [14:29:52]requested_data is exist [14:29:52]produce_requested_data [14:29:52]requested_item fm.sn is exist - process it [14:29:52]wFMCommunicate request_size=4 [14:29:52]MH_SAM_APDU [14:29:52]CAPDU: 80 11 00 00 [14:29:52]Write to MH i2c: E2 08 00 A1 1C 80 11 00 00 00 00 00 00 37 [14:29:52]Write i2c OK [14:29:52]MH_I2C_Read... [14:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:52]Read from MH i2c: E2 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 17 00 [14:29:52]MH_I2C_Read... [14:29:52]Read from MH i2c: E2 17 00 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 84 [14:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:29:52]wFMCommunicate OK [14:29:52]requested_item fd.num is exist - process it [14:29:52]SAM_PROTO_GetFieldsCounters [14:29:52]wFMCommunicate request_size=4 [14:29:52]MH_SAM_APDU [14:29:52]CAPDU: 80 13 00 00 [14:29:52]Write to MH i2c: E2 08 00 A2 1C 80 13 00 00 00 00 00 00 3A [14:29:52]Write i2c OK [14:29:52]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 62 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 62 00 A2 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 10 BF 00 00 0E 04 04 00 F3 00 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 [14:29: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 10 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:53]wFMCommunicate OK [14:29:53]SAM_PROTO_GetFieldsCounters done [14:29:53]requested_item shift.num is exist - process it [14:29:53]requested_item shift.opened is exist - process it [14:29:53]req_shift_opened [14:29:53]FM_GetShiftState [14:29:53]SAM_PROTO_GetShiftState [14:29:53]wFMCommunicate request_size=4 [14:29:53]MH_SAM_APDU [14:29:53]CAPDU: 80 13 01 00 [14:29:53]Write to MH i2c: E2 08 00 A3 1C 80 13 01 00 00 00 00 00 3C [14:29:53]Write i2c OK [14:29:53]MH_I2C_Read... [14:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:53]Read from MH i2c: E2 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 0E 00 [14:29:53]MH_I2C_Read... [14:29:53]Read from MH i2c: E2 0E 00 A3 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D3 [14:29:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:29:53]wFMCommunicate OK [14:29:53]SAM_PROTO_GetShiftState done [14:29:53]FM_GetShiftState done [14:29:53]req_shift_opened done [14:29:53]requested_item shift.open_date is exist - process it [14:29:53]req_shift_open_date [14:29:53]req_shift_open_date done [14:29:53]produce_requested_data done [14:29:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48912,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:29:53]process_action_free close_receipt [14:29:53]json_value_free [14:29:53]json_value_free done [14:29:53]process_json_proto returns [14:29:53]Send response to host [14:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48912,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:29:53]free response buf [14:29:53]execute_script done [14:29:53]execute_script returns [14:29:53]free content buf [14:29:53]Sock 7.Close socket [14:29:53]Sock 7.Thread stoped [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:27]accept exits with 9 [14:30:27]New connection [14:30:27]New thread 3066670436 created [14:30:27]Thread 3066813796 joined [14:30:27]Waiting for new connection... [14:30:27] Sock 9.Parse request [14:30:27]Sock 9.Check first char [14:30:27]Sock 9.First char is OK [14:30:27]request: POST /json_proto HTTP/1.0 [14:30:27]Method: POST [14:30:27]URL: /json_proto [14:30:27]Method is POST - this is cgi request [14:30:27]url: /json_proto [14:30:27]query_string will be loaded in cgi processing [14:30:27]execute_cgi json_proto POST (null) [14:30:27]execute_cgi path=json_proto method=POST [14:30:27]POST find Content-Length [14:30:27]Host: 172.17.56.67:8080 [14:30:27]Content-Length: 679 [14:30:27]Content-Type: application/json [14:30:27] [14:30:27]POST finish read [14:30:27]Found Content-Length = 679 [14:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:27]execute_script... [14:30:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:27]POST & json_proto [14:30:27]process_json_proto [14:30:27]json parsed OK: [14:30:27]protocol is kg_v1.0 [14:30:27]action value=close_receipt [14:30:27]process_action close_receipt [14:30:27]cmd_close_receipt [14:30:27]MH_GetDate [14:30:27]Write to MH i2c: F0 00 00 A4 1C AF [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: F0 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: F0 09 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: F0 09 00 A4 1C 00 87 13 B5 65 26 5D 9E 65 F2 [14:30:27]GetLastDocTimeStamp 1706365792 [14:30:27]current date 1706365831 [14:30:27]FM_GetShiftState [14:30:27]SAM_PROTO_GetShiftState [14:30:27]wFMCommunicate request_size=4 [14:30:27]MH_SAM_APDU [14:30:27]CAPDU: 80 13 01 00 [14:30:27]Write to MH i2c: E2 08 00 A5 1C 80 13 01 00 00 00 00 00 3E [14:30:27]Write i2c OK [14:30:27]MH_I2C_Read... [14:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:27]Read from MH i2c: E2 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: E2 0E 00 [14:30:27]MH_I2C_Read... [14:30:27]Read from MH i2c: E2 0E 00 A5 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D5 [14:30:27]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:30:27]wFMCommunicate OK [14:30:27]SAM_PROTO_GetShiftState done [14:30:27]FM_GetShiftState done [14:30:27]opened in 1706313770 [14:30:27]opened+sec_in_day 1706400170 [14:30:27]quantity*price = 100026 [14:30:27]sum+1 = 100028 [14:30:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 93 27.01.2024 14:30 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48913 ФПД: 65467605612662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T143031&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48913&fm=65467605612662&tin=02508201610067®Number=0000000000092723&sum=100000 [14:30:28]StoreToDocumentArchive [14:30:28]shift 243 fd 48913 [14:30:28]save to /storage/0243/doc_00048913 [14:30:28]save last doc name /storage/0243/doc_00048913 to /storage/kkm_last_doc_name [14:30:28]save OK [14:30:28]Clear old archive folders... [14:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:28]tlvbuf is B6E86090 [14:30:28]SAM_PROTO_ClearQueue [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 09 00 00 [14:30:28]Write to MH i2c: E2 08 00 B2 1C 80 09 00 00 00 00 00 00 40 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 B2 1C 00 90 00 42 [14:30:28]RAPDU: 90 00 [14:30:28]wFMCommunicate OK [14:30:28]SAM_PROTO_ClearQueue done [14:30:28]KKMCreateOFDPacket [14:30:28]OFDProtocolAddRootSTLVToBuf [14:30:28]FM_MakeSignedData [14:30:28]FM_MakeSignedData [14:30:28]SAM_PROTO_SignData [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 0D 01 02 [14:30:28]Write to MH i2c: E2 08 00 B3 1C 80 0D 01 02 00 00 00 00 48 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 B3 1C 00 90 00 43 [14:30:28]RAPDU: 90 00 [14:30:28]wFMCommunicate OK [14:30:28]wFMCommunicate request_size=255 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 BF 00 00 35 04 06 00 3B 8A DD 60 [14:30:28]Write to MH i2c: E2 02 01 B4 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 BF 00 00 35 04 06 00 3B 8A DD 60 00 00 A8 [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 B4 1C 00 90 00 44 [14:30:28]RAPDU: 90 00 [14:30:28]wFMCommunicate OK [14:30:28]wFMCommunicate request_size=7 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 0D 02 02 02 78 76 [14:30:28]Write to MH i2c: E2 0A 00 B5 1C 80 0D 02 02 02 00 78 76 00 00 3D [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:28]Read from MH i2c: E2 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 [14:30:28]MH_I2C_Read... [14:30:28]Read from MH i2c: E2 03 00 B5 1C 00 90 00 45 [14:30:28]RAPDU: 90 00 [14:30:28]wFMCommunicate OK [14:30:28]wFMCommunicate request_size=4 [14:30:28]MH_SAM_APDU [14:30:28]CAPDU: 80 0D 03 02 [14:30:28]Write to MH i2c: E2 08 00 B6 1C 80 0D 03 02 00 00 00 00 4D [14:30:28]Write i2c OK [14:30:28]MH_I2C_Read... [14:30:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 0B 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 0B 00 B6 1C 00 E8 39 94 31 CD 2B D6 DF 90 00 E1 [14:30:29]RAPDU: E8 39 94 31 CD 2B D6 DF 90 00 [14:30:29]wFMCommunicate OK [14:30:29]SAM_PROTO_SignData done [14:30:29]FM_MakeSignedData done [14:30:29]CreateOFDProtocolMessage [14:30:29]wFMCommunicate request_size=4 [14:30:29]MH_SAM_APDU [14:30:29]CAPDU: 80 11 00 00 [14:30:29]Write to MH i2c: E2 08 00 B7 1C 80 11 00 00 00 00 00 00 4D [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:29]Read from MH i2c: E2 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 17 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: E2 17 00 B7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9A [14:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:30:29]wFMCommunicate OK [14:30:29]CreateOFDProtocolMessage done [14:30:29]OFDSenderStorePacket 48913 [14:30:29]StoreOFDPacket docnum=48913 [14:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B6 19 04 01 72 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 BF 00 00 35 04 06 00 3B 8A DD 60 78 76 E8 39 94 31 CD 2B D6 DF [14:30:29]CheckFolder [14:30:29]dirname=/storage/ofd_packets [14:30:29]CheckFolder done [14:30:29]ProducePacketName [14:30:29]name=ofd_packets/00048913 [14:30:29]NVStorageSaveData ofd_packets/00048913 [14:30:29]File name is /storage/ofd_packets/00048913 [14:30:29]Write 298 bytes [14:30:29]NVStorageSaveData done [14:30:29]OFDSenderStorePacket done [14:30:29]KKMCreateOFDPacket done [14:30:29]NVStorageSaveData kkm_last_timestamp [14:30:29]File name is /storage/kkm_last_timestamp [14:30:29]Write 4 bytes [14:30:29]NVStorageSaveData done [14:30:29]ExternCall_PrintAddStr [14:30:29]wPrintStart [14:30:29]Write to MH i2c: 01 00 00 B8 1C D4 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 B8 1C 00 00 00 00 00 FF 0F E9 [14:30:29]RasterBufferAndPrint [14:30:29]line Счет N : (1)216011 [14:30:29]line ИНН: 02508201610067 [14:30:29]line Контрольно-Кассовый Чек [14:30:29]line ПРОДАЖА [14:30:29]line ТРК (МРК, ГНК) : 21 [14:30:29]line Товар: 2710194210 [14:30:29]line ДТ-К-5 [14:30:29]line 14.310 * 69.90 [14:30:29]line = 1000.27 [14:30:29]line НДС 12% НСП 1% [14:30:29]line > о реализуемом товаре [14:30:29]line ОКРУГЛЕНИЕ: -0.27 [14:30:29]line ИТОГО: 1000.00 [14:30:29]line Внесено: 1000.00 [14:30:29]line СДАЧА: 0.00 [14:30:29]line НСП 1% : 8.85 [14:30:29]line НДС 12% : 106.22 [14:30:29]line Наличными: 1000.00 [14:30:29]line Безнал.: 0.00 [14:30:29]line Место: АЗС № 102 "Партнер Нефть" [14:30:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:30:29]line СНО: Общий режим [14:30:29]line Чек 93 27.01.2024 14:30 [14:30:29]line Смена: 243 ФФД: 1.0 [14:30:29]line ЗНМ: 0300000040 [14:30:29]line РНМ: 0000000000092723 [14:30:29]line Версия ККМ: 001 [14:30:29]line ФМ: 0000000000875060 [14:30:29]line ФД: 48913 [14:30:29]line ФПД: 65467605612662 [14:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T143031&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48913&fm=65467605612662&tin=02508201610067®Number=0000000000092723&sum=100000 [14:30:29]OFD Sender: Processing packet 48913 [packets to send 12, broken 11] [14:30:29]ProducePacketName [14:30:29]name=ofd_packets/00048913 [14:30:29]OFD Sender: To server: pG, [14:30:29]CommunicateWithHost lk.salyk.kg:30040 [14:30:29]ConnectInit lk.salyk.kg [14:30:29]written 0, free lines is 4095 [14:30:29]Connected sock=10 [14:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B6 19 04 01 72 D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 87 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 11 BF 00 00 35 04 06 00 3B 8A DD 60 78 76 E8 39 94 31 CD 2B D6 DF [14:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C9 B8 47 00 30 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 35 30 36 30 10 04 04 00 11 BF 00 00 F4 03 04 00 85 BF B4 65 B6 04 01 00 00 79 27 4B B5 84 6F F2 26 [14:30:29]CommunicateWithHost err = 0 [14:30:29]CheckOFDResponse [14:30:29]1017 (14) - 77093643461234 [14:30:29]1041 (16) - 0000000000875060 [14:30:29]1040 (4) - 48913 [14:30:29]1012 (4) - 27.01.2024 08:32 [14:30:29]1206 (1) - 0 [14:30:29]OFD Sender: Remove packet 48913 [14:30:29]ProducePacketName [14:30:29]name=ofd_packets/00048913 [14:30:29]NVStorageDeleteData [14:30:29]Write to MH i2c: 01 00 00 E3 1C FF [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: 01 07 00 E3 1C 00 00 00 00 00 EC 0C FE [14:30:29]RasterBufferAndPrint [14:30:29]line [14:30:29]line [14:30:29]line [14:30:29]line [14:30:29]line [14:30:29]written 0, free lines is 3314 [14:30:29]MH_Cut [14:30:29]Write to MH i2c: D1 01 00 EA 1C 01 D8 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: D1 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: D1 01 00 [14:30:29]MH_I2C_Read... [14:30:29]Read from MH i2c: D1 01 00 EA 1C 00 D7 [14:30:29]Write to MH i2c: 01 00 00 EB 1C 07 [14:30:29]Write i2c OK [14:30:29]MH_I2C_Read... [14:30:30]OFD Sender: No OFD packet to send [14:30:30]*** Cut start [14:30:30]*** Partial cut [14:30:30]*** CUTSNS_PIN = 1 [14:30:30]*** CUTSNS_PIN = 0 [14:30:30]*** Brake cut motor [14:30:31]Read from MH i2c: 01 [14:30:31]MH_I2C_Read... [14:30:31]*** Stop cut motor [14:30:31]*** Cut end [14:30:31]Read from MH i2c: 01 07 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: 01 07 00 EB 1C 00 00 00 00 00 FF 0F 1C [14:30:31]process_action close_receipt done [14:30:31]requested_data is exist [14:30:31]produce_requested_data [14:30:31]requested_item fm.sn is exist - process it [14:30:31]wFMCommunicate request_size=4 [14:30:31]MH_SAM_APDU [14:30:31]CAPDU: 80 11 00 00 [14:30:31]Write to MH i2c: E2 08 00 EC 1C 80 11 00 00 00 00 00 00 82 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:31]Read from MH i2c: E2 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 17 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 17 00 EC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CF [14:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:30:31]wFMCommunicate OK [14:30:31]requested_item fd.num is exist - process it [14:30:31]SAM_PROTO_GetFieldsCounters [14:30:31]wFMCommunicate request_size=4 [14:30:31]MH_SAM_APDU [14:30:31]CAPDU: 80 13 00 00 [14:30:31]Write to MH i2c: E2 08 00 ED 1C 80 13 00 00 00 00 00 00 85 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:31]Read from MH i2c: E2 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 62 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 62 00 ED 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 11 BF 00 00 0E 04 04 00 F3 00 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 78 [14:30:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 11 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:31]wFMCommunicate OK [14:30:31]SAM_PROTO_GetFieldsCounters done [14:30:31]requested_item shift.num is exist - process it [14:30:31]requested_item shift.opened is exist - process it [14:30:31]req_shift_opened [14:30:31]FM_GetShiftState [14:30:31]SAM_PROTO_GetShiftState [14:30:31]wFMCommunicate request_size=4 [14:30:31]MH_SAM_APDU [14:30:31]CAPDU: 80 13 01 00 [14:30:31]Write to MH i2c: E2 08 00 EE 1C 80 13 01 00 00 00 00 00 87 [14:30:31]Write i2c OK [14:30:31]MH_I2C_Read... [14:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:31]Read from MH i2c: E2 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 0E 00 [14:30:31]MH_I2C_Read... [14:30:31]Read from MH i2c: E2 0E 00 EE 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1E [14:30:31]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:30:31]wFMCommunicate OK [14:30:31]SAM_PROTO_GetShiftState done [14:30:31]FM_GetShiftState done [14:30:31]req_shift_opened done [14:30:31]requested_item shift.open_date is exist - process it [14:30:31]req_shift_open_date [14:30:31]req_shift_open_date done [14:30:31]produce_requested_data done [14:30:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48913,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:30:31]process_action_free close_receipt [14:30:31]json_value_free [14:30:31]json_value_free done [14:30:31]process_json_proto returns [14:30:31]Send response to host [14:30:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48913,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:30:31]free response buf [14:30:31]execute_script done [14:30:31]execute_script returns [14:30:31]free content buf [14:30:31]Sock 9.Close socket [14:30:31]Sock 9.Thread stoped [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:26]accept exits with 7 [14:31:26]New connection [14:31:26]New thread 3066813796 created [14:31:26]Thread 3066670436 joined [14:31:26]Waiting for new connection... [14:31:26] Sock 7.Parse request [14:31:26]Sock 7.Check first char [14:31:26]Sock 7.First char is OK [14:31:26]request: POST /json_proto HTTP/1.0 [14:31:26]Method: POST [14:31:26]URL: /json_proto [14:31:26]Method is POST - this is cgi request [14:31:26]url: /json_proto [14:31:26]query_string will be loaded in cgi processing [14:31:26]execute_cgi json_proto POST (null) [14:31:26]execute_cgi path=json_proto method=POST [14:31:26]POST find Content-Length [14:31:26]Host: 172.17.56.67:8080 [14:31:26]Content-Length: 679 [14:31:26]Content-Type: application/json [14:31:26] [14:31:26]POST finish read [14:31:26]Found Content-Length = 679 [14:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:26]execute_script... [14:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:26]POST & json_proto [14:31:26]process_json_proto [14:31:26]json parsed OK: [14:31:26]protocol is kg_v1.0 [14:31:26]action value=close_receipt [14:31:26]process_action close_receipt [14:31:26]cmd_close_receipt [14:31:26]MH_GetDate [14:31:26]Write to MH i2c: F0 00 00 EF 1C FA [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: F0 09 00 EF 1C 00 C2 13 B5 65 26 5D 9E 65 78 [14:31:26]GetLastDocTimeStamp 1706365831 [14:31:26]current date 1706365890 [14:31:26]FM_GetShiftState [14:31:26]SAM_PROTO_GetShiftState [14:31:26]wFMCommunicate request_size=4 [14:31:26]MH_SAM_APDU [14:31:26]CAPDU: 80 13 01 00 [14:31:26]Write to MH i2c: E2 08 00 F0 1C 80 13 01 00 00 00 00 00 89 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:26]Read from MH i2c: E2 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: E2 0E 00 F0 1C 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 20 [14:31:26]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:31:26]wFMCommunicate OK [14:31:26]SAM_PROTO_GetShiftState done [14:31:26]FM_GetShiftState done [14:31:26]opened in 1706313770 [14:31:26]opened+sec_in_day 1706400170 [14:31:26]quantity*price = 100026 [14:31:26]sum+1 = 100028 [14:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 94 27.01.2024 14:31 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48914 ФПД: 10180344878720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T143130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48914&fm=10180344878720&tin=02508201610067®Number=0000000000092723&sum=100000 [14:31:27]StoreToDocumentArchive [14:31:27]shift 243 fd 48914 [14:31:27]save to /storage/0243/doc_00048914 [14:31:27]save last doc name /storage/0243/doc_00048914 to /storage/kkm_last_doc_name [14:31:27]save OK [14:31:27]Clear old archive folders... [14:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:31:27]tlvbuf is B6E86290 [14:31:27]SAM_PROTO_ClearQueue [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 09 00 00 [14:31:27]Write to MH i2c: E2 08 00 FD 1C 80 09 00 00 00 00 00 00 8B [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 FD 1C 00 90 00 8D [14:31:28]RAPDU: 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_ClearQueue done [14:31:28]KKMCreateOFDPacket [14:31:28]OFDProtocolAddRootSTLVToBuf [14:31:28]FM_MakeSignedData [14:31:28]FM_MakeSignedData [14:31:28]SAM_PROTO_SignData [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 0D 01 02 [14:31:28]Write to MH i2c: E2 08 00 FE 1C 80 0D 01 02 00 00 00 00 93 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 FE 1C 00 90 00 8E [14:31:28]RAPDU: 90 00 [14:31:28]wFMCommunicate OK [14:31:28]wFMCommunicate request_size=255 [14:31:28]MH_SAM_APDU [14:31: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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C2 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 BF 00 00 35 04 06 00 09 42 4B D7 [14:31:28]Write to MH i2c: E2 02 01 FF 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C2 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 BF 00 00 35 04 06 00 09 42 4B D7 00 00 9B [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 FF 1C 00 90 00 8F [14:31:28]RAPDU: 90 00 [14:31:28]wFMCommunicate OK [14:31:28]wFMCommunicate request_size=7 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 0D 02 02 02 16 80 [14:31:28]Write to MH i2c: E2 0A 00 00 1D 80 0D 02 02 02 00 16 80 00 00 31 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 03 00 00 1D 00 90 00 91 [14:31:28]RAPDU: 90 00 [14:31:28]wFMCommunicate OK [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 0D 03 02 [14:31:28]Write to MH i2c: E2 08 00 01 1D 80 0D 03 02 00 00 00 00 99 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0B 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 0B 00 01 1D 00 E5 18 64 66 AF 18 09 09 90 00 3A [14:31:28]RAPDU: E5 18 64 66 AF 18 09 09 90 00 [14:31:28]wFMCommunicate OK [14:31:28]SAM_PROTO_SignData done [14:31:28]FM_MakeSignedData done [14:31:28]CreateOFDProtocolMessage [14:31:28]wFMCommunicate request_size=4 [14:31:28]MH_SAM_APDU [14:31:28]CAPDU: 80 11 00 00 [14:31:28]Write to MH i2c: E2 08 00 02 1D 80 11 00 00 00 00 00 00 99 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:28]Read from MH i2c: E2 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: E2 17 00 02 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E6 [14:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:31:28]wFMCommunicate OK [14:31:28]CreateOFDProtocolMessage done [14:31:28]OFDSenderStorePacket 48914 [14:31:28]StoreOFDPacket docnum=48914 [14:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6D 23 04 01 CF 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C2 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 BF 00 00 35 04 06 00 09 42 4B D7 16 80 E5 18 64 66 AF 18 09 09 [14:31:28]CheckFolder [14:31:28]dirname=/storage/ofd_packets [14:31:28]CheckFolder done [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00048914 [14:31:28]NVStorageSaveData ofd_packets/00048914 [14:31:28]File name is /storage/ofd_packets/00048914 [14:31:28]Write 298 bytes [14:31:28]NVStorageSaveData done [14:31:28]OFDSenderStorePacket done [14:31:28]KKMCreateOFDPacket done [14:31:28]NVStorageSaveData kkm_last_timestamp [14:31:28]File name is /storage/kkm_last_timestamp [14:31:28]Write 4 bytes [14:31:28]NVStorageSaveData done [14:31:28]ExternCall_PrintAddStr [14:31:28]wPrintStart [14:31:28]Write to MH i2c: 01 00 00 03 1D 20 [14:31:28]Write i2c OK [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 [14:31:28]MH_I2C_Read... [14:31:28]Read from MH i2c: 01 07 00 03 1D 00 00 00 00 00 FF 0F 35 [14:31:28]RasterBufferAndPrint [14:31:28]line Счет N : (1)216012 [14:31:28]line ИНН: 02508201610067 [14:31:28]line Контрольно-Кассовый Чек [14:31:28]line ПРОДАЖА [14:31:28]line ТРК (МРК, ГНК) : 11 [14:31:28]line Товар: 2710194210 [14:31:28]line ДТ-К-5 [14:31:28]line 14.310 * 69.90 [14:31:28]line = 1000.27 [14:31:28]line НДС 12% НСП 1% [14:31:28]line > о реализуемом товаре [14:31:28]line ОКРУГЛЕНИЕ: -0.27 [14:31:28]line ИТОГО: 1000.00 [14:31:28]line Внесено: 1000.00 [14:31:28]line СДАЧА: 0.00 [14:31:28]line НСП 1% : 8.85 [14:31:28]line НДС 12% : 106.22 [14:31:28]line Наличными: 1000.00 [14:31:28]line Безнал.: 0.00 [14:31:28]line Место: АЗС № 102 "Партнер Нефть" [14:31:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:31:28]line СНО: Общий режим [14:31:28]line Чек 94 27.01.2024 14:31 [14:31:28]line Смена: 243 ФФД: 1.0 [14:31:28]line ЗНМ: 0300000040 [14:31:28]line РНМ: 0000000000092723 [14:31:28]line Версия ККМ: 001 [14:31:28]line ФМ: 0000000000875060 [14:31:28]line ФД: 48914 [14:31:28]line ФПД: 10180344878720 [14:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T143130&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48914&fm=10180344878720&tin=02508201610067®Number=0000000000092723&sum=100000 [14:31:28]OFD Sender: Processing packet 48914 [packets to send 12, broken 11] [14:31:28]ProducePacketName [14:31:28]name=ofd_packets/00048914 [14:31:28]OFD Sender: To server: pG, [14:31:28]CommunicateWithHost lk.salyk.kg:30040 [14:31:28]ConnectInit lk.salyk.kg [14:31:28]written 0, free lines is 4095 [14:31:28]Connected sock=10 [14:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 6D 23 04 01 CF 1B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 C2 13 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 BF 00 00 35 04 06 00 09 42 4B D7 16 80 E5 18 64 66 AF 18 09 09 [14:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 22 C9 47 00 B1 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 12 BF 00 00 F4 03 04 00 C0 BF B4 65 B6 04 01 00 00 CB 48 E3 30 28 AB CA 94 [14:31:29]CommunicateWithHost err = 0 [14:31:29]CheckOFDResponse [14:31:29]1017 (14) - 77093643461234 [14:31:29]1041 (16) - 0000000000875060 [14:31:29]1040 (4) - 48914 [14:31:29]1012 (4) - 27.01.2024 08:33 [14:31:29]1206 (1) - 0 [14:31:29]OFD Sender: Remove packet 48914 [14:31:29]ProducePacketName [14:31:29]name=ofd_packets/00048914 [14:31:29]NVStorageDeleteData [14:31:29]Write to MH i2c: 01 00 00 2E 1D 4B [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 07 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: 01 07 00 2E 1D 00 00 00 00 00 E8 0C 46 [14:31:29]RasterBufferAndPrint [14:31:29]line [14:31:29]line [14:31:29]line [14:31:29]line [14:31:29]line [14:31:29]written 0, free lines is 3310 [14:31:29]MH_Cut [14:31:29]Write to MH i2c: D1 01 00 35 1D 01 24 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: D1 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: D1 01 00 [14:31:29]MH_I2C_Read... [14:31:29]Read from MH i2c: D1 01 00 35 1D 00 23 [14:31:29]Write to MH i2c: 01 00 00 36 1D 53 [14:31:29]Write i2c OK [14:31:29]MH_I2C_Read... [14:31:29]OFD Sender: No OFD packet to send [14:31:29]*** Cut start [14:31:29]*** Partial cut [14:31:29]*** CUTSNS_PIN = 1 [14:31:29]*** CUTSNS_PIN = 0 [14:31:30]*** Brake cut motor [14:31:30]Read from MH i2c: 01 [14:31:30]MH_I2C_Read... [14:31:30]*** Stop cut motor [14:31:30]*** Cut end [14:31:30]Read from MH i2c: 01 07 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: 01 07 00 36 1D 00 00 00 00 00 FF 0F 68 [14:31:30]process_action close_receipt done [14:31:30]requested_data is exist [14:31:30]produce_requested_data [14:31:30]requested_item fm.sn is exist - process it [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 11 00 00 [14:31:30]Write to MH i2c: E2 08 00 37 1D 80 11 00 00 00 00 00 00 CE [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:30]Read from MH i2c: E2 17 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 17 00 37 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1B [14:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:31:30]wFMCommunicate OK [14:31:30]requested_item fd.num is exist - process it [14:31:30]SAM_PROTO_GetFieldsCounters [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 00 00 [14:31:30]Write to MH i2c: E2 08 00 38 1D 80 13 00 00 00 00 00 00 D1 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 62 00 38 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 12 BF 00 00 0E 04 04 00 F3 00 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 C8 [14:31: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 12 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetFieldsCounters done [14:31:30]requested_item shift.num is exist - process it [14:31:30]requested_item shift.opened is exist - process it [14:31:30]req_shift_opened [14:31:30]FM_GetShiftState [14:31:30]SAM_PROTO_GetShiftState [14:31:30]wFMCommunicate request_size=4 [14:31:30]MH_SAM_APDU [14:31:30]CAPDU: 80 13 01 00 [14:31:30]Write to MH i2c: E2 08 00 39 1D 80 13 01 00 00 00 00 00 D3 [14:31:30]Write i2c OK [14:31:30]MH_I2C_Read... [14:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:30]Read from MH i2c: E2 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 [14:31:30]MH_I2C_Read... [14:31:30]Read from MH i2c: E2 0E 00 39 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 6A [14:31:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:31:30]wFMCommunicate OK [14:31:30]SAM_PROTO_GetShiftState done [14:31:30]FM_GetShiftState done [14:31:30]req_shift_opened done [14:31:30]requested_item shift.open_date is exist - process it [14:31:30]req_shift_open_date [14:31:30]req_shift_open_date done [14:31:30]produce_requested_data done [14:31:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48914,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:31:30]process_action_free close_receipt [14:31:30]json_value_free [14:31:30]json_value_free done [14:31:30]process_json_proto returns [14:31:30]Send response to host [14:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48914,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:31:30]free response buf [14:31:30]execute_script done [14:31:30]execute_script returns [14:31:30]free content buf [14:31:30]Sock 7.Close socket [14:31:30]Sock 7.Thread stoped [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:41:59]accept exits with 9 [14:41:59]New connection [14:41:59]New thread 3066670436 created [14:41:59]Thread 3066813796 joined [14:41:59]Waiting for new connection... [14:41:59] Sock 9.Parse request [14:41:59]Sock 9.Check first char [14:41:59]Sock 9.First char is OK [14:41:59]request: POST /json_proto HTTP/1.0 [14:41:59]Method: POST [14:41:59]URL: /json_proto [14:41:59]Method is POST - this is cgi request [14:41:59]url: /json_proto [14:41:59]query_string will be loaded in cgi processing [14:41:59]execute_cgi json_proto POST (null) [14:41:59]execute_cgi path=json_proto method=POST [14:41:59]POST find Content-Length [14:41:59]Host: 172.17.56.67:8080 [14:41:59]Content-Length: 678 [14:41:59]Content-Type: application/json [14:41:59] [14:41:59]POST finish read [14:41:59]Found Content-Length = 678 [14:41:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:59]execute_script... [14:41:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:59]POST & json_proto [14:41:59]process_json_proto [14:41:59]json parsed OK: [14:41:59]protocol is kg_v1.0 [14:41:59]action value=close_receipt [14:41:59]process_action close_receipt [14:41:59]cmd_close_receipt [14:41:59]MH_GetDate [14:41:59]Write to MH i2c: F0 00 00 3A 1D 46 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: F0 09 00 3A 1D 00 3B 16 B5 65 26 5D 9E 65 40 [14:41:59]GetLastDocTimeStamp 1706365890 [14:41:59]current date 1706366523 [14:41:59]FM_GetShiftState [14:41:59]SAM_PROTO_GetShiftState [14:41:59]wFMCommunicate request_size=4 [14:41:59]MH_SAM_APDU [14:41:59]CAPDU: 80 13 01 00 [14:41:59]Write to MH i2c: E2 08 00 3B 1D 80 13 01 00 00 00 00 00 D5 [14:41:59]Write i2c OK [14:41:59]MH_I2C_Read... [14:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:59]Read from MH i2c: E2 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 [14:41:59]MH_I2C_Read... [14:41:59]Read from MH i2c: E2 0E 00 3B 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 6C [14:41:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:41:59]wFMCommunicate OK [14:41:59]SAM_PROTO_GetShiftState done [14:41:59]FM_GetShiftState done [14:41:59]opened in 1706313770 [14:41:59]opened+sec_in_day 1706400170 [14:41:59]quantity*price = 62048 [14:41:59]sum+1 = 62050 [14:41:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 95 27.01.2024 14:42 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48915 ФПД: 142248872651291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T144203&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48915&fm=142248872651291&tin=02508201610067®Number=0000000000092723&sum=62000 [14:42:00]StoreToDocumentArchive [14:42:00]shift 243 fd 48915 [14:42:00]save to /storage/0243/doc_00048915 [14:42:00]save last doc name /storage/0243/doc_00048915 to /storage/kkm_last_doc_name [14:42:00]save OK [14:42:00]Clear old archive folders... [14:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:00]tlvbuf is 0135D2D0 [14:42:00]SAM_PROTO_ClearQueue [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 09 00 00 [14:42:00]Write to MH i2c: E2 08 00 48 1D 80 09 00 00 00 00 00 00 D7 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 48 1D 00 90 00 D9 [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]SAM_PROTO_ClearQueue done [14:42:00]KKMCreateOFDPacket [14:42:00]OFDProtocolAddRootSTLVToBuf [14:42:00]FM_MakeSignedData [14:42:00]FM_MakeSignedData [14:42:00]SAM_PROTO_SignData [14:42:00]wFMCommunicate request_size=4 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 01 02 [14:42:00]Write to MH i2c: E2 08 00 49 1D 80 0D 01 02 00 00 00 00 DF [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 49 1D 00 90 00 DA [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=255 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3B 16 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 BF 00 00 35 04 06 00 81 [14:42:00]Write to MH i2c: E2 02 01 4A 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 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3B 16 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 BF 00 00 35 04 06 00 81 00 00 84 [14:42:00]Write i2c OK [14:42:00]MH_I2C_Read... [14:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:00]Read from MH i2c: E2 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 [14:42:00]MH_I2C_Read... [14:42:00]Read from MH i2c: E2 03 00 4A 1D 00 90 00 DB [14:42:00]RAPDU: 90 00 [14:42:00]wFMCommunicate OK [14:42:00]wFMCommunicate request_size=10 [14:42:00]MH_SAM_APDU [14:42:00]CAPDU: 80 0D 02 02 05 5F E5 86 2A 1B [14:42:00]Write to MH i2c: E2 0D 00 4B 1D 80 0D 02 02 05 00 5F E5 86 2A 1B 00 00 FB [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 03 00 4B 1D 00 90 00 DC [14:42:01]RAPDU: 90 00 [14:42:01]wFMCommunicate OK [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 0D 03 02 [14:42:01]Write to MH i2c: E2 08 00 4C 1D 80 0D 03 02 00 00 00 00 E4 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0B 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 0B 00 4C 1D 00 8C 63 E3 91 DD 73 1C 0F 90 00 C3 [14:42:01]RAPDU: 8C 63 E3 91 DD 73 1C 0F 90 00 [14:42:01]wFMCommunicate OK [14:42:01]SAM_PROTO_SignData done [14:42:01]FM_MakeSignedData done [14:42:01]CreateOFDProtocolMessage [14:42:01]wFMCommunicate request_size=4 [14:42:01]MH_SAM_APDU [14:42:01]CAPDU: 80 11 00 00 [14:42:01]Write to MH i2c: E2 08 00 4D 1D 80 11 00 00 00 00 00 00 E4 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:01]Read from MH i2c: E2 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: E2 17 00 4D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 31 [14:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:42:01]wFMCommunicate OK [14:42:01]CreateOFDProtocolMessage done [14:42:01]OFDSenderStorePacket 48915 [14:42:01]StoreOFDPacket docnum=48915 [14:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A3 E2 07 01 61 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3B 16 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 BF 00 00 35 04 06 00 81 5F E5 86 2A 1B 8C 63 E3 91 DD 73 1C 0F [14:42:01]CheckFolder [14:42:01]dirname=/storage/ofd_packets [14:42:01]CheckFolder done [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00048915 [14:42:01]NVStorageSaveData ofd_packets/00048915 [14:42:01]File name is /storage/ofd_packets/00048915 [14:42:01]Write 301 bytes [14:42:01]NVStorageSaveData done [14:42:01]OFDSenderStorePacket done [14:42:01]KKMCreateOFDPacket done [14:42:01]NVStorageSaveData kkm_last_timestamp [14:42:01]File name is /storage/kkm_last_timestamp [14:42:01]Write 4 bytes [14:42:01]NVStorageSaveData done [14:42:01]ExternCall_PrintAddStr [14:42:01]wPrintStart [14:42:01]Write to MH i2c: 01 00 00 4E 1D 6B [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 4E 1D 00 00 00 00 00 FF 0F 80 [14:42:01]RasterBufferAndPrint [14:42:01]line Счет N : (1)216013 [14:42:01]line ИНН: 02508201610067 [14:42:01]line Контрольно-Кассовый Чек [14:42:01]line ПРОДАЖА [14:42:01]line ТРК (МРК, ГНК) : 22 [14:42:01]line Товар: 2710124130 [14:42:01]line Аи-92-К-5 [14:42:01]line 10.290 * 60.30 [14:42:01]line = 620.49 [14:42:01]line НДС 12% НСП 1% [14:42:01]line > о реализуемом товаре [14:42:01]line ОКРУГЛЕНИЕ: -0.49 [14:42:01]line ИТОГО: 620.00 [14:42:01]line Внесено: 620.00 [14:42:01]line СДАЧА: 0.00 [14:42:01]line НСП 1% : 5.49 [14:42:01]line НДС 12% : 65.89 [14:42:01]line Наличными: 620.00 [14:42:01]line Безнал.: 0.00 [14:42:01]line Место: АЗС № 102 "Партнер Нефть" [14:42:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:42:01]line СНО: Общий режим [14:42:01]line Чек 95 27.01.2024 14:42 [14:42:01]line Смена: 243 ФФД: 1.0 [14:42:01]line ЗНМ: 0300000040 [14:42:01]line РНМ: 0000000000092723 [14:42:01]line Версия ККМ: 001 [14:42:01]line ФМ: 0000000000875060 [14:42:01]line ФД: 48915 [14:42:01]line ФПД: 142248872651291 [14:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T144203&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48915&fm=142248872651291&tin=02508201610067®Number=0000000000092723&sum=62000 [14:42:01]OFD Sender: Processing packet 48915 [packets to send 12, broken 11] [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00048915 [14:42:01]OFD Sender: To server: pG, [14:42:01]CommunicateWithHost lk.salyk.kg:30040 [14:42:01]ConnectInit lk.salyk.kg [14:42:01]written 0, free lines is 4095 [14:42:01]Connected sock=10 [14:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A3 E2 07 01 61 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 3B 16 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 BF 00 00 35 04 06 00 81 5F E5 86 2A 1B 8C 63 E3 91 DD 73 1C 0F [14:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F7 23 47 00 9C E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 13 BF 00 00 F4 03 04 00 39 C2 B4 65 B6 04 01 00 00 A1 DE 1D 9E 1D EB D4 FE [14:42:01]CommunicateWithHost err = 0 [14:42:01]CheckOFDResponse [14:42:01]1017 (14) - 77093643461234 [14:42:01]1041 (16) - 0000000000875060 [14:42:01]1040 (4) - 48915 [14:42:01]1012 (4) - 27.01.2024 08:43 [14:42:01]1206 (1) - 0 [14:42:01]OFD Sender: Remove packet 48915 [14:42:01]ProducePacketName [14:42:01]name=ofd_packets/00048915 [14:42:01]NVStorageDeleteData [14:42:01]Write to MH i2c: 01 00 00 79 1D 96 [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: 01 07 00 79 1D 00 00 00 00 00 F4 0C 9D [14:42:01]RasterBufferAndPrint [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]line [14:42:01]written 0, free lines is 3322 [14:42:01]MH_Cut [14:42:01]Write to MH i2c: D1 01 00 80 1D 01 6F [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 01 00 [14:42:01]MH_I2C_Read... [14:42:01]Read from MH i2c: D1 01 00 80 1D 00 6E [14:42:01]Write to MH i2c: 01 00 00 81 1D 9E [14:42:01]Write i2c OK [14:42:01]MH_I2C_Read... [14:42:02]OFD Sender: No OFD packet to send [14:42:02]*** Cut start [14:42:02]*** Partial cut [14:42:02]*** CUTSNS_PIN = 1 [14:42:02]*** CUTSNS_PIN = 0 [14:42:02]*** Brake cut motor [14:42:03]Read from MH i2c: 01 [14:42:03]MH_I2C_Read... [14:42:03]*** Stop cut motor [14:42:03]*** Cut end [14:42:03]Read from MH i2c: 01 07 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: 01 07 00 81 1D 00 00 00 00 00 FF 0F B3 [14:42:03]process_action close_receipt done [14:42:03]requested_data is exist [14:42:03]produce_requested_data [14:42:03]requested_item fm.sn is exist - process it [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 11 00 00 [14:42:03]Write to MH i2c: E2 08 00 82 1D 80 11 00 00 00 00 00 00 19 [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 17 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 17 00 82 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 66 [14:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:42:03]wFMCommunicate OK [14:42:03]requested_item fd.num is exist - process it [14:42:03]SAM_PROTO_GetFieldsCounters [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 13 00 00 [14:42:03]Write to MH i2c: E2 08 00 83 1D 80 13 00 00 00 00 00 00 1C [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 62 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 62 00 83 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 13 BF 00 00 0E 04 04 00 F3 00 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 17 [14:42: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 13 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:03]wFMCommunicate OK [14:42:03]SAM_PROTO_GetFieldsCounters done [14:42:03]requested_item shift.num is exist - process it [14:42:03]requested_item shift.opened is exist - process it [14:42:03]req_shift_opened [14:42:03]FM_GetShiftState [14:42:03]SAM_PROTO_GetShiftState [14:42:03]wFMCommunicate request_size=4 [14:42:03]MH_SAM_APDU [14:42:03]CAPDU: 80 13 01 00 [14:42:03]Write to MH i2c: E2 08 00 84 1D 80 13 01 00 00 00 00 00 1E [14:42:03]Write i2c OK [14:42:03]MH_I2C_Read... [14:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:03]Read from MH i2c: E2 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 [14:42:03]MH_I2C_Read... [14:42:03]Read from MH i2c: E2 0E 00 84 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B5 [14:42:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:42:03]wFMCommunicate OK [14:42:03]SAM_PROTO_GetShiftState done [14:42:03]FM_GetShiftState done [14:42:03]req_shift_opened done [14:42:03]requested_item shift.open_date is exist - process it [14:42:03]req_shift_open_date [14:42:03]req_shift_open_date done [14:42:03]produce_requested_data done [14:42:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48915,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:42:03]process_action_free close_receipt [14:42:03]json_value_free [14:42:03]json_value_free done [14:42:03]process_json_proto returns [14:42:03]Send response to host [14:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48915,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:42:03]free response buf [14:42:03]execute_script done [14:42:03]execute_script returns [14:42:03]free content buf [14:42:03]Sock 9.Close socket [14:42:03]Sock 9.Thread stoped [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:37]OFD Sender: No OFD packet to send [14:42:42]OFD Sender: No OFD packet to send [14:42:47]OFD Sender: No OFD packet to send [14:42:52]OFD Sender: No OFD packet to send [14:42:57]OFD Sender: No OFD packet to send [14:43:02]OFD Sender: No OFD packet to send [14:43:07]OFD Sender: No OFD packet to send [14:43:12]OFD Sender: No OFD packet to send [14:43:17]OFD Sender: No OFD packet to send [14:43:22]OFD Sender: No OFD packet to send [14:43:27]OFD Sender: No OFD packet to send [14:43:32]OFD Sender: No OFD packet to send [14:43:37]OFD Sender: No OFD packet to send [14:43:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:20]accept exits with 7 [14:47:20]New connection [14:47:20]New thread 3066813796 created [14:47:20]Thread 3066670436 joined [14:47:20]Waiting for new connection... [14:47:20] Sock 7.Parse request [14:47:20]Sock 7.Check first char [14:47:20]Sock 7.First char is OK [14:47:20]request: POST /json_proto HTTP/1.0 [14:47:20]Method: POST [14:47:20]URL: /json_proto [14:47:20]Method is POST - this is cgi request [14:47:20]url: /json_proto [14:47:20]query_string will be loaded in cgi processing [14:47:20]execute_cgi json_proto POST (null) [14:47:20]execute_cgi path=json_proto method=POST [14:47:20]POST find Content-Length [14:47:20]Host: 172.17.56.67:8080 [14:47:20]Content-Length: 677 [14:47:20]Content-Type: application/json [14:47:20] [14:47:20]POST finish read [14:47:20]Found Content-Length = 677 [14:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:20]execute_script... [14:47: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)216014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:20]POST & json_proto [14:47:20]process_json_proto [14:47:20]json parsed OK: [14:47:20]protocol is kg_v1.0 [14:47:20]action value=close_receipt [14:47:20]process_action close_receipt [14:47:20]cmd_close_receipt [14:47:20]MH_GetDate [14:47:20]Write to MH i2c: F0 00 00 85 1D 91 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 09 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: F0 09 00 85 1D 00 7C 17 B5 65 26 5D 9E 65 CD [14:47:20]GetLastDocTimeStamp 1706366523 [14:47:20]current date 1706366844 [14:47:20]FM_GetShiftState [14:47:20]SAM_PROTO_GetShiftState [14:47:20]wFMCommunicate request_size=4 [14:47:20]MH_SAM_APDU [14:47:20]CAPDU: 80 13 01 00 [14:47:20]Write to MH i2c: E2 08 00 86 1D 80 13 01 00 00 00 00 00 20 [14:47:20]Write i2c OK [14:47:20]MH_I2C_Read... [14:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:20]Read from MH i2c: E2 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 [14:47:20]MH_I2C_Read... [14:47:20]Read from MH i2c: E2 0E 00 86 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B7 [14:47:20]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:47:20]wFMCommunicate OK [14:47:20]SAM_PROTO_GetShiftState done [14:47:20]FM_GetShiftState done [14:47:20]opened in 1706313770 [14:47:20]opened+sec_in_day 1706400170 [14:47:20]quantity*price = 20019 [14:47:20]sum+1 = 20021 [14:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 96 27.01.2024 14:47 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48916 ФПД: 193558429326316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T144724&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48916&fm=193558429326316&tin=02508201610067®Number=0000000000092723&sum=20000 [14:47:22]StoreToDocumentArchive [14:47:22]shift 243 fd 48916 [14:47:22]save to /storage/0243/doc_00048916 [14:47:22]save last doc name /storage/0243/doc_00048916 to /storage/kkm_last_doc_name [14:47:22]save OK [14:47:22]Clear old archive folders... [14:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:22]tlvbuf is 0135C8D0 [14:47:22]SAM_PROTO_ClearQueue [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 09 00 00 [14:47:22]Write to MH i2c: E2 08 00 93 1D 80 09 00 00 00 00 00 00 22 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 93 1D 00 90 00 24 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]SAM_PROTO_ClearQueue done [14:47:22]KKMCreateOFDPacket [14:47:22]OFDProtocolAddRootSTLVToBuf [14:47:22]FM_MakeSignedData [14:47:22]FM_MakeSignedData [14:47:22]SAM_PROTO_SignData [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 0D 01 02 [14:47:22]Write to MH i2c: E2 08 00 94 1D 80 0D 01 02 00 00 00 00 2A [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 94 1D 00 90 00 25 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]wFMCommunicate request_size=255 [14:47:22]MH_SAM_APDU [14:47: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7C 17 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 BF 00 00 35 04 06 00 B0 [14:47:22]Write to MH i2c: E2 02 01 95 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7C 17 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 BF 00 00 35 04 06 00 B0 00 00 BD [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 95 1D 00 90 00 26 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]wFMCommunicate request_size=10 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 0D 02 02 05 0A 55 6C 5B EC [14:47:22]Write to MH i2c: E2 0D 00 96 1D 80 0D 02 02 05 00 0A 55 6C 5B EC 00 00 49 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 03 00 96 1D 00 90 00 27 [14:47:22]RAPDU: 90 00 [14:47:22]wFMCommunicate OK [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 0D 03 02 [14:47:22]Write to MH i2c: E2 08 00 97 1D 80 0D 03 02 00 00 00 00 2F [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:22]OFD Sender: No OFD packet to send [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0B 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 0B 00 97 1D 00 AD 26 12 9C 47 DD 95 34 90 00 9E [14:47:22]RAPDU: AD 26 12 9C 47 DD 95 34 90 00 [14:47:22]wFMCommunicate OK [14:47:22]SAM_PROTO_SignData done [14:47:22]FM_MakeSignedData done [14:47:22]CreateOFDProtocolMessage [14:47:22]wFMCommunicate request_size=4 [14:47:22]MH_SAM_APDU [14:47:22]CAPDU: 80 11 00 00 [14:47:22]Write to MH i2c: E2 08 00 98 1D 80 11 00 00 00 00 00 00 2F [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:22]Read from MH i2c: E2 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 17 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: E2 17 00 98 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7C [14:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:47:22]wFMCommunicate OK [14:47:22]CreateOFDProtocolMessage done [14:47:22]OFDSenderStorePacket 48916 [14:47:22]StoreOFDPacket docnum=48916 [14:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE 1F 07 01 59 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7C 17 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 BF 00 00 35 04 06 00 B0 0A 55 6C 5B EC AD 26 12 9C 47 DD 95 34 [14:47:22]CheckFolder [14:47:22]dirname=/storage/ofd_packets [14:47:22]CheckFolder done [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00048916 [14:47:22]NVStorageSaveData ofd_packets/00048916 [14:47:22]File name is /storage/ofd_packets/00048916 [14:47:22]Write 301 bytes [14:47:22]NVStorageSaveData done [14:47:22]OFDSenderStorePacket done [14:47:22]KKMCreateOFDPacket done [14:47:22]NVStorageSaveData kkm_last_timestamp [14:47:22]File name is /storage/kkm_last_timestamp [14:47:22]Write 4 bytes [14:47:22]NVStorageSaveData done [14:47:22]ExternCall_PrintAddStr [14:47:22]wPrintStart [14:47:22]Write to MH i2c: 01 00 00 99 1D B6 [14:47:22]Write i2c OK [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 07 00 [14:47:22]MH_I2C_Read... [14:47:22]Read from MH i2c: 01 07 00 99 1D 00 00 00 00 00 FF 0F CB [14:47:22]RasterBufferAndPrint [14:47:22]line Счет N : (1)216014 [14:47:22]line ИНН: 02508201610067 [14:47:22]line Контрольно-Кассовый Чек [14:47:22]line ПРОДАЖА [14:47:22]line ТРК (МРК, ГНК) : 12 [14:47:22]line Товар: 2710124130 [14:47:22]line Аи-92-К-5 [14:47:22]line 3.320 * 60.30 [14:47:22]line = 200.20 [14:47:22]line НДС 12% НСП 1% [14:47:22]line > о реализуемом товаре [14:47:22]line ОКРУГЛЕНИЕ: -0.20 [14:47:22]line ИТОГО: 200.00 [14:47:22]line Внесено: 200.00 [14:47:22]line СДАЧА: 0.00 [14:47:22]line НСП 1% : 1.77 [14:47:22]line НДС 12% : 21.26 [14:47:22]line Наличными: 200.00 [14:47:22]line Безнал.: 0.00 [14:47:22]line Место: АЗС № 102 "Партнер Нефть" [14:47:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:47:22]line СНО: Общий режим [14:47:22]line Чек 96 27.01.2024 14:47 [14:47:22]line Смена: 243 ФФД: 1.0 [14:47:22]line ЗНМ: 0300000040 [14:47:22]line РНМ: 0000000000092723 [14:47:22]line Версия ККМ: 001 [14:47:22]line ФМ: 0000000000875060 [14:47:22]line ФД: 48916 [14:47:22]line ФПД: 193558429326316 [14:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T144724&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48916&fm=193558429326316&tin=02508201610067®Number=0000000000092723&sum=20000 [14:47:22]OFD Sender: Processing packet 48916 [packets to send 12, broken 11] [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00048916 [14:47:22]OFD Sender: To server: pG, [14:47:22]CommunicateWithHost lk.salyk.kg:30040 [14:47:22]ConnectInit lk.salyk.kg [14:47:22]written 0, free lines is 4095 [14:47:23]Connected sock=11 [14:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FE 1F 07 01 59 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7C 17 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 BF 00 00 35 04 06 00 B0 0A 55 6C 5B EC AD 26 12 9C 47 DD 95 34 [14:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 CF 27 47 00 B0 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 14 BF 00 00 F4 03 04 00 7B C3 B4 65 B6 04 01 00 00 FC 09 C8 4C F5 4A 06 4E [14:47:23]CommunicateWithHost err = 0 [14:47:23]CheckOFDResponse [14:47:23]1017 (14) - 77093643461234 [14:47:23]1041 (16) - 0000000000875060 [14:47:23]1040 (4) - 48916 [14:47:23]1012 (4) - 27.01.2024 08:48 [14:47:23]1206 (1) - 0 [14:47:23]OFD Sender: Remove packet 48916 [14:47:23]ProducePacketName [14:47:23]name=ofd_packets/00048916 [14:47:23]NVStorageDeleteData [14:47:23]Write to MH i2c: 01 00 00 C4 1D E1 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: 01 07 00 C4 1D 00 00 00 00 00 EA 0C DE [14:47:23]RasterBufferAndPrint [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]line [14:47:23]written 0, free lines is 3312 [14:47:23]MH_Cut [14:47:23]Write to MH i2c: D1 01 00 CB 1D 01 BA [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 01 00 [14:47:23]MH_I2C_Read... [14:47:23]Read from MH i2c: D1 01 00 CB 1D 00 B9 [14:47:23]Write to MH i2c: 01 00 00 CC 1D E9 [14:47:23]Write i2c OK [14:47:23]MH_I2C_Read... [14:47:23]OFD Sender: No OFD packet to send [14:47:24]*** Cut start [14:47:24]*** Partial cut [14:47:24]*** CUTSNS_PIN = 1 [14:47:24]*** CUTSNS_PIN = 0 [14:47:24]*** Brake cut motor [14:47:24]Read from MH i2c: 01 [14:47:24]MH_I2C_Read... [14:47:24]*** Stop cut motor [14:47:24]*** Cut end [14:47:24]Read from MH i2c: 01 07 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 FF 0F FE [14:47:24]process_action close_receipt done [14:47:24]requested_data is exist [14:47:24]produce_requested_data [14:47:24]requested_item fm.sn is exist - process it [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 11 00 00 [14:47:24]Write to MH i2c: E2 08 00 CD 1D 80 11 00 00 00 00 00 00 64 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 17 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 17 00 CD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B1 [14:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:47:24]wFMCommunicate OK [14:47:24]requested_item fd.num is exist - process it [14:47:24]SAM_PROTO_GetFieldsCounters [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 00 00 [14:47:24]Write to MH i2c: E2 08 00 CE 1D 80 13 00 00 00 00 00 00 67 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 62 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 62 00 CE 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 14 BF 00 00 0E 04 04 00 F3 00 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 66 [14:47: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 14 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetFieldsCounters done [14:47:24]requested_item shift.num is exist - process it [14:47:24]requested_item shift.opened is exist - process it [14:47:24]req_shift_opened [14:47:24]FM_GetShiftState [14:47:24]SAM_PROTO_GetShiftState [14:47:24]wFMCommunicate request_size=4 [14:47:24]MH_SAM_APDU [14:47:24]CAPDU: 80 13 01 00 [14:47:24]Write to MH i2c: E2 08 00 CF 1D 80 13 01 00 00 00 00 00 69 [14:47:24]Write i2c OK [14:47:24]MH_I2C_Read... [14:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:24]Read from MH i2c: E2 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 [14:47:24]MH_I2C_Read... [14:47:24]Read from MH i2c: E2 0E 00 CF 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 00 [14:47:24]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:47:24]wFMCommunicate OK [14:47:24]SAM_PROTO_GetShiftState done [14:47:24]FM_GetShiftState done [14:47:24]req_shift_opened done [14:47:24]requested_item shift.open_date is exist - process it [14:47:24]req_shift_open_date [14:47:24]req_shift_open_date done [14:47:24]produce_requested_data done [14:47:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48916,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:47:24]process_action_free close_receipt [14:47:24]json_value_free [14:47:24]json_value_free done [14:47:24]process_json_proto returns [14:47:24]Send response to host [14:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48916,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:47:24]free response buf [14:47:24]execute_script done [14:47:24]execute_script returns [14:47:24]free content buf [14:47:24]Sock 7.Close socket [14:47:24]Sock 7.Thread stoped [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:55]accept exits with 9 [14:57:55]New connection [14:57:55]New thread 3066670436 created [14:57:55]Thread 3066813796 joined [14:57:55]Waiting for new connection... [14:57:55] Sock 9.Parse request [14:57:55]Sock 9.Check first char [14:57:55]Sock 9.First char is OK [14:57:55]request: POST /json_proto HTTP/1.0 [14:57:55]Method: POST [14:57:55]URL: /json_proto [14:57:55]Method is POST - this is cgi request [14:57:55]url: /json_proto [14:57:55]query_string will be loaded in cgi processing [14:57:55]execute_cgi json_proto POST (null) [14:57:55]execute_cgi path=json_proto method=POST [14:57:55]POST find Content-Length [14:57:55]Host: 172.17.56.67:8080 [14:57:55]Content-Length: 677 [14:57:55]Content-Type: application/json [14:57:55] [14:57:55]POST finish read [14:57:55]Found Content-Length = 677 [14:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:55]execute_script... [14:57: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)216015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:55]POST & json_proto [14:57:55]process_json_proto [14:57:55]json parsed OK: [14:57:55]protocol is kg_v1.0 [14:57:55]action value=close_receipt [14:57:55]process_action close_receipt [14:57:55]cmd_close_receipt [14:57:55]MH_GetDate [14:57:55]Write to MH i2c: F0 00 00 D0 1D DC [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: F0 09 00 D0 1D 00 F7 19 B5 65 26 5D 9E 65 95 [14:57:55]GetLastDocTimeStamp 1706366844 [14:57:55]current date 1706367479 [14:57:55]FM_GetShiftState [14:57:55]SAM_PROTO_GetShiftState [14:57:55]wFMCommunicate request_size=4 [14:57:55]MH_SAM_APDU [14:57:55]CAPDU: 80 13 01 00 [14:57:55]Write to MH i2c: E2 08 00 D1 1D 80 13 01 00 00 00 00 00 6B [14:57:55]Write i2c OK [14:57:55]MH_I2C_Read... [14:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:55]Read from MH i2c: E2 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 [14:57:55]MH_I2C_Read... [14:57:55]Read from MH i2c: E2 0E 00 D1 1D 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 02 [14:57:55]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:57:55]wFMCommunicate OK [14:57:55]SAM_PROTO_GetShiftState done [14:57:55]FM_GetShiftState done [14:57:55]opened in 1706313770 [14:57:55]opened+sec_in_day 1706400170 [14:57:55]quantity*price = 30029 [14:57:55]sum+1 = 30030 [14:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 97 27.01.2024 14:57 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48917 ФПД: 35594722367399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T145759&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48917&fm=35594722367399&tin=02508201610067®Number=0000000000092723&sum=30000 [14:57:57]StoreToDocumentArchive [14:57:57]shift 243 fd 48917 [14:57:57]save to /storage/0243/doc_00048917 [14:57:57]save last doc name /storage/0243/doc_00048917 to /storage/kkm_last_doc_name [14:57:57]save OK [14:57:57]Clear old archive folders... [14:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:57]tlvbuf is 011B79C0 [14:57:57]SAM_PROTO_ClearQueue [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 09 00 00 [14:57:57]Write to MH i2c: E2 08 00 DE 1D 80 09 00 00 00 00 00 00 6D [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 DE 1D 00 90 00 6F [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_ClearQueue done [14:57:57]KKMCreateOFDPacket [14:57:57]OFDProtocolAddRootSTLVToBuf [14:57:57]FM_MakeSignedData [14:57:57]FM_MakeSignedData [14:57:57]SAM_PROTO_SignData [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 01 02 [14:57:57]Write to MH i2c: E2 08 00 DF 1D 80 0D 01 02 00 00 00 00 75 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 DF 1D 00 90 00 70 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=255 [14:57:57]MH_SAM_APDU [14:57: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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 19 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 BF 00 00 35 04 06 00 20 [14:57:57]Write to MH i2c: E2 02 01 E0 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 19 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 BF 00 00 35 04 06 00 20 00 00 AD [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 E0 1D 00 90 00 71 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=10 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 02 02 05 5F 8A C8 57 A7 [14:57:57]Write to MH i2c: E2 0D 00 E1 1D 80 0D 02 02 05 00 5F 8A C8 57 A7 00 00 31 [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 03 00 E1 1D 00 90 00 72 [14:57:57]RAPDU: 90 00 [14:57:57]wFMCommunicate OK [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 0D 03 02 [14:57:57]Write to MH i2c: E2 08 00 E2 1D 80 0D 03 02 00 00 00 00 7A [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 0B 00 E2 1D 00 D6 3A DF 5D 65 20 23 F5 90 00 64 [14:57:57]RAPDU: D6 3A DF 5D 65 20 23 F5 90 00 [14:57:57]wFMCommunicate OK [14:57:57]SAM_PROTO_SignData done [14:57:57]FM_MakeSignedData done [14:57:57]CreateOFDProtocolMessage [14:57:57]wFMCommunicate request_size=4 [14:57:57]MH_SAM_APDU [14:57:57]CAPDU: 80 11 00 00 [14:57:57]Write to MH i2c: E2 08 00 E3 1D 80 11 00 00 00 00 00 00 7A [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:57]Read from MH i2c: E2 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: E2 17 00 E3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C7 [14:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:57:57]wFMCommunicate OK [14:57:57]CreateOFDProtocolMessage done [14:57:57]OFDSenderStorePacket 48917 [14:57:57]StoreOFDPacket docnum=48917 [14:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FD 2F 07 01 D0 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 19 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 BF 00 00 35 04 06 00 20 5F 8A C8 57 A7 D6 3A DF 5D 65 20 23 F5 [14:57:57]CheckFolder [14:57:57]dirname=/storage/ofd_packets [14:57:57]CheckFolder done [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00048917 [14:57:57]NVStorageSaveData ofd_packets/00048917 [14:57:57]File name is /storage/ofd_packets/00048917 [14:57:57]Write 301 bytes [14:57:57]NVStorageSaveData done [14:57:57]OFDSenderStorePacket done [14:57:57]KKMCreateOFDPacket done [14:57:57]NVStorageSaveData kkm_last_timestamp [14:57:57]File name is /storage/kkm_last_timestamp [14:57:57]Write 4 bytes [14:57:57]NVStorageSaveData done [14:57:57]ExternCall_PrintAddStr [14:57:57]wPrintStart [14:57:57]Write to MH i2c: 01 00 00 E4 1D 01 [14:57:57]OFD Sender: Processing packet 48917 [packets to send 12, broken 11] [14:57:57]ProducePacketName [14:57:57]name=ofd_packets/00048917 [14:57:57]OFD Sender: To server: pG, [14:57:57]CommunicateWithHost lk.salyk.kg:30040 [14:57:57]ConnectInit lk.salyk.kg [14:57:57]Write i2c OK [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 [14:57:57]MH_I2C_Read... [14:57:57]Read from MH i2c: 01 07 00 E4 1D 00 00 00 00 00 FF 0F 16 [14:57:57]RasterBufferAndPrint [14:57:57]line Счет N : (1)216015 [14:57:57]line ИНН: 02508201610067 [14:57:57]line Контрольно-Кассовый Чек [14:57:57]line ПРОДАЖА [14:57:57]line ТРК (МРК, ГНК) : 22 [14:57:57]line Товар: 2710124130 [14:57:57]line Аи-92-К-5 [14:57:57]line 4.980 * 60.30 [14:57:57]line = 300.29 [14:57:57]line НДС 12% НСП 1% [14:57:57]line > о реализуемом товаре [14:57:57]line ОКРУГЛЕНИЕ: -0.29 [14:57:57]line ИТОГО: 300.00 [14:57:57]line Внесено: 300.00 [14:57:57]line СДАЧА: 0.00 [14:57:57]line НСП 1% : 2.66 [14:57:57]line НДС 12% : 31.89 [14:57:57]line Наличными: 300.00 [14:57:57]line Безнал.: 0.00 [14:57:57]line Место: АЗС № 102 "Партнер Нефть" [14:57:57]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:57:57]line СНО: Общий режим [14:57:57]line Чек 97 27.01.2024 14:57 [14:57:57]line Смена: 243 ФФД: 1.0 [14:57:57]line ЗНМ: 0300000040 [14:57:57]line РНМ: 0000000000092723 [14:57:57]line Версия ККМ: 001 [14:57:57]line ФМ: 0000000000875060 [14:57:57]line ФД: 48917 [14:57:57]line ФПД: 35594722367399 [14:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T145759&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48917&fm=35594722367399&tin=02508201610067®Number=0000000000092723&sum=30000 [14:57:57]Connected sock=10 [14:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FD 2F 07 01 D0 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 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 F7 19 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 BF 00 00 35 04 06 00 20 5F 8A C8 57 A7 D6 3A DF 5D 65 20 23 F5 [14:57:57]written 0, free lines is 4095 [14:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 01 E9 47 00 F4 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 15 BF 00 00 F4 03 04 00 F5 C5 B4 65 B6 04 01 00 00 44 04 53 EE 2E 72 BF 73 [14:57:58]CommunicateWithHost err = 0 [14:57:58]CheckOFDResponse [14:57:58]1017 (14) - 77093643461234 [14:57:58]1041 (16) - 0000000000875060 [14:57:58]1040 (4) - 48917 [14:57:58]1012 (4) - 27.01.2024 08:59 [14:57:58]1206 (1) - 0 [14:57:58]OFD Sender: Remove packet 48917 [14:57:58]ProducePacketName [14:57:58]name=ofd_packets/00048917 [14:57:58]NVStorageDeleteData [14:57:58]Write to MH i2c: 01 00 00 0F 1E 2D [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: 01 07 00 0F 1E 00 00 00 00 00 F2 0C 32 [14:57:58]RasterBufferAndPrint [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]line [14:57:58]written 0, free lines is 3320 [14:57:58]MH_Cut [14:57:58]Write to MH i2c: D1 01 00 16 1E 01 06 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 [14:57:58]MH_I2C_Read... [14:57:58]Read from MH i2c: D1 01 00 16 1E 00 05 [14:57:58]Write to MH i2c: 01 00 00 17 1E 35 [14:57:58]Write i2c OK [14:57:58]MH_I2C_Read... [14:57:58]OFD Sender: No OFD packet to send [14:57:59]*** Cut start [14:57:59]*** Partial cut [14:57:59]*** CUTSNS_PIN = 1 [14:57:59]*** CUTSNS_PIN = 0 [14:57:59]*** Brake cut motor [14:57:59]Read from MH i2c: 01 [14:57:59]MH_I2C_Read... [14:57:59]*** Stop cut motor [14:57:59]*** Cut end [14:57:59]Read from MH i2c: 01 07 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 FF 0F 4A [14:57:59]process_action close_receipt done [14:57:59]requested_data is exist [14:57:59]produce_requested_data [14:57:59]requested_item fm.sn is exist - process it [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 11 00 00 [14:57:59]Write to MH i2c: E2 08 00 18 1E 80 11 00 00 00 00 00 00 B0 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 17 00 18 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FD [14:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:57:59]wFMCommunicate OK [14:57:59]requested_item fd.num is exist - process it [14:57:59]SAM_PROTO_GetFieldsCounters [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 00 00 [14:57:59]Write to MH i2c: E2 08 00 19 1E 80 13 00 00 00 00 00 00 B3 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 62 00 19 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 15 BF 00 00 0E 04 04 00 F3 00 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 B6 [14:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 15 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetFieldsCounters done [14:57:59]requested_item shift.num is exist - process it [14:57:59]requested_item shift.opened is exist - process it [14:57:59]req_shift_opened [14:57:59]FM_GetShiftState [14:57:59]SAM_PROTO_GetShiftState [14:57:59]wFMCommunicate request_size=4 [14:57:59]MH_SAM_APDU [14:57:59]CAPDU: 80 13 01 00 [14:57:59]Write to MH i2c: E2 08 00 1A 1E 80 13 01 00 00 00 00 00 B5 [14:57:59]Write i2c OK [14:57:59]MH_I2C_Read... [14:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:59]Read from MH i2c: E2 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 [14:57:59]MH_I2C_Read... [14:57:59]Read from MH i2c: E2 0E 00 1A 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 4C [14:57:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [14:57:59]wFMCommunicate OK [14:57:59]SAM_PROTO_GetShiftState done [14:57:59]FM_GetShiftState done [14:57:59]req_shift_opened done [14:57:59]requested_item shift.open_date is exist - process it [14:57:59]req_shift_open_date [14:57:59]req_shift_open_date done [14:57:59]produce_requested_data done [14:57:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48917,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [14:57:59]process_action_free close_receipt [14:57:59]json_value_free [14:57:59]json_value_free done [14:57:59]process_json_proto returns [14:57:59]Send response to host [14:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48917,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [14:57:59]free response buf [14:57:59]execute_script done [14:57:59]execute_script returns [14:57:59]free content buf [14:57:59]Sock 9.Close socket [14:57:59]Sock 9.Thread stoped [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:05]accept exits with 7 [15:02:05]New connection [15:02:05]New thread 3066813796 created [15:02:05]Thread 3066670436 joined [15:02:05]Waiting for new connection... [15:02:05] Sock 7.Parse request [15:02:05]Sock 7.Check first char [15:02:05]Sock 7.First char is OK [15:02:05]request: POST /json_proto HTTP/1.0 [15:02:05]Method: POST [15:02:05]URL: /json_proto [15:02:05]Method is POST - this is cgi request [15:02:05]url: /json_proto [15:02:05]query_string will be loaded in cgi processing [15:02:05]execute_cgi json_proto POST (null) [15:02:05]execute_cgi path=json_proto method=POST [15:02:05]POST find Content-Length [15:02:05]Host: 172.17.56.67:8080 [15:02:05]Content-Length: 677 [15:02:05]Content-Type: application/json [15:02:05] [15:02:05]POST finish read [15:02:05]Found Content-Length = 677 [15:02:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:05]execute_script... [15:02: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)216016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:05]POST & json_proto [15:02:05]process_json_proto [15:02:05]json parsed OK: [15:02:05]protocol is kg_v1.0 [15:02:05]action value=close_receipt [15:02:05]process_action close_receipt [15:02:05]cmd_close_receipt [15:02:05]MH_GetDate [15:02:05]Write to MH i2c: F0 00 00 1B 1E 28 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: F0 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: F0 09 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: F0 09 00 1B 1E 00 F0 1A B5 65 26 5D 9E 65 DB [15:02:05]GetLastDocTimeStamp 1706367479 [15:02:05]current date 1706367728 [15:02:05]FM_GetShiftState [15:02:05]SAM_PROTO_GetShiftState [15:02:05]wFMCommunicate request_size=4 [15:02:05]MH_SAM_APDU [15:02:05]CAPDU: 80 13 01 00 [15:02:05]Write to MH i2c: E2 08 00 1C 1E 80 13 01 00 00 00 00 00 B7 [15:02:05]Write i2c OK [15:02:05]MH_I2C_Read... [15:02:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:05]Read from MH i2c: E2 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0E 00 [15:02:05]MH_I2C_Read... [15:02:05]Read from MH i2c: E2 0E 00 1C 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 4E [15:02:05]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:02:05]wFMCommunicate OK [15:02:05]SAM_PROTO_GetShiftState done [15:02:05]FM_GetShiftState done [15:02:05]opened in 1706313770 [15:02:05]opened+sec_in_day 1706400170 [15:02:05]quantity*price = 50049 [15:02:05]sum+1 = 50050 [15:02:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 98 27.01.2024 15:02 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48918 ФПД: 253179028119299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150209&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48918&fm=253179028119299&tin=02508201610067®Number=0000000000092723&sum=50000 [15:02:06]StoreToDocumentArchive [15:02:06]shift 243 fd 48918 [15:02:06]save to /storage/0243/doc_00048918 [15:02:06]save last doc name /storage/0243/doc_00048918 to /storage/kkm_last_doc_name [15:02:06]save OK [15:02:06]Clear old archive folders... [15:02:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:02:06]tlvbuf is 011EC1A0 [15:02:06]SAM_PROTO_ClearQueue [15:02:06]wFMCommunicate request_size=4 [15:02:06]MH_SAM_APDU [15:02:06]CAPDU: 80 09 00 00 [15:02:06]Write to MH i2c: E2 08 00 29 1E 80 09 00 00 00 00 00 00 B9 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 29 1E 00 90 00 BB [15:02:06]RAPDU: 90 00 [15:02:06]wFMCommunicate OK [15:02:06]SAM_PROTO_ClearQueue done [15:02:06]KKMCreateOFDPacket [15:02:06]OFDProtocolAddRootSTLVToBuf [15:02:06]FM_MakeSignedData [15:02:06]FM_MakeSignedData [15:02:06]SAM_PROTO_SignData [15:02:06]wFMCommunicate request_size=4 [15:02:06]MH_SAM_APDU [15:02:06]CAPDU: 80 0D 01 02 [15:02:06]Write to MH i2c: E2 08 00 2A 1E 80 0D 01 02 00 00 00 00 C1 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 2A 1E 00 90 00 BC [15:02:06]RAPDU: 90 00 [15:02:06]wFMCommunicate OK [15:02:06]wFMCommunicate request_size=255 [15:02:06]MH_SAM_APDU [15:02: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 1A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 BF 00 00 35 04 06 00 E6 [15:02:06]Write to MH i2c: E2 02 01 2B 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 1A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 BF 00 00 35 04 06 00 E6 00 00 26 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 2B 1E 00 90 00 BD [15:02:06]RAPDU: 90 00 [15:02:06]wFMCommunicate OK [15:02:06]wFMCommunicate request_size=10 [15:02:06]MH_SAM_APDU [15:02:06]CAPDU: 80 0D 02 02 05 43 D6 09 1F 03 [15:02:06]Write to MH i2c: E2 0D 00 2C 1E 80 0D 02 02 05 00 43 D6 09 1F 03 00 00 12 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 03 00 2C 1E 00 90 00 BE [15:02:06]RAPDU: 90 00 [15:02:06]wFMCommunicate OK [15:02:06]wFMCommunicate request_size=4 [15:02:06]MH_SAM_APDU [15:02:06]CAPDU: 80 0D 03 02 [15:02:06]Write to MH i2c: E2 08 00 2D 1E 80 0D 03 02 00 00 00 00 C6 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 0B 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 0B 00 2D 1E 00 3B FE 42 15 E5 E0 26 94 90 00 D6 [15:02:06]RAPDU: 3B FE 42 15 E5 E0 26 94 90 00 [15:02:06]wFMCommunicate OK [15:02:06]SAM_PROTO_SignData done [15:02:06]FM_MakeSignedData done [15:02:06]CreateOFDProtocolMessage [15:02:06]wFMCommunicate request_size=4 [15:02:06]MH_SAM_APDU [15:02:06]CAPDU: 80 11 00 00 [15:02:06]Write to MH i2c: E2 08 00 2E 1E 80 11 00 00 00 00 00 00 C6 [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:06]Read from MH i2c: E2 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 17 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: E2 17 00 2E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 13 [15:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:02:06]wFMCommunicate OK [15:02:06]CreateOFDProtocolMessage done [15:02:06]OFDSenderStorePacket 48918 [15:02:06]StoreOFDPacket docnum=48918 [15:02:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 02 61 07 01 E8 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 1A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 BF 00 00 35 04 06 00 E6 43 D6 09 1F 03 3B FE 42 15 E5 E0 26 94 [15:02:06]CheckFolder [15:02:06]dirname=/storage/ofd_packets [15:02:06]CheckFolder done [15:02:06]ProducePacketName [15:02:06]name=ofd_packets/00048918 [15:02:06]NVStorageSaveData ofd_packets/00048918 [15:02:06]File name is /storage/ofd_packets/00048918 [15:02:06]Write 301 bytes [15:02:06]NVStorageSaveData done [15:02:06]OFDSenderStorePacket done [15:02:06]KKMCreateOFDPacket done [15:02:06]NVStorageSaveData kkm_last_timestamp [15:02:06]File name is /storage/kkm_last_timestamp [15:02:06]Write 4 bytes [15:02:06]NVStorageSaveData done [15:02:06]ExternCall_PrintAddStr [15:02:06]wPrintStart [15:02:06]Write to MH i2c: 01 00 00 2F 1E 4D [15:02:06]Write i2c OK [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 07 00 [15:02:06]MH_I2C_Read... [15:02:06]Read from MH i2c: 01 07 00 2F 1E 00 00 00 00 00 FF 0F 62 [15:02:06]RasterBufferAndPrint [15:02:06]line Счет N : (1)216016 [15:02:06]line ИНН: 02508201610067 [15:02:06]line Контрольно-Кассовый Чек [15:02:06]line ПРОДАЖА [15:02:06]line ТРК (МРК, ГНК) : 12 [15:02:06]line Товар: 2710124130 [15:02:06]line Аи-92-К-5 [15:02:06]line 8.300 * 60.30 [15:02:06]line = 500.49 [15:02:06]line НДС 12% НСП 1% [15:02:06]line > о реализуемом товаре [15:02:06]line ОКРУГЛЕНИЕ: -0.49 [15:02:06]line ИТОГО: 500.00 [15:02:06]line Внесено: 500.00 [15:02:06]line СДАЧА: 0.00 [15:02:06]line НСП 1% : 4.43 [15:02:06]line НДС 12% : 53.15 [15:02:06]line Наличными: 500.00 [15:02:06]line Безнал.: 0.00 [15:02:06]line Место: АЗС № 102 "Партнер Нефть" [15:02:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:02:06]line СНО: Общий режим [15:02:06]line Чек 98 27.01.2024 15:02 [15:02:06]line Смена: 243 ФФД: 1.0 [15:02:06]line ЗНМ: 0300000040 [15:02:06]line РНМ: 0000000000092723 [15:02:06]line Версия ККМ: 001 [15:02:06]line ФМ: 0000000000875060 [15:02:06]line ФД: 48918 [15:02:07]line ФПД: 253179028119299 [15:02:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150209&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48918&fm=253179028119299&tin=02508201610067®Number=0000000000092723&sum=50000 [15:02:07]OFD Sender: Processing packet 48918 [packets to send 12, broken 11] [15:02:07]ProducePacketName [15:02:07]name=ofd_packets/00048918 [15:02:07]OFD Sender: To server: pG, [15:02:07]CommunicateWithHost lk.salyk.kg:30040 [15:02:07]ConnectInit lk.salyk.kg [15:02:07]written 0, free lines is 4095 [15:02:07]Connected sock=10 [15:02:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 02 61 07 01 E8 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 F1 1A B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 16 BF 00 00 35 04 06 00 E6 43 D6 09 1F 03 3B FE 42 15 E5 E0 26 94 [15:02:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 2E 3A 47 00 4E 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 35 30 36 30 10 04 04 00 16 BF 00 00 F4 03 04 00 EF C6 B4 65 B6 04 01 00 00 C9 E9 85 93 F2 48 3E 30 [15:02:07]CommunicateWithHost err = 0 [15:02:07]CheckOFDResponse [15:02:07]1017 (14) - 77093643461234 [15:02:07]1041 (16) - 0000000000875060 [15:02:07]1040 (4) - 48918 [15:02:07]1012 (4) - 27.01.2024 09:03 [15:02:07]1206 (1) - 0 [15:02:07]OFD Sender: Remove packet 48918 [15:02:07]ProducePacketName [15:02:07]name=ofd_packets/00048918 [15:02:07]NVStorageDeleteData [15:02:07]Write to MH i2c: 01 00 00 5A 1E 78 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: 01 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: 01 07 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: 01 07 00 5A 1E 00 00 00 00 00 F3 0C 7E [15:02:07]RasterBufferAndPrint [15:02:07]line [15:02:07]line [15:02:07]line [15:02:07]line [15:02:07]line [15:02:07]written 0, free lines is 3321 [15:02:07]MH_Cut [15:02:07]Write to MH i2c: D1 01 00 61 1E 01 51 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: D1 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: D1 01 00 [15:02:07]MH_I2C_Read... [15:02:07]Read from MH i2c: D1 01 00 61 1E 00 50 [15:02:07]Write to MH i2c: 01 00 00 62 1E 80 [15:02:07]Write i2c OK [15:02:07]MH_I2C_Read... [15:02:07]OFD Sender: No OFD packet to send [15:02:08]*** Cut start [15:02:08]*** Partial cut [15:02:08]*** CUTSNS_PIN = 1 [15:02:08]*** CUTSNS_PIN = 0 [15:02:08]*** Brake cut motor [15:02:08]Read from MH i2c: 01 [15:02:08]MH_I2C_Read... [15:02:08]*** Stop cut motor [15:02:08]*** Cut end [15:02:08]Read from MH i2c: 01 07 00 [15:02:08]MH_I2C_Read... [15:02:08]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 FF 0F 95 [15:02:08]process_action close_receipt done [15:02:08]requested_data is exist [15:02:08]produce_requested_data [15:02:08]requested_item fm.sn is exist - process it [15:02:08]wFMCommunicate request_size=4 [15:02:08]MH_SAM_APDU [15:02:08]CAPDU: 80 11 00 00 [15:02:08]Write to MH i2c: E2 08 00 63 1E 80 11 00 00 00 00 00 00 FB [15:02:08]Write i2c OK [15:02:08]MH_I2C_Read... [15:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:08]Read from MH i2c: E2 [15:02:08]MH_I2C_Read... [15:02:08]Read from MH i2c: E2 17 00 [15:02:08]MH_I2C_Read... [15:02:08]Read from MH i2c: E2 17 00 63 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 48 [15:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:02:08]wFMCommunicate OK [15:02:08]requested_item fd.num is exist - process it [15:02:08]SAM_PROTO_GetFieldsCounters [15:02:08]wFMCommunicate request_size=4 [15:02:08]MH_SAM_APDU [15:02:08]CAPDU: 80 13 00 00 [15:02:08]Write to MH i2c: E2 08 00 64 1E 80 13 00 00 00 00 00 00 FE [15:02:08]Write i2c OK [15:02:08]MH_I2C_Read... [15:02:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:09]Read from MH i2c: E2 [15:02:09]MH_I2C_Read... [15:02:09]Read from MH i2c: E2 62 00 [15:02:09]MH_I2C_Read... [15:02:09]Read from MH i2c: E2 62 00 64 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 16 BF 00 00 0E 04 04 00 F3 00 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 05 [15:02:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 16 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:09]wFMCommunicate OK [15:02:09]SAM_PROTO_GetFieldsCounters done [15:02:09]requested_item shift.num is exist - process it [15:02:09]requested_item shift.opened is exist - process it [15:02:09]req_shift_opened [15:02:09]FM_GetShiftState [15:02:09]SAM_PROTO_GetShiftState [15:02:09]wFMCommunicate request_size=4 [15:02:09]MH_SAM_APDU [15:02:09]CAPDU: 80 13 01 00 [15:02:09]Write to MH i2c: E2 08 00 65 1E 80 13 01 00 00 00 00 00 00 [15:02:09]Write i2c OK [15:02:09]MH_I2C_Read... [15:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:09]Read from MH i2c: E2 [15:02:09]MH_I2C_Read... [15:02:09]Read from MH i2c: E2 0E 00 [15:02:09]MH_I2C_Read... [15:02:09]Read from MH i2c: E2 0E 00 65 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 97 [15:02:09]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:02:09]wFMCommunicate OK [15:02:09]SAM_PROTO_GetShiftState done [15:02:09]FM_GetShiftState done [15:02:09]req_shift_opened done [15:02:09]requested_item shift.open_date is exist - process it [15:02:09]req_shift_open_date [15:02:09]req_shift_open_date done [15:02:09]produce_requested_data done [15:02:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48918,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:02:09]process_action_free close_receipt [15:02:09]json_value_free [15:02:09]json_value_free done [15:02:09]process_json_proto returns [15:02:09]Send response to host [15:02:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48918,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:02:09]free response buf [15:02:09]execute_script done [15:02:09]execute_script returns [15:02:09]free content buf [15:02:09]Sock 7.Close socket [15:02:09]Sock 7.Thread stoped [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]accept exits with 9 [15:03:12]New connection [15:03:12]New thread 3066670436 created [15:03:12]Thread 3066813796 joined [15:03:12]Waiting for new connection... [15:03:12] Sock 9.Parse request [15:03:12]Sock 9.Check first char [15:03:12]Sock 9.First char is OK [15:03:12]request: POST /json_proto HTTP/1.0 [15:03:12]Method: POST [15:03:12]URL: /json_proto [15:03:12]Method is POST - this is cgi request [15:03:12]url: /json_proto [15:03:12]query_string will be loaded in cgi processing [15:03:12]execute_cgi json_proto POST (null) [15:03:12]execute_cgi path=json_proto method=POST [15:03:12]POST find Content-Length [15:03:12]Host: 172.17.56.67:8080 [15:03:12]Content-Length: 677 [15:03:12]Content-Type: application/json [15:03:12] [15:03:12]POST finish read [15:03:12]Found Content-Length = 677 [15:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:12]execute_script... [15:03: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)216017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:12]POST & json_proto [15:03:12]process_json_proto [15:03:12]json parsed OK: [15:03:12]protocol is kg_v1.0 [15:03:12]action value=close_receipt [15:03:12]process_action close_receipt [15:03:12]cmd_close_receipt [15:03:12]MH_GetDate [15:03:12]Write to MH i2c: F0 00 00 66 1E 73 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 09 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: F0 09 00 66 1E 00 34 1B B5 65 26 5D 9E 65 6B [15:03:12]GetLastDocTimeStamp 1706367729 [15:03:12]current date 1706367796 [15:03:12]FM_GetShiftState [15:03:12]SAM_PROTO_GetShiftState [15:03:12]wFMCommunicate request_size=4 [15:03:12]MH_SAM_APDU [15:03:12]CAPDU: 80 13 01 00 [15:03:12]Write to MH i2c: E2 08 00 67 1E 80 13 01 00 00 00 00 00 02 [15:03:12]Write i2c OK [15:03:12]MH_I2C_Read... [15:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:12]Read from MH i2c: E2 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 [15:03:12]MH_I2C_Read... [15:03:12]Read from MH i2c: E2 0E 00 67 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 99 [15:03:12]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:03:12]wFMCommunicate OK [15:03:12]SAM_PROTO_GetShiftState done [15:03:12]FM_GetShiftState done [15:03:12]opened in 1706313770 [15:03:12]opened+sec_in_day 1706400170 [15:03:12]quantity*price = 50049 [15:03:12]sum+1 = 50050 [15:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 99 27.01.2024 15:03 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48919 ФПД: 226122628960134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150316&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48919&fm=226122628960134&tin=02508201610067®Number=0000000000092723&sum=50000 [15:03:13]StoreToDocumentArchive [15:03:13]shift 243 fd 48919 [15:03:13]save to /storage/0243/doc_00048919 [15:03:13]save last doc name /storage/0243/doc_00048919 to /storage/kkm_last_doc_name [15:03:13]save OK [15:03:13]Clear old archive folders... [15:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:13]tlvbuf is B6E9F1F0 [15:03:13]SAM_PROTO_ClearQueue [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 09 00 00 [15:03:13]Write to MH i2c: E2 08 00 74 1E 80 09 00 00 00 00 00 00 04 [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 74 1E 00 90 00 06 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]SAM_PROTO_ClearQueue done [15:03:13]KKMCreateOFDPacket [15:03:13]OFDProtocolAddRootSTLVToBuf [15:03:13]FM_MakeSignedData [15:03:13]FM_MakeSignedData [15:03:13]SAM_PROTO_SignData [15:03:13]wFMCommunicate request_size=4 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 01 02 [15:03:13]Write to MH i2c: E2 08 00 75 1E 80 0D 01 02 00 00 00 00 0C [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:13]Read from MH i2c: E2 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 [15:03:13]MH_I2C_Read... [15:03:13]Read from MH i2c: E2 03 00 75 1E 00 90 00 07 [15:03:13]RAPDU: 90 00 [15:03:13]wFMCommunicate OK [15:03:13]wFMCommunicate request_size=255 [15:03:13]MH_SAM_APDU [15:03:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 1B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 BF 00 00 35 04 06 00 CD [15:03:13]Write to MH i2c: E2 02 01 76 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 1B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 BF 00 00 35 04 06 00 CD 00 00 9E [15:03:13]Write i2c OK [15:03:13]MH_I2C_Read... [15:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:14]Read from MH i2c: E2 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 03 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 03 00 76 1E 00 90 00 08 [15:03:14]RAPDU: 90 00 [15:03:14]wFMCommunicate OK [15:03:14]wFMCommunicate request_size=10 [15:03:14]MH_SAM_APDU [15:03:14]CAPDU: 80 0D 02 02 05 A8 46 F9 8F 86 [15:03:14]Write to MH i2c: E2 0D 00 77 1E 80 0D 02 02 05 00 A8 46 F9 8F 86 00 00 15 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:14]Read from MH i2c: E2 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 03 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 03 00 77 1E 00 90 00 09 [15:03:14]RAPDU: 90 00 [15:03:14]wFMCommunicate OK [15:03:14]wFMCommunicate request_size=4 [15:03:14]MH_SAM_APDU [15:03:14]CAPDU: 80 0D 03 02 [15:03:14]Write to MH i2c: E2 08 00 78 1E 80 0D 03 02 00 00 00 00 11 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:14]Read from MH i2c: E2 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 0B 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 0B 00 78 1E 00 0C C8 E5 F7 ED 1E 6C 04 90 00 3D [15:03:14]RAPDU: 0C C8 E5 F7 ED 1E 6C 04 90 00 [15:03:14]wFMCommunicate OK [15:03:14]SAM_PROTO_SignData done [15:03:14]FM_MakeSignedData done [15:03:14]CreateOFDProtocolMessage [15:03:14]wFMCommunicate request_size=4 [15:03:14]MH_SAM_APDU [15:03:14]CAPDU: 80 11 00 00 [15:03:14]Write to MH i2c: E2 08 00 79 1E 80 11 00 00 00 00 00 00 11 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:14]Read from MH i2c: E2 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 17 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: E2 17 00 79 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5E [15:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:03:14]wFMCommunicate OK [15:03:14]CreateOFDProtocolMessage done [15:03:14]OFDSenderStorePacket 48919 [15:03:14]StoreOFDPacket docnum=48919 [15:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 5D 07 01 0C 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 1B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 BF 00 00 35 04 06 00 CD A8 46 F9 8F 86 0C C8 E5 F7 ED 1E 6C 04 [15:03:14]CheckFolder [15:03:14]dirname=/storage/ofd_packets [15:03:14]CheckFolder done [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00048919 [15:03:14]NVStorageSaveData ofd_packets/00048919 [15:03:14]File name is /storage/ofd_packets/00048919 [15:03:14]Write 301 bytes [15:03:14]NVStorageSaveData done [15:03:14]OFDSenderStorePacket done [15:03:14]KKMCreateOFDPacket done [15:03:14]NVStorageSaveData kkm_last_timestamp [15:03:14]File name is /storage/kkm_last_timestamp [15:03:14]Write 4 bytes [15:03:14]NVStorageSaveData done [15:03:14]ExternCall_PrintAddStr [15:03:14]wPrintStart [15:03:14]Write to MH i2c: 01 00 00 7A 1E 98 [15:03:14]Write i2c OK [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 [15:03:14]MH_I2C_Read... [15:03:14]Read from MH i2c: 01 07 00 7A 1E 00 00 00 00 00 FF 0F AD [15:03:14]RasterBufferAndPrint [15:03:14]line Счет N : (1)216017 [15:03:14]line ИНН: 02508201610067 [15:03:14]line Контрольно-Кассовый Чек [15:03:14]line ПРОДАЖА [15:03:14]line ТРК (МРК, ГНК) : 22 [15:03:14]line Товар: 2710124130 [15:03:14]line Аи-92-К-5 [15:03:14]line 8.300 * 60.30 [15:03:14]line = 500.49 [15:03:14]line НДС 12% НСП 1% [15:03:14]line > о реализуемом товаре [15:03:14]line ОКРУГЛЕНИЕ: -0.49 [15:03:14]line ИТОГО: 500.00 [15:03:14]line Внесено: 500.00 [15:03:14]line СДАЧА: 0.00 [15:03:14]line НСП 1% : 4.43 [15:03:14]line НДС 12% : 53.15 [15:03:14]line Наличными: 500.00 [15:03:14]line Безнал.: 0.00 [15:03:14]line Место: АЗС № 102 "Партнер Нефть" [15:03:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:03:14]line СНО: Общий режим [15:03:14]line Чек 99 27.01.2024 15:03 [15:03:14]line Смена: 243 ФФД: 1.0 [15:03:14]line ЗНМ: 0300000040 [15:03:14]line РНМ: 0000000000092723 [15:03:14]line Версия ККМ: 001 [15:03:14]line ФМ: 0000000000875060 [15:03:14]line ФД: 48919 [15:03:14]line ФПД: 226122628960134 [15:03:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150316&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48919&fm=226122628960134&tin=02508201610067®Number=0000000000092723&sum=50000 [15:03:14]OFD Sender: Processing packet 48919 [packets to send 12, broken 11] [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00048919 [15:03:14]OFD Sender: To server: pG, [15:03:14]CommunicateWithHost lk.salyk.kg:30040 [15:03:14]ConnectInit lk.salyk.kg [15:03:14]written 0, free lines is 4095 [15:03:14]Connected sock=11 [15:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 5D 07 01 0C 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 34 1B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 17 BF 00 00 35 04 06 00 CD A8 46 F9 8F 86 0C C8 E5 F7 ED 1E 6C 04 [15:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 6E BA 47 00 1F 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 35 30 36 30 10 04 04 00 17 BF 00 00 F4 03 04 00 32 C7 B4 65 B6 04 01 00 00 C2 99 BB D1 63 38 19 1C [15:03:14]CommunicateWithHost err = 0 [15:03:14]CheckOFDResponse [15:03:14]1017 (14) - 77093643461234 [15:03:14]1041 (16) - 0000000000875060 [15:03:14]1040 (4) - 48919 [15:03:14]1012 (4) - 27.01.2024 09:04 [15:03:14]1206 (1) - 0 [15:03:14]OFD Sender: Remove packet 48919 [15:03:14]ProducePacketName [15:03:14]name=ofd_packets/00048919 [15:03:14]NVStorageDeleteData [15:03:15]Write to MH i2c: 01 00 00 A5 1E C3 [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: 01 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: 01 07 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: 01 07 00 A5 1E 00 00 00 00 00 F2 0C C8 [15:03:15]RasterBufferAndPrint [15:03:15]line [15:03:15]line [15:03:15]line [15:03:15]line [15:03:15]line [15:03:15]written 0, free lines is 3320 [15:03:15]MH_Cut [15:03:15]Write to MH i2c: D1 01 00 AC 1E 01 9C [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: D1 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: D1 01 00 [15:03:15]MH_I2C_Read... [15:03:15]Read from MH i2c: D1 01 00 AC 1E 00 9B [15:03:15]Write to MH i2c: 01 00 00 AD 1E CB [15:03:15]Write i2c OK [15:03:15]MH_I2C_Read... [15:03:15]OFD Sender: No OFD packet to send [15:03:15]*** Cut start [15:03:15]*** Partial cut [15:03:15]*** CUTSNS_PIN = 1 [15:03:15]*** CUTSNS_PIN = 0 [15:03:15]*** Brake cut motor [15:03:16]Read from MH i2c: 01 [15:03:16]MH_I2C_Read... [15:03:16]*** Stop cut motor [15:03:16]*** Cut end [15:03:16]Read from MH i2c: 01 07 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 FF 0F E0 [15:03:16]process_action close_receipt done [15:03:16]requested_data is exist [15:03:16]produce_requested_data [15:03:16]requested_item fm.sn is exist - process it [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 11 00 00 [15:03:16]Write to MH i2c: E2 08 00 AE 1E 80 11 00 00 00 00 00 00 46 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 17 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 17 00 AE 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 93 [15:03:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:03:16]wFMCommunicate OK [15:03:16]requested_item fd.num is exist - process it [15:03:16]SAM_PROTO_GetFieldsCounters [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 13 00 00 [15:03:16]Write to MH i2c: E2 08 00 AF 1E 80 13 00 00 00 00 00 00 49 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 62 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 62 00 AF 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 17 BF 00 00 0E 04 04 00 F3 00 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 54 [15:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 17 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:16]wFMCommunicate OK [15:03:16]SAM_PROTO_GetFieldsCounters done [15:03:16]requested_item shift.num is exist - process it [15:03:16]requested_item shift.opened is exist - process it [15:03:16]req_shift_opened [15:03:16]FM_GetShiftState [15:03:16]SAM_PROTO_GetShiftState [15:03:16]wFMCommunicate request_size=4 [15:03:16]MH_SAM_APDU [15:03:16]CAPDU: 80 13 01 00 [15:03:16]Write to MH i2c: E2 08 00 B0 1E 80 13 01 00 00 00 00 00 4B [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:16]Read from MH i2c: E2 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: E2 0E 00 B0 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E2 [15:03:16]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:03:16]wFMCommunicate OK [15:03:16]SAM_PROTO_GetShiftState done [15:03:16]FM_GetShiftState done [15:03:16]req_shift_opened done [15:03:16]requested_item shift.open_date is exist - process it [15:03:16]req_shift_open_date [15:03:16]req_shift_open_date done [15:03:16]produce_requested_data done [15:03:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48919,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:03:16]process_action_free close_receipt [15:03:16]json_value_free [15:03:16]json_value_free done [15:03:16]process_json_proto returns [15:03:16]Send response to host [15:03:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48919,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:03:16]free response buf [15:03:16]execute_script done [15:03:16]execute_script returns [15:03:16]free content buf [15:03:16]Sock 9.Close socket [15:03:16]Sock 9.Thread stoped [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:52]accept exits with 7 [15:08:52]New connection [15:08:52]New thread 3066813796 created [15:08:52]Thread 3066670436 joined [15:08:52]Waiting for new connection... [15:08:52] Sock 7.Parse request [15:08:52]Sock 7.Check first char [15:08:52]Sock 7.First char is OK [15:08:52]request: POST /json_proto HTTP/1.0 [15:08:52]Method: POST [15:08:52]URL: /json_proto [15:08:52]Method is POST - this is cgi request [15:08:52]url: /json_proto [15:08:52]query_string will be loaded in cgi processing [15:08:52]execute_cgi json_proto POST (null) [15:08:52]execute_cgi path=json_proto method=POST [15:08:52]POST find Content-Length [15:08:52]Host: 172.17.56.67:8080 [15:08:52]Content-Length: 677 [15:08:52]Content-Type: application/json [15:08:52] [15:08:52]POST finish read [15:08:52]Found Content-Length = 677 [15:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:52]execute_script... [15:08: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)216018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:52]POST & json_proto [15:08:52]process_json_proto [15:08:52]json parsed OK: [15:08:52]protocol is kg_v1.0 [15:08:52]action value=close_receipt [15:08:52]process_action close_receipt [15:08:52]cmd_close_receipt [15:08:52]MH_GetDate [15:08:52]Write to MH i2c: F0 00 00 B1 1E BE [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: F0 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: F0 09 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: F0 09 00 B1 1E 00 88 1C B5 65 26 5D 9E 65 0B [15:08:52]GetLastDocTimeStamp 1706367796 [15:08:52]current date 1706368136 [15:08:52]FM_GetShiftState [15:08:52]SAM_PROTO_GetShiftState [15:08:52]wFMCommunicate request_size=4 [15:08:52]MH_SAM_APDU [15:08:52]CAPDU: 80 13 01 00 [15:08:52]Write to MH i2c: E2 08 00 B2 1E 80 13 01 00 00 00 00 00 4D [15:08:52]Write i2c OK [15:08:52]MH_I2C_Read... [15:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:52]Read from MH i2c: E2 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0E 00 [15:08:52]MH_I2C_Read... [15:08:52]Read from MH i2c: E2 0E 00 B2 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 E4 [15:08:52]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:08:52]wFMCommunicate OK [15:08:52]SAM_PROTO_GetShiftState done [15:08:52]FM_GetShiftState done [15:08:52]opened in 1706313770 [15:08:52]opened+sec_in_day 1706400170 [15:08:52]quantity*price = 60058 [15:08:52]sum+1 = 60060 [15:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 100 27.01.2024 15:08 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48920 ФПД: 55660444777311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48920&fm=55660444777311&tin=02508201610067®Number=0000000000092723&sum=60000 [15:08:53]StoreToDocumentArchive [15:08:53]shift 243 fd 48920 [15:08:53]save to /storage/0243/doc_00048920 [15:08:53]save last doc name /storage/0243/doc_00048920 to /storage/kkm_last_doc_name [15:08:53]save OK [15:08:53]Clear old archive folders... [15:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:53]tlvbuf is 0134FAA0 [15:08:53]SAM_PROTO_ClearQueue [15:08:53]wFMCommunicate request_size=4 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 09 00 00 [15:08:53]Write to MH i2c: E2 08 00 BF 1E 80 09 00 00 00 00 00 00 4F [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 BF 1E 00 90 00 51 [15:08:53]RAPDU: 90 00 [15:08:53]wFMCommunicate OK [15:08:53]SAM_PROTO_ClearQueue done [15:08:53]KKMCreateOFDPacket [15:08:53]OFDProtocolAddRootSTLVToBuf [15:08:53]FM_MakeSignedData [15:08:53]FM_MakeSignedData [15:08:53]SAM_PROTO_SignData [15:08:53]wFMCommunicate request_size=4 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 0D 01 02 [15:08:53]Write to MH i2c: E2 08 00 C0 1E 80 0D 01 02 00 00 00 00 57 [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 C0 1E 00 90 00 52 [15:08:53]RAPDU: 90 00 [15:08:53]wFMCommunicate OK [15:08:53]wFMCommunicate request_size=255 [15:08:53]MH_SAM_APDU [15:08: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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 1C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 BF 00 00 35 04 06 00 32 [15:08:53]Write to MH i2c: E2 02 01 C1 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 1C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 BF 00 00 35 04 06 00 32 00 00 5A [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 C1 1E 00 90 00 53 [15:08:53]RAPDU: 90 00 [15:08:53]wFMCommunicate OK [15:08:53]wFMCommunicate request_size=10 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 0D 02 02 05 9F 75 09 FB 5F [15:08:53]Write to MH i2c: E2 0D 00 C2 1E 80 0D 02 02 05 00 9F 75 09 FB 5F 00 00 DB [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 03 00 C2 1E 00 90 00 54 [15:08:53]RAPDU: 90 00 [15:08:53]wFMCommunicate OK [15:08:53]wFMCommunicate request_size=4 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 0D 03 02 [15:08:53]Write to MH i2c: E2 08 00 C3 1E 80 0D 03 02 00 00 00 00 5C [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:53]Read from MH i2c: E2 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 0B 00 [15:08:53]MH_I2C_Read... [15:08:53]Read from MH i2c: E2 0B 00 C3 1E 00 4A F8 5E 2A 00 17 8F 6F 90 00 3C [15:08:53]RAPDU: 4A F8 5E 2A 00 17 8F 6F 90 00 [15:08:53]wFMCommunicate OK [15:08:53]SAM_PROTO_SignData done [15:08:53]FM_MakeSignedData done [15:08:53]CreateOFDProtocolMessage [15:08:53]wFMCommunicate request_size=4 [15:08:53]MH_SAM_APDU [15:08:53]CAPDU: 80 11 00 00 [15:08:53]Write to MH i2c: E2 08 00 C4 1E 80 11 00 00 00 00 00 00 5C [15:08:53]Write i2c OK [15:08:53]MH_I2C_Read... [15:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:54]Read from MH i2c: E2 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 17 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: E2 17 00 C4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A9 [15:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:08:54]wFMCommunicate OK [15:08:54]CreateOFDProtocolMessage done [15:08:54]OFDSenderStorePacket 48920 [15:08:54]StoreOFDPacket docnum=48920 [15:08:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5C 84 07 01 04 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 1C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 BF 00 00 35 04 06 00 32 9F 75 09 FB 5F 4A F8 5E 2A 00 17 8F 6F [15:08:54]CheckFolder [15:08:54]dirname=/storage/ofd_packets [15:08:54]CheckFolder done [15:08:54]ProducePacketName [15:08:54]name=ofd_packets/00048920 [15:08:54]NVStorageSaveData ofd_packets/00048920 [15:08:54]File name is /storage/ofd_packets/00048920 [15:08:54]Write 301 bytes [15:08:54]NVStorageSaveData done [15:08:54]OFDSenderStorePacket done [15:08:54]KKMCreateOFDPacket done [15:08:54]NVStorageSaveData kkm_last_timestamp [15:08:54]File name is /storage/kkm_last_timestamp [15:08:54]Write 4 bytes [15:08:54]NVStorageSaveData done [15:08:54]ExternCall_PrintAddStr [15:08:54]wPrintStart [15:08:54]Write to MH i2c: 01 00 00 C5 1E E3 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 07 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 07 00 C5 1E 00 00 00 00 00 FF 0F F8 [15:08:54]RasterBufferAndPrint [15:08:54]line Счет N : (1)216018 [15:08:54]line ИНН: 02508201610067 [15:08:54]line Контрольно-Кассовый Чек [15:08:54]line ПРОДАЖА [15:08:54]line ТРК (МРК, ГНК) : 22 [15:08:54]line Товар: 2710124130 [15:08:54]line Аи-92-К-5 [15:08:54]line 9.960 * 60.30 [15:08:54]line = 600.59 [15:08:54]line НДС 12% НСП 1% [15:08:54]line > о реализуемом товаре [15:08:54]line ОКРУГЛЕНИЕ: -0.59 [15:08:54]line ИТОГО: 600.00 [15:08:54]line Внесено: 600.00 [15:08:54]line СДАЧА: 0.00 [15:08:54]line НСП 1% : 5.31 [15:08:54]line НДС 12% : 63.78 [15:08:54]line Наличными: 600.00 [15:08:54]line Безнал.: 0.00 [15:08:54]line Место: АЗС № 102 "Партнер Нефть" [15:08:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:08:54]line СНО: Общий режим [15:08:54]line Чек 100 27.01.2024 15:08 [15:08:54]line Смена: 243 ФФД: 1.0 [15:08:54]line ЗНМ: 0300000040 [15:08:54]line РНМ: 0000000000092723 [15:08:54]line Версия ККМ: 001 [15:08:54]line ФМ: 0000000000875060 [15:08:54]line ФД: 48920 [15:08:54]line ФПД: 55660444777311 [15:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T150856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48920&fm=55660444777311&tin=02508201610067®Number=0000000000092723&sum=60000 [15:08:54]OFD Sender: Processing packet 48920 [packets to send 12, broken 11] [15:08:54]ProducePacketName [15:08:54]name=ofd_packets/00048920 [15:08:54]OFD Sender: To server: pG, [15:08:54]CommunicateWithHost lk.salyk.kg:30040 [15:08:54]ConnectInit lk.salyk.kg [15:08:54]written 0, free lines is 4095 [15:08:54]Connected sock=10 [15:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5C 84 07 01 04 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 88 1C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 BF 00 00 35 04 06 00 32 9F 75 09 FB 5F 4A F8 5E 2A 00 17 8F 6F [15:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 82 09 47 00 C7 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 18 BF 00 00 F4 03 04 00 86 C8 B4 65 B6 04 01 00 00 D2 2C D3 4A 85 B4 DB AF [15:08:54]CommunicateWithHost err = 0 [15:08:54]CheckOFDResponse [15:08:54]1017 (14) - 77093643461234 [15:08:54]1041 (16) - 0000000000875060 [15:08:54]1040 (4) - 48920 [15:08:54]1012 (4) - 27.01.2024 09:10 [15:08:54]1206 (1) - 0 [15:08:54]OFD Sender: Remove packet 48920 [15:08:54]ProducePacketName [15:08:54]name=ofd_packets/00048920 [15:08:54]NVStorageDeleteData [15:08:54]Write to MH i2c: 01 00 00 F0 1E 0E [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 07 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: 01 07 00 F0 1E 00 00 00 00 00 EF 0C 10 [15:08:54]RasterBufferAndPrint [15:08:54]line [15:08:54]line [15:08:54]line [15:08:54]line [15:08:54]line [15:08:54]written 0, free lines is 3317 [15:08:54]MH_Cut [15:08:54]Write to MH i2c: D1 01 00 F7 1E 01 E7 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: D1 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: D1 01 00 [15:08:54]MH_I2C_Read... [15:08:54]Read from MH i2c: D1 01 00 F7 1E 00 E6 [15:08:54]Write to MH i2c: 01 00 00 F8 1E 16 [15:08:54]Write i2c OK [15:08:54]MH_I2C_Read... [15:08:55]OFD Sender: No OFD packet to send [15:08:55]*** Cut start [15:08:55]*** Partial cut [15:08:55]*** CUTSNS_PIN = 1 [15:08:55]*** CUTSNS_PIN = 0 [15:08:55]*** Brake cut motor [15:08:56]Read from MH i2c: 01 [15:08:56]MH_I2C_Read... [15:08:56]*** Stop cut motor [15:08:56]*** Cut end [15:08:56]Read from MH i2c: 01 07 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: 01 07 00 F8 1E 00 00 00 00 00 FF 0F 2B [15:08:56]process_action close_receipt done [15:08:56]requested_data is exist [15:08:56]produce_requested_data [15:08:56]requested_item fm.sn is exist - process it [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 11 00 00 [15:08:56]Write to MH i2c: E2 08 00 F9 1E 80 11 00 00 00 00 00 00 91 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 17 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 17 00 F9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DE [15:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:08:56]wFMCommunicate OK [15:08:56]requested_item fd.num is exist - process it [15:08:56]SAM_PROTO_GetFieldsCounters [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 13 00 00 [15:08:56]Write to MH i2c: E2 08 00 FA 1E 80 13 00 00 00 00 00 00 94 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 62 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 62 00 FA 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 18 BF 00 00 0E 04 04 00 F3 00 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 A3 [15:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 18 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_GetFieldsCounters done [15:08:56]requested_item shift.num is exist - process it [15:08:56]requested_item shift.opened is exist - process it [15:08:56]req_shift_opened [15:08:56]FM_GetShiftState [15:08:56]SAM_PROTO_GetShiftState [15:08:56]wFMCommunicate request_size=4 [15:08:56]MH_SAM_APDU [15:08:56]CAPDU: 80 13 01 00 [15:08:56]Write to MH i2c: E2 08 00 FB 1E 80 13 01 00 00 00 00 00 96 [15:08:56]Write i2c OK [15:08:56]MH_I2C_Read... [15:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:56]Read from MH i2c: E2 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0E 00 [15:08:56]MH_I2C_Read... [15:08:56]Read from MH i2c: E2 0E 00 FB 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2D [15:08:56]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:08:56]wFMCommunicate OK [15:08:56]SAM_PROTO_GetShiftState done [15:08:56]FM_GetShiftState done [15:08:56]req_shift_opened done [15:08:56]requested_item shift.open_date is exist - process it [15:08:56]req_shift_open_date [15:08:56]req_shift_open_date done [15:08:56]produce_requested_data done [15:08:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48920,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:08:56]process_action_free close_receipt [15:08:56]json_value_free [15:08:56]json_value_free done [15:08:56]process_json_proto returns [15:08:56]Send response to host [15:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48920,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:08:56]free response buf [15:08:56]execute_script done [15:08:56]execute_script returns [15:08:56]free content buf [15:08:56]Sock 7.Close socket [15:08:56]Sock 7.Thread stoped [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:04]accept exits with 9 [15:11:04]New connection [15:11:04]New thread 3066670436 created [15:11:04]Thread 3066813796 joined [15:11:04]Waiting for new connection... [15:11:04] Sock 9.Parse request [15:11:04]Sock 9.Check first char [15:11:04]Sock 9.First char is OK [15:11:04]request: POST /json_proto HTTP/1.0 [15:11:04]Method: POST [15:11:04]URL: /json_proto [15:11:04]Method is POST - this is cgi request [15:11:04]url: /json_proto [15:11:04]query_string will be loaded in cgi processing [15:11:04]execute_cgi json_proto POST (null) [15:11:04]execute_cgi path=json_proto method=POST [15:11:04]POST find Content-Length [15:11:04]Host: 172.17.56.67:8080 [15:11:04]Content-Length: 677 [15:11:04]Content-Type: application/json [15:11:04] [15:11:04]POST finish read [15:11:04]Found Content-Length = 677 [15:11:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:04]execute_script... [15:11: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)216019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:04]POST & json_proto [15:11:04]process_json_proto [15:11:04]json parsed OK: [15:11:04]protocol is kg_v1.0 [15:11:04]action value=close_receipt [15:11:04]process_action close_receipt [15:11:04]cmd_close_receipt [15:11:04]MH_GetDate [15:11:04]Write to MH i2c: F0 00 00 FC 1E 09 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: F0 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: F0 09 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: F0 09 00 FC 1E 00 0C 1D B5 65 26 5D 9E 65 DB [15:11:04]GetLastDocTimeStamp 1706368136 [15:11:04]current date 1706368268 [15:11:04]FM_GetShiftState [15:11:04]SAM_PROTO_GetShiftState [15:11:04]wFMCommunicate request_size=4 [15:11:04]MH_SAM_APDU [15:11:04]CAPDU: 80 13 01 00 [15:11:04]Write to MH i2c: E2 08 00 FD 1E 80 13 01 00 00 00 00 00 98 [15:11:04]Write i2c OK [15:11:04]MH_I2C_Read... [15:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:04]Read from MH i2c: E2 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 0E 00 [15:11:04]MH_I2C_Read... [15:11:04]Read from MH i2c: E2 0E 00 FD 1E 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 2F [15:11:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:11:04]wFMCommunicate OK [15:11:04]SAM_PROTO_GetShiftState done [15:11:04]FM_GetShiftState done [15:11:04]opened in 1706313770 [15:11:04]opened+sec_in_day 1706400170 [15:11:04]quantity*price = 20019 [15:11:04]sum+1 = 20021 [15:11:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 101 27.01.2024 15:11 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48921 ФПД: 112806067556118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151108&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48921&fm=112806067556118&tin=02508201610067®Number=0000000000092723&sum=20000 [15:11:05]StoreToDocumentArchive [15:11:05]shift 243 fd 48921 [15:11:05]save to /storage/0243/doc_00048921 [15:11:05]save last doc name /storage/0243/doc_00048921 to /storage/kkm_last_doc_name [15:11:05]save OK [15:11:05]Clear old archive folders... [15:11:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:05]tlvbuf is 011B4150 [15:11:05]SAM_PROTO_ClearQueue [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 09 00 00 [15:11:05]Write to MH i2c: E2 08 00 0A 1F 80 09 00 00 00 00 00 00 9B [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 03 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 03 00 0A 1F 00 90 00 9D [15:11:05]RAPDU: 90 00 [15:11:05]wFMCommunicate OK [15:11:05]SAM_PROTO_ClearQueue done [15:11:05]KKMCreateOFDPacket [15:11:05]OFDProtocolAddRootSTLVToBuf [15:11:05]FM_MakeSignedData [15:11:05]FM_MakeSignedData [15:11:05]SAM_PROTO_SignData [15:11:05]wFMCommunicate request_size=4 [15:11:05]MH_SAM_APDU [15:11:05]CAPDU: 80 0D 01 02 [15:11:05]Write to MH i2c: E2 08 00 0B 1F 80 0D 01 02 00 00 00 00 A3 [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:05]Read from MH i2c: E2 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 03 00 [15:11:05]MH_I2C_Read... [15:11:05]Read from MH i2c: E2 03 00 0B 1F 00 90 00 9E [15:11:05]RAPDU: 90 00 [15:11:05]wFMCommunicate OK [15:11:05]wFMCommunicate request_size=255 [15:11:05]MH_SAM_APDU [15:11: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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 BF 00 00 35 04 06 00 66 [15:11:05]Write to MH i2c: E2 02 01 0C 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 BF 00 00 35 04 06 00 66 00 00 8C [15:11:05]Write i2c OK [15:11:05]MH_I2C_Read... [15:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:06]Read from MH i2c: E2 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 03 00 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 03 00 0C 1F 00 90 00 9F [15:11:06]RAPDU: 90 00 [15:11:06]wFMCommunicate OK [15:11:06]wFMCommunicate request_size=10 [15:11:06]MH_SAM_APDU [15:11:06]CAPDU: 80 0D 02 02 05 98 B5 95 CF 16 [15:11:06]Write to MH i2c: E2 0D 00 0D 1F 80 0D 02 02 05 00 98 B5 95 CF 16 00 00 77 [15:11:06]Write i2c OK [15:11:06]MH_I2C_Read... [15:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:06]Read from MH i2c: E2 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 03 00 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 03 00 0D 1F 00 90 00 A0 [15:11:06]RAPDU: 90 00 [15:11:06]wFMCommunicate OK [15:11:06]wFMCommunicate request_size=4 [15:11:06]MH_SAM_APDU [15:11:06]CAPDU: 80 0D 03 02 [15:11:06]Write to MH i2c: E2 08 00 0E 1F 80 0D 03 02 00 00 00 00 A8 [15:11:06]Write i2c OK [15:11:06]MH_I2C_Read... [15:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:06]Read from MH i2c: E2 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 0B 00 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 0B 00 0E 1F 00 F7 94 D4 B2 E7 C7 A4 CE 90 00 DA [15:11:06]RAPDU: F7 94 D4 B2 E7 C7 A4 CE 90 00 [15:11:06]wFMCommunicate OK [15:11:06]SAM_PROTO_SignData done [15:11:06]FM_MakeSignedData done [15:11:06]CreateOFDProtocolMessage [15:11:06]wFMCommunicate request_size=4 [15:11:06]MH_SAM_APDU [15:11:06]CAPDU: 80 11 00 00 [15:11:06]Write to MH i2c: E2 08 00 0F 1F 80 11 00 00 00 00 00 00 A8 [15:11:06]Write i2c OK [15:11:06]MH_I2C_Read... [15:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:06]Read from MH i2c: E2 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 17 00 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: E2 17 00 0F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F5 [15:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:11:06]wFMCommunicate OK [15:11:06]CreateOFDProtocolMessage done [15:11:06]OFDSenderStorePacket 48921 [15:11:06]StoreOFDPacket docnum=48921 [15:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 22 39 07 01 D7 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 BF 00 00 35 04 06 00 66 98 B5 95 CF 16 F7 94 D4 B2 E7 C7 A4 CE [15:11:06]CheckFolder [15:11:06]dirname=/storage/ofd_packets [15:11:06]CheckFolder done [15:11:06]ProducePacketName [15:11:06]name=ofd_packets/00048921 [15:11:06]NVStorageSaveData ofd_packets/00048921 [15:11:06]File name is /storage/ofd_packets/00048921 [15:11:06]Write 301 bytes [15:11:06]NVStorageSaveData done [15:11:06]OFDSenderStorePacket done [15:11:06]KKMCreateOFDPacket done [15:11:06]NVStorageSaveData kkm_last_timestamp [15:11:06]File name is /storage/kkm_last_timestamp [15:11:06]Write 4 bytes [15:11:06]NVStorageSaveData done [15:11:06]ExternCall_PrintAddStr [15:11:06]wPrintStart [15:11:06]Write to MH i2c: 01 00 00 10 1F 2F [15:11:06]Write i2c OK [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: 01 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: 01 07 00 [15:11:06]MH_I2C_Read... [15:11:06]Read from MH i2c: 01 07 00 10 1F 00 00 00 00 00 FF 0F 44 [15:11:06]RasterBufferAndPrint [15:11:06]line Счет N : (1)216019 [15:11:06]line ИНН: 02508201610067 [15:11:06]line Контрольно-Кассовый Чек [15:11:06]line ПРОДАЖА [15:11:06]line ТРК (МРК, ГНК) : 22 [15:11:06]line Товар: 2710124130 [15:11:06]line Аи-92-К-5 [15:11:06]line 3.320 * 60.30 [15:11:06]line = 200.20 [15:11:06]line НДС 12% НСП 1% [15:11:06]line > о реализуемом товаре [15:11:06]line ОКРУГЛЕНИЕ: -0.20 [15:11:06]line ИТОГО: 200.00 [15:11:06]line Внесено: 200.00 [15:11:06]line СДАЧА: 0.00 [15:11:06]line НСП 1% : 1.77 [15:11:06]line НДС 12% : 21.26 [15:11:06]line Наличными: 200.00 [15:11:06]line Безнал.: 0.00 [15:11:06]line Место: АЗС № 102 "Партнер Нефть" [15:11:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:11:06]line СНО: Общий режим [15:11:06]line Чек 101 27.01.2024 15:11 [15:11:06]line Смена: 243 ФФД: 1.0 [15:11:06]line ЗНМ: 0300000040 [15:11:06]line РНМ: 0000000000092723 [15:11:06]line Версия ККМ: 001 [15:11:06]line ФМ: 0000000000875060 [15:11:06]line ФД: 48921 [15:11:06]line ФПД: 112806067556118 [15:11:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151108&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48921&fm=112806067556118&tin=02508201610067®Number=0000000000092723&sum=20000 [15:11:06]OFD Sender: Processing packet 48921 [packets to send 12, broken 11] [15:11:06]ProducePacketName [15:11:06]name=ofd_packets/00048921 [15:11:06]OFD Sender: To server: pG, [15:11:06]CommunicateWithHost lk.salyk.kg:30040 [15:11:06]ConnectInit lk.salyk.kg [15:11:06]written 0, free lines is 4095 [15:11:06]Connected sock=10 [15:11:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 22 39 07 01 D7 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 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 0C 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 19 BF 00 00 35 04 06 00 66 98 B5 95 CF 16 F7 94 D4 B2 E7 C7 A4 CE [15:11:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 45 FB 47 00 AA 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 35 30 36 30 10 04 04 00 19 BF 00 00 F4 03 04 00 0A C9 B4 65 B6 04 01 00 00 3D 15 41 4B 2E 8D 08 86 [15:11:06]CommunicateWithHost err = 0 [15:11:06]CheckOFDResponse [15:11:06]1017 (14) - 77093643461234 [15:11:06]1041 (16) - 0000000000875060 [15:11:06]1040 (4) - 48921 [15:11:06]1012 (4) - 27.01.2024 09:12 [15:11:06]1206 (1) - 0 [15:11:06]OFD Sender: Remove packet 48921 [15:11:06]ProducePacketName [15:11:06]name=ofd_packets/00048921 [15:11:06]NVStorageDeleteData [15:11:07]Write to MH i2c: 01 00 00 3B 1F 5A [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: 01 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: 01 07 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: 01 07 00 3B 1F 00 00 00 00 00 F0 0C 5D [15:11:07]RasterBufferAndPrint [15:11:07]line [15:11:07]line [15:11:07]line [15:11:07]line [15:11:07]line [15:11:07]written 0, free lines is 3318 [15:11:07]MH_Cut [15:11:07]Write to MH i2c: D1 01 00 42 1F 01 33 [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: D1 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: D1 01 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: D1 01 00 42 1F 00 32 [15:11:07]Write to MH i2c: 01 00 00 43 1F 62 [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]OFD Sender: No OFD packet to send [15:11:07]*** Cut start [15:11:07]*** Partial cut [15:11:07]*** CUTSNS_PIN = 1 [15:11:07]*** CUTSNS_PIN = 0 [15:11:08]*** Brake cut motor [15:11:08]Read from MH i2c: 01 [15:11:08]MH_I2C_Read... [15:11:08]*** Stop cut motor [15:11:08]*** Cut end [15:11:08]Read from MH i2c: 01 07 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: 01 07 00 43 1F 00 00 00 00 00 FF 0F 77 [15:11:08]process_action close_receipt done [15:11:08]requested_data is exist [15:11:08]produce_requested_data [15:11:08]requested_item fm.sn is exist - process it [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 11 00 00 [15:11:08]Write to MH i2c: E2 08 00 44 1F 80 11 00 00 00 00 00 00 DD [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 17 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 17 00 44 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2A [15:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:11:08]wFMCommunicate OK [15:11:08]requested_item fd.num is exist - process it [15:11:08]SAM_PROTO_GetFieldsCounters [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 13 00 00 [15:11:08]Write to MH i2c: E2 08 00 45 1F 80 13 00 00 00 00 00 00 E0 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 62 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 62 00 45 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 19 BF 00 00 0E 04 04 00 F3 00 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 F3 [15:11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 19 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_GetFieldsCounters done [15:11:08]requested_item shift.num is exist - process it [15:11:08]requested_item shift.opened is exist - process it [15:11:08]req_shift_opened [15:11:08]FM_GetShiftState [15:11:08]SAM_PROTO_GetShiftState [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 13 01 00 [15:11:08]Write to MH i2c: E2 08 00 46 1F 80 13 01 00 00 00 00 00 E2 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0E 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0E 00 46 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 79 [15:11:08]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_GetShiftState done [15:11:08]FM_GetShiftState done [15:11:08]req_shift_opened done [15:11:08]requested_item shift.open_date is exist - process it [15:11:08]req_shift_open_date [15:11:08]req_shift_open_date done [15:11:08]produce_requested_data done [15:11:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48921,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:11:08]process_action_free close_receipt [15:11:08]json_value_free [15:11:08]json_value_free done [15:11:08]process_json_proto returns [15:11:08]Send response to host [15:11:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48921,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:11:08]free response buf [15:11:08]execute_script done [15:11:08]execute_script returns [15:11:08]free content buf [15:11:08]Sock 9.Close socket [15:11:08]Sock 9.Thread stoped [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:14:59]accept exits with 7 [15:14:59]New connection [15:14:59]New thread 3066813796 created [15:14:59]Thread 3066670436 joined [15:14:59]Waiting for new connection... [15:14:59] Sock 7.Parse request [15:14:59]Sock 7.Check first char [15:14:59]Sock 7.First char is OK [15:14:59]request: POST /json_proto HTTP/1.0 [15:14:59]Method: POST [15:14:59]URL: /json_proto [15:14:59]Method is POST - this is cgi request [15:14:59]url: /json_proto [15:14:59]query_string will be loaded in cgi processing [15:14:59]execute_cgi json_proto POST (null) [15:14:59]execute_cgi path=json_proto method=POST [15:14:59]POST find Content-Length [15:14:59]Host: 172.17.56.67:8080 [15:14:59]Content-Length: 677 [15:14:59]Content-Type: application/json [15:14:59] [15:14:59]POST finish read [15:14:59]Found Content-Length = 677 [15:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:59]execute_script... [15:14: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)216020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:59]POST & json_proto [15:14:59]process_json_proto [15:14:59]json parsed OK: [15:14:59]protocol is kg_v1.0 [15:14:59]action value=close_receipt [15:14:59]process_action close_receipt [15:14:59]cmd_close_receipt [15:14:59]MH_GetDate [15:14:59]Write to MH i2c: F0 00 00 47 1F 55 [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 09 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: F0 09 00 47 1F 00 F7 1D B5 65 26 5D 9E 65 12 [15:14:59]GetLastDocTimeStamp 1706368268 [15:14:59]current date 1706368503 [15:14:59]FM_GetShiftState [15:14:59]SAM_PROTO_GetShiftState [15:14:59]wFMCommunicate request_size=4 [15:14:59]MH_SAM_APDU [15:14:59]CAPDU: 80 13 01 00 [15:14:59]Write to MH i2c: E2 08 00 48 1F 80 13 01 00 00 00 00 00 E4 [15:14:59]Write i2c OK [15:14:59]MH_I2C_Read... [15:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:59]Read from MH i2c: E2 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: E2 0E 00 [15:14:59]MH_I2C_Read... [15:14:59]Read from MH i2c: E2 0E 00 48 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 7B [15:14:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:14:59]wFMCommunicate OK [15:14:59]SAM_PROTO_GetShiftState done [15:14:59]FM_GetShiftState done [15:14:59]opened in 1706313770 [15:14:59]opened+sec_in_day 1706400170 [15:14:59]quantity*price = 60058 [15:14:59]sum+1 = 60060 [15:14:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 102 27.01.2024 15:15 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48922 ФПД: 192881194004098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151503&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48922&fm=192881194004098&tin=02508201610067®Number=0000000000092723&sum=60000 [15:15:00]StoreToDocumentArchive [15:15:00]shift 243 fd 48922 [15:15:00]save to /storage/0243/doc_00048922 [15:15:00]save last doc name /storage/0243/doc_00048922 to /storage/kkm_last_doc_name [15:15:00]save OK [15:15:00]Clear old archive folders... [15:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:00]tlvbuf is 011B42B0 [15:15:00]SAM_PROTO_ClearQueue [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 09 00 00 [15:15:00]Write to MH i2c: E2 08 00 55 1F 80 09 00 00 00 00 00 00 E6 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 55 1F 00 90 00 E8 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]SAM_PROTO_ClearQueue done [15:15:00]KKMCreateOFDPacket [15:15:00]OFDProtocolAddRootSTLVToBuf [15:15:00]FM_MakeSignedData [15:15:00]FM_MakeSignedData [15:15:00]SAM_PROTO_SignData [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 01 02 [15:15:00]Write to MH i2c: E2 08 00 56 1F 80 0D 01 02 00 00 00 00 EE [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 56 1F 00 90 00 E9 [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=255 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F7 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A BF 00 00 35 04 06 00 AF [15:15:00]Write to MH i2c: E2 02 01 57 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 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F7 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A BF 00 00 35 04 06 00 AF 00 00 E2 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 57 1F 00 90 00 EA [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=10 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 02 02 05 6C A7 0D 6E 82 [15:15:00]Write to MH i2c: E2 0D 00 58 1F 80 0D 02 02 05 00 6C A7 0D 6E 82 00 00 0B [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 03 00 58 1F 00 90 00 EB [15:15:00]RAPDU: 90 00 [15:15:00]wFMCommunicate OK [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 0D 03 02 [15:15:00]Write to MH i2c: E2 08 00 59 1F 80 0D 03 02 00 00 00 00 F3 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:00]Read from MH i2c: E2 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 0B 00 [15:15:00]MH_I2C_Read... [15:15:00]Read from MH i2c: E2 0B 00 59 1F 00 59 D4 96 3B 1E 91 63 7B 90 00 7F [15:15:00]RAPDU: 59 D4 96 3B 1E 91 63 7B 90 00 [15:15:00]wFMCommunicate OK [15:15:00]SAM_PROTO_SignData done [15:15:00]FM_MakeSignedData done [15:15:00]CreateOFDProtocolMessage [15:15:00]wFMCommunicate request_size=4 [15:15:00]MH_SAM_APDU [15:15:00]CAPDU: 80 11 00 00 [15:15:00]Write to MH i2c: E2 08 00 5A 1F 80 11 00 00 00 00 00 00 F3 [15:15:00]Write i2c OK [15:15:00]MH_I2C_Read... [15:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:01]Read from MH i2c: E2 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: E2 17 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: E2 17 00 5A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 40 [15:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:15:01]wFMCommunicate OK [15:15:01]CreateOFDProtocolMessage done [15:15:01]OFDSenderStorePacket 48922 [15:15:01]StoreOFDPacket docnum=48922 [15:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7F CD 07 01 1E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F7 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A BF 00 00 35 04 06 00 AF 6C A7 0D 6E 82 59 D4 96 3B 1E 91 63 7B [15:15:01]CheckFolder [15:15:01]dirname=/storage/ofd_packets [15:15:01]CheckFolder done [15:15:01]ProducePacketName [15:15:01]name=ofd_packets/00048922 [15:15:01]NVStorageSaveData ofd_packets/00048922 [15:15:01]File name is /storage/ofd_packets/00048922 [15:15:01]Write 301 bytes [15:15:01]NVStorageSaveData done [15:15:01]OFDSenderStorePacket done [15:15:01]KKMCreateOFDPacket done [15:15:01]NVStorageSaveData kkm_last_timestamp [15:15:01]File name is /storage/kkm_last_timestamp [15:15:01]Write 4 bytes [15:15:01]NVStorageSaveData done [15:15:01]ExternCall_PrintAddStr [15:15:01]wPrintStart [15:15:01]Write to MH i2c: 01 00 00 5B 1F 7A [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 FF 0F 8F [15:15:01]RasterBufferAndPrint [15:15:01]line Счет N : (1)216020 [15:15:01]line ИНН: 02508201610067 [15:15:01]line Контрольно-Кассовый Чек [15:15:01]line ПРОДАЖА [15:15:01]line ТРК (МРК, ГНК) : 22 [15:15:01]line Товар: 2710124130 [15:15:01]line Аи-92-К-5 [15:15:01]line 9.960 * 60.30 [15:15:01]line = 600.59 [15:15:01]line НДС 12% НСП 1% [15:15:01]line > о реализуемом товаре [15:15:01]line ОКРУГЛЕНИЕ: -0.59 [15:15:01]line ИТОГО: 600.00 [15:15:01]line Внесено: 600.00 [15:15:01]line СДАЧА: 0.00 [15:15:01]line НСП 1% : 5.31 [15:15:01]line НДС 12% : 63.78 [15:15:01]line Наличными: 600.00 [15:15:01]line Безнал.: 0.00 [15:15:01]line Место: АЗС № 102 "Партнер Нефть" [15:15:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:15:01]line СНО: Общий режим [15:15:01]line Чек 102 27.01.2024 15:15 [15:15:01]line Смена: 243 ФФД: 1.0 [15:15:01]line ЗНМ: 0300000040 [15:15:01]line РНМ: 0000000000092723 [15:15:01]line Версия ККМ: 001 [15:15:01]line ФМ: 0000000000875060 [15:15:01]line ФД: 48922 [15:15:01]line ФПД: 192881194004098 [15:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151503&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48922&fm=192881194004098&tin=02508201610067®Number=0000000000092723&sum=60000 [15:15:01]OFD Sender: Processing packet 48922 [packets to send 12, broken 11] [15:15:01]ProducePacketName [15:15:01]name=ofd_packets/00048922 [15:15:01]OFD Sender: To server: pG, [15:15:01]CommunicateWithHost lk.salyk.kg:30040 [15:15:01]ConnectInit lk.salyk.kg [15:15:01]written 0, free lines is 4095 [15:15:01]Connected sock=10 [15:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7F CD 07 01 1E C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 F7 1D B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A BF 00 00 35 04 06 00 AF 6C A7 0D 6E 82 59 D4 96 3B 1E 91 63 7B [15:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 15 32 47 00 DD 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1A BF 00 00 F4 03 04 00 F5 C9 B4 65 B6 04 01 00 00 0D 53 79 5D BE 37 1A EE [15:15:01]CommunicateWithHost err = 0 [15:15:01]CheckOFDResponse [15:15:01]1017 (14) - 77093643461234 [15:15:01]1041 (16) - 0000000000875060 [15:15:01]1040 (4) - 48922 [15:15:01]1012 (4) - 27.01.2024 09:16 [15:15:01]1206 (1) - 0 [15:15:01]OFD Sender: Remove packet 48922 [15:15:01]ProducePacketName [15:15:01]name=ofd_packets/00048922 [15:15:01]NVStorageDeleteData [15:15:01]Write to MH i2c: 01 00 00 86 1F A5 [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: 01 07 00 86 1F 00 00 00 00 00 F1 0C A9 [15:15:01]RasterBufferAndPrint [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]line [15:15:01]written 0, free lines is 3319 [15:15:01]MH_Cut [15:15:01]Write to MH i2c: D1 01 00 8D 1F 01 7E [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 01 00 [15:15:01]MH_I2C_Read... [15:15:01]Read from MH i2c: D1 01 00 8D 1F 00 7D [15:15:01]Write to MH i2c: 01 00 00 8E 1F AD [15:15:01]Write i2c OK [15:15:01]MH_I2C_Read... [15:15:02]OFD Sender: No OFD packet to send [15:15:02]*** Cut start [15:15:02]*** Partial cut [15:15:02]*** CUTSNS_PIN = 1 [15:15:02]*** CUTSNS_PIN = 0 [15:15:02]*** Brake cut motor [15:15:03]Read from MH i2c: 01 [15:15:03]MH_I2C_Read... [15:15:03]*** Stop cut motor [15:15:03]*** Cut end [15:15:03]Read from MH i2c: 01 07 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: 01 07 00 8E 1F 00 00 00 00 00 FF 0F C2 [15:15:03]process_action close_receipt done [15:15:03]requested_data is exist [15:15:03]produce_requested_data [15:15:03]requested_item fm.sn is exist - process it [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 11 00 00 [15:15:03]Write to MH i2c: E2 08 00 8F 1F 80 11 00 00 00 00 00 00 28 [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 17 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 17 00 8F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 75 [15:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:15:03]wFMCommunicate OK [15:15:03]requested_item fd.num is exist - process it [15:15:03]SAM_PROTO_GetFieldsCounters [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 13 00 00 [15:15:03]Write to MH i2c: E2 08 00 90 1F 80 13 00 00 00 00 00 00 2B [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 62 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 62 00 90 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1A BF 00 00 0E 04 04 00 F3 00 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 42 [15:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1A BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:03]wFMCommunicate OK [15:15:03]SAM_PROTO_GetFieldsCounters done [15:15:03]requested_item shift.num is exist - process it [15:15:03]requested_item shift.opened is exist - process it [15:15:03]req_shift_opened [15:15:03]FM_GetShiftState [15:15:03]SAM_PROTO_GetShiftState [15:15:03]wFMCommunicate request_size=4 [15:15:03]MH_SAM_APDU [15:15:03]CAPDU: 80 13 01 00 [15:15:03]Write to MH i2c: E2 08 00 91 1F 80 13 01 00 00 00 00 00 2D [15:15:03]Write i2c OK [15:15:03]MH_I2C_Read... [15:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:03]Read from MH i2c: E2 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 [15:15:03]MH_I2C_Read... [15:15:03]Read from MH i2c: E2 0E 00 91 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C4 [15:15:03]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:15:03]wFMCommunicate OK [15:15:03]SAM_PROTO_GetShiftState done [15:15:03]FM_GetShiftState done [15:15:03]req_shift_opened done [15:15:03]requested_item shift.open_date is exist - process it [15:15:03]req_shift_open_date [15:15:03]req_shift_open_date done [15:15:03]produce_requested_data done [15:15:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48922,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:15:03]process_action_free close_receipt [15:15:03]json_value_free [15:15:03]json_value_free done [15:15:03]process_json_proto returns [15:15:03]Send response to host [15:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48922,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:15:03]free response buf [15:15:03]execute_script done [15:15:03]execute_script returns [15:15:03]free content buf [15:15:03]Sock 7.Close socket [15:15:03]Sock 7.Thread stoped [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:16:57]accept exits with 9 [15:16:57]New connection [15:16:57]New thread 3066670436 created [15:16:57]Thread 3066813796 joined [15:16:57]Waiting for new connection... [15:16:57] Sock 9.Parse request [15:16:57]Sock 9.Check first char [15:16:57]Sock 9.First char is OK [15:16:57]request: POST /json_proto HTTP/1.0 [15:16:57]Method: POST [15:16:57]URL: /json_proto [15:16:57]Method is POST - this is cgi request [15:16:57]url: /json_proto [15:16:57]query_string will be loaded in cgi processing [15:16:57]execute_cgi json_proto POST (null) [15:16:57]execute_cgi path=json_proto method=POST [15:16:57]POST find Content-Length [15:16:57]Host: 172.17.56.67:8080 [15:16:57]Content-Length: 682 [15:16:57]Content-Type: application/json [15:16:57] [15:16:57]POST finish read [15:16:57]Found Content-Length = 682 [15:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:57]execute_script... [15:16: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)216021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:57]POST & json_proto [15:16:57]process_json_proto [15:16:57]json parsed OK: [15:16:57]protocol is kg_v1.0 [15:16:57]action value=close_receipt [15:16:57]process_action close_receipt [15:16:57]cmd_close_receipt [15:16:57]MH_GetDate [15:16:57]Write to MH i2c: F0 00 00 92 1F A0 [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 09 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: F0 09 00 92 1F 00 6D 1E B5 65 26 5D 9E 65 D4 [15:16:57]GetLastDocTimeStamp 1706368503 [15:16:57]current date 1706368621 [15:16:57]FM_GetShiftState [15:16:57]SAM_PROTO_GetShiftState [15:16:57]wFMCommunicate request_size=4 [15:16:57]MH_SAM_APDU [15:16:57]CAPDU: 80 13 01 00 [15:16:57]Write to MH i2c: E2 08 00 93 1F 80 13 01 00 00 00 00 00 2F [15:16:57]Write i2c OK [15:16:57]MH_I2C_Read... [15:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:57]Read from MH i2c: E2 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 [15:16:57]MH_I2C_Read... [15:16:57]Read from MH i2c: E2 0E 00 93 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 C6 [15:16:57]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:16:57]wFMCommunicate OK [15:16:57]SAM_PROTO_GetShiftState done [15:16:57]FM_GetShiftState done [15:16:57]opened in 1706313770 [15:16:57]opened+sec_in_day 1706400170 [15:16:57]quantity*price = 100037 [15:16:57]sum+1 = 100039 [15:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 103 27.01.2024 15:17 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48923 ФПД: 65985634463383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151701&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48923&fm=65985634463383&tin=02508201610067®Number=0000000000092723&sum=100000 [15:16:58]StoreToDocumentArchive [15:16:58]shift 243 fd 48923 [15:16:58]save to /storage/0243/doc_00048923 [15:16:58]save last doc name /storage/0243/doc_00048923 to /storage/kkm_last_doc_name [15:16:58]save OK [15:16:58]Clear old archive folders... [15:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:58]tlvbuf is 011B4200 [15:16:58]SAM_PROTO_ClearQueue [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 09 00 00 [15:16:58]Write to MH i2c: E2 08 00 A0 1F 80 09 00 00 00 00 00 00 31 [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 03 00 A0 1F 00 90 00 33 [15:16:58]RAPDU: 90 00 [15:16:58]wFMCommunicate OK [15:16:58]SAM_PROTO_ClearQueue done [15:16:58]KKMCreateOFDPacket [15:16:58]OFDProtocolAddRootSTLVToBuf [15:16:58]FM_MakeSignedData [15:16:58]FM_MakeSignedData [15:16:58]SAM_PROTO_SignData [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 0D 01 02 [15:16:58]Write to MH i2c: E2 08 00 A1 1F 80 0D 01 02 00 00 00 00 39 [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 A1 1F 00 90 00 34 [15:16:59]RAPDU: 90 00 [15:16:59]wFMCommunicate OK [15:16:59]wFMCommunicate request_size=255 [15:16:59]MH_SAM_APDU [15:16: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 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 6D 1E B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B BF 00 00 35 04 06 00 3C [15:16:59]Write to MH i2c: E2 02 01 A2 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 6D 1E B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B BF 00 00 35 04 06 00 3C 00 00 BE [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 A2 1F 00 90 00 35 [15:16:59]RAPDU: 90 00 [15:16:59]wFMCommunicate OK [15:16:59]wFMCommunicate request_size=10 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 0D 02 02 05 03 7A 4D 6E 97 [15:16:59]Write to MH i2c: E2 0D 00 A3 1F 80 0D 02 02 05 00 03 7A 4D 6E 97 00 00 15 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 03 00 A3 1F 00 90 00 36 [15:16:59]RAPDU: 90 00 [15:16:59]wFMCommunicate OK [15:16:59]wFMCommunicate request_size=4 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 0D 03 02 [15:16:59]Write to MH i2c: E2 08 00 A4 1F 80 0D 03 02 00 00 00 00 3E [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 0B 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 0B 00 A4 1F 00 C3 C0 25 E4 BA 48 D4 AF 90 00 50 [15:16:59]RAPDU: C3 C0 25 E4 BA 48 D4 AF 90 00 [15:16:59]wFMCommunicate OK [15:16:59]SAM_PROTO_SignData done [15:16:59]FM_MakeSignedData done [15:16:59]CreateOFDProtocolMessage [15:16:59]wFMCommunicate request_size=4 [15:16:59]MH_SAM_APDU [15:16:59]CAPDU: 80 11 00 00 [15:16:59]Write to MH i2c: E2 08 00 A5 1F 80 11 00 00 00 00 00 00 3E [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:59]Read from MH i2c: E2 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 17 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: E2 17 00 A5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8B [15:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:16:59]wFMCommunicate OK [15:16:59]CreateOFDProtocolMessage done [15:16:59]OFDSenderStorePacket 48923 [15:16:59]StoreOFDPacket docnum=48923 [15:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C7 43 07 01 8C 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 6D 1E B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B BF 00 00 35 04 06 00 3C 03 7A 4D 6E 97 C3 C0 25 E4 BA 48 D4 AF [15:16:59]CheckFolder [15:16:59]dirname=/storage/ofd_packets [15:16:59]CheckFolder done [15:16:59]ProducePacketName [15:16:59]name=ofd_packets/00048923 [15:16:59]NVStorageSaveData ofd_packets/00048923 [15:16:59]File name is /storage/ofd_packets/00048923 [15:16:59]Write 301 bytes [15:16:59]NVStorageSaveData done [15:16:59]OFDSenderStorePacket done [15:16:59]KKMCreateOFDPacket done [15:16:59]NVStorageSaveData kkm_last_timestamp [15:16:59]File name is /storage/kkm_last_timestamp [15:16:59]Write 4 bytes [15:16:59]NVStorageSaveData done [15:16:59]ExternCall_PrintAddStr [15:16:59]wPrintStart [15:16:59]Write to MH i2c: 01 00 00 A6 1F C5 [15:16:59]Write i2c OK [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 07 00 [15:16:59]MH_I2C_Read... [15:16:59]Read from MH i2c: 01 07 00 A6 1F 00 00 00 00 00 FF 0F DA [15:16:59]RasterBufferAndPrint [15:16:59]line Счет N : (1)216021 [15:16:59]line ИНН: 02508201610067 [15:16:59]line Контрольно-Кассовый Чек [15:16:59]line ПРОДАЖА [15:16:59]line ТРК (МРК, ГНК) : 22 [15:16:59]line Товар: 2710124130 [15:16:59]line Аи-92-К-5 [15:16:59]line 16.590 * 60.30 [15:16:59]line = 1000.38 [15:16:59]line НДС 12% НСП 1% [15:16:59]line > о реализуемом товаре [15:16:59]line ОКРУГЛЕНИЕ: -0.38 [15:16:59]line ИТОГО: 1000.00 [15:16:59]line Внесено: 1000.00 [15:16:59]line СДАЧА: 0.00 [15:16:59]line НСП 1% : 8.85 [15:16:59]line НДС 12% : 106.23 [15:16:59]line Наличными: 1000.00 [15:16:59]line Безнал.: 0.00 [15:16:59]line Место: АЗС № 102 "Партнер Нефть" [15:16:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:16:59]line СНО: Общий режим [15:16:59]line Чек 103 27.01.2024 15:17 [15:16:59]line Смена: 243 ФФД: 1.0 [15:16:59]line ЗНМ: 0300000040 [15:16:59]line РНМ: 0000000000092723 [15:16:59]line Версия ККМ: 001 [15:16:59]line ФМ: 0000000000875060 [15:16:59]line ФД: 48923 [15:16:59]line ФПД: 65985634463383 [15:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T151701&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48923&fm=65985634463383&tin=02508201610067®Number=0000000000092723&sum=100000 [15:16:59]OFD Sender: Processing packet 48923 [packets to send 12, broken 11] [15:16:59]ProducePacketName [15:16:59]name=ofd_packets/00048923 [15:16:59]OFD Sender: To server: pG, [15:16:59]CommunicateWithHost lk.salyk.kg:30040 [15:16:59]ConnectInit lk.salyk.kg [15:16:59]written 0, free lines is 4095 [15:16:59]Connected sock=10 [15:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C7 43 07 01 8C 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 6D 1E B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B BF 00 00 35 04 06 00 3C 03 7A 4D 6E 97 C3 C0 25 E4 BA 48 D4 AF [15:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 62 01 47 00 62 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1B BF 00 00 F4 03 04 00 6B CA B4 65 B6 04 01 00 00 85 1C DC D4 7D 34 85 72 [15:17:00]CommunicateWithHost err = 0 [15:17:00]CheckOFDResponse [15:17:00]1017 (14) - 77093643461234 [15:17:00]1041 (16) - 0000000000875060 [15:17:00]1040 (4) - 48923 [15:17:00]1012 (4) - 27.01.2024 09:18 [15:17:00]1206 (1) - 0 [15:17:00]OFD Sender: Remove packet 48923 [15:17:00]ProducePacketName [15:17:00]name=ofd_packets/00048923 [15:17:00]NVStorageDeleteData [15:17:00]Write to MH i2c: 01 00 00 D1 1F F0 [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 07 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: 01 07 00 D1 1F 00 00 00 00 00 EC 0C EF [15:17:00]RasterBufferAndPrint [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]line [15:17:00]written 0, free lines is 3315 [15:17:00]MH_Cut [15:17:00]Write to MH i2c: D1 01 00 D8 1F 01 C9 [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 01 00 [15:17:00]MH_I2C_Read... [15:17:00]Read from MH i2c: D1 01 00 D8 1F 00 C8 [15:17:00]Write to MH i2c: 01 00 00 D9 1F F8 [15:17:00]Write i2c OK [15:17:00]MH_I2C_Read... [15:17:00]OFD Sender: No OFD packet to send [15:17:00]*** Cut start [15:17:00]*** Partial cut [15:17:00]*** CUTSNS_PIN = 1 [15:17:00]*** CUTSNS_PIN = 0 [15:17:01]*** Brake cut motor [15:17:01]Read from MH i2c: 01 [15:17:01]MH_I2C_Read... [15:17:01]*** Stop cut motor [15:17:01]*** Cut end [15:17:01]Read from MH i2c: 01 07 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: 01 07 00 D9 1F 00 00 00 00 00 FF 0F 0D [15:17:01]process_action close_receipt done [15:17:01]requested_data is exist [15:17:01]produce_requested_data [15:17:01]requested_item fm.sn is exist - process it [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 11 00 00 [15:17:01]Write to MH i2c: E2 08 00 DA 1F 80 11 00 00 00 00 00 00 73 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 17 00 DA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C0 [15:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:17:01]wFMCommunicate OK [15:17:01]requested_item fd.num is exist - process it [15:17:01]SAM_PROTO_GetFieldsCounters [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 13 00 00 [15:17:01]Write to MH i2c: E2 08 00 DB 1F 80 13 00 00 00 00 00 00 76 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 62 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 62 00 DB 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1B BF 00 00 0E 04 04 00 F3 00 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 91 [15:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1B BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_GetFieldsCounters done [15:17:01]requested_item shift.num is exist - process it [15:17:01]requested_item shift.opened is exist - process it [15:17:01]req_shift_opened [15:17:01]FM_GetShiftState [15:17:01]SAM_PROTO_GetShiftState [15:17:01]wFMCommunicate request_size=4 [15:17:01]MH_SAM_APDU [15:17:01]CAPDU: 80 13 01 00 [15:17:01]Write to MH i2c: E2 08 00 DC 1F 80 13 01 00 00 00 00 00 78 [15:17:01]Write i2c OK [15:17:01]MH_I2C_Read... [15:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:01]Read from MH i2c: E2 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0E 00 [15:17:01]MH_I2C_Read... [15:17:01]Read from MH i2c: E2 0E 00 DC 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 0F [15:17:01]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [15:17:01]wFMCommunicate OK [15:17:01]SAM_PROTO_GetShiftState done [15:17:01]FM_GetShiftState done [15:17:01]req_shift_opened done [15:17:01]requested_item shift.open_date is exist - process it [15:17:01]req_shift_open_date [15:17:01]req_shift_open_date done [15:17:01]produce_requested_data done [15:17:01]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48923,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [15:17:01]process_action_free close_receipt [15:17:01]json_value_free [15:17:01]json_value_free done [15:17:01]process_json_proto returns [15:17:01]Send response to host [15:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48923,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [15:17:01]free response buf [15:17:01]execute_script done [15:17:01]execute_script returns [15:17:01]free content buf [15:17:01]Sock 9.Close socket [15:17:01]Sock 9.Thread stoped [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:55]accept exits with 7 [16:29:55]New connection [16:29:55]New thread 3066813796 created [16:29:55]Thread 3066670436 joined [16:29:55]Waiting for new connection... [16:29:55] Sock 7.Parse request [16:29:55]Sock 7.Check first char [16:29:55]Sock 7.First char is OK [16:29:55]request: POST /json_proto HTTP/1.0 [16:29:55]Method: POST [16:29:55]URL: /json_proto [16:29:55]Method is POST - this is cgi request [16:29:55]url: /json_proto [16:29:55]query_string will be loaded in cgi processing [16:29:55]execute_cgi json_proto POST (null) [16:29:55]execute_cgi path=json_proto method=POST [16:29:55]POST find Content-Length [16:29:55]Host: 172.17.56.67:8080 [16:29:55]Content-Length: 863 [16:29:55]Content-Type: application/json [16:29:55] [16:29:55]POST finish read [16:29:55]Found Content-Length = 863 [16:29:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:55]execute_script... [16:29: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)216022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041A\u044B\u0440\u0433\u044B\u0437\u043A\u043E\u043C\u043C\u0435\u0440\u0446\u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:55]POST & json_proto [16:29:55]process_json_proto [16:29:55]json parsed OK: [16:29:55]protocol is kg_v1.0 [16:29:55]action value=close_receipt [16:29:55]process_action close_receipt [16:29:55]cmd_close_receipt [16:29:55]MH_GetDate [16:29:55]Write to MH i2c: F0 00 00 DD 1F EB [16:29:55]Write i2c OK [16:29:55]MH_I2C_Read... [16:29:55]Read from MH i2c: F0 [16:29:55]MH_I2C_Read... [16:29:55]Read from MH i2c: F0 09 00 [16:29:55]MH_I2C_Read... [16:29:55]Read from MH i2c: F0 09 00 DD 1F 00 87 2F B5 65 26 5D 9E 65 4A [16:29:55]GetLastDocTimeStamp 1706368621 [16:29:55]current date 1706372999 [16:29:55]FM_GetShiftState [16:29:55]SAM_PROTO_GetShiftState [16:29:55]wFMCommunicate request_size=4 [16:29:55]MH_SAM_APDU [16:29:55]CAPDU: 80 13 01 00 [16:29:55]Write to MH i2c: E2 08 00 DE 1F 80 13 01 00 00 00 00 00 7A [16:29:55]Write i2c OK [16:29:55]MH_I2C_Read... [16:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:55]Read from MH i2c: E2 [16:29:55]MH_I2C_Read... [16:29:55]Read from MH i2c: E2 0E 00 [16:29:55]MH_I2C_Read... [16:29:55]Read from MH i2c: E2 0E 00 DE 1F 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 11 [16:29:55]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [16:29:55]wFMCommunicate OK [16:29:55]SAM_PROTO_GetShiftState done [16:29:55]FM_GetShiftState done [16:29:55]opened in 1706313770 [16:29:55]opened+sec_in_day 1706400170 [16:29:55]quantity*price = 50049 [16:29:55]sum+1 = 50050 [16:29:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.49 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.49 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 104 27.01.2024 16:29 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 Платежная система: Кыргызкоммерцбанк ФМ: 0000000000875060 ФД: 48924 ФПД: 155956831711111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T162959&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48924&fm=155956831711111&tin=02508201610067®Number=0000000000092723&sum=50049 [16:29:56]StoreToDocumentArchive [16:29:56]shift 243 fd 48924 [16:29:56]save to /storage/0243/doc_00048924 [16:29:56]save last doc name /storage/0243/doc_00048924 to /storage/kkm_last_doc_name [16:29:56]save OK [16:29:56]Clear old archive folders... [16:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:56]tlvbuf is 0134EF90 [16:29:56]SAM_PROTO_ClearQueue [16:29:56]wFMCommunicate request_size=4 [16:29:56]MH_SAM_APDU [16:29:56]CAPDU: 80 09 00 00 [16:29:56]Write to MH i2c: E2 08 00 EB 1F 80 09 00 00 00 00 00 00 7C [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 EB 1F 00 90 00 7E [16:29:56]RAPDU: 90 00 [16:29:56]wFMCommunicate OK [16:29:56]SAM_PROTO_ClearQueue done [16:29:56]KKMCreateOFDPacket [16:29:56]OFDProtocolAddRootSTLVToBuf [16:29:56]FM_MakeSignedData [16:29:56]FM_MakeSignedData [16:29:56]SAM_PROTO_SignData [16:29:56]wFMCommunicate request_size=4 [16:29:56]MH_SAM_APDU [16:29:56]CAPDU: 80 0D 01 02 [16:29:56]Write to MH i2c: E2 08 00 EC 1F 80 0D 01 02 00 00 00 00 84 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 EC 1F 00 90 00 7F [16:29:56]RAPDU: 90 00 [16:29:56]wFMCommunicate OK [16:29:56]wFMCommunicate request_size=255 [16:29:56]MH_SAM_APDU [16:29: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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 2F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C BF 00 00 35 04 06 00 8D [16:29:56]Write to MH i2c: E2 02 01 ED 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 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 2F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C BF 00 00 35 04 06 00 8D 00 00 A9 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 ED 1F 00 90 00 80 [16:29:56]RAPDU: 90 00 [16:29:56]wFMCommunicate OK [16:29:56]wFMCommunicate request_size=10 [16:29:56]MH_SAM_APDU [16:29:56]CAPDU: 80 0D 02 02 05 D7 87 8D EF 87 [16:29:56]Write to MH i2c: E2 0D 00 EE 1F 80 0D 02 02 05 00 D7 87 8D EF 87 00 00 F2 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 03 00 EE 1F 00 90 00 81 [16:29:56]RAPDU: 90 00 [16:29:56]wFMCommunicate OK [16:29:56]wFMCommunicate request_size=4 [16:29:56]MH_SAM_APDU [16:29:56]CAPDU: 80 0D 03 02 [16:29:56]Write to MH i2c: E2 08 00 EF 1F 80 0D 03 02 00 00 00 00 89 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 0B 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 0B 00 EF 1F 00 5D 4A E4 F3 D0 AA 1E CC 90 00 6C [16:29:56]RAPDU: 5D 4A E4 F3 D0 AA 1E CC 90 00 [16:29:56]wFMCommunicate OK [16:29:56]SAM_PROTO_SignData done [16:29:56]FM_MakeSignedData done [16:29:56]CreateOFDProtocolMessage [16:29:56]wFMCommunicate request_size=4 [16:29:56]MH_SAM_APDU [16:29:56]CAPDU: 80 11 00 00 [16:29:56]Write to MH i2c: E2 08 00 F0 1F 80 11 00 00 00 00 00 00 89 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:56]Read from MH i2c: E2 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 17 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: E2 17 00 F0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D6 [16:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:29:56]wFMCommunicate OK [16:29:56]CreateOFDProtocolMessage done [16:29:56]OFDSenderStorePacket 48924 [16:29:56]StoreOFDPacket docnum=48924 [16:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9A A0 07 01 20 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 2F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C BF 00 00 35 04 06 00 8D D7 87 8D EF 87 5D 4A E4 F3 D0 AA 1E CC [16:29:56]CheckFolder [16:29:56]dirname=/storage/ofd_packets [16:29:56]CheckFolder done [16:29:56]ProducePacketName [16:29:56]name=ofd_packets/00048924 [16:29:56]NVStorageSaveData ofd_packets/00048924 [16:29:56]File name is /storage/ofd_packets/00048924 [16:29:56]Write 301 bytes [16:29:56]NVStorageSaveData done [16:29:56]OFDSenderStorePacket done [16:29:56]KKMCreateOFDPacket done [16:29:56]NVStorageSaveData kkm_last_timestamp [16:29:56]File name is /storage/kkm_last_timestamp [16:29:56]Write 4 bytes [16:29:56]NVStorageSaveData done [16:29:56]ExternCall_PrintAddStr [16:29:56]wPrintStart [16:29:56]Write to MH i2c: 01 00 00 F1 1F 10 [16:29:56]Write i2c OK [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: 01 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: 01 07 00 [16:29:56]MH_I2C_Read... [16:29:56]Read from MH i2c: 01 07 00 F1 1F 00 00 00 00 00 FF 0F 25 [16:29:56]RasterBufferAndPrint [16:29:56]line Счет N : (1)216022 [16:29:56]line ИНН: 02508201610067 [16:29:56]line Контрольно-Кассовый Чек [16:29:56]line ПРОДАЖА [16:29:56]line ТРК (МРК, ГНК) : 22 [16:29:56]line Товар: 2710124130 [16:29:56]line Аи-92-К-5 [16:29:56]line 8.300 * 60.30 [16:29:56]line = 500.49 [16:29:56]line НДС 12% НСП 1% [16:29:56]line > о реализуемом товаре [16:29:56]line ИТОГО: 500.49 [16:29:56]line НСП 1% : 4.43 [16:29:56]line НДС 12% : 53.15 [16:29:56]line Наличными: 0.00 [16:29:56]line Безнал.: 500.49 [16:29:56]line Место: АЗС № 102 "Партнер Нефть" [16:29:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:29:56]line СНО: Общий режим [16:29:56]line Чек 104 27.01.2024 16:29 [16:29:56]line Смена: 243 ФФД: 1.0 [16:29:56]line ЗНМ: 0300000040 [16:29:56]line РНМ: 0000000000092723 [16:29:56]line Версия ККМ: 001 [16:29:56]line Платежная система: Кыргызкоммерцбанк [16:29:56]line ФМ: 0000000000875060 [16:29:56]line ФД: 48924 [16:29:56]line ФПД: 155956831711111 [16:29:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T162959&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48924&fm=155956831711111&tin=02508201610067®Number=0000000000092723&sum=50049 [16:29:57]OFD Sender: Processing packet 48924 [packets to send 12, broken 11] [16:29:57]ProducePacketName [16:29:57]name=ofd_packets/00048924 [16:29:57]OFD Sender: To server: pG, [16:29:57]CommunicateWithHost lk.salyk.kg:30040 [16:29:57]ConnectInit lk.salyk.kg [16:29:57]written 0, free lines is 4095 [16:29:57]Connected sock=10 [16:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9A A0 07 01 20 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 87 2F B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C BF 00 00 35 04 06 00 8D D7 87 8D EF 87 5D 4A E4 F3 D0 AA 1E CC [16:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 BA 7A 47 00 EA AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1C BF 00 00 F4 03 04 00 85 DB B4 65 B6 04 01 00 00 50 3F 0A D6 17 E7 24 E9 [16:29:57]CommunicateWithHost err = 0 [16:29:57]CheckOFDResponse [16:29:57]1017 (14) - 77093643461234 [16:29:57]1041 (16) - 0000000000875060 [16:29:57]1040 (4) - 48924 [16:29:57]1012 (4) - 27.01.2024 10:31 [16:29:57]1206 (1) - 0 [16:29:57]OFD Sender: Remove packet 48924 [16:29:57]ProducePacketName [16:29:57]name=ofd_packets/00048924 [16:29:57]NVStorageDeleteData [16:29:57]Write to MH i2c: 01 00 00 1B 20 3B [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: 01 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: 01 07 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: 01 07 00 1B 20 00 00 00 00 00 10 0D 5F [16:29:57]RasterBufferAndPrint [16:29:57]line [16:29:57]line [16:29:57]line [16:29:57]line [16:29:57]line [16:29:57]written 0, free lines is 3352 [16:29:57]MH_Cut [16:29:57]Write to MH i2c: D1 01 00 22 20 01 14 [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: D1 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: D1 01 00 [16:29:57]MH_I2C_Read... [16:29:57]Read from MH i2c: D1 01 00 22 20 00 13 [16:29:57]Write to MH i2c: 01 00 00 23 20 43 [16:29:57]Write i2c OK [16:29:57]MH_I2C_Read... [16:29:58]OFD Sender: No OFD packet to send [16:29:58]*** Cut start [16:29:58]*** Partial cut [16:29:58]*** CUTSNS_PIN = 1 [16:29:58]*** CUTSNS_PIN = 0 [16:29:58]*** Brake cut motor [16:29:58]Read from MH i2c: 01 [16:29:58]MH_I2C_Read... [16:29:59]*** Stop cut motor [16:29:59]*** Cut end [16:29:59]Read from MH i2c: 01 07 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: 01 07 00 23 20 00 00 00 00 00 FF 0F 58 [16:29:59]process_action close_receipt done [16:29:59]requested_data is exist [16:29:59]produce_requested_data [16:29:59]requested_item fm.sn is exist - process it [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 11 00 00 [16:29:59]Write to MH i2c: E2 08 00 24 20 80 11 00 00 00 00 00 00 BE [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 17 00 24 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0B [16:29:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:29:59]wFMCommunicate OK [16:29:59]requested_item fd.num is exist - process it [16:29:59]SAM_PROTO_GetFieldsCounters [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 13 00 00 [16:29:59]Write to MH i2c: E2 08 00 25 20 80 13 00 00 00 00 00 00 C1 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 62 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 62 00 25 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1C BF 00 00 0E 04 04 00 F3 00 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 E0 [16:29: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1C BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:59]wFMCommunicate OK [16:29:59]SAM_PROTO_GetFieldsCounters done [16:29:59]requested_item shift.num is exist - process it [16:29:59]requested_item shift.opened is exist - process it [16:29:59]req_shift_opened [16:29:59]FM_GetShiftState [16:29:59]SAM_PROTO_GetShiftState [16:29:59]wFMCommunicate request_size=4 [16:29:59]MH_SAM_APDU [16:29:59]CAPDU: 80 13 01 00 [16:29:59]Write to MH i2c: E2 08 00 26 20 80 13 01 00 00 00 00 00 C3 [16:29:59]Write i2c OK [16:29:59]MH_I2C_Read... [16:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:59]Read from MH i2c: E2 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0E 00 [16:29:59]MH_I2C_Read... [16:29:59]Read from MH i2c: E2 0E 00 26 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 5A [16:29:59]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [16:29:59]wFMCommunicate OK [16:29:59]SAM_PROTO_GetShiftState done [16:29:59]FM_GetShiftState done [16:29:59]req_shift_opened done [16:29:59]requested_item shift.open_date is exist - process it [16:29:59]req_shift_open_date [16:29:59]req_shift_open_date done [16:29:59]produce_requested_data done [16:29:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48924,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [16:29:59]process_action_free close_receipt [16:29:59]json_value_free [16:29:59]json_value_free done [16:29:59]process_json_proto returns [16:29:59]Send response to host [16:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48924,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [16:29:59]free response buf [16:29:59]execute_script done [16:29:59]execute_script returns [16:29:59]free content buf [16:29:59]Sock 7.Close socket [16:29:59]Sock 7.Thread stoped [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:54]accept exits with 9 [17:23:54]New connection [17:23:54]New thread 3066670436 created [17:23:54]Thread 3066813796 joined [17:23:54]Waiting for new connection... [17:23:54] Sock 9.Parse request [17:23:54]Sock 9.Check first char [17:23:54]Sock 9.First char is OK [17:23:54]request: POST /json_proto HTTP/1.0 [17:23:54]Method: POST [17:23:54]URL: /json_proto [17:23:54]Method is POST - this is cgi request [17:23:54]url: /json_proto [17:23:54]query_string will be loaded in cgi processing [17:23:54]execute_cgi json_proto POST (null) [17:23:54]execute_cgi path=json_proto method=POST [17:23:54]POST find Content-Length [17:23:54]Host: 172.17.56.67:8080 [17:23:54]Content-Length: 674 [17:23:54]Content-Type: application/json [17:23:54] [17:23:54]POST finish read [17:23:54]Found Content-Length = 674 [17:23:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:54]execute_script... [17:23:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:54]POST & json_proto [17:23:54]process_json_proto [17:23:54]json parsed OK: [17:23:54]protocol is kg_v1.0 [17:23:54]action value=close_receipt [17:23:54]process_action close_receipt [17:23:54]cmd_close_receipt [17:23:54]MH_GetDate [17:23:54]Write to MH i2c: F0 00 00 27 20 36 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 09 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: F0 09 00 27 20 00 2F 3C B5 65 26 5D 9E 65 4A [17:23:54]GetLastDocTimeStamp 1706372999 [17:23:54]current date 1706376239 [17:23:54]FM_GetShiftState [17:23:54]SAM_PROTO_GetShiftState [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 13 01 00 [17:23:54]Write to MH i2c: E2 08 00 28 20 80 13 01 00 00 00 00 00 C5 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0E 00 28 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 5C [17:23:54]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_GetShiftState done [17:23:54]FM_GetShiftState done [17:23:54]opened in 1706313770 [17:23:54]opened+sec_in_day 1706400170 [17:23:54]quantity*price = 50048 [17:23:54]sum+1 = 50049 [17:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 105 27.01.2024 17:23 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48925 ФПД: 220060217867058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T172359&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48925&fm=220060217867058&tin=02508201610067®Number=0000000000092723&sum=50000 [17:23:55]StoreToDocumentArchive [17:23:55]shift 243 fd 48925 [17:23:55]save to /storage/0243/doc_00048925 [17:23:55]save last doc name /storage/0243/doc_00048925 to /storage/kkm_last_doc_name [17:23:55]save OK [17:23:55]Clear old archive folders... [17:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:23:55]tlvbuf is 01214C10 [17:23:55]SAM_PROTO_ClearQueue [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 09 00 00 [17:23:55]Write to MH i2c: E2 08 00 35 20 80 09 00 00 00 00 00 00 C7 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 35 20 00 90 00 C9 [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_ClearQueue done [17:23:56]KKMCreateOFDPacket [17:23:56]OFDProtocolAddRootSTLVToBuf [17:23:56]FM_MakeSignedData [17:23:56]FM_MakeSignedData [17:23:56]SAM_PROTO_SignData [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 01 02 [17:23:56]Write to MH i2c: E2 08 00 36 20 80 0D 01 02 00 00 00 00 CF [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 36 20 00 90 00 CA [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=255 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 2F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D BF 00 00 35 04 06 00 C8 24 C3 1D [17:23:56]Write to MH i2c: E2 02 01 37 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 2F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D BF 00 00 35 04 06 00 C8 24 C3 1D 00 00 25 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 37 20 00 90 00 CB [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=7 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 02 02 02 7B 32 [17:23:56]Write to MH i2c: E2 0A 00 38 20 80 0D 02 02 02 00 7B 32 00 00 83 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 03 00 38 20 00 90 00 CC [17:23:56]RAPDU: 90 00 [17:23:56]wFMCommunicate OK [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 0D 03 02 [17:23:56]Write to MH i2c: E2 08 00 39 20 80 0D 03 02 00 00 00 00 D4 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0B 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0B 00 39 20 00 E0 BD A4 E6 E1 A2 7F AC 90 00 AA [17:23:56]RAPDU: E0 BD A4 E6 E1 A2 7F AC 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_SignData done [17:23:56]FM_MakeSignedData done [17:23:56]CreateOFDProtocolMessage [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 11 00 00 [17:23:56]Write to MH i2c: E2 08 00 3A 20 80 11 00 00 00 00 00 00 D4 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 3A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 21 [17:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:23:56]wFMCommunicate OK [17:23:56]CreateOFDProtocolMessage done [17:23:56]OFDSenderStorePacket 48925 [17:23:56]StoreOFDPacket docnum=48925 [17:23:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 ED 59 04 01 C2 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 2F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D BF 00 00 35 04 06 00 C8 24 C3 1D 7B 32 E0 BD A4 E6 E1 A2 7F AC [17:23:56]CheckFolder [17:23:56]dirname=/storage/ofd_packets [17:23:56]CheckFolder done [17:23:56]ProducePacketName [17:23:56]name=ofd_packets/00048925 [17:23:56]NVStorageSaveData ofd_packets/00048925 [17:23:56]File name is /storage/ofd_packets/00048925 [17:23:56]Write 298 bytes [17:23:56]NVStorageSaveData done [17:23:56]OFDSenderStorePacket done [17:23:56]KKMCreateOFDPacket done [17:23:56]NVStorageSaveData kkm_last_timestamp [17:23:56]File name is /storage/kkm_last_timestamp [17:23:56]Write 4 bytes [17:23:56]NVStorageSaveData done [17:23:56]ExternCall_PrintAddStr [17:23:56]wPrintStart [17:23:56]Write to MH i2c: 01 00 00 3B 20 5B [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 07 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 FF 0F 70 [17:23:56]RasterBufferAndPrint [17:23:56]line Счет N : (1)216023 [17:23:56]line ИНН: 02508201610067 [17:23:56]line Контрольно-Кассовый Чек [17:23:56]line ПРОДАЖА [17:23:56]line ТРК (МРК, ГНК) : 21 [17:23:56]line Товар: 2710194210 [17:23:56]line ДТ-К-5 [17:23:56]line 7.160 * 69.90 [17:23:56]line = 500.48 [17:23:56]line НДС 12% НСП 1% [17:23:56]line > о реализуемом товаре [17:23:56]line ОКРУГЛЕНИЕ: -0.48 [17:23:56]line ИТОГО: 500.00 [17:23:56]line Внесено: 500.00 [17:23:56]line СДАЧА: 0.00 [17:23:56]line НСП 1% : 4.43 [17:23:56]line НДС 12% : 53.15 [17:23:56]line Наличными: 500.00 [17:23:56]line Безнал.: 0.00 [17:23:56]line Место: АЗС № 102 "Партнер Нефть" [17:23:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:23:56]line СНО: Общий режим [17:23:56]line Чек 105 27.01.2024 17:23 [17:23:56]line Смена: 243 ФФД: 1.0 [17:23:56]line ЗНМ: 0300000040 [17:23:56]line РНМ: 0000000000092723 [17:23:56]line Версия ККМ: 001 [17:23:56]line ФМ: 0000000000875060 [17:23:56]line ФД: 48925 [17:23:56]line ФПД: 220060217867058 [17:23:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T172359&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48925&fm=220060217867058&tin=02508201610067®Number=0000000000092723&sum=50000 [17:23:56]OFD Sender: Processing packet 48925 [packets to send 12, broken 11] [17:23:56]ProducePacketName [17:23:56]name=ofd_packets/00048925 [17:23:56]OFD Sender: To server: pG, [17:23:56]CommunicateWithHost lk.salyk.kg:30040 [17:23:56]ConnectInit lk.salyk.kg [17:23:56]written 0, free lines is 4095 [17:23:56]Connected sock=10 [17:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 ED 59 04 01 C2 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 2F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D BF 00 00 35 04 06 00 C8 24 C3 1D 7B 32 E0 BD A4 E6 E1 A2 7F AC [17:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 0D 1A 47 00 28 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1D BF 00 00 F4 03 04 00 2D E8 B4 65 B6 04 01 00 00 A5 73 6F 2D B0 4F 2B EA [17:23:57]CommunicateWithHost err = 0 [17:23:57]CheckOFDResponse [17:23:57]1017 (14) - 77093643461234 [17:23:57]1041 (16) - 0000000000875060 [17:23:57]1040 (4) - 48925 [17:23:57]1012 (4) - 27.01.2024 11:25 [17:23:57]1206 (1) - 0 [17:23:57]OFD Sender: Remove packet 48925 [17:23:57]ProducePacketName [17:23:57]name=ofd_packets/00048925 [17:23:57]NVStorageDeleteData [17:23:57]Write to MH i2c: 01 00 00 66 20 86 [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: 01 07 00 66 20 00 00 00 00 00 E4 0C 7D [17:23:57]RasterBufferAndPrint [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]line [17:23:57]written 0, free lines is 3306 [17:23:57]MH_Cut [17:23:57]Write to MH i2c: D1 01 00 6D 20 01 5F [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 01 00 [17:23:57]MH_I2C_Read... [17:23:57]Read from MH i2c: D1 01 00 6D 20 00 5E [17:23:57]Write to MH i2c: 01 00 00 6E 20 8E [17:23:57]Write i2c OK [17:23:57]MH_I2C_Read... [17:23:57]OFD Sender: No OFD packet to send [17:23:57]*** Cut start [17:23:57]*** Partial cut [17:23:57]*** CUTSNS_PIN = 1 [17:23:57]*** CUTSNS_PIN = 0 [17:23:58]*** Brake cut motor [17:23:58]Read from MH i2c: 01 [17:23:58]MH_I2C_Read... [17:23:58]*** Stop cut motor [17:23:58]*** Cut end [17:23:58]Read from MH i2c: 01 07 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [17:23:58]process_action close_receipt done [17:23:58]requested_data is exist [17:23:58]produce_requested_data [17:23:58]requested_item fm.sn is exist - process it [17:23:58]wFMCommunicate request_size=4 [17:23:58]MH_SAM_APDU [17:23:58]CAPDU: 80 11 00 00 [17:23:58]Write to MH i2c: E2 08 00 6F 20 80 11 00 00 00 00 00 00 09 [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:58]Read from MH i2c: E2 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 17 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 17 00 6F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 56 [17:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:23:58]wFMCommunicate OK [17:23:58]requested_item fd.num is exist - process it [17:23:58]SAM_PROTO_GetFieldsCounters [17:23:58]wFMCommunicate request_size=4 [17:23:58]MH_SAM_APDU [17:23:58]CAPDU: 80 13 00 00 [17:23:58]Write to MH i2c: E2 08 00 70 20 80 13 00 00 00 00 00 00 0C [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:58]Read from MH i2c: E2 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 62 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 62 00 70 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1D BF 00 00 0E 04 04 00 F3 00 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 2F [17:23: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1D BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:58]wFMCommunicate OK [17:23:58]SAM_PROTO_GetFieldsCounters done [17:23:58]requested_item shift.num is exist - process it [17:23:58]requested_item shift.opened is exist - process it [17:23:58]req_shift_opened [17:23:58]FM_GetShiftState [17:23:58]SAM_PROTO_GetShiftState [17:23:58]wFMCommunicate request_size=4 [17:23:58]MH_SAM_APDU [17:23:58]CAPDU: 80 13 01 00 [17:23:58]Write to MH i2c: E2 08 00 71 20 80 13 01 00 00 00 00 00 0E [17:23:58]Write i2c OK [17:23:58]MH_I2C_Read... [17:23:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:58]Read from MH i2c: E2 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 0E 00 [17:23:58]MH_I2C_Read... [17:23:58]Read from MH i2c: E2 0E 00 71 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A5 [17:23:58]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:23:58]wFMCommunicate OK [17:23:58]SAM_PROTO_GetShiftState done [17:23:58]FM_GetShiftState done [17:23:58]req_shift_opened done [17:23:58]requested_item shift.open_date is exist - process it [17:23:58]req_shift_open_date [17:23:58]req_shift_open_date done [17:23:58]produce_requested_data done [17:23:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48925,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [17:23:58]process_action_free close_receipt [17:23:58]json_value_free [17:23:58]json_value_free done [17:23:58]process_json_proto returns [17:23:58]Send response to host [17:23:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48925,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [17:23:58]free response buf [17:23:58]execute_script done [17:23:58]execute_script returns [17:23:58]free content buf [17:23:58]Sock 9.Close socket [17:23:58]Sock 9.Thread stoped [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:26]accept exits with 7 [17:24:26]New connection [17:24:26]New thread 3066813796 created [17:24:26]Thread 3066670436 joined [17:24:26]Waiting for new connection... [17:24:26] Sock 7.Parse request [17:24:26]Sock 7.Check first char [17:24:26]Sock 7.First char is OK [17:24:26]request: POST /json_proto HTTP/1.0 [17:24:26]Method: POST [17:24:26]URL: /json_proto [17:24:26]Method is POST - this is cgi request [17:24:26]url: /json_proto [17:24:26]query_string will be loaded in cgi processing [17:24:26]execute_cgi json_proto POST (null) [17:24:26]execute_cgi path=json_proto method=POST [17:24:26]POST find Content-Length [17:24:26]Host: 172.17.56.67:8080 [17:24:26]Content-Length: 674 [17:24:26]Content-Type: application/json [17:24:26] [17:24:26]POST finish read [17:24:26]Found Content-Length = 674 [17:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:26]execute_script... [17:24: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)216025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:26]POST & json_proto [17:24:26]process_json_proto [17:24:26]json parsed OK: [17:24:26]protocol is kg_v1.0 [17:24:26]action value=close_receipt [17:24:26]process_action close_receipt [17:24:26]cmd_close_receipt [17:24:26]MH_GetDate [17:24:26]Write to MH i2c: F0 00 00 72 20 81 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 09 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 09 00 72 20 00 4F 3C B5 65 26 5D 9E 65 B5 [17:24:26]GetLastDocTimeStamp 1706376239 [17:24:26]current date 1706376271 [17:24:26]FM_GetShiftState [17:24:26]SAM_PROTO_GetShiftState [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 13 01 00 [17:24:26]Write to MH i2c: E2 08 00 73 20 80 13 01 00 00 00 00 00 10 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0E 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0E 00 73 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A7 [17:24:26]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:24:26]wFMCommunicate OK [17:24:26]SAM_PROTO_GetShiftState done [17:24:26]FM_GetShiftState done [17:24:26]opened in 1706313770 [17:24:26]opened+sec_in_day 1706400170 [17:24:26]quantity*price = 50048 [17:24:26]sum+1 = 50049 [17:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 106 27.01.2024 17:24 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48926 ФПД: 204565900133707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T172431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48926&fm=204565900133707&tin=02508201610067®Number=0000000000092723&sum=50000 [17:24:28]StoreToDocumentArchive [17:24:28]shift 243 fd 48926 [17:24:28]save to /storage/0243/doc_00048926 [17:24:28]save last doc name /storage/0243/doc_00048926 to /storage/kkm_last_doc_name [17:24:28]save OK [17:24:28]Clear old archive folders... [17:24:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:28]tlvbuf is B6E9F0E0 [17:24:28]SAM_PROTO_ClearQueue [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 09 00 00 [17:24:28]Write to MH i2c: E2 08 00 80 20 80 09 00 00 00 00 00 00 12 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 80 20 00 90 00 14 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_ClearQueue done [17:24:28]KKMCreateOFDPacket [17:24:28]OFDProtocolAddRootSTLVToBuf [17:24:28]FM_MakeSignedData [17:24:28]FM_MakeSignedData [17:24:28]SAM_PROTO_SignData [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 0D 01 02 [17:24:28]Write to MH i2c: E2 08 00 81 20 80 0D 01 02 00 00 00 00 1A [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 81 20 00 90 00 15 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=255 [17:24:28]MH_SAM_APDU [17:24: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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E BF 00 00 35 04 06 00 BA 0D 35 CF [17:24:28]Write to MH i2c: E2 02 01 82 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E BF 00 00 35 04 06 00 BA 0D 35 CF 00 00 91 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 82 20 00 90 00 16 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=7 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 0D 02 02 02 85 4B [17:24:28]Write to MH i2c: E2 0A 00 83 20 80 0D 02 02 02 00 85 4B 00 00 F1 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 83 20 00 90 00 17 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 0D 03 02 [17:24:28]Write to MH i2c: E2 08 00 84 20 80 0D 03 02 00 00 00 00 1F [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0B 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0B 00 84 20 00 2F 53 8A 47 06 AA DC 61 90 00 60 [17:24:28]RAPDU: 2F 53 8A 47 06 AA DC 61 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_SignData done [17:24:28]FM_MakeSignedData done [17:24:28]CreateOFDProtocolMessage [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 11 00 00 [17:24:28]Write to MH i2c: E2 08 00 85 20 80 11 00 00 00 00 00 00 1F [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 85 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6C [17:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:24:28]wFMCommunicate OK [17:24:28]CreateOFDProtocolMessage done [17:24:28]OFDSenderStorePacket 48926 [17:24:28]StoreOFDPacket docnum=48926 [17:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B1 27 04 01 60 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E BF 00 00 35 04 06 00 BA 0D 35 CF 85 4B 2F 53 8A 47 06 AA DC 61 [17:24:28]CheckFolder [17:24:28]dirname=/storage/ofd_packets [17:24:28]CheckFolder done [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00048926 [17:24:28]NVStorageSaveData ofd_packets/00048926 [17:24:28]File name is /storage/ofd_packets/00048926 [17:24:28]Write 298 bytes [17:24:28]NVStorageSaveData done [17:24:28]OFDSenderStorePacket done [17:24:28]KKMCreateOFDPacket done [17:24:28]NVStorageSaveData kkm_last_timestamp [17:24:28]File name is /storage/kkm_last_timestamp [17:24:28]Write 4 bytes [17:24:28]NVStorageSaveData done [17:24:28]ExternCall_PrintAddStr [17:24:28]wPrintStart [17:24:28]Write to MH i2c: 01 00 00 86 20 A6 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 86 20 00 00 00 00 00 FF 0F BB [17:24:28]RasterBufferAndPrint [17:24:28]line Счет N : (1)216025 [17:24:28]line ИНН: 02508201610067 [17:24:28]line Контрольно-Кассовый Чек [17:24:28]line ПРОДАЖА [17:24:28]line ТРК (МРК, ГНК) : 21 [17:24:28]line Товар: 2710194210 [17:24:28]line ДТ-К-5 [17:24:28]line 7.160 * 69.90 [17:24:28]line = 500.48 [17:24:28]line НДС 12% НСП 1% [17:24:28]line > о реализуемом товаре [17:24:28]line ОКРУГЛЕНИЕ: -0.48 [17:24:28]line ИТОГО: 500.00 [17:24:28]line Внесено: 500.00 [17:24:28]line СДАЧА: 0.00 [17:24:28]line НСП 1% : 4.43 [17:24:28]line НДС 12% : 53.15 [17:24:28]line Наличными: 500.00 [17:24:28]line Безнал.: 0.00 [17:24:28]line Место: АЗС № 102 "Партнер Нефть" [17:24:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:24:28]line СНО: Общий режим [17:24:28]line Чек 106 27.01.2024 17:24 [17:24:28]line Смена: 243 ФФД: 1.0 [17:24:28]line ЗНМ: 0300000040 [17:24:28]line РНМ: 0000000000092723 [17:24:28]line Версия ККМ: 001 [17:24:28]line ФМ: 0000000000875060 [17:24:28]line ФД: 48926 [17:24:28]line ФПД: 204565900133707 [17:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T172431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48926&fm=204565900133707&tin=02508201610067®Number=0000000000092723&sum=50000 [17:24:28]OFD Sender: Processing packet 48926 [packets to send 12, broken 11] [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00048926 [17:24:28]OFD Sender: To server: pG, [17:24:28]CommunicateWithHost lk.salyk.kg:30040 [17:24:28]ConnectInit lk.salyk.kg [17:24:28]written 0, free lines is 4095 [17:24:29]Connected sock=10 [17:24:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B1 27 04 01 60 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 4F 3C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E BF 00 00 35 04 06 00 BA 0D 35 CF 85 4B 2F 53 8A 47 06 AA DC 61 [17:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 53 1D 47 00 43 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1E BF 00 00 F4 03 04 00 4D E8 B4 65 B6 04 01 00 00 A9 0C A3 1D 41 AD 00 03 [17:24:29]CommunicateWithHost err = 0 [17:24:29]CheckOFDResponse [17:24:29]1017 (14) - 77093643461234 [17:24:29]1041 (16) - 0000000000875060 [17:24:29]1040 (4) - 48926 [17:24:29]1012 (4) - 27.01.2024 11:26 [17:24:29]1206 (1) - 0 [17:24:29]OFD Sender: Remove packet 48926 [17:24:29]ProducePacketName [17:24:29]name=ofd_packets/00048926 [17:24:29]NVStorageDeleteData [17:24:29]Write to MH i2c: 01 00 00 B1 20 D1 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 07 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 07 00 B1 20 00 00 00 00 00 F0 0C D4 [17:24:29]RasterBufferAndPrint [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]written 0, free lines is 3318 [17:24:29]MH_Cut [17:24:29]Write to MH i2c: D1 01 00 B8 20 01 AA [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 01 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 01 00 B8 20 00 A9 [17:24:29]Write to MH i2c: 01 00 00 B9 20 D9 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]OFD Sender: No OFD packet to send [17:24:30]*** Cut start [17:24:30]*** Partial cut [17:24:30]*** CUTSNS_PIN = 1 [17:24:30]*** CUTSNS_PIN = 0 [17:24:30]*** Brake cut motor [17:24:30]Read from MH i2c: 01 [17:24:30]MH_I2C_Read... [17:24:30]*** Stop cut motor [17:24:30]*** Cut end [17:24:30]Read from MH i2c: 01 07 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [17:24:30]process_action close_receipt done [17:24:30]requested_data is exist [17:24:30]produce_requested_data [17:24:30]requested_item fm.sn is exist - process it [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 11 00 00 [17:24:30]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:30]Read from MH i2c: E2 17 00 [17:24:30]MH_I2C_Read... [17:24:30]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 35 30 36 30 90 00 A1 [17:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:24:30]wFMCommunicate OK [17:24:30]requested_item fd.num is exist - process it [17:24:30]SAM_PROTO_GetFieldsCounters [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 13 00 00 [17:24:30]Write to MH i2c: E2 08 00 BB 20 80 13 00 00 00 00 00 00 57 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 62 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 62 00 BB 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1E BF 00 00 0E 04 04 00 F3 00 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 7E [17:24: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1E BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_GetFieldsCounters done [17:24:30]requested_item shift.num is exist - process it [17:24:30]requested_item shift.opened is exist - process it [17:24:30]req_shift_opened [17:24:30]FM_GetShiftState [17:24:30]SAM_PROTO_GetShiftState [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 13 01 00 [17:24:30]Write to MH i2c: E2 08 00 BC 20 80 13 01 00 00 00 00 00 59 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0E 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0E 00 BC 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F0 [17:24:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_GetShiftState done [17:24:30]FM_GetShiftState done [17:24:30]req_shift_opened done [17:24:30]requested_item shift.open_date is exist - process it [17:24:30]req_shift_open_date [17:24:30]req_shift_open_date done [17:24:30]produce_requested_data done [17:24:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48926,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [17:24:30]process_action_free close_receipt [17:24:30]json_value_free [17:24:30]json_value_free done [17:24:30]process_json_proto returns [17:24:30]Send response to host [17:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48926,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [17:24:30]free response buf [17:24:30]execute_script done [17:24:30]execute_script returns [17:24:30]free content buf [17:24:30]Sock 7.Close socket [17:24:30]Sock 7.Thread stoped [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]accept exits with 9 [17:51:05]New connection [17:51:05]New thread 3066670436 created [17:51:05]Thread 3066813796 joined [17:51:05]Waiting for new connection... [17:51:05] Sock 9.Parse request [17:51:05]Sock 9.Check first char [17:51:05]Sock 9.First char is OK [17:51:05]request: POST /json_proto HTTP/1.0 [17:51:05]Method: POST [17:51:05]URL: /json_proto [17:51:05]Method is POST - this is cgi request [17:51:05]url: /json_proto [17:51:05]query_string will be loaded in cgi processing [17:51:05]execute_cgi json_proto POST (null) [17:51:05]execute_cgi path=json_proto method=POST [17:51:05]POST find Content-Length [17:51:05]Host: 172.17.56.67:8080 [17:51:05]Content-Length: 675 [17:51:05]Content-Type: application/json [17:51:05] [17:51:05]POST finish read [17:51:05]Found Content-Length = 675 [17:51:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:05]execute_script... [17:51: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)216026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:05]POST & json_proto [17:51:05]process_json_proto [17:51:05]json parsed OK: [17:51:05]protocol is kg_v1.0 [17:51:05]action value=close_receipt [17:51:05]process_action close_receipt [17:51:05]cmd_close_receipt [17:51:05]MH_GetDate [17:51:05]Write to MH i2c: F0 00 00 BD 20 CC [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: F0 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: F0 09 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: F0 09 00 BD 20 00 8D 42 B5 65 26 5D 9E 65 44 [17:51:05]GetLastDocTimeStamp 1706376271 [17:51:05]current date 1706377869 [17:51:05]FM_GetShiftState [17:51:05]SAM_PROTO_GetShiftState [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 13 01 00 [17:51:05]Write to MH i2c: E2 08 00 BE 20 80 13 01 00 00 00 00 00 5B [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 0E 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 0E 00 BE 20 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 F2 [17:51:05]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:51:05]wFMCommunicate OK [17:51:05]SAM_PROTO_GetShiftState done [17:51:05]FM_GetShiftState done [17:51:05]opened in 1706313770 [17:51:05]opened+sec_in_day 1706400170 [17:51:05]quantity*price = 70039 [17:51:05]sum+1 = 70041 [17:51:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 107 27.01.2024 17:51 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48927 ФПД: 125055098884883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T175109&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48927&fm=125055098884883&tin=02508201610067®Number=0000000000092723&sum=70000 [17:51:06]StoreToDocumentArchive [17:51:06]shift 243 fd 48927 [17:51:06]save to /storage/0243/doc_00048927 [17:51:06]save last doc name /storage/0243/doc_00048927 to /storage/kkm_last_doc_name [17:51:06]save OK [17:51:06]Clear old archive folders... [17:51:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:51:06]tlvbuf is B6E86380 [17:51:06]SAM_PROTO_ClearQueue [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 09 00 00 [17:51:06]Write to MH i2c: E2 08 00 CB 20 80 09 00 00 00 00 00 00 5D [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_ClearQueue done [17:51:06]KKMCreateOFDPacket [17:51:06]OFDProtocolAddRootSTLVToBuf [17:51:06]FM_MakeSignedData [17:51:06]FM_MakeSignedData [17:51:06]SAM_PROTO_SignData [17:51:06]wFMCommunicate request_size=4 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 01 02 [17:51:06]Write to MH i2c: E2 08 00 CC 20 80 0D 01 02 00 00 00 00 65 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 CC 20 00 90 00 60 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=255 [17:51:06]MH_SAM_APDU [17:51: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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6B 00 00 00 F4 03 04 00 8D 42 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F BF 00 00 35 04 06 00 71 BC A8 BF [17:51:06]Write to MH i2c: E2 02 01 CD 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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6B 00 00 00 F4 03 04 00 8D 42 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F BF 00 00 35 04 06 00 71 BC A8 BF 00 00 6E [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 03 00 CD 20 00 90 00 61 [17:51:06]RAPDU: 90 00 [17:51:06]wFMCommunicate OK [17:51:06]wFMCommunicate request_size=7 [17:51:06]MH_SAM_APDU [17:51:06]CAPDU: 80 0D 02 02 02 13 13 [17:51:06]Write to MH i2c: E2 0A 00 CE 20 80 0D 02 02 02 00 13 13 00 00 92 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 03 00 CE 20 00 90 00 62 [17:51:07]RAPDU: 90 00 [17:51:07]wFMCommunicate OK [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 0D 03 02 [17:51:07]Write to MH i2c: E2 08 00 CF 20 80 0D 03 02 00 00 00 00 6A [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 0B 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 0B 00 CF 20 00 60 01 11 BB 39 FD 5C 62 90 00 8C [17:51:07]RAPDU: 60 01 11 BB 39 FD 5C 62 90 00 [17:51:07]wFMCommunicate OK [17:51:07]SAM_PROTO_SignData done [17:51:07]FM_MakeSignedData done [17:51:07]CreateOFDProtocolMessage [17:51:07]wFMCommunicate request_size=4 [17:51:07]MH_SAM_APDU [17:51:07]CAPDU: 80 11 00 00 [17:51:07]Write to MH i2c: E2 08 00 D0 20 80 11 00 00 00 00 00 00 6A [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:07]Read from MH i2c: E2 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 17 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: E2 17 00 D0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B7 [17:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:51:07]wFMCommunicate OK [17:51:07]CreateOFDProtocolMessage done [17:51:07]OFDSenderStorePacket 48927 [17:51:07]StoreOFDPacket docnum=48927 [17:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0F 59 04 01 4C A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6B 00 00 00 F4 03 04 00 8D 42 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F BF 00 00 35 04 06 00 71 BC A8 BF 13 13 60 01 11 BB 39 FD 5C 62 [17:51:07]CheckFolder [17:51:07]dirname=/storage/ofd_packets [17:51:07]CheckFolder done [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00048927 [17:51:07]NVStorageSaveData ofd_packets/00048927 [17:51:07]File name is /storage/ofd_packets/00048927 [17:51:07]Write 298 bytes [17:51:07]NVStorageSaveData done [17:51:07]OFDSenderStorePacket done [17:51:07]KKMCreateOFDPacket done [17:51:07]NVStorageSaveData kkm_last_timestamp [17:51:07]File name is /storage/kkm_last_timestamp [17:51:07]Write 4 bytes [17:51:07]NVStorageSaveData done [17:51:07]ExternCall_PrintAddStr [17:51:07]wPrintStart [17:51:07]Write to MH i2c: 01 00 00 D1 20 F1 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 D1 20 00 00 00 00 00 FF 0F 06 [17:51:07]RasterBufferAndPrint [17:51:07]line Счет N : (1)216026 [17:51:07]line ИНН: 02508201610067 [17:51:07]line Контрольно-Кассовый Чек [17:51:07]line ПРОДАЖА [17:51:07]line ТРК (МРК, ГНК) : 11 [17:51:07]line Товар: 2710194210 [17:51:07]line ДТ-К-5 [17:51:07]line 10.020 * 69.90 [17:51:07]line = 700.40 [17:51:07]line НДС 12% НСП 1% [17:51:07]line > о реализуемом товаре [17:51:07]line ОКРУГЛЕНИЕ: -0.40 [17:51:07]line ИТОГО: 700.00 [17:51:07]line Внесено: 700.00 [17:51:07]line СДАЧА: 0.00 [17:51:07]line НСП 1% : 6.20 [17:51:07]line НДС 12% : 74.38 [17:51:07]line Наличными: 700.00 [17:51:07]line Безнал.: 0.00 [17:51:07]line Место: АЗС № 102 "Партнер Нефть" [17:51:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:51:07]line СНО: Общий режим [17:51:07]line Чек 107 27.01.2024 17:51 [17:51:07]line Смена: 243 ФФД: 1.0 [17:51:07]line ЗНМ: 0300000040 [17:51:07]line РНМ: 0000000000092723 [17:51:07]line Версия ККМ: 001 [17:51:07]line ФМ: 0000000000875060 [17:51:07]line ФД: 48927 [17:51:07]line ФПД: 125055098884883 [17:51:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T175109&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48927&fm=125055098884883&tin=02508201610067®Number=0000000000092723&sum=70000 [17:51:07]OFD Sender: Processing packet 48927 [packets to send 12, broken 11] [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00048927 [17:51:07]OFD Sender: To server: pG, [17:51:07]CommunicateWithHost lk.salyk.kg:30040 [17:51:07]ConnectInit lk.salyk.kg [17:51:07]written 0, free lines is 4095 [17:51:07]Connected sock=10 [17:51:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0F 59 04 01 4C A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6B 00 00 00 F4 03 04 00 8D 42 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 1F BF 00 00 35 04 06 00 71 BC A8 BF 13 13 60 01 11 BB 39 FD 5C 62 [17:51:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 39 63 47 00 02 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 35 30 36 30 10 04 04 00 1F BF 00 00 F4 03 04 00 8B EE B4 65 B6 04 01 00 00 10 29 17 3E BF C3 40 FD [17:51:07]CommunicateWithHost err = 0 [17:51:07]CheckOFDResponse [17:51:07]1017 (14) - 77093643461234 [17:51:07]1041 (16) - 0000000000875060 [17:51:07]1040 (4) - 48927 [17:51:07]1012 (4) - 27.01.2024 11:52 [17:51:07]1206 (1) - 0 [17:51:07]OFD Sender: Remove packet 48927 [17:51:07]ProducePacketName [17:51:07]name=ofd_packets/00048927 [17:51:07]NVStorageDeleteData [17:51:07]Write to MH i2c: 01 00 00 FC 20 1C [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: 01 07 00 FC 20 00 00 00 00 00 F4 0C 23 [17:51:07]RasterBufferAndPrint [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]line [17:51:07]written 0, free lines is 3322 [17:51:07]MH_Cut [17:51:07]Write to MH i2c: D1 01 00 03 21 01 F6 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 [17:51:07]MH_I2C_Read... [17:51:07]Read from MH i2c: D1 01 00 03 21 00 F5 [17:51:07]Write to MH i2c: 01 00 00 04 21 25 [17:51:07]Write i2c OK [17:51:07]MH_I2C_Read... [17:51:08]OFD Sender: No OFD packet to send [17:51:08]*** Cut start [17:51:08]*** Partial cut [17:51:08]*** CUTSNS_PIN = 1 [17:51:08]*** CUTSNS_PIN = 0 [17:51:08]*** Brake cut motor [17:51:09]Read from MH i2c: 01 [17:51:09]MH_I2C_Read... [17:51:09]*** Stop cut motor [17:51:09]*** Cut end [17:51:09]Read from MH i2c: 01 07 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: 01 07 00 04 21 00 00 00 00 00 FF 0F 3A [17:51:09]process_action close_receipt done [17:51:09]requested_data is exist [17:51:09]produce_requested_data [17:51:09]requested_item fm.sn is exist - process it [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 11 00 00 [17:51:09]Write to MH i2c: E2 08 00 05 21 80 11 00 00 00 00 00 00 A0 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 17 00 05 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 ED [17:51:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:51:09]wFMCommunicate OK [17:51:09]requested_item fd.num is exist - process it [17:51:09]SAM_PROTO_GetFieldsCounters [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 00 00 [17:51:09]Write to MH i2c: E2 08 00 06 21 80 13 00 00 00 00 00 00 A3 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 62 00 06 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1F BF 00 00 0E 04 04 00 F3 00 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 CE [17:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 1F BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetFieldsCounters done [17:51:09]requested_item shift.num is exist - process it [17:51:09]requested_item shift.opened is exist - process it [17:51:09]req_shift_opened [17:51:09]FM_GetShiftState [17:51:09]SAM_PROTO_GetShiftState [17:51:09]wFMCommunicate request_size=4 [17:51:09]MH_SAM_APDU [17:51:09]CAPDU: 80 13 01 00 [17:51:09]Write to MH i2c: E2 08 00 07 21 80 13 01 00 00 00 00 00 A5 [17:51:09]Write i2c OK [17:51:09]MH_I2C_Read... [17:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:09]Read from MH i2c: E2 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 [17:51:09]MH_I2C_Read... [17:51:09]Read from MH i2c: E2 0E 00 07 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 3C [17:51:09]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:51:09]wFMCommunicate OK [17:51:09]SAM_PROTO_GetShiftState done [17:51:09]FM_GetShiftState done [17:51:09]req_shift_opened done [17:51:09]requested_item shift.open_date is exist - process it [17:51:09]req_shift_open_date [17:51:09]req_shift_open_date done [17:51:09]produce_requested_data done [17:51:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48927,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [17:51:09]process_action_free close_receipt [17:51:09]json_value_free [17:51:09]json_value_free done [17:51:09]process_json_proto returns [17:51:09]Send response to host [17:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48927,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [17:51:09]free response buf [17:51:09]execute_script done [17:51:09]execute_script returns [17:51:09]free content buf [17:51:09]Sock 9.Close socket [17:51:09]Sock 9.Thread stoped [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]accept exits with 7 [17:56:38]New connection [17:56:38]New thread 3066813796 created [17:56:38]Thread 3066670436 joined [17:56:38]Waiting for new connection... [17:56:38] Sock 7.Parse request [17:56:38]Sock 7.Check first char [17:56:38]Sock 7.First char is OK [17:56:38]request: POST /json_proto HTTP/1.0 [17:56:38]Method: POST [17:56:38]URL: /json_proto [17:56:38]Method is POST - this is cgi request [17:56:38]url: /json_proto [17:56:38]query_string will be loaded in cgi processing [17:56:38]execute_cgi json_proto POST (null) [17:56:38]execute_cgi path=json_proto method=POST [17:56:38]POST find Content-Length [17:56:38]Host: 172.17.56.67:8080 [17:56:38]Content-Length: 679 [17:56:38]Content-Type: application/json [17:56:38] [17:56:38]POST finish read [17:56:38]Found Content-Length = 679 [17:56:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:38]execute_script... [17:56: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)216027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:38]POST & json_proto [17:56:38]process_json_proto [17:56:38]json parsed OK: [17:56:38]protocol is kg_v1.0 [17:56:38]action value=close_receipt [17:56:38]process_action close_receipt [17:56:38]cmd_close_receipt [17:56:38]MH_GetDate [17:56:38]Write to MH i2c: F0 00 00 08 21 18 [17:56:38]Write i2c OK [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: F0 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: F0 09 00 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: F0 09 00 08 21 00 DA 43 B5 65 26 5D 9E 65 DE [17:56:38]GetLastDocTimeStamp 1706377869 [17:56:38]current date 1706378202 [17:56:38]FM_GetShiftState [17:56:38]SAM_PROTO_GetShiftState [17:56:38]wFMCommunicate request_size=4 [17:56:38]MH_SAM_APDU [17:56:38]CAPDU: 80 13 01 00 [17:56:38]Write to MH i2c: E2 08 00 09 21 80 13 01 00 00 00 00 00 A7 [17:56:38]Write i2c OK [17:56:38]MH_I2C_Read... [17:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:38]Read from MH i2c: E2 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: E2 0E 00 [17:56:38]MH_I2C_Read... [17:56:38]Read from MH i2c: E2 0E 00 09 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 3E [17:56:38]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:56:38]wFMCommunicate OK [17:56:38]SAM_PROTO_GetShiftState done [17:56:38]FM_GetShiftState done [17:56:38]opened in 1706313770 [17:56:38]opened+sec_in_day 1706400170 [17:56:38]quantity*price = 150005 [17:56:38]sum+1 = 150006 [17:56:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 108 27.01.2024 17:56 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48928 ФПД: 172598808528023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T175642&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48928&fm=172598808528023&tin=02508201610067®Number=0000000000092723&sum=150000 [17:56:39]StoreToDocumentArchive [17:56:39]shift 243 fd 48928 [17:56:39]save to /storage/0243/doc_00048928 [17:56:39]save last doc name /storage/0243/doc_00048928 to /storage/kkm_last_doc_name [17:56:39]save OK [17:56:39]Clear old archive folders... [17:56:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:56:39]tlvbuf is 011B41A0 [17:56:39]SAM_PROTO_ClearQueue [17:56:39]wFMCommunicate request_size=4 [17:56:39]MH_SAM_APDU [17:56:39]CAPDU: 80 09 00 00 [17:56:39]Write to MH i2c: E2 08 00 16 21 80 09 00 00 00 00 00 00 A9 [17:56:39]Write i2c OK [17:56:39]MH_I2C_Read... [17:56:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:39]Read from MH i2c: E2 [17:56:39]MH_I2C_Read... [17:56:39]Read from MH i2c: E2 03 00 [17:56:39]MH_I2C_Read... [17:56:39]Read from MH i2c: E2 03 00 16 21 00 90 00 AB [17:56:39]RAPDU: 90 00 [17:56:39]wFMCommunicate OK [17:56:39]SAM_PROTO_ClearQueue done [17:56:39]KKMCreateOFDPacket [17:56:39]OFDProtocolAddRootSTLVToBuf [17:56:39]FM_MakeSignedData [17:56:39]FM_MakeSignedData [17:56:39]SAM_PROTO_SignData [17:56:39]wFMCommunicate request_size=4 [17:56:39]MH_SAM_APDU [17:56:39]CAPDU: 80 0D 01 02 [17:56:39]Write to MH i2c: E2 08 00 17 21 80 0D 01 02 00 00 00 00 B1 [17:56:39]Write i2c OK [17:56:39]MH_I2C_Read... [17:56:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:39]Read from MH i2c: E2 [17:56:39]MH_I2C_Read... [17:56:39]Read from MH i2c: E2 03 00 [17:56:39]MH_I2C_Read... [17:56:39]Read from MH i2c: E2 03 00 17 21 00 90 00 AC [17:56:39]RAPDU: 90 00 [17:56:39]wFMCommunicate OK [17:56:39]wFMCommunicate request_size=255 [17:56:39]MH_SAM_APDU [17:56:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 6C 00 00 00 F4 03 04 00 DA 43 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 BF 00 00 35 04 06 00 9C FA 4A AB [17:56:39]Write to MH i2c: E2 02 01 18 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 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 6C 00 00 00 F4 03 04 00 DA 43 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 BF 00 00 35 04 06 00 9C FA 4A AB 00 00 F8 [17:56:39]Write i2c OK [17:56:39]MH_I2C_Read... [17:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:40]Read from MH i2c: E2 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 03 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 03 00 18 21 00 90 00 AD [17:56:40]RAPDU: 90 00 [17:56:40]wFMCommunicate OK [17:56:40]wFMCommunicate request_size=7 [17:56:40]MH_SAM_APDU [17:56:40]CAPDU: 80 0D 02 02 02 C4 97 [17:56:40]Write to MH i2c: E2 0A 00 19 21 80 0D 02 02 02 00 C4 97 00 00 13 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:40]Read from MH i2c: E2 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 03 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 03 00 19 21 00 90 00 AE [17:56:40]RAPDU: 90 00 [17:56:40]wFMCommunicate OK [17:56:40]wFMCommunicate request_size=4 [17:56:40]MH_SAM_APDU [17:56:40]CAPDU: 80 0D 03 02 [17:56:40]Write to MH i2c: E2 08 00 1A 21 80 0D 03 02 00 00 00 00 B6 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:40]Read from MH i2c: E2 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 0B 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 0B 00 1A 21 00 D9 08 91 3D 3E 6E BC 4B 90 00 19 [17:56:40]RAPDU: D9 08 91 3D 3E 6E BC 4B 90 00 [17:56:40]wFMCommunicate OK [17:56:40]SAM_PROTO_SignData done [17:56:40]FM_MakeSignedData done [17:56:40]CreateOFDProtocolMessage [17:56:40]wFMCommunicate request_size=4 [17:56:40]MH_SAM_APDU [17:56:40]CAPDU: 80 11 00 00 [17:56:40]Write to MH i2c: E2 08 00 1B 21 80 11 00 00 00 00 00 00 B6 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:40]Read from MH i2c: E2 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 17 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: E2 17 00 1B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [17:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:56:40]wFMCommunicate OK [17:56:40]CreateOFDProtocolMessage done [17:56:40]OFDSenderStorePacket 48928 [17:56:40]StoreOFDPacket docnum=48928 [17:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 00 3F 04 01 33 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 6C 00 00 00 F4 03 04 00 DA 43 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 BF 00 00 35 04 06 00 9C FA 4A AB C4 97 D9 08 91 3D 3E 6E BC 4B [17:56:40]CheckFolder [17:56:40]dirname=/storage/ofd_packets [17:56:40]CheckFolder done [17:56:40]ProducePacketName [17:56:40]name=ofd_packets/00048928 [17:56:40]NVStorageSaveData ofd_packets/00048928 [17:56:40]File name is /storage/ofd_packets/00048928 [17:56:40]Write 298 bytes [17:56:40]NVStorageSaveData done [17:56:40]OFDSenderStorePacket done [17:56:40]KKMCreateOFDPacket done [17:56:40]NVStorageSaveData kkm_last_timestamp [17:56:40]File name is /storage/kkm_last_timestamp [17:56:40]Write 4 bytes [17:56:40]NVStorageSaveData done [17:56:40]ExternCall_PrintAddStr [17:56:40]wPrintStart [17:56:40]Write to MH i2c: 01 00 00 1C 21 3D [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 07 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 07 00 1C 21 00 00 00 00 00 FF 0F 52 [17:56:40]RasterBufferAndPrint [17:56:40]line Счет N : (1)216027 [17:56:40]line ИНН: 02508201610067 [17:56:40]line Контрольно-Кассовый Чек [17:56:40]line ПРОДАЖА [17:56:40]line ТРК (МРК, ГНК) : 11 [17:56:40]line Товар: 2710194210 [17:56:40]line ДТ-К-5 [17:56:40]line 21.460 * 69.90 [17:56:40]line = 1500.05 [17:56:40]line НДС 12% НСП 1% [17:56:40]line > о реализуемом товаре [17:56:40]line ОКРУГЛЕНИЕ: -0.05 [17:56:40]line ИТОГО: 1500.00 [17:56:40]line Внесено: 1500.00 [17:56:40]line СДАЧА: 0.00 [17:56:40]line НСП 1% : 13.27 [17:56:40]line НДС 12% : 159.30 [17:56:40]line Наличными: 1500.00 [17:56:40]line Безнал.: 0.00 [17:56:40]line Место: АЗС № 102 "Партнер Нефть" [17:56:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:56:40]line СНО: Общий режим [17:56:40]line Чек 108 27.01.2024 17:56 [17:56:40]line Смена: 243 ФФД: 1.0 [17:56:40]line ЗНМ: 0300000040 [17:56:40]line РНМ: 0000000000092723 [17:56:40]line Версия ККМ: 001 [17:56:40]line ФМ: 0000000000875060 [17:56:40]line ФД: 48928 [17:56:40]line ФПД: 172598808528023 [17:56:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T175642&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48928&fm=172598808528023&tin=02508201610067®Number=0000000000092723&sum=150000 [17:56:40]OFD Sender: Processing packet 48928 [packets to send 12, broken 11] [17:56:40]ProducePacketName [17:56:40]name=ofd_packets/00048928 [17:56:40]OFD Sender: To server: pG, [17:56:40]CommunicateWithHost lk.salyk.kg:30040 [17:56:40]ConnectInit lk.salyk.kg [17:56:40]written 0, free lines is 4095 [17:56:40]Connected sock=10 [17:56:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 00 3F 04 01 33 BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 6C 00 00 00 F4 03 04 00 DA 43 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 20 BF 00 00 35 04 06 00 9C FA 4A AB C4 97 D9 08 91 3D 3E 6E BC 4B [17:56:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A1 AB 47 00 60 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 35 30 36 30 10 04 04 00 20 BF 00 00 F4 03 04 00 D8 EF B4 65 B6 04 01 00 00 AF 9C 89 5F F4 A7 97 4E [17:56:40]CommunicateWithHost err = 0 [17:56:40]CheckOFDResponse [17:56:40]1017 (14) - 77093643461234 [17:56:40]1041 (16) - 0000000000875060 [17:56:40]1040 (4) - 48928 [17:56:40]1012 (4) - 27.01.2024 11:58 [17:56:40]1206 (1) - 0 [17:56:40]OFD Sender: Remove packet 48928 [17:56:40]ProducePacketName [17:56:40]name=ofd_packets/00048928 [17:56:40]NVStorageDeleteData [17:56:40]Write to MH i2c: 01 00 00 47 21 68 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 07 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: 01 07 00 47 21 00 00 00 00 00 ED 0C 68 [17:56:40]RasterBufferAndPrint [17:56:40]line [17:56:40]line [17:56:40]line [17:56:40]line [17:56:40]line [17:56:40]written 0, free lines is 3315 [17:56:40]MH_Cut [17:56:40]Write to MH i2c: D1 01 00 4E 21 01 41 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: D1 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: D1 01 00 [17:56:40]MH_I2C_Read... [17:56:40]Read from MH i2c: D1 01 00 4E 21 00 40 [17:56:40]Write to MH i2c: 01 00 00 4F 21 70 [17:56:40]Write i2c OK [17:56:40]MH_I2C_Read... [17:56:41]OFD Sender: No OFD packet to send [17:56:41]*** Cut start [17:56:41]*** Partial cut [17:56:41]*** CUTSNS_PIN = 1 [17:56:41]*** CUTSNS_PIN = 0 [17:56:41]*** Brake cut motor [17:56:42]Read from MH i2c: 01 [17:56:42]MH_I2C_Read... [17:56:42]*** Stop cut motor [17:56:42]*** Cut end [17:56:42]Read from MH i2c: 01 07 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: 01 07 00 4F 21 00 00 00 00 00 FF 0F 85 [17:56:42]process_action close_receipt done [17:56:42]requested_data is exist [17:56:42]produce_requested_data [17:56:42]requested_item fm.sn is exist - process it [17:56:42]wFMCommunicate request_size=4 [17:56:42]MH_SAM_APDU [17:56:42]CAPDU: 80 11 00 00 [17:56:42]Write to MH i2c: E2 08 00 50 21 80 11 00 00 00 00 00 00 EB [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:42]Read from MH i2c: E2 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 17 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 17 00 50 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 38 [17:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:56:42]wFMCommunicate OK [17:56:42]requested_item fd.num is exist - process it [17:56:42]SAM_PROTO_GetFieldsCounters [17:56:42]wFMCommunicate request_size=4 [17:56:42]MH_SAM_APDU [17:56:42]CAPDU: 80 13 00 00 [17:56:42]Write to MH i2c: E2 08 00 51 21 80 13 00 00 00 00 00 00 EE [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:42]Read from MH i2c: E2 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 62 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 62 00 51 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 20 BF 00 00 0E 04 04 00 F3 00 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 1D [17:56: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 20 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:42]wFMCommunicate OK [17:56:42]SAM_PROTO_GetFieldsCounters done [17:56:42]requested_item shift.num is exist - process it [17:56:42]requested_item shift.opened is exist - process it [17:56:42]req_shift_opened [17:56:42]FM_GetShiftState [17:56:42]SAM_PROTO_GetShiftState [17:56:42]wFMCommunicate request_size=4 [17:56:42]MH_SAM_APDU [17:56:42]CAPDU: 80 13 01 00 [17:56:42]Write to MH i2c: E2 08 00 52 21 80 13 01 00 00 00 00 00 F0 [17:56:42]Write i2c OK [17:56:42]MH_I2C_Read... [17:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:42]Read from MH i2c: E2 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 0E 00 [17:56:42]MH_I2C_Read... [17:56:42]Read from MH i2c: E2 0E 00 52 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 87 [17:56:42]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [17:56:42]wFMCommunicate OK [17:56:42]SAM_PROTO_GetShiftState done [17:56:42]FM_GetShiftState done [17:56:42]req_shift_opened done [17:56:42]requested_item shift.open_date is exist - process it [17:56:42]req_shift_open_date [17:56:42]req_shift_open_date done [17:56:42]produce_requested_data done [17:56:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48928,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [17:56:42]process_action_free close_receipt [17:56:42]json_value_free [17:56:42]json_value_free done [17:56:42]process_json_proto returns [17:56:42]Send response to host [17:56:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48928,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [17:56:42]free response buf [17:56:42]execute_script done [17:56:42]execute_script returns [17:56:42]free content buf [17:56:42]Sock 7.Close socket [17:56:42]Sock 7.Thread stoped [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:49]accept exits with 9 [18:29:49]New connection [18:29:49]New thread 3066670436 created [18:29:49]Thread 3066813796 joined [18:29:49]Waiting for new connection... [18:29:49] Sock 9.Parse request [18:29:49]Sock 9.Check first char [18:29:49]Sock 9.First char is OK [18:29:49]request: POST /json_proto HTTP/1.0 [18:29:49]Method: POST [18:29:49]URL: /json_proto [18:29:49]Method is POST - this is cgi request [18:29:49]url: /json_proto [18:29:49]query_string will be loaded in cgi processing [18:29:49]execute_cgi json_proto POST (null) [18:29:49]execute_cgi path=json_proto method=POST [18:29:49]POST find Content-Length [18:29:49]Host: 172.17.56.67:8080 [18:29:49]Content-Length: 679 [18:29:49]Content-Type: application/json [18:29:49] [18:29:49]POST finish read [18:29:49]Found Content-Length = 679 [18:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:49]execute_script... [18:29: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)216028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:49]POST & json_proto [18:29:49]process_json_proto [18:29:49]json parsed OK: [18:29:49]protocol is kg_v1.0 [18:29:49]action value=close_receipt [18:29:49]process_action close_receipt [18:29:49]cmd_close_receipt [18:29:49]MH_GetDate [18:29:49]Write to MH i2c: F0 00 00 53 21 63 [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: F0 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: F0 09 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: F0 09 00 53 21 00 A2 4B B5 65 26 5D 9E 65 F9 [18:29:49]GetLastDocTimeStamp 1706378202 [18:29:49]current date 1706380194 [18:29:49]FM_GetShiftState [18:29:49]SAM_PROTO_GetShiftState [18:29:49]wFMCommunicate request_size=4 [18:29:49]MH_SAM_APDU [18:29:49]CAPDU: 80 13 01 00 [18:29:49]Write to MH i2c: E2 08 00 54 21 80 13 01 00 00 00 00 00 F2 [18:29:49]Write i2c OK [18:29:49]MH_I2C_Read... [18:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:49]Read from MH i2c: E2 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 0E 00 [18:29:49]MH_I2C_Read... [18:29:49]Read from MH i2c: E2 0E 00 54 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 89 [18:29:49]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:29:49]wFMCommunicate OK [18:29:49]SAM_PROTO_GetShiftState done [18:29:49]FM_GetShiftState done [18:29:49]opened in 1706313770 [18:29:49]opened+sec_in_day 1706400170 [18:29:49]quantity*price = 100026 [18:29:49]sum+1 = 100028 [18:29:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 109 27.01.2024 18:29 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48929 ФПД: 148001195083538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T182954&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48929&fm=148001195083538&tin=02508201610067®Number=0000000000092723&sum=100000 [18:29:50]StoreToDocumentArchive [18:29:50]shift 243 fd 48929 [18:29:50]save to /storage/0243/doc_00048929 [18:29:50]save last doc name /storage/0243/doc_00048929 to /storage/kkm_last_doc_name [18:29:50]save OK [18:29:50]Clear old archive folders... [18:29:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:29:50]tlvbuf is B6E86380 [18:29:50]SAM_PROTO_ClearQueue [18:29:50]wFMCommunicate request_size=4 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 09 00 00 [18:29:50]Write to MH i2c: E2 08 00 61 21 80 09 00 00 00 00 00 00 F4 [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 61 21 00 90 00 F6 [18:29:50]RAPDU: 90 00 [18:29:50]wFMCommunicate OK [18:29:50]SAM_PROTO_ClearQueue done [18:29:50]KKMCreateOFDPacket [18:29:50]OFDProtocolAddRootSTLVToBuf [18:29:50]FM_MakeSignedData [18:29:50]FM_MakeSignedData [18:29:50]SAM_PROTO_SignData [18:29:50]wFMCommunicate request_size=4 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 0D 01 02 [18:29:50]Write to MH i2c: E2 08 00 62 21 80 0D 01 02 00 00 00 00 FC [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 62 21 00 90 00 F7 [18:29:50]RAPDU: 90 00 [18:29:50]wFMCommunicate OK [18:29:50]wFMCommunicate request_size=255 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A2 4B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 BF 00 00 35 04 06 00 86 9B 36 A8 [18:29:50]Write to MH i2c: E2 02 01 63 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 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A2 4B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 BF 00 00 35 04 06 00 86 9B 36 A8 00 00 CC [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:50]Read from MH i2c: E2 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 [18:29:50]MH_I2C_Read... [18:29:50]Read from MH i2c: E2 03 00 63 21 00 90 00 F8 [18:29:50]RAPDU: 90 00 [18:29:50]wFMCommunicate OK [18:29:50]wFMCommunicate request_size=7 [18:29:50]MH_SAM_APDU [18:29:50]CAPDU: 80 0D 02 02 02 C7 12 [18:29:50]Write to MH i2c: E2 0A 00 64 21 80 0D 02 02 02 00 C7 12 00 00 DC [18:29:50]Write i2c OK [18:29:50]MH_I2C_Read... [18:29:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:51]Read from MH i2c: E2 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 03 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 03 00 64 21 00 90 00 F9 [18:29:51]RAPDU: 90 00 [18:29:51]wFMCommunicate OK [18:29:51]wFMCommunicate request_size=4 [18:29:51]MH_SAM_APDU [18:29:51]CAPDU: 80 0D 03 02 [18:29:51]Write to MH i2c: E2 08 00 65 21 80 0D 03 02 00 00 00 00 01 [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:51]Read from MH i2c: E2 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 0B 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 0B 00 65 21 00 61 78 B7 74 31 37 8A F2 90 00 EA [18:29:51]RAPDU: 61 78 B7 74 31 37 8A F2 90 00 [18:29:51]wFMCommunicate OK [18:29:51]SAM_PROTO_SignData done [18:29:51]FM_MakeSignedData done [18:29:51]CreateOFDProtocolMessage [18:29:51]wFMCommunicate request_size=4 [18:29:51]MH_SAM_APDU [18:29:51]CAPDU: 80 11 00 00 [18:29:51]Write to MH i2c: E2 08 00 66 21 80 11 00 00 00 00 00 00 01 [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:51]Read from MH i2c: E2 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 17 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: E2 17 00 66 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4E [18:29:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:29:51]wFMCommunicate OK [18:29:51]CreateOFDProtocolMessage done [18:29:51]OFDSenderStorePacket 48929 [18:29:51]StoreOFDPacket docnum=48929 [18:29:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F1 19 04 01 BF FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A2 4B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 BF 00 00 35 04 06 00 86 9B 36 A8 C7 12 61 78 B7 74 31 37 8A F2 [18:29:51]CheckFolder [18:29:51]dirname=/storage/ofd_packets [18:29:51]CheckFolder done [18:29:51]ProducePacketName [18:29:51]name=ofd_packets/00048929 [18:29:51]NVStorageSaveData ofd_packets/00048929 [18:29:51]File name is /storage/ofd_packets/00048929 [18:29:51]Write 298 bytes [18:29:51]NVStorageSaveData done [18:29:51]OFDSenderStorePacket done [18:29:51]KKMCreateOFDPacket done [18:29:51]NVStorageSaveData kkm_last_timestamp [18:29:51]File name is /storage/kkm_last_timestamp [18:29:51]Write 4 bytes [18:29:51]NVStorageSaveData done [18:29:51]ExternCall_PrintAddStr [18:29:51]wPrintStart [18:29:51]Write to MH i2c: 01 00 00 67 21 88 [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 07 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 07 00 67 21 00 00 00 00 00 FF 0F 9D [18:29:51]RasterBufferAndPrint [18:29:51]line Счет N : (1)216028 [18:29:51]line ИНН: 02508201610067 [18:29:51]line Контрольно-Кассовый Чек [18:29:51]line ПРОДАЖА [18:29:51]line ТРК (МРК, ГНК) : 21 [18:29:51]line Товар: 2710194210 [18:29:51]line ДТ-К-5 [18:29:51]line 14.310 * 69.90 [18:29:51]line = 1000.27 [18:29:51]line НДС 12% НСП 1% [18:29:51]line > о реализуемом товаре [18:29:51]line ОКРУГЛЕНИЕ: -0.27 [18:29:51]line ИТОГО: 1000.00 [18:29:51]line Внесено: 1000.00 [18:29:51]line СДАЧА: 0.00 [18:29:51]line НСП 1% : 8.85 [18:29:51]line НДС 12% : 106.22 [18:29:51]line Наличными: 1000.00 [18:29:51]line Безнал.: 0.00 [18:29:51]line Место: АЗС № 102 "Партнер Нефть" [18:29:51]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:29:51]line СНО: Общий режим [18:29:51]line Чек 109 27.01.2024 18:29 [18:29:51]line Смена: 243 ФФД: 1.0 [18:29:51]line ЗНМ: 0300000040 [18:29:51]line РНМ: 0000000000092723 [18:29:51]line Версия ККМ: 001 [18:29:51]line ФМ: 0000000000875060 [18:29:51]line ФД: 48929 [18:29:51]line ФПД: 148001195083538 [18:29:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T182954&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48929&fm=148001195083538&tin=02508201610067®Number=0000000000092723&sum=100000 [18:29:51]OFD Sender: Processing packet 48929 [packets to send 12, broken 11] [18:29:51]ProducePacketName [18:29:51]name=ofd_packets/00048929 [18:29:51]OFD Sender: To server: pG, [18:29:51]CommunicateWithHost lk.salyk.kg:30040 [18:29:51]ConnectInit lk.salyk.kg [18:29:51]written 0, free lines is 4095 [18:29:51]Connected sock=10 [18:29:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 F1 19 04 01 BF FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A2 4B B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 21 BF 00 00 35 04 06 00 86 9B 36 A8 C7 12 61 78 B7 74 31 37 8A F2 [18:29:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7F 57 47 00 5E 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 35 30 36 30 10 04 04 00 21 BF 00 00 F4 03 04 00 9F F7 B4 65 B6 04 01 00 00 A4 FB AC 53 5D 6C 47 9F [18:29:51]CommunicateWithHost err = 0 [18:29:51]CheckOFDResponse [18:29:51]1017 (14) - 77093643461234 [18:29:51]1041 (16) - 0000000000875060 [18:29:51]1040 (4) - 48929 [18:29:51]1012 (4) - 27.01.2024 12:31 [18:29:51]1206 (1) - 0 [18:29:51]OFD Sender: Remove packet 48929 [18:29:51]ProducePacketName [18:29:51]name=ofd_packets/00048929 [18:29:51]NVStorageDeleteData [18:29:51]Write to MH i2c: 01 00 00 92 21 B3 [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 07 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: 01 07 00 92 21 00 00 00 00 00 FD 0C C3 [18:29:51]RasterBufferAndPrint [18:29:51]line [18:29:51]line [18:29:51]line [18:29:51]line [18:29:51]line [18:29:51]written 0, free lines is 3331 [18:29:51]MH_Cut [18:29:51]Write to MH i2c: D1 01 00 99 21 01 8C [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: D1 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: D1 01 00 [18:29:51]MH_I2C_Read... [18:29:51]Read from MH i2c: D1 01 00 99 21 00 8B [18:29:51]Write to MH i2c: 01 00 00 9A 21 BB [18:29:51]Write i2c OK [18:29:51]MH_I2C_Read... [18:29:52]OFD Sender: No OFD packet to send [18:29:52]*** Cut start [18:29:52]*** Partial cut [18:29:52]*** CUTSNS_PIN = 1 [18:29:52]*** CUTSNS_PIN = 0 [18:29:52]*** Brake cut motor [18:29:53]Read from MH i2c: 01 [18:29:53]MH_I2C_Read... [18:29:53]*** Stop cut motor [18:29:53]*** Cut end [18:29:53]Read from MH i2c: 01 07 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: 01 07 00 9A 21 00 00 00 00 00 FF 0F D0 [18:29:53]process_action close_receipt done [18:29:53]requested_data is exist [18:29:53]produce_requested_data [18:29:53]requested_item fm.sn is exist - process it [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 11 00 00 [18:29:53]Write to MH i2c: E2 08 00 9B 21 80 11 00 00 00 00 00 00 36 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 17 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 17 00 9B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 83 [18:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:29:53]wFMCommunicate OK [18:29:53]requested_item fd.num is exist - process it [18:29:53]SAM_PROTO_GetFieldsCounters [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 13 00 00 [18:29:53]Write to MH i2c: E2 08 00 9C 21 80 13 00 00 00 00 00 00 39 [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 62 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 62 00 9C 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 21 BF 00 00 0E 04 04 00 F3 00 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 6C [18:29: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 21 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:53]wFMCommunicate OK [18:29:53]SAM_PROTO_GetFieldsCounters done [18:29:53]requested_item shift.num is exist - process it [18:29:53]requested_item shift.opened is exist - process it [18:29:53]req_shift_opened [18:29:53]FM_GetShiftState [18:29:53]SAM_PROTO_GetShiftState [18:29:53]wFMCommunicate request_size=4 [18:29:53]MH_SAM_APDU [18:29:53]CAPDU: 80 13 01 00 [18:29:53]Write to MH i2c: E2 08 00 9D 21 80 13 01 00 00 00 00 00 3B [18:29:53]Write i2c OK [18:29:53]MH_I2C_Read... [18:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:53]Read from MH i2c: E2 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 [18:29:53]MH_I2C_Read... [18:29:53]Read from MH i2c: E2 0E 00 9D 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D2 [18:29:53]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:29:53]wFMCommunicate OK [18:29:53]SAM_PROTO_GetShiftState done [18:29:53]FM_GetShiftState done [18:29:53]req_shift_opened done [18:29:53]requested_item shift.open_date is exist - process it [18:29:53]req_shift_open_date [18:29:53]req_shift_open_date done [18:29:53]produce_requested_data done [18:29:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48929,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [18:29:53]process_action_free close_receipt [18:29:53]json_value_free [18:29:53]json_value_free done [18:29:53]process_json_proto returns [18:29:53]Send response to host [18:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48929,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [18:29:53]free response buf [18:29:53]execute_script done [18:29:53]execute_script returns [18:29:53]free content buf [18:29:53]Sock 9.Close socket [18:29:53]Sock 9.Thread stoped [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:28]accept exits with 7 [18:34:28]New connection [18:34:28]New thread 3066813796 created [18:34:28]Thread 3066670436 joined [18:34:28]Waiting for new connection... [18:34:28] Sock 7.Parse request [18:34:28]Sock 7.Check first char [18:34:28]Sock 7.First char is OK [18:34:28]request: POST /json_proto HTTP/1.0 [18:34:28]Method: POST [18:34:28]URL: /json_proto [18:34:28]Method is POST - this is cgi request [18:34:28]url: /json_proto [18:34:28]query_string will be loaded in cgi processing [18:34:28]execute_cgi json_proto POST (null) [18:34:28]execute_cgi path=json_proto method=POST [18:34:28]POST find Content-Length [18:34:28]Host: 172.17.56.67:8080 [18:34:28]Content-Length: 675 [18:34:28]Content-Type: application/json [18:34:28] [18:34:28]POST finish read [18:34:28]Found Content-Length = 675 [18:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:28]execute_script... [18:34:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:28]POST & json_proto [18:34:28]process_json_proto [18:34:28]json parsed OK: [18:34:28]protocol is kg_v1.0 [18:34:28]action value=close_receipt [18:34:28]process_action close_receipt [18:34:28]cmd_close_receipt [18:34:28]MH_GetDate [18:34:28]Write to MH i2c: F0 00 00 9E 21 AE [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 09 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: F0 09 00 9E 21 00 B8 4C B5 65 26 5D 9E 65 5B [18:34:28]GetLastDocTimeStamp 1706380194 [18:34:28]current date 1706380472 [18:34:28]FM_GetShiftState [18:34:28]SAM_PROTO_GetShiftState [18:34:28]wFMCommunicate request_size=4 [18:34:28]MH_SAM_APDU [18:34:28]CAPDU: 80 13 01 00 [18:34:28]Write to MH i2c: E2 08 00 9F 21 80 13 01 00 00 00 00 00 3D [18:34:28]Write i2c OK [18:34:28]MH_I2C_Read... [18:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:28]Read from MH i2c: E2 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 [18:34:28]MH_I2C_Read... [18:34:28]Read from MH i2c: E2 0E 00 9F 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 D4 [18:34:28]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:34:28]wFMCommunicate OK [18:34:28]SAM_PROTO_GetShiftState done [18:34:28]FM_GetShiftState done [18:34:28]opened in 1706313770 [18:34:28]opened+sec_in_day 1706400170 [18:34:28]quantity*price = 70039 [18:34:28]sum+1 = 70041 [18:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 110 27.01.2024 18:34 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48930 ФПД: 106442440836296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T183432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48930&fm=106442440836296&tin=02508201610067®Number=0000000000092723&sum=70000 [18:34:29]StoreToDocumentArchive [18:34:29]shift 243 fd 48930 [18:34:29]save to /storage/0243/doc_00048930 [18:34:29]save last doc name /storage/0243/doc_00048930 to /storage/kkm_last_doc_name [18:34:29]save OK [18:34:29]Clear old archive folders... [18:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:34:29]tlvbuf is B6E86160 [18:34:29]SAM_PROTO_ClearQueue [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 09 00 00 [18:34:29]Write to MH i2c: E2 08 00 AC 21 80 09 00 00 00 00 00 00 3F [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 AC 21 00 90 00 41 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_ClearQueue done [18:34:29]KKMCreateOFDPacket [18:34:29]OFDProtocolAddRootSTLVToBuf [18:34:29]FM_MakeSignedData [18:34:29]FM_MakeSignedData [18:34:29]SAM_PROTO_SignData [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 01 02 [18:34:29]Write to MH i2c: E2 08 00 AD 21 80 0D 01 02 00 00 00 00 47 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 AD 21 00 90 00 42 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=255 [18:34:29]MH_SAM_APDU [18:34: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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6E 00 00 00 F4 03 04 00 B8 4C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 BF 00 00 35 04 06 00 60 CF 0F E0 [18:34:29]Write to MH i2c: E2 02 01 AE 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 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6E 00 00 00 F4 03 04 00 B8 4C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 BF 00 00 35 04 06 00 60 CF 0F E0 00 00 15 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 AE 21 00 90 00 43 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=7 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 02 02 02 04 C8 [18:34:29]Write to MH i2c: E2 0A 00 AF 21 80 0D 02 02 02 00 04 C8 00 00 1A [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 03 00 AF 21 00 90 00 44 [18:34:29]RAPDU: 90 00 [18:34:29]wFMCommunicate OK [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 0D 03 02 [18:34:29]Write to MH i2c: E2 08 00 B0 21 80 0D 03 02 00 00 00 00 4C [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0B 00 B0 21 00 3A 60 D7 7D E5 5D 09 5B 90 00 E1 [18:34:29]RAPDU: 3A 60 D7 7D E5 5D 09 5B 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_SignData done [18:34:29]FM_MakeSignedData done [18:34:29]CreateOFDProtocolMessage [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 11 00 00 [18:34:29]Write to MH i2c: E2 08 00 B1 21 80 11 00 00 00 00 00 00 4C [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 17 00 B1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 99 [18:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:34:29]wFMCommunicate OK [18:34:29]CreateOFDProtocolMessage done [18:34:29]OFDSenderStorePacket 48930 [18:34:29]StoreOFDPacket docnum=48930 [18:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 AD 08 04 01 0C D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6E 00 00 00 F4 03 04 00 B8 4C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 BF 00 00 35 04 06 00 60 CF 0F E0 04 C8 3A 60 D7 7D E5 5D 09 5B [18:34:29]CheckFolder [18:34:29]dirname=/storage/ofd_packets [18:34:29]CheckFolder done [18:34:29]ProducePacketName [18:34:29]name=ofd_packets/00048930 [18:34:29]NVStorageSaveData ofd_packets/00048930 [18:34:29]File name is /storage/ofd_packets/00048930 [18:34:29]Write 298 bytes [18:34:29]NVStorageSaveData done [18:34:29]OFDSenderStorePacket done [18:34:29]KKMCreateOFDPacket done [18:34:29]NVStorageSaveData kkm_last_timestamp [18:34:29]File name is /storage/kkm_last_timestamp [18:34:29]Write 4 bytes [18:34:29]NVStorageSaveData done [18:34:29]ExternCall_PrintAddStr [18:34:29]wPrintStart [18:34:29]Write to MH i2c: 01 00 00 B2 21 D3 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: 01 07 00 B2 21 00 00 00 00 00 FF 0F E8 [18:34:29]RasterBufferAndPrint [18:34:29]line Счет N : (1)216029 [18:34:29]line ИНН: 02508201610067 [18:34:29]line Контрольно-Кассовый Чек [18:34:29]line ПРОДАЖА [18:34:29]line ТРК (МРК, ГНК) : 21 [18:34:29]line Товар: 2710194210 [18:34:29]line ДТ-К-5 [18:34:29]line 10.020 * 69.90 [18:34:29]line = 700.40 [18:34:29]line НДС 12% НСП 1% [18:34:29]line > о реализуемом товаре [18:34:29]line ОКРУГЛЕНИЕ: -0.40 [18:34:29]line ИТОГО: 700.00 [18:34:29]line Внесено: 700.00 [18:34:29]line СДАЧА: 0.00 [18:34:29]line НСП 1% : 6.20 [18:34:29]line НДС 12% : 74.38 [18:34:29]line Наличными: 700.00 [18:34:29]line Безнал.: 0.00 [18:34:29]line Место: АЗС № 102 "Партнер Нефть" [18:34:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:34:29]line СНО: Общий режим [18:34:29]line Чек 110 27.01.2024 18:34 [18:34:29]line Смена: 243 ФФД: 1.0 [18:34:29]line ЗНМ: 0300000040 [18:34:29]line РНМ: 0000000000092723 [18:34:29]line Версия ККМ: 001 [18:34:29]line ФМ: 0000000000875060 [18:34:29]line ФД: 48930 [18:34:29]line ФПД: 106442440836296 [18:34:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T183432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48930&fm=106442440836296&tin=02508201610067®Number=0000000000092723&sum=70000 [18:34:30]OFD Sender: Processing packet 48930 [packets to send 12, broken 11] [18:34:30]ProducePacketName [18:34:30]name=ofd_packets/00048930 [18:34:30]OFD Sender: To server: pG, [18:34:30]CommunicateWithHost lk.salyk.kg:30040 [18:34:30]ConnectInit lk.salyk.kg [18:34:30]written 0, free lines is 4095 [18:34:30]Connected sock=11 [18:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 AD 08 04 01 0C D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 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 6E 00 00 00 F4 03 04 00 B8 4C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 BF 00 00 35 04 06 00 60 CF 0F E0 04 C8 3A 60 D7 7D E5 5D 09 5B [18:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 BF 91 47 00 3B DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 22 BF 00 00 F4 03 04 00 B6 F8 B4 65 B6 04 01 00 00 84 83 CB B1 58 2F 2E D0 [18:34:30]CommunicateWithHost err = 0 [18:34:30]CheckOFDResponse [18:34:30]1017 (14) - 77093643461234 [18:34:30]1041 (16) - 0000000000875060 [18:34:30]1040 (4) - 48930 [18:34:30]1012 (4) - 27.01.2024 12:36 [18:34:30]1206 (1) - 0 [18:34:30]OFD Sender: Remove packet 48930 [18:34:30]ProducePacketName [18:34:30]name=ofd_packets/00048930 [18:34:30]NVStorageDeleteData [18:34:30]Write to MH i2c: 01 00 00 DD 21 FE [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 DD 21 00 00 00 00 00 FC 0C 0D [18:34:30]RasterBufferAndPrint [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]line [18:34:30]written 0, free lines is 3330 [18:34:30]MH_Cut [18:34:30]Write to MH i2c: D1 01 00 E4 21 01 D7 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: D1 01 00 E4 21 00 D6 [18:34:30]Write to MH i2c: 01 00 00 E5 21 06 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:31]OFD Sender: No OFD packet to send [18:34:31]*** Cut start [18:34:31]*** Partial cut [18:34:31]*** CUTSNS_PIN = 1 [18:34:31]*** CUTSNS_PIN = 0 [18:34:31]*** Brake cut motor [18:34:31]Read from MH i2c: 01 [18:34:32]MH_I2C_Read... [18:34:32]*** Stop cut motor [18:34:32]*** Cut end [18:34:32]Read from MH i2c: 01 07 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: 01 07 00 E5 21 00 00 00 00 00 FF 0F 1B [18:34:32]process_action close_receipt done [18:34:32]requested_data is exist [18:34:32]produce_requested_data [18:34:32]requested_item fm.sn is exist - process it [18:34:32]wFMCommunicate request_size=4 [18:34:32]MH_SAM_APDU [18:34:32]CAPDU: 80 11 00 00 [18:34:32]Write to MH i2c: E2 08 00 E6 21 80 11 00 00 00 00 00 00 81 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 17 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 17 00 E6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CE [18:34:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:34:32]wFMCommunicate OK [18:34:32]requested_item fd.num is exist - process it [18:34:32]SAM_PROTO_GetFieldsCounters [18:34:32]wFMCommunicate request_size=4 [18:34:32]MH_SAM_APDU [18:34:32]CAPDU: 80 13 00 00 [18:34:32]Write to MH i2c: E2 08 00 E7 21 80 13 00 00 00 00 00 00 84 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 62 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 62 00 E7 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 22 BF 00 00 0E 04 04 00 F3 00 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 BB [18:34: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 22 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:32]wFMCommunicate OK [18:34:32]SAM_PROTO_GetFieldsCounters done [18:34:32]requested_item shift.num is exist - process it [18:34:32]requested_item shift.opened is exist - process it [18:34:32]req_shift_opened [18:34:32]FM_GetShiftState [18:34:32]SAM_PROTO_GetShiftState [18:34:32]wFMCommunicate request_size=4 [18:34:32]MH_SAM_APDU [18:34:32]CAPDU: 80 13 01 00 [18:34:32]Write to MH i2c: E2 08 00 E8 21 80 13 01 00 00 00 00 00 86 [18:34:32]Write i2c OK [18:34:32]MH_I2C_Read... [18:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:32]Read from MH i2c: E2 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 [18:34:32]MH_I2C_Read... [18:34:32]Read from MH i2c: E2 0E 00 E8 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1D [18:34:32]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:34:32]wFMCommunicate OK [18:34:32]SAM_PROTO_GetShiftState done [18:34:32]FM_GetShiftState done [18:34:32]req_shift_opened done [18:34:32]requested_item shift.open_date is exist - process it [18:34:32]req_shift_open_date [18:34:32]req_shift_open_date done [18:34:32]produce_requested_data done [18:34:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48930,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [18:34:32]process_action_free close_receipt [18:34:32]json_value_free [18:34:32]json_value_free done [18:34:32]process_json_proto returns [18:34:32]Send response to host [18:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48930,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [18:34:32]free response buf [18:34:32]execute_script done [18:34:32]execute_script returns [18:34:32]free content buf [18:34:32]Sock 7.Close socket [18:34:32]Sock 7.Thread stoped [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:19]accept exits with 9 [18:51:19]New connection [18:51:19]New thread 3066670436 created [18:51:19]Thread 3066813796 joined [18:51:19]Waiting for new connection... [18:51:19] Sock 9.Parse request [18:51:19]Sock 9.Check first char [18:51:19]Sock 9.First char is OK [18:51:19]request: POST /json_proto HTTP/1.0 [18:51:19]Method: POST [18:51:19]URL: /json_proto [18:51:19]Method is POST - this is cgi request [18:51:19]url: /json_proto [18:51:19]query_string will be loaded in cgi processing [18:51:19]execute_cgi json_proto POST (null) [18:51:19]execute_cgi path=json_proto method=POST [18:51:19]POST find Content-Length [18:51:19]Host: 172.17.56.67:8080 [18:51:19]Content-Length: 674 [18:51:19]Content-Type: application/json [18:51:19] [18:51:19]POST finish read [18:51:19]Found Content-Length = 674 [18:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:19]execute_script... [18:51: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)216030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:19]POST & json_proto [18:51:19]process_json_proto [18:51:19]json parsed OK: [18:51:19]protocol is kg_v1.0 [18:51:19]action value=close_receipt [18:51:19]process_action close_receipt [18:51:19]cmd_close_receipt [18:51:19]MH_GetDate [18:51:19]Write to MH i2c: F0 00 00 E9 21 F9 [18:51:19]Write i2c OK [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 09 00 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: F0 09 00 E9 21 00 AC 50 B5 65 26 5D 9E 65 9E [18:51:19]GetLastDocTimeStamp 1706380472 [18:51:19]current date 1706381484 [18:51:19]FM_GetShiftState [18:51:19]SAM_PROTO_GetShiftState [18:51:19]wFMCommunicate request_size=4 [18:51:19]MH_SAM_APDU [18:51:19]CAPDU: 80 13 01 00 [18:51:19]Write to MH i2c: E2 08 00 EA 21 80 13 01 00 00 00 00 00 88 [18:51:19]Write i2c OK [18:51:19]MH_I2C_Read... [18:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:19]Read from MH i2c: E2 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 [18:51:19]MH_I2C_Read... [18:51:19]Read from MH i2c: E2 0E 00 EA 21 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1F [18:51:19]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:51:19]wFMCommunicate OK [18:51:19]SAM_PROTO_GetShiftState done [18:51:19]FM_GetShiftState done [18:51:19]opened in 1706313770 [18:51:19]opened+sec_in_day 1706400170 [18:51:19]quantity*price = 50048 [18:51:19]sum+1 = 50049 [18:51:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 111 27.01.2024 18:51 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48931 ФПД: 94692916508274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T185124&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48931&fm=94692916508274&tin=02508201610067®Number=0000000000092723&sum=50000 [18:51:21]StoreToDocumentArchive [18:51:21]shift 243 fd 48931 [18:51:21]save to /storage/0243/doc_00048931 [18:51:21]save last doc name /storage/0243/doc_00048931 to /storage/kkm_last_doc_name [18:51:21]save OK [18:51:21]Clear old archive folders... [18:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:51:21]tlvbuf is B6E86250 [18:51:21]SAM_PROTO_ClearQueue [18:51:21]wFMCommunicate request_size=4 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 09 00 00 [18:51:21]Write to MH i2c: E2 08 00 F7 21 80 09 00 00 00 00 00 00 8A [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [18:51:21]RAPDU: 90 00 [18:51:21]wFMCommunicate OK [18:51:21]SAM_PROTO_ClearQueue done [18:51:21]KKMCreateOFDPacket [18:51:21]OFDProtocolAddRootSTLVToBuf [18:51:21]FM_MakeSignedData [18:51:21]FM_MakeSignedData [18:51:21]SAM_PROTO_SignData [18:51:21]wFMCommunicate request_size=4 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 0D 01 02 [18:51:21]Write to MH i2c: E2 08 00 F8 21 80 0D 01 02 00 00 00 00 92 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [18:51:21]RAPDU: 90 00 [18:51:21]wFMCommunicate OK [18:51:21]wFMCommunicate request_size=255 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 50 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 BF 00 00 35 04 06 00 56 1F 69 A6 [18:51:21]Write to MH i2c: E2 02 01 F9 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 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 50 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 BF 00 00 35 04 06 00 56 1F 69 A6 00 00 3D [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [18:51:21]RAPDU: 90 00 [18:51:21]wFMCommunicate OK [18:51:21]wFMCommunicate request_size=7 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 0D 02 02 02 B6 72 [18:51:21]Write to MH i2c: E2 0A 00 FA 21 80 0D 02 02 02 00 B6 72 00 00 C1 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 03 00 FA 21 00 90 00 8F [18:51:21]RAPDU: 90 00 [18:51:21]wFMCommunicate OK [18:51:21]wFMCommunicate request_size=4 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 0D 03 02 [18:51:21]Write to MH i2c: E2 08 00 FB 21 80 0D 03 02 00 00 00 00 97 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 0B 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 0B 00 FB 21 00 89 F6 15 27 86 82 28 8C 90 00 0F [18:51:21]RAPDU: 89 F6 15 27 86 82 28 8C 90 00 [18:51:21]wFMCommunicate OK [18:51:21]SAM_PROTO_SignData done [18:51:21]FM_MakeSignedData done [18:51:21]CreateOFDProtocolMessage [18:51:21]wFMCommunicate request_size=4 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 11 00 00 [18:51:21]Write to MH i2c: E2 08 00 FC 21 80 11 00 00 00 00 00 00 97 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 17 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 17 00 FC 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E4 [18:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:51:21]wFMCommunicate OK [18:51:21]CreateOFDProtocolMessage done [18:51:21]OFDSenderStorePacket 48931 [18:51:21]StoreOFDPacket docnum=48931 [18:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 19 67 04 01 06 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 50 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 BF 00 00 35 04 06 00 56 1F 69 A6 B6 72 89 F6 15 27 86 82 28 8C [18:51:21]CheckFolder [18:51:21]dirname=/storage/ofd_packets [18:51:21]CheckFolder done [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00048931 [18:51:21]NVStorageSaveData ofd_packets/00048931 [18:51:21]File name is /storage/ofd_packets/00048931 [18:51:21]Write 298 bytes [18:51:21]NVStorageSaveData done [18:51:21]OFDSenderStorePacket done [18:51:21]KKMCreateOFDPacket done [18:51:21]NVStorageSaveData kkm_last_timestamp [18:51:21]File name is /storage/kkm_last_timestamp [18:51:21]Write 4 bytes [18:51:21]NVStorageSaveData done [18:51:21]OFD Sender: Processing packet 48931 [packets to send 12, broken 11] [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00048931 [18:51:21]OFD Sender: To server: pG, [18:51:21]CommunicateWithHost lk.salyk.kg:30040 [18:51:21]ConnectInit lk.salyk.kg [18:51:21]ExternCall_PrintAddStr [18:51:21]wPrintStart [18:51:21]Write to MH i2c: 01 00 00 FD 21 1E [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: 01 07 00 FD 21 00 00 00 00 00 FF 0F 33 [18:51:21]RasterBufferAndPrint [18:51:21]line Счет N : (1)216030 [18:51:21]line ИНН: 02508201610067 [18:51:21]line Контрольно-Кассовый Чек [18:51:21]line ПРОДАЖА [18:51:21]line ТРК (МРК, ГНК) : 21 [18:51:21]line Товар: 2710194210 [18:51:21]line ДТ-К-5 [18:51:21]line 7.160 * 69.90 [18:51:21]line = 500.48 [18:51:21]line НДС 12% НСП 1% [18:51:21]line > о реализуемом товаре [18:51:21]line ОКРУГЛЕНИЕ: -0.48 [18:51:21]line ИТОГО: 500.00 [18:51:21]line Внесено: 500.00 [18:51:21]line СДАЧА: 0.00 [18:51:21]line НСП 1% : 4.43 [18:51:21]line НДС 12% : 53.15 [18:51:21]line Наличными: 500.00 [18:51:21]line Безнал.: 0.00 [18:51:21]line Место: АЗС № 102 "Партнер Нефть" [18:51:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:51:21]line СНО: Общий режим [18:51:21]line Чек 111 27.01.2024 18:51 [18:51:21]line Смена: 243 ФФД: 1.0 [18:51:21]line ЗНМ: 0300000040 [18:51:21]line РНМ: 0000000000092723 [18:51:21]line Версия ККМ: 001 [18:51:21]line ФМ: 0000000000875060 [18:51:21]line ФД: 48931 [18:51:21]line ФПД: 94692916508274 [18:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T185124&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48931&fm=94692916508274&tin=02508201610067®Number=0000000000092723&sum=50000 [18:51:21]Connected sock=11 [18:51:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 19 67 04 01 06 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AC 50 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 BF 00 00 35 04 06 00 56 1F 69 A6 B6 72 89 F6 15 27 86 82 28 8C [18:51:21]written 0, free lines is 4095 [18:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D5 D0 47 00 9C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 23 BF 00 00 F4 03 04 00 AA FC B4 65 B6 04 01 00 00 70 ED F8 63 51 4F 5C D0 [18:51:22]CommunicateWithHost err = 0 [18:51:22]CheckOFDResponse [18:51:22]1017 (14) - 77093643461234 [18:51:22]1041 (16) - 0000000000875060 [18:51:22]1040 (4) - 48931 [18:51:22]1012 (4) - 27.01.2024 12:52 [18:51:22]1206 (1) - 0 [18:51:22]OFD Sender: Remove packet 48931 [18:51:22]ProducePacketName [18:51:22]name=ofd_packets/00048931 [18:51:22]NVStorageDeleteData [18:51:22]Write to MH i2c: 01 00 00 28 22 4A [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: 01 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: 01 07 00 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: 01 07 00 28 22 00 00 00 00 00 E8 0C 45 [18:51:22]RasterBufferAndPrint [18:51:22]line [18:51:22]line [18:51:22]line [18:51:22]line [18:51:22]line [18:51:22]written 0, free lines is 3311 [18:51:22]MH_Cut [18:51:22]Write to MH i2c: D1 01 00 2F 22 01 23 [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: D1 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: D1 01 00 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: D1 01 00 2F 22 00 22 [18:51:22]Write to MH i2c: 01 00 00 30 22 52 [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:22]OFD Sender: No OFD packet to send [18:51:23]*** Cut start [18:51:23]*** Partial cut [18:51:23]*** CUTSNS_PIN = 1 [18:51:23]*** CUTSNS_PIN = 0 [18:51:23]*** Brake cut motor [18:51:23]Read from MH i2c: 01 [18:51:23]MH_I2C_Read... [18:51:23]*** Stop cut motor [18:51:23]*** Cut end [18:51:23]Read from MH i2c: 01 07 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: 01 07 00 30 22 00 00 00 00 00 FF 0F 67 [18:51:23]process_action close_receipt done [18:51:23]requested_data is exist [18:51:23]produce_requested_data [18:51:23]requested_item fm.sn is exist - process it [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 11 00 00 [18:51:23]Write to MH i2c: E2 08 00 31 22 80 11 00 00 00 00 00 00 CD [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 17 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 17 00 31 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1A [18:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:51:23]wFMCommunicate OK [18:51:23]requested_item fd.num is exist - process it [18:51:23]SAM_PROTO_GetFieldsCounters [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 13 00 00 [18:51:23]Write to MH i2c: E2 08 00 32 22 80 13 00 00 00 00 00 00 D0 [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 62 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 62 00 32 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 23 BF 00 00 0E 04 04 00 F3 00 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 0B [18:51: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 23 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:23]wFMCommunicate OK [18:51:23]SAM_PROTO_GetFieldsCounters done [18:51:23]requested_item shift.num is exist - process it [18:51:23]requested_item shift.opened is exist - process it [18:51:23]req_shift_opened [18:51:23]FM_GetShiftState [18:51:23]SAM_PROTO_GetShiftState [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 13 01 00 [18:51:23]Write to MH i2c: E2 08 00 33 22 80 13 01 00 00 00 00 00 D2 [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0E 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0E 00 33 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 69 [18:51:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:51:23]wFMCommunicate OK [18:51:23]SAM_PROTO_GetShiftState done [18:51:23]FM_GetShiftState done [18:51:23]req_shift_opened done [18:51:23]requested_item shift.open_date is exist - process it [18:51:23]req_shift_open_date [18:51:23]req_shift_open_date done [18:51:23]produce_requested_data done [18:51:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48931,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [18:51:23]process_action_free close_receipt [18:51:23]json_value_free [18:51:23]json_value_free done [18:51:23]process_json_proto returns [18:51:23]Send response to host [18:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48931,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [18:51:23]free response buf [18:51:23]execute_script done [18:51:23]execute_script returns [18:51:23]free content buf [18:51:23]Sock 9.Close socket [18:51:23]Sock 9.Thread stoped [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:22]OFD Sender: No OFD packet to send [18:56:26]accept exits with 7 [18:56:26]New connection [18:56:26]New thread 3066813796 created [18:56:26]Thread 3066670436 joined [18:56:26]Waiting for new connection... [18:56:26] Sock 7.Parse request [18:56:26]Sock 7.Check first char [18:56:26]Sock 7.First char is OK [18:56:26]request: POST /json_proto HTTP/1.0 [18:56:26]Method: POST [18:56:26]URL: /json_proto [18:56:26]Method is POST - this is cgi request [18:56:26]url: /json_proto [18:56:26]query_string will be loaded in cgi processing [18:56:26]execute_cgi json_proto POST (null) [18:56:26]execute_cgi path=json_proto method=POST [18:56:26]POST find Content-Length [18:56:26]Host: 172.17.56.67:8080 [18:56:26]Content-Length: 679 [18:56:26]Content-Type: application/json [18:56:26] [18:56:26]POST finish read [18:56:26]Found Content-Length = 679 [18:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 20.030, "sum" : 1400.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:26]execute_script... [18:56: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)216031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 20.030, "sum" : 1400.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:26]POST & json_proto [18:56:26]process_json_proto [18:56:26]json parsed OK: [18:56:26]protocol is kg_v1.0 [18:56:26]action value=close_receipt [18:56:26]process_action close_receipt [18:56:26]cmd_close_receipt [18:56:26]MH_GetDate [18:56:26]Write to MH i2c: F0 00 00 34 22 45 [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 09 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: F0 09 00 34 22 00 DF 51 B5 65 26 5D 9E 65 1E [18:56:26]GetLastDocTimeStamp 1706381484 [18:56:26]current date 1706381791 [18:56:26]FM_GetShiftState [18:56:26]SAM_PROTO_GetShiftState [18:56:26]wFMCommunicate request_size=4 [18:56:26]MH_SAM_APDU [18:56:26]CAPDU: 80 13 01 00 [18:56:26]Write to MH i2c: E2 08 00 35 22 80 13 01 00 00 00 00 00 D4 [18:56:26]Write i2c OK [18:56:26]MH_I2C_Read... [18:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:26]Read from MH i2c: E2 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: E2 0E 00 [18:56:26]MH_I2C_Read... [18:56:26]Read from MH i2c: E2 0E 00 35 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 6B [18:56:26]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:56:26]wFMCommunicate OK [18:56:26]SAM_PROTO_GetShiftState done [18:56:26]FM_GetShiftState done [18:56:26]opened in 1706313770 [18:56:26]opened+sec_in_day 1706400170 [18:56:26]quantity*price = 140009 [18:56:26]sum+1 = 140011 [18:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 112 27.01.2024 18:56 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48932 ФПД: 134826222875447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T185631&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48932&fm=134826222875447&tin=02508201610067®Number=0000000000092723&sum=140000 [18:56:27]StoreToDocumentArchive [18:56:27]shift 243 fd 48932 [18:56:27]save to /storage/0243/doc_00048932 [18:56:27]save last doc name /storage/0243/doc_00048932 to /storage/kkm_last_doc_name [18:56:27]save OK [18:56:27]Clear old archive folders... [18:56:27]OFD Sender: No OFD packet to send [18:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:56:27]tlvbuf is 011DAA60 [18:56:27]SAM_PROTO_ClearQueue [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 09 00 00 [18:56:27]Write to MH i2c: E2 08 00 42 22 80 09 00 00 00 00 00 00 D6 [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 42 22 00 90 00 D8 [18:56:27]RAPDU: 90 00 [18:56:27]wFMCommunicate OK [18:56:27]SAM_PROTO_ClearQueue done [18:56:27]KKMCreateOFDPacket [18:56:27]OFDProtocolAddRootSTLVToBuf [18:56:27]FM_MakeSignedData [18:56:27]FM_MakeSignedData [18:56:27]SAM_PROTO_SignData [18:56:27]wFMCommunicate request_size=4 [18:56:27]MH_SAM_APDU [18:56:27]CAPDU: 80 0D 01 02 [18:56:27]Write to MH i2c: E2 08 00 43 22 80 0D 01 02 00 00 00 00 DE [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:27]Read from MH i2c: E2 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 [18:56:27]MH_I2C_Read... [18:56:27]Read from MH i2c: E2 03 00 43 22 00 90 00 D9 [18:56:27]RAPDU: 90 00 [18:56:27]wFMCommunicate OK [18:56:27]wFMCommunicate request_size=255 [18:56:27]MH_SAM_APDU [18:56: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 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DF 51 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 BF 00 00 35 04 06 00 7A 9F AD 1E [18:56:27]Write to MH i2c: E2 02 01 44 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 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DF 51 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 BF 00 00 35 04 06 00 7A 9F AD 1E 00 00 DB [18:56:27]Write i2c OK [18:56:27]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 44 22 00 90 00 DA [18:56:28]RAPDU: 90 00 [18:56:28]wFMCommunicate OK [18:56:28]wFMCommunicate request_size=7 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 0D 02 02 02 F3 37 [18:56:28]Write to MH i2c: E2 0A 00 45 22 80 0D 02 02 02 00 F3 37 00 00 0F [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 03 00 45 22 00 90 00 DB [18:56:28]RAPDU: 90 00 [18:56:28]wFMCommunicate OK [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 0D 03 02 [18:56:28]Write to MH i2c: E2 08 00 46 22 80 0D 03 02 00 00 00 00 E3 [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0B 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 0B 00 46 22 00 BA EB D4 BE AA EA 5F 39 90 00 47 [18:56:28]RAPDU: BA EB D4 BE AA EA 5F 39 90 00 [18:56:28]wFMCommunicate OK [18:56:28]SAM_PROTO_SignData done [18:56:28]FM_MakeSignedData done [18:56:28]CreateOFDProtocolMessage [18:56:28]wFMCommunicate request_size=4 [18:56:28]MH_SAM_APDU [18:56:28]CAPDU: 80 11 00 00 [18:56:28]Write to MH i2c: E2 08 00 47 22 80 11 00 00 00 00 00 00 E3 [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:28]Read from MH i2c: E2 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 17 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: E2 17 00 47 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 30 [18:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:56:28]wFMCommunicate OK [18:56:28]CreateOFDProtocolMessage done [18:56:28]OFDSenderStorePacket 48932 [18:56:28]StoreOFDPacket docnum=48932 [18:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 95 4E 04 01 40 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DF 51 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 BF 00 00 35 04 06 00 7A 9F AD 1E F3 37 BA EB D4 BE AA EA 5F 39 [18:56:28]CheckFolder [18:56:28]dirname=/storage/ofd_packets [18:56:28]CheckFolder done [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00048932 [18:56:28]NVStorageSaveData ofd_packets/00048932 [18:56:28]File name is /storage/ofd_packets/00048932 [18:56:28]Write 298 bytes [18:56:28]NVStorageSaveData done [18:56:28]OFDSenderStorePacket done [18:56:28]KKMCreateOFDPacket done [18:56:28]NVStorageSaveData kkm_last_timestamp [18:56:28]File name is /storage/kkm_last_timestamp [18:56:28]Write 4 bytes [18:56:28]NVStorageSaveData done [18:56:28]OFD Sender: Processing packet 48932 [packets to send 12, broken 11] [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00048932 [18:56:28]OFD Sender: To server: pG, [18:56:28]CommunicateWithHost lk.salyk.kg:30040 [18:56:28]ConnectInit lk.salyk.kg [18:56:28]ExternCall_PrintAddStr [18:56:28]wPrintStart [18:56:28]Write to MH i2c: 01 00 00 48 22 6A [18:56:28]Write i2c OK [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 07 00 [18:56:28]MH_I2C_Read... [18:56:28]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 FF 0F 7F [18:56:28]RasterBufferAndPrint [18:56:28]line Счет N : (1)216031 [18:56:28]line ИНН: 02508201610067 [18:56:28]line Контрольно-Кассовый Чек [18:56:28]line ПРОДАЖА [18:56:28]line ТРК (МРК, ГНК) : 11 [18:56:28]line Товар: 2710194210 [18:56:28]line ДТ-К-5 [18:56:28]line 20.030 * 69.90 [18:56:28]line = 1400.10 [18:56:28]line НДС 12% НСП 1% [18:56:28]line > о реализуемом товаре [18:56:28]line ОКРУГЛЕНИЕ: -0.10 [18:56:28]line ИТОГО: 1400.00 [18:56:28]line Внесено: 1400.00 [18:56:28]line СДАЧА: 0.00 [18:56:28]line НСП 1% : 12.39 [18:56:28]line НДС 12% : 148.68 [18:56:28]line Наличными: 1400.00 [18:56:28]line Безнал.: 0.00 [18:56:28]line Место: АЗС № 102 "Партнер Нефть" [18:56:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:56:28]line СНО: Общий режим [18:56:28]line Чек 112 27.01.2024 18:56 [18:56:28]line Смена: 243 ФФД: 1.0 [18:56:28]line ЗНМ: 0300000040 [18:56:28]line РНМ: 0000000000092723 [18:56:28]line Версия ККМ: 001 [18:56:28]line ФМ: 0000000000875060 [18:56:28]line ФД: 48932 [18:56:28]line ФПД: 134826222875447 [18:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T185631&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48932&fm=134826222875447&tin=02508201610067®Number=0000000000092723&sum=140000 [18:56:28]Connected sock=11 [18:56:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 95 4E 04 01 40 D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3E 4E 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 EA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 DF 51 B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 BF 00 00 35 04 06 00 7A 9F AD 1E F3 37 BA EB D4 BE AA EA 5F 39 [18:56:28]written 0, free lines is 4095 [18:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 77 4D 47 00 B4 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 24 BF 00 00 F4 03 04 00 DD FD B4 65 B6 04 01 00 00 FA 47 5B A1 95 91 E7 2F [18:56:28]CommunicateWithHost err = 0 [18:56:28]CheckOFDResponse [18:56:28]1017 (14) - 77093643461234 [18:56:28]1041 (16) - 0000000000875060 [18:56:28]1040 (4) - 48932 [18:56:28]1012 (4) - 27.01.2024 12:58 [18:56:28]1206 (1) - 0 [18:56:28]OFD Sender: Remove packet 48932 [18:56:28]ProducePacketName [18:56:28]name=ofd_packets/00048932 [18:56:28]NVStorageDeleteData [18:56:29]Write to MH i2c: 01 00 00 73 22 95 [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 07 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: 01 07 00 73 22 00 00 00 00 00 F6 0C 9E [18:56:29]RasterBufferAndPrint [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]line [18:56:29]written 0, free lines is 3324 [18:56:29]MH_Cut [18:56:29]Write to MH i2c: D1 01 00 7A 22 01 6E [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: D1 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: D1 01 00 [18:56:29]MH_I2C_Read... [18:56:29]Read from MH i2c: D1 01 00 7A 22 00 6D [18:56:29]Write to MH i2c: 01 00 00 7B 22 9D [18:56:29]Write i2c OK [18:56:29]MH_I2C_Read... [18:56:29]OFD Sender: No OFD packet to send [18:56:29]*** Cut start [18:56:29]*** Partial cut [18:56:29]*** CUTSNS_PIN = 1 [18:56:29]*** CUTSNS_PIN = 0 [18:56:30]*** Brake cut motor [18:56:30]Read from MH i2c: 01 [18:56:30]MH_I2C_Read... [18:56:30]*** Stop cut motor [18:56:30]*** Cut end [18:56:30]Read from MH i2c: 01 07 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: 01 07 00 7B 22 00 00 00 00 00 FF 0F B2 [18:56:30]process_action close_receipt done [18:56:30]requested_data is exist [18:56:30]produce_requested_data [18:56:30]requested_item fm.sn is exist - process it [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 11 00 00 [18:56:30]Write to MH i2c: E2 08 00 7C 22 80 11 00 00 00 00 00 00 18 [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 17 00 7C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 65 [18:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:56:30]wFMCommunicate OK [18:56:30]requested_item fd.num is exist - process it [18:56:30]SAM_PROTO_GetFieldsCounters [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 13 00 00 [18:56:30]Write to MH i2c: E2 08 00 7D 22 80 13 00 00 00 00 00 00 1B [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 62 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 62 00 7D 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 24 BF 00 00 0E 04 04 00 F3 00 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 5A [18:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 24 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_GetFieldsCounters done [18:56:30]requested_item shift.num is exist - process it [18:56:30]requested_item shift.opened is exist - process it [18:56:30]req_shift_opened [18:56:30]FM_GetShiftState [18:56:30]SAM_PROTO_GetShiftState [18:56:30]wFMCommunicate request_size=4 [18:56:30]MH_SAM_APDU [18:56:30]CAPDU: 80 13 01 00 [18:56:30]Write to MH i2c: E2 08 00 7E 22 80 13 01 00 00 00 00 00 1D [18:56:30]Write i2c OK [18:56:30]MH_I2C_Read... [18:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:30]Read from MH i2c: E2 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0E 00 [18:56:30]MH_I2C_Read... [18:56:30]Read from MH i2c: E2 0E 00 7E 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B4 [18:56:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [18:56:30]wFMCommunicate OK [18:56:30]SAM_PROTO_GetShiftState done [18:56:30]FM_GetShiftState done [18:56:30]req_shift_opened done [18:56:30]requested_item shift.open_date is exist - process it [18:56:30]req_shift_open_date [18:56:30]req_shift_open_date done [18:56:30]produce_requested_data done [18:56:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48932,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [18:56:30]process_action_free close_receipt [18:56:30]json_value_free [18:56:30]json_value_free done [18:56:30]process_json_proto returns [18:56:30]Send response to host [18:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48932,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [18:56:30]free response buf [18:56:30]execute_script done [18:56:30]execute_script returns [18:56:30]free content buf [18:56:30]Sock 7.Close socket [18:56:30]Sock 7.Thread stoped [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:30]OFD Sender: No OFD packet to send [19:13:35]OFD Sender: No OFD packet to send [19:13:40]OFD Sender: No OFD packet to send [19:13:45]OFD Sender: No OFD packet to send [19:13:50]OFD Sender: No OFD packet to send [19:13:55]OFD Sender: No OFD packet to send [19:14:00]OFD Sender: No OFD packet to send [19:14:05]OFD Sender: No OFD packet to send [19:14:10]OFD Sender: No OFD packet to send [19:14:15]OFD Sender: No OFD packet to send [19:14:20]OFD Sender: No OFD packet to send [19:14:25]OFD Sender: No OFD packet to send [19:14:30]OFD Sender: No OFD packet to send [19:14:35]OFD Sender: No OFD packet to send [19:14:40]OFD Sender: No OFD packet to send [19:14:45]OFD Sender: No OFD packet to send [19:14:50]OFD Sender: No OFD packet to send [19:14:55]OFD Sender: No OFD packet to send [19:15:00]OFD Sender: No OFD packet to send [19:15:05]OFD Sender: No OFD packet to send [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:26]accept exits with 9 [19:40:26]New connection [19:40:26]New thread 3066670436 created [19:40:26]Thread 3066813796 joined [19:40:26]Waiting for new connection... [19:40:26] Sock 9.Parse request [19:40:26]Sock 9.Check first char [19:40:26]Sock 9.First char is OK [19:40:26]request: POST /json_proto HTTP/1.0 [19:40:26]Method: POST [19:40:26]URL: /json_proto [19:40:26]Method is POST - this is cgi request [19:40:26]url: /json_proto [19:40:26]query_string will be loaded in cgi processing [19:40:26]execute_cgi json_proto POST (null) [19:40:26]execute_cgi path=json_proto method=POST [19:40:26]POST find Content-Length [19:40:26]Host: 172.17.56.67:8080 [19:40:26]Content-Length: 679 [19:40:26]Content-Type: application/json [19:40:26] [19:40:26]POST finish read [19:40:26]Found Content-Length = 679 [19:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:26]execute_script... [19:40: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)216032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 21.460, "sum" : 1500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:26]POST & json_proto [19:40:26]process_json_proto [19:40:26]json parsed OK: [19:40:26]protocol is kg_v1.0 [19:40:26]action value=close_receipt [19:40:26]process_action close_receipt [19:40:26]cmd_close_receipt [19:40:26]MH_GetDate [19:40:26]Write to MH i2c: F0 00 00 7F 22 90 [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: F0 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: F0 09 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: F0 09 00 7F 22 00 2F 5C B5 65 26 5D 9E 65 C4 [19:40:26]GetLastDocTimeStamp 1706381791 [19:40:26]current date 1706384431 [19:40:26]FM_GetShiftState [19:40:26]SAM_PROTO_GetShiftState [19:40:26]wFMCommunicate request_size=4 [19:40:26]MH_SAM_APDU [19:40:26]CAPDU: 80 13 01 00 [19:40:26]Write to MH i2c: E2 08 00 80 22 80 13 01 00 00 00 00 00 1F [19:40:26]Write i2c OK [19:40:26]MH_I2C_Read... [19:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:26]Read from MH i2c: E2 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 [19:40:26]MH_I2C_Read... [19:40:26]Read from MH i2c: E2 0E 00 80 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 B6 [19:40:26]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [19:40:26]wFMCommunicate OK [19:40:26]SAM_PROTO_GetShiftState done [19:40:26]FM_GetShiftState done [19:40:26]opened in 1706313770 [19:40:26]opened+sec_in_day 1706400170 [19:40:26]quantity*price = 150005 [19:40:26]sum+1 = 150006 [19:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 113 27.01.2024 19:40 Смена: 243 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48933 ФПД: 244428771803393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T194031&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48933&fm=244428771803393&tin=02508201610067®Number=0000000000092723&sum=150000 [19:40:27]StoreToDocumentArchive [19:40:27]shift 243 fd 48933 [19:40:27]save to /storage/0243/doc_00048933 [19:40:27]save last doc name /storage/0243/doc_00048933 to /storage/kkm_last_doc_name [19:40:27]save OK [19:40:27]Clear old archive folders... [19:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:27]tlvbuf is B6E869F0 [19:40:27]SAM_PROTO_ClearQueue [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 09 00 00 [19:40:27]Write to MH i2c: E2 08 00 8D 22 80 09 00 00 00 00 00 00 21 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:27]Read from MH i2c: E2 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 [19:40:27]MH_I2C_Read... [19:40:27]Read from MH i2c: E2 03 00 8D 22 00 90 00 23 [19:40:27]RAPDU: 90 00 [19:40:27]wFMCommunicate OK [19:40:27]SAM_PROTO_ClearQueue done [19:40:27]KKMCreateOFDPacket [19:40:27]OFDProtocolAddRootSTLVToBuf [19:40:27]FM_MakeSignedData [19:40:27]FM_MakeSignedData [19:40:27]SAM_PROTO_SignData [19:40:27]wFMCommunicate request_size=4 [19:40:27]MH_SAM_APDU [19:40:27]CAPDU: 80 0D 01 02 [19:40:27]Write to MH i2c: E2 08 00 8E 22 80 0D 01 02 00 00 00 00 29 [19:40:27]Write i2c OK [19:40:27]MH_I2C_Read... [19:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 8E 22 00 90 00 24 [19:40:28]RAPDU: 90 00 [19:40:28]wFMCommunicate OK [19:40:28]wFMCommunicate request_size=255 [19:40:28]MH_SAM_APDU [19:40: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 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 71 00 00 00 F4 03 04 00 2F 5C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 BF 00 00 35 04 06 00 DE 4E 82 1D [19:40:28]Write to MH i2c: E2 02 01 8F 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 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 71 00 00 00 F4 03 04 00 2F 5C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 BF 00 00 35 04 06 00 DE 4E 82 1D 00 00 28 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 8F 22 00 90 00 25 [19:40:28]RAPDU: 90 00 [19:40:28]wFMCommunicate OK [19:40:28]wFMCommunicate request_size=7 [19:40:28]MH_SAM_APDU [19:40:28]CAPDU: 80 0D 02 02 02 C1 01 [19:40:28]Write to MH i2c: E2 0A 00 90 22 80 0D 02 02 02 00 C1 01 00 00 F2 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 03 00 90 22 00 90 00 26 [19:40:28]RAPDU: 90 00 [19:40:28]wFMCommunicate OK [19:40:28]wFMCommunicate request_size=4 [19:40:28]MH_SAM_APDU [19:40:28]CAPDU: 80 0D 03 02 [19:40:28]Write to MH i2c: E2 08 00 91 22 80 0D 03 02 00 00 00 00 2E [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 0B 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 0B 00 91 22 00 1B 4D 4C 0B 04 21 BB CF 90 00 9D [19:40:28]RAPDU: 1B 4D 4C 0B 04 21 BB CF 90 00 [19:40:28]wFMCommunicate OK [19:40:28]SAM_PROTO_SignData done [19:40:28]FM_MakeSignedData done [19:40:28]CreateOFDProtocolMessage [19:40:28]wFMCommunicate request_size=4 [19:40:28]MH_SAM_APDU [19:40:28]CAPDU: 80 11 00 00 [19:40:28]Write to MH i2c: E2 08 00 92 22 80 11 00 00 00 00 00 00 2E [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 17 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 17 00 92 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7B [19:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:40:28]wFMCommunicate OK [19:40:28]CreateOFDProtocolMessage done [19:40:28]OFDSenderStorePacket 48933 [19:40:28]StoreOFDPacket docnum=48933 [19:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 78 95 04 01 B3 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 71 00 00 00 F4 03 04 00 2F 5C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 BF 00 00 35 04 06 00 DE 4E 82 1D C1 01 1B 4D 4C 0B 04 21 BB CF [19:40:28]CheckFolder [19:40:28]dirname=/storage/ofd_packets [19:40:28]CheckFolder done [19:40:28]ProducePacketName [19:40:28]name=ofd_packets/00048933 [19:40:28]NVStorageSaveData ofd_packets/00048933 [19:40:28]File name is /storage/ofd_packets/00048933 [19:40:28]Write 298 bytes [19:40:28]NVStorageSaveData done [19:40:28]OFDSenderStorePacket done [19:40:28]KKMCreateOFDPacket done [19:40:28]NVStorageSaveData kkm_last_timestamp [19:40:28]File name is /storage/kkm_last_timestamp [19:40:28]Write 4 bytes [19:40:28]NVStorageSaveData done [19:40:28]ExternCall_PrintAddStr [19:40:28]wPrintStart [19:40:28]Write to MH i2c: 01 00 00 93 22 B5 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 07 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: 01 07 00 93 22 00 00 00 00 00 FF 0F CA [19:40:28]RasterBufferAndPrint [19:40:28]line Счет N : (1)216032 [19:40:28]line ИНН: 02508201610067 [19:40:28]line Контрольно-Кассовый Чек [19:40:28]line ПРОДАЖА [19:40:28]line ТРК (МРК, ГНК) : 11 [19:40:28]line Товар: 2710194210 [19:40:28]line ДТ-К-5 [19:40:28]line 21.460 * 69.90 [19:40:28]line = 1500.05 [19:40:28]line НДС 12% НСП 1% [19:40:28]line > о реализуемом товаре [19:40:28]line ОКРУГЛЕНИЕ: -0.05 [19:40:28]line ИТОГО: 1500.00 [19:40:28]line Внесено: 1500.00 [19:40:28]line СДАЧА: 0.00 [19:40:28]line НСП 1% : 13.27 [19:40:28]line НДС 12% : 159.30 [19:40:28]line Наличными: 1500.00 [19:40:28]line Безнал.: 0.00 [19:40:28]line Место: АЗС № 102 "Партнер Нефть" [19:40:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:40:28]line СНО: Общий режим [19:40:28]line Чек 113 27.01.2024 19:40 [19:40:28]line Смена: 243 ФФД: 1.0 [19:40:28]line ЗНМ: 0300000040 [19:40:28]line РНМ: 0000000000092723 [19:40:28]line Версия ККМ: 001 [19:40:28]line ФМ: 0000000000875060 [19:40:28]line ФД: 48933 [19:40:28]line ФПД: 244428771803393 [19:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240127T194031&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48933&fm=244428771803393&tin=02508201610067®Number=0000000000092723&sum=150000 [19:40:28]OFD Sender: Processing packet 48933 [packets to send 12, broken 11] [19:40:28]ProducePacketName [19:40:28]name=ofd_packets/00048933 [19:40:28]OFD Sender: To server: pG, [19:40:28]CommunicateWithHost lk.salyk.kg:30040 [19:40:28]ConnectInit lk.salyk.kg [19:40:28]written 0, free lines is 4095 [19:40:28]Connected sock=10 [19:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 78 95 04 01 B3 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 53 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 F5 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 71 00 00 00 F4 03 04 00 2F 5C B5 65 0E 04 04 00 F3 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 25 BF 00 00 35 04 06 00 DE 4E 82 1D C1 01 1B 4D 4C 0B 04 21 BB CF [19:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4D 28 47 00 F7 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 35 30 36 30 10 04 04 00 25 BF 00 00 F4 03 04 00 2D 08 B5 65 B6 04 01 00 00 60 1B 43 8F 55 37 1D 63 [19:40:29]CommunicateWithHost err = 0 [19:40:29]CheckOFDResponse [19:40:29]1017 (14) - 77093643461234 [19:40:29]1041 (16) - 0000000000875060 [19:40:29]1040 (4) - 48933 [19:40:29]1012 (4) - 27.01.2024 13:42 [19:40:29]1206 (1) - 0 [19:40:29]OFD Sender: Remove packet 48933 [19:40:29]ProducePacketName [19:40:29]name=ofd_packets/00048933 [19:40:29]NVStorageDeleteData [19:40:29]Write to MH i2c: 01 00 00 BE 22 E0 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 07 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 07 00 BE 22 00 00 00 00 00 F2 0C E5 [19:40:29]RasterBufferAndPrint [19:40:29]line [19:40:29]line [19:40:29]line [19:40:29]line [19:40:29]line [19:40:29]written 0, free lines is 3321 [19:40:29]MH_Cut [19:40:29]Write to MH i2c: D1 01 00 C5 22 01 B9 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: D1 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: D1 01 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: D1 01 00 C5 22 00 B8 [19:40:29]Write to MH i2c: 01 00 00 C6 22 E8 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]OFD Sender: No OFD packet to send [19:40:29]*** Cut start [19:40:29]*** Partial cut [19:40:29]*** CUTSNS_PIN = 1 [19:40:29]*** CUTSNS_PIN = 0 [19:40:30]*** Brake cut motor [19:40:30]Read from MH i2c: 01 [19:40:30]MH_I2C_Read... [19:40:30]*** Stop cut motor [19:40:30]*** Cut end [19:40:30]Read from MH i2c: 01 07 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: 01 07 00 C6 22 00 00 00 00 00 FF 0F FD [19:40:30]process_action close_receipt done [19:40:30]requested_data is exist [19:40:30]produce_requested_data [19:40:30]requested_item fm.sn is exist - process it [19:40:30]wFMCommunicate request_size=4 [19:40:30]MH_SAM_APDU [19:40:30]CAPDU: 80 11 00 00 [19:40:30]Write to MH i2c: E2 08 00 C7 22 80 11 00 00 00 00 00 00 63 [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:30]Read from MH i2c: E2 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 17 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 17 00 C7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B0 [19:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:40:30]wFMCommunicate OK [19:40:30]requested_item fd.num is exist - process it [19:40:30]SAM_PROTO_GetFieldsCounters [19:40:30]wFMCommunicate request_size=4 [19:40:30]MH_SAM_APDU [19:40:30]CAPDU: 80 13 00 00 [19:40:30]Write to MH i2c: E2 08 00 C8 22 80 13 00 00 00 00 00 00 66 [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:30]Read from MH i2c: E2 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 62 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 62 00 C8 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 A9 [19:40: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:30]wFMCommunicate OK [19:40:30]SAM_PROTO_GetFieldsCounters done [19:40:30]requested_item shift.num is exist - process it [19:40:30]requested_item shift.opened is exist - process it [19:40:30]req_shift_opened [19:40:30]FM_GetShiftState [19:40:30]SAM_PROTO_GetShiftState [19:40:30]wFMCommunicate request_size=4 [19:40:30]MH_SAM_APDU [19:40:30]CAPDU: 80 13 01 00 [19:40:30]Write to MH i2c: E2 08 00 C9 22 80 13 01 00 00 00 00 00 68 [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:30]Read from MH i2c: E2 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 0E 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: E2 0E 00 C9 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 FF [19:40:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [19:40:30]wFMCommunicate OK [19:40:30]SAM_PROTO_GetShiftState done [19:40:30]FM_GetShiftState done [19:40:30]req_shift_opened done [19:40:30]requested_item shift.open_date is exist - process it [19:40:30]req_shift_open_date [19:40:30]req_shift_open_date done [19:40:30]produce_requested_data done [19:40:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [19:40:30]process_action_free close_receipt [19:40:30]json_value_free [19:40:30]json_value_free done [19:40:30]process_json_proto returns [19:40:30]Send response to host [19:40:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [19:40:30]free response buf [19:40:30]execute_script done [19:40:30]execute_script returns [19:40:30]free content buf [19:40:30]Sock 9.Close socket [19:40:30]Sock 9.Thread stoped [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:55]OFD Sender: No OFD packet to send [20:07:00]OFD Sender: No OFD packet to send [20:07:05]OFD Sender: No OFD packet to send [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]OFD Sender: No OFD packet to send [20:07:55]OFD Sender: No OFD packet to send [20:08:00]OFD Sender: No OFD packet to send [20:08:05]OFD Sender: No OFD packet to send [20:08:10]OFD Sender: No OFD packet to send [20:08:15]OFD Sender: No OFD packet to send [20:08:20]OFD Sender: No OFD packet to send [20:08:25]OFD Sender: No OFD packet to send [20:08:30]OFD Sender: No OFD packet to send [20:08:35]OFD Sender: No OFD packet to send [20:08:40]OFD Sender: No OFD packet to send [20:08:45]OFD Sender: No OFD packet to send [20:08:50]OFD Sender: No OFD packet to send [20:08:55]OFD Sender: No OFD packet to send [20:09:00]OFD Sender: No OFD packet to send [20:09:05]OFD Sender: No OFD packet to send [20:09:10]OFD Sender: No OFD packet to send [20:09:15]OFD Sender: No OFD packet to send [20:09:20]OFD Sender: No OFD packet to send [20:09:25]OFD Sender: No OFD packet to send [20:09:30]OFD Sender: No OFD packet to send [20:09:35]OFD Sender: No OFD packet to send [20:09:40]OFD Sender: No OFD packet to send [20:09:45]OFD Sender: No OFD packet to send [20:09:50]OFD Sender: No OFD packet to send [20:09:55]OFD Sender: No OFD packet to send [20:10:00]OFD Sender: No OFD packet to send [20:10:05]OFD Sender: No OFD packet to send [20:10:10]OFD Sender: No OFD packet to send [20:10:15]OFD Sender: No OFD packet to send [20:10:20]OFD Sender: No OFD packet to send [20:10:25]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:41]OFD Sender: No OFD packet to send [20:21:46]OFD Sender: No OFD packet to send [20:21:51]OFD Sender: No OFD packet to send [20:21:56]OFD Sender: No OFD packet to send [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:04]OFD Sender: No OFD packet to send [23:08:09]OFD Sender: No OFD packet to send [23:08:14]OFD Sender: No OFD packet to send [23:08:19]OFD Sender: No OFD packet to send [23:08:24]OFD Sender: No OFD packet to send [23:08:29]OFD Sender: No OFD packet to send [23:08:34]OFD Sender: No OFD packet to send [23:08:39]OFD Sender: No OFD packet to send [23:08:44]OFD Sender: No OFD packet to send [23:08:49]OFD Sender: No OFD packet to send [23:08:54]OFD Sender: No OFD packet to send [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]OFD Sender: No OFD packet to send [23:17:29]OFD Sender: No OFD packet to send [23:17:34]OFD Sender: No OFD packet to send [23:17:39]OFD Sender: No OFD packet to send [23:17:44]OFD Sender: No OFD packet to send [23:17:49]OFD Sender: No OFD packet to send [23:17:54]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:04]int [23:52:04]Write to MH i2c: 01 00 00 CA 22 EC [23:52:04]*** FLAG_PRN_KEY set [23:52:04]Write i2c OK [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 CA 22 00 08 00 00 00 FF 0F 09 [23:52:04]state=0 [23:52:04]Key pressed [23:52:04]Feed [23:52:04]Write to MH i2c: D8 00 00 CB 22 C4 [23:52:04]Write i2c OK [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: D8 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: D8 01 00 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: D8 01 00 CB 22 00 C5 [23:52:04]int [23:52:04]Write to MH i2c: 01 00 00 CC 22 EE [23:52:04]Write i2c OK [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 CC 22 00 48 00 00 00 3C 00 79 [23:52:04]state=2 [23:52:04]Key pressed [23:52:04]int [23:52:04]Write to MH i2c: 01 00 00 CD 22 EF [23:52:04]*** FLAG_PRN_KEY reset [23:52:04]Write i2c OK [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 [23:52:04]MH_I2C_Read... [23:52:04]Read from MH i2c: 01 07 00 CD 22 00 00 00 00 00 F5 0F FA [23:52:04]state=2 [23:52:04]Stop feed [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:22]accept exits with 7 [23:52:22]New connection [23:52:22]New thread 3066813796 created [23:52:22]Thread 3066670436 joined [23:52:22]Waiting for new connection... [23:52:22] Sock 7.Parse request [23:52:22]Sock 7.Check first char [23:52:22]Sock 7.First char is OK [23:52:22]request: POST /json_proto HTTP/1.0 [23:52:22]Method: POST [23:52:22]URL: /json_proto [23:52:22]Method is POST - this is cgi request [23:52:22]url: /json_proto [23:52:22]query_string will be loaded in cgi processing [23:52:22]execute_cgi json_proto POST (null) [23:52:22]execute_cgi path=json_proto method=POST [23:52:22]POST find Content-Length [23:52:22]Host: 172.17.56.67:8080 [23:52:22]Content-Length: 215 [23:52:22]Content-Type: application/json [23:52:22] [23:52:22]POST finish read [23:52:22]Found Content-Length = 215 [23:52:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:22]execute_script... [23:52:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:22]POST & json_proto [23:52:22]process_json_proto [23:52:22]json parsed OK: [23:52:22]protocol is kg_v1.0 [23:52:22]action value=get_value [23:52:22]process_action get_value [23:52:22]cmd_get_value [23:52:22]process_action get_value done [23:52:22]requested_data is exist [23:52:22]produce_requested_data [23:52:22]requested_item kkm.sn is exist - process it [23:52:22]requested_item kkm.ver is exist - process it [23:52:22]requested_item fm.sn is exist - process it [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 11 00 00 [23:52:22]Write to MH i2c: E2 08 00 CE 22 80 11 00 00 00 00 00 00 6A [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:22]Read from MH i2c: E2 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 [23:52:22]MH_I2C_Read... [23:52:22]Read from MH i2c: E2 17 00 CE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B7 [23:52:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:52:22]wFMCommunicate OK [23:52:22]requested_item fd.num is exist - process it [23:52:22]SAM_PROTO_GetFieldsCounters [23:52:22]wFMCommunicate request_size=4 [23:52:22]MH_SAM_APDU [23:52:22]CAPDU: 80 13 00 00 [23:52:22]Write to MH i2c: E2 08 00 CF 22 80 13 00 00 00 00 00 00 6D [23:52:22]Write i2c OK [23:52:22]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 62 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 62 00 CF 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 B0 [23:52: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 [23:52:23]wFMCommunicate OK [23:52:23]SAM_PROTO_GetFieldsCounters done [23:52:23]requested_item shift.num is exist - process it [23:52:23]requested_item shift.opened is exist - process it [23:52:23]req_shift_opened [23:52:23]FM_GetShiftState [23:52:23]SAM_PROTO_GetShiftState [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 13 01 00 [23:52:23]Write to MH i2c: E2 08 00 D0 22 80 13 01 00 00 00 00 00 6F [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 0E 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 0E 00 D0 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 06 [23:52:23]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [23:52:23]wFMCommunicate OK [23:52:23]SAM_PROTO_GetShiftState done [23:52:23]FM_GetShiftState done [23:52:23]req_shift_opened done [23:52:23]requested_item shift.open_date is exist - process it [23:52:23]req_shift_open_date [23:52:23]req_shift_open_date done [23:52:23]produce_requested_data done [23:52:23]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [23:52:23]process_action_free get_value [23:52:23]json_value_free [23:52:23]json_value_free done [23:52:23]process_json_proto returns [23:52:23]Send response to host [23:52:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [23:52:23]free response buf [23:52:23]execute_script done [23:52:23]execute_script returns [23:52:23]free content buf [23:52:23]Sock 7.Close socket [23:52:23]Sock 7.Thread stoped [23:52:23]accept exits with 9 [23:52:23]New connection [23:52:23]New thread 3066670436 created [23:52:23]Thread 3066813796 joined [23:52:23]Waiting for new connection... [23:52:23] Sock 9.Parse request [23:52:23]Sock 9.Check first char [23:52:23]Sock 9.First char is OK [23:52:23]request: POST /json_proto HTTP/1.0 [23:52:23]Method: POST [23:52:23]URL: /json_proto [23:52:23]Method is POST - this is cgi request [23:52:23]url: /json_proto [23:52:23]query_string will be loaded in cgi processing [23:52:23]execute_cgi json_proto POST (null) [23:52:23]execute_cgi path=json_proto method=POST [23:52:23]POST find Content-Length [23:52:23]Host: 172.17.56.67:8080 [23:52:23]Content-Length: 331 [23:52:23]Content-Type: application/json [23:52:23] [23:52:23]POST finish read [23:52:23]Found Content-Length = 331 [23:52:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:23]execute_script... [23:52:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:23]POST & json_proto [23:52:23]process_json_proto [23:52:23]json parsed OK: [23:52:23]protocol is kg_v1.0 [23:52:23]action value=get_value [23:52:23]process_action get_value [23:52:23]cmd_get_value [23:52:23]process_action get_value done [23:52:23]requested_data is exist [23:52:23]produce_requested_data [23:52:23]requested_item fm.sale.total is exist - process it [23:52:23]SAM_PROTO_GetFMData [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 13 03 00 [23:52:23]Write to MH i2c: E2 08 00 D1 22 80 13 03 00 00 00 00 00 72 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:23]Read from MH i2c: E2 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 [23:52:23]MH_I2C_Read... [23:52:23]Read from MH i2c: E2 FD 00 D1 22 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 70 [23:52:23]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:52:23]wFMCommunicate OK [23:52:23]wFMCommunicate request_size=4 [23:52:23]MH_SAM_APDU [23:52:23]CAPDU: 80 17 00 00 [23:52:23]Write to MH i2c: E2 08 00 D2 22 80 17 00 00 00 00 00 00 74 [23:52:23]Write i2c OK [23:52:23]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 D2 22 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 24 [23:52:24]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 D3 22 80 17 00 00 00 00 00 00 75 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 D3 22 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 19 [23:52:24]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 D4 22 80 17 00 00 00 00 00 00 76 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 FD 00 D4 22 00 00 04 F7 03 00 00 EF 03 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 90 00 F0 [23:52:24]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:24]wFMCommunicate OK [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 17 00 00 [23:52:24]Write to MH i2c: E2 08 00 D5 22 80 17 00 00 00 00 00 00 77 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 [23:52:24]MH_I2C_Read... [23:52:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:52:24]Read from MH i2c: E2 DC 00 [23:52:24]MH_I2C_Read... [23:52:24]Read from MH i2c: E2 DC 00 D5 22 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [23:52:24]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:24]wFMCommunicate OK [23:52:24]SAM_PROTO_GetFMData done [23:52:24]requested_item fm.sale_refund.total is exist - process it [23:52:24]requested_item fm.buy.total is exist - process it [23:52:24]requested_item shift.sale.total is exist - process it [23:52:24]SAM_PROTO_GetShiftData [23:52:24]wFMCommunicate request_size=4 [23:52:24]MH_SAM_APDU [23:52:24]CAPDU: 80 13 02 00 [23:52:24]Write to MH i2c: E2 08 00 D6 22 80 13 02 00 00 00 00 00 76 [23:52:24]Write i2c OK [23:52:24]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 D6 22 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D4 [23:52:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 D7 22 80 17 00 00 00 00 00 00 79 [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 D7 22 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 9B [23:52:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 D8 22 80 17 00 00 00 00 00 00 7A [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:25]Read from MH i2c: E2 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 [23:52:25]MH_I2C_Read... [23:52:25]Read from MH i2c: E2 FD 00 D8 22 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 31 [23:52:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:25]wFMCommunicate OK [23:52:25]wFMCommunicate request_size=4 [23:52:25]MH_SAM_APDU [23:52:25]CAPDU: 80 17 00 00 [23:52:25]Write to MH i2c: E2 08 00 D9 22 80 17 00 00 00 00 00 00 7B [23:52:25]Write i2c OK [23:52:25]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 D9 22 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 ED [23:52:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:26]wFMCommunicate OK [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 17 00 00 [23:52:26]Write to MH i2c: E2 08 00 DA 22 80 17 00 00 00 00 00 00 7C [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 CB 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 CB 00 DA 22 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [23:52:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:26]wFMCommunicate OK [23:52:26]SAM_PROTO_GetShiftData done [23:52:26]requested_item shift.sale.total_cash is exist - process it [23:52:26]requested_item shift.sale_refund.total is exist - process it [23:52:26]requested_item shift.sale_refund.total_cash is exist - process it [23:52:26]requested_item shift.buy.total is exist - process it [23:52:26]requested_item shift.buy.total_cash is exist - process it [23:52:26]produce_requested_data done [23:52:26]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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} [23:52:26]process_action_free get_value [23:52:26]json_value_free [23:52:26]json_value_free done [23:52:26]process_json_proto returns [23:52:26]Send response to host [23:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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}}} [23:52:26]free response buf [23:52:26]execute_script done [23:52:26]execute_script returns [23:52:26]free content buf [23:52:26]Sock 9.Close socket [23:52:26]Sock 9.Thread stoped [23:52:26]accept exits with 7 [23:52:26]New connection [23:52:26]New thread 3066813796 created [23:52:26]Thread 3066670436 joined [23:52:26]Waiting for new connection... [23:52:26] Sock 7.Parse request [23:52:26]Sock 7.Check first char [23:52:26]Sock 7.First char is OK [23:52:26]request: POST /json_proto HTTP/1.0 [23:52:26]Method: POST [23:52:26]URL: /json_proto [23:52:26]Method is POST - this is cgi request [23:52:26]url: /json_proto [23:52:26]query_string will be loaded in cgi processing [23:52:26]execute_cgi json_proto POST (null) [23:52:26]execute_cgi path=json_proto method=POST [23:52:26]POST find Content-Length [23:52:26]Host: 172.17.56.67:8080 [23:52:26]Content-Length: 331 [23:52:26]Content-Type: application/json [23:52:26] [23:52:26]POST finish read [23:52:26]Found Content-Length = 331 [23:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:26]execute_script... [23:52:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:26]POST & json_proto [23:52:26]process_json_proto [23:52:26]json parsed OK: [23:52:26]protocol is kg_v1.0 [23:52:26]action value=get_value [23:52:26]process_action get_value [23:52:26]cmd_get_value [23:52:26]process_action get_value done [23:52:26]requested_data is exist [23:52:26]produce_requested_data [23:52:26]requested_item fm.sale.total is exist - process it [23:52:26]SAM_PROTO_GetFMData [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 13 03 00 [23:52:26]Write to MH i2c: E2 08 00 DB 22 80 13 03 00 00 00 00 00 7C [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:26]OFD Sender: No OFD packet to send [23:52:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:26]Read from MH i2c: E2 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 [23:52:26]MH_I2C_Read... [23:52:26]Read from MH i2c: E2 FD 00 DB 22 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 7A [23:52:27]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 DC 22 80 17 00 00 00 00 00 00 7E [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 DC 22 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 2E [23:52:27]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 DD 22 80 17 00 00 00 00 00 00 7F [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 DD 22 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 23 [23:52:27]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 DE 22 80 17 00 00 00 00 00 00 80 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 DE 22 00 00 04 F7 03 00 00 EF 03 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 90 00 FA [23:52:28]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 DF 22 80 17 00 00 00 00 00 00 81 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 DC 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 DC 00 DF 22 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [23:52:28]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:28]wFMCommunicate OK [23:52:28]SAM_PROTO_GetFMData done [23:52:28]requested_item fm.sale_refund.total is exist - process it [23:52:28]requested_item fm.buy.total is exist - process it [23:52:28]requested_item shift.sale.total is exist - process it [23:52:28]SAM_PROTO_GetShiftData [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 13 02 00 [23:52:28]Write to MH i2c: E2 08 00 E0 22 80 13 02 00 00 00 00 00 80 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 E0 22 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DE [23:52:28]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 E1 22 80 17 00 00 00 00 00 00 83 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 E1 22 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A5 [23:52:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 E2 22 80 17 00 00 00 00 00 00 84 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 E2 22 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 3B [23:52:29]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 E3 22 80 17 00 00 00 00 00 00 85 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 E3 22 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F7 [23:52:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 E4 22 80 17 00 00 00 00 00 00 86 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 CB 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 CB 00 E4 22 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [23:52:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetShiftData done [23:52:30]requested_item shift.sale.total_cash is exist - process it [23:52:30]requested_item shift.sale_refund.total is exist - process it [23:52:30]requested_item shift.sale_refund.total_cash is exist - process it [23:52:30]requested_item shift.buy.total is exist - process it [23:52:30]requested_item shift.buy.total_cash is exist - process it [23:52:30]produce_requested_data done [23:52:30]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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} [23:52:30]process_action_free get_value [23:52:30]json_value_free [23:52:30]json_value_free done [23:52:30]process_json_proto returns [23:52:30]Send response to host [23:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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}}} [23:52:30]free response buf [23:52:30]execute_script done [23:52:30]execute_script returns [23:52:30]free content buf [23:52:30]Sock 7.Close socket [23:52:30]Sock 7.Thread stoped [23:52:30]accept exits with 9 [23:52:30]New connection [23:52:30]New thread 3066670436 created [23:52:30]Thread 3066813796 joined [23:52:30]Waiting for new connection... [23:52:30] Sock 9.Parse request [23:52:30]Sock 9.Check first char [23:52:30]Sock 9.First char is OK [23:52:30]request: POST /json_proto HTTP/1.0 [23:52:30]Method: POST [23:52:30]URL: /json_proto [23:52:30]Method is POST - this is cgi request [23:52:30]url: /json_proto [23:52:30]query_string will be loaded in cgi processing [23:52:30]execute_cgi json_proto POST (null) [23:52:30]execute_cgi path=json_proto method=POST [23:52:30]POST find Content-Length [23:52:30]Host: 172.17.56.67:8080 [23:52:30]Content-Length: 245 [23:52:30]Content-Type: application/json [23:52:30] [23:52:30]POST finish read [23:52:30]Found Content-Length = 245 [23:52:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:30]execute_script... [23:52:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:30]POST & json_proto [23:52:30]process_json_proto [23:52:30]json parsed OK: [23:52:30]protocol is kg_v1.0 [23:52:30]action value=x_report [23:52:30]process_action x_report [23:52:30]cmd_x_report [23:52:30]MH_GetDate [23:52:30]Write to MH i2c: F0 00 00 E5 22 F6 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 09 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 09 00 E5 22 00 44 97 B5 65 26 5D 9E 65 7A [23:52:30]GetLastDocTimeStamp 1706384431 [23:52:30]current date 1706399556 [23:52:30]FM_GetShiftState [23:52:30]SAM_PROTO_GetShiftState [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 01 00 [23:52:30]Write to MH i2c: E2 08 00 E6 22 80 13 01 00 00 00 00 00 85 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0E 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 0E 00 E6 22 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 1C [23:52:30]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetShiftState done [23:52:30]FM_GetShiftState done [23:52:30]KKMCreateXReportDocument [23:52:30]Load OK [23:52:30]Malloc new data [23:52:30]MH_GetDate [23:52:30]Write to MH i2c: F0 00 00 E7 22 F8 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 09 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: F0 09 00 E7 22 00 44 97 B5 65 26 5D 9E 65 7C [23:52:30]Malloc new data [23:52:30]Malloc new data [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 11 00 00 [23:52:30]Write to MH i2c: E2 08 00 E8 22 80 11 00 00 00 00 00 00 84 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 17 00 E8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D1 [23:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetFieldsCounters [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 00 00 [23:52:30]Write to MH i2c: E2 08 00 E9 22 80 13 00 00 00 00 00 00 87 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 62 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 62 00 E9 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 CA [23:52: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 [23:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetFieldsCounters done [23:52:30]Malloc new data [23:52:30]Malloc new data [23:52:30]Malloc new data [23:52:30]KKMCreateXReportDocument OK [23:52:30]KKMSetXReportData OK [23:52:30]KKMPrepareXReportFMData [23:52:30]SAM_PROTO_GetShiftData [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 13 02 00 [23:52:30]Write to MH i2c: E2 08 00 EA 22 80 13 02 00 00 00 00 00 8A [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 EA 22 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E8 [23:52:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:31]wFMCommunicate OK [23:52:31]wFMCommunicate request_size=4 [23:52:31]MH_SAM_APDU [23:52:31]CAPDU: 80 17 00 00 [23:52:31]Write to MH i2c: E2 08 00 EB 22 80 17 00 00 00 00 00 00 8D [23:52:31]Write i2c OK [23:52:31]MH_I2C_Read... [23:52:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:31]Read from MH i2c: E2 [23:52:31]MH_I2C_Read... [23:52:31]OFD Sender: No OFD packet to send [23:52:31]Read from MH i2c: E2 FD 00 [23:52:31]MH_I2C_Read... [23:52:31]Read from MH i2c: E2 FD 00 EB 22 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 AF [23:52:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 EC 22 80 17 00 00 00 00 00 00 8E [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 EC 22 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 45 [23:52:32]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 ED 22 80 17 00 00 00 00 00 00 8F [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:32]Read from MH i2c: E2 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 [23:52:32]MH_I2C_Read... [23:52:32]Read from MH i2c: E2 FD 00 ED 22 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 01 [23:52:32]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:32]wFMCommunicate OK [23:52:32]wFMCommunicate request_size=4 [23:52:32]MH_SAM_APDU [23:52:32]CAPDU: 80 17 00 00 [23:52:32]Write to MH i2c: E2 08 00 EE 22 80 17 00 00 00 00 00 00 90 [23:52:32]Write i2c OK [23:52:32]MH_I2C_Read... [23:52:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:33]Read from MH i2c: E2 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 CB 00 [23:52:33]MH_I2C_Read... [23:52:33]Read from MH i2c: E2 CB 00 EE 22 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [23:52:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:33]wFMCommunicate OK [23:52:33]SAM_PROTO_GetShiftData done [23:52:33]1194 (1194) - счетчики итогов смены [23:52:33] 1134 (4) - 113 - количество чеков со всеми признаками расчетов [23:52:33] 1129 (155) - счетчики операций «приход» [23:52:33] 1135 (4) - 113 - количество чеков по признаку расчетов [23:52:33] 1201 (3) - 73234.92 - общая итоговая сумма в чеках [23:52:33] 1136 (3) - 69632.00 - итоговая сумма в чеках наличными [23:52:33] 1138 (3) - 3602.92 - итоговая сумма в чеках безналичными [23:52:33] 1024 (122) - суммы налогов [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 0% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1006 (12) - суммы НДС [23:52:33] 1010 (1) - 12% - код ставки НДС [23:52:33] 1011 (3) - 7780.94 - сумма НДС по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (11) - суммы НСП [23:52:33] 1014 (1) - 1% - код ставки НСП [23:52:33] 1015 (2) - 648.34 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 2% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 3% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 5% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1130 (141) - счетчики операций «возврат прихода» [23:52:33] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:33] 1024 (117) - суммы налогов [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 0% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 12% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 2% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 3% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 5% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1131 (141) - счетчики операций «расход» [23:52:33] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:33] 1024 (117) - суммы налогов [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 0% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 12% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 2% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 3% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 5% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1132 (141) - счетчики операций «возврат расхода» [23:52:33] 1135 (4) - 0 - количество чеков по признаку расчетов [23:52:33] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:52:33] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:52:33] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:52:33] 1024 (117) - суммы налогов [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 0% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1006 (9) - суммы НДС [23:52:33] 1010 (1) - 12% - код ставки НДС [23:52:33] 1011 (0) - 0.00 - сумма НДС по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 2% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 3% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 5% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 0,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1007 (9) - суммы НСП [23:52:33] 1014 (1) - 1,50% - код ставки НСП [23:52:33] 1015 (0) - 0.00 - сумма НСП по ставке [23:52:33] 1133 (588) - - счетчики коррекции - не используются [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1194 (04AA) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1134 (046E) [23:52:33]Malloc new data [23:52:33]Processing tag 1129 (0469) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1135 (046F) [23:52:33]Malloc new data [23:52:33]Processing tag 1201 (04B1) [23:52:33]Malloc new data [23:52:33]Processing tag 1136 (0470) [23:52:33]Malloc new data [23:52:33]Processing tag 1138 (0472) [23:52:33]Malloc new data [23:52:33]Processing tag 1024 (0400) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1006 (03EE) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1010 (03F2) [23:52:33]Malloc new data [23:52:33]Processing tag 1011 (03F3) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1006 (03EE) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1010 (03F2) [23:52:33]Malloc new data [23:52:33]Processing tag 1011 (03F3) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1014 (03F6) [23:52:33]Malloc new data [23:52:33]Processing tag 1015 (03F7) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]SetTLVBufToDocument err=0 [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1130 (046A) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1135 (046F) [23:52:33]Malloc new data [23:52:33]Processing tag 1201 (04B1) [23:52:33]Malloc new data [23:52:33]Processing tag 1136 (0470) [23:52:33]Malloc new data [23:52:33]Processing tag 1138 (0472) [23:52:33]Malloc new data [23:52:33]Processing tag 1024 (0400) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1006 (03EE) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1010 (03F2) [23:52:33]Malloc new data [23:52:33]Processing tag 1011 (03F3) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1006 (03EE) [23:52:33]Load OK [23:52:33]SetTLVBufToDocument [23:52:33]Processing tag 1010 (03F2) [23:52:33]Malloc new data [23:52:33]Processing tag 1011 (03F3) [23:52:33]Malloc new data [23:52:33]SetTLVBufToDocument err=0 [23:52:33]Processing tag 1007 (03EF) [23:52:33]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1131 (046B) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1135 (046F) [23:52:34]Malloc new data [23:52:34]Processing tag 1201 (04B1) [23:52:34]Malloc new data [23:52:34]Processing tag 1136 (0470) [23:52:34]Malloc new data [23:52:34]Processing tag 1138 (0472) [23:52:34]Malloc new data [23:52:34]Processing tag 1024 (0400) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1006 (03EE) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1010 (03F2) [23:52:34]Malloc new data [23:52:34]Processing tag 1011 (03F3) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1006 (03EE) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1010 (03F2) [23:52:34]Malloc new data [23:52:34]Processing tag 1011 (03F3) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1132 (046C) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1135 (046F) [23:52:34]Malloc new data [23:52:34]Processing tag 1201 (04B1) [23:52:34]Malloc new data [23:52:34]Processing tag 1136 (0470) [23:52:34]Malloc new data [23:52:34]Processing tag 1138 (0472) [23:52:34]Malloc new data [23:52:34]Processing tag 1024 (0400) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1006 (03EE) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1010 (03F2) [23:52:34]Malloc new data [23:52:34]Processing tag 1011 (03F3) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1006 (03EE) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1010 (03F2) [23:52:34]Malloc new data [23:52:34]Processing tag 1011 (03F3) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1007 (03EF) [23:52:34]Load OK [23:52:34]SetTLVBufToDocument [23:52:34]Processing tag 1014 (03F6) [23:52:34]Malloc new data [23:52:34]Processing tag 1015 (03F7) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Processing tag 1133 (046D) [23:52:34]Malloc new data [23:52:34]SetTLVBufToDocument err=0 [23:52:34]SetTLVBufToDocument err=0 [23:52:34]Malloc new data [23:52:34]SAM_PROTO_GetFMData [23:52:34]wFMCommunicate request_size=4 [23:52:34]MH_SAM_APDU [23:52:34]CAPDU: 80 13 03 00 [23:52:34]Write to MH i2c: E2 08 00 EF 22 80 13 03 00 00 00 00 00 90 [23:52:34]Write i2c OK [23:52:34]MH_I2C_Read... [23:52:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:34]Read from MH i2c: E2 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 [23:52:34]MH_I2C_Read... [23:52:34]Read from MH i2c: E2 FD 00 EF 22 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 8E [23:52:35]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 F0 22 80 17 00 00 00 00 00 00 92 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 F0 22 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 42 [23:52:35]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:52:35]wFMCommunicate OK [23:52:35]wFMCommunicate request_size=4 [23:52:35]MH_SAM_APDU [23:52:35]CAPDU: 80 17 00 00 [23:52:35]Write to MH i2c: E2 08 00 F1 22 80 17 00 00 00 00 00 00 93 [23:52:35]Write i2c OK [23:52:35]MH_I2C_Read... [23:52:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:35]Read from MH i2c: E2 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 [23:52:35]MH_I2C_Read... [23:52:35]Read from MH i2c: E2 FD 00 F1 22 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 37 [23:52:36]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:52:36]wFMCommunicate OK [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 F2 22 80 17 00 00 00 00 00 00 94 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 FD 00 F2 22 00 00 04 F7 03 00 00 EF 03 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 90 00 0E [23:52:36]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:36]wFMCommunicate OK [23:52:36]wFMCommunicate request_size=4 [23:52:36]MH_SAM_APDU [23:52:36]CAPDU: 80 17 00 00 [23:52:36]Write to MH i2c: E2 08 00 F3 22 80 17 00 00 00 00 00 00 95 [23:52:36]Write i2c OK [23:52:36]MH_I2C_Read... [23:52:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:52:36]Read from MH i2c: E2 [23:52:36]MH_I2C_Read... [23:52:36]Read from MH i2c: E2 DC 00 [23:52:36]MH_I2C_Read... [23:52:36]OFD Sender: No OFD packet to send [23:52:36]Read from MH i2c: E2 DC 00 F3 22 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [23:52:36]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:37]wFMCommunicate OK [23:52:37]SAM_PROTO_GetFMData done [23:52:37]FM_GetFMData:85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 [23:52:37]oper:6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:37]total:C3 88 90 BB [23:52:37]Malloc new data [23:52:37]oper:6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:37]total:18 75 09 [23:52:37]Malloc new data [23:52:37]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:37]total: [23:52:37]Malloc new data [23:52:37]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:52:38]total: [23:52:38]Malloc new data [23:52:38]KKMPrepareXReportFMData err=0 [23:52:38]Х отчет ИНН: 02508201610067 Кассир: Уморов С. 27.01.2024 23:52 Смена: 10 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Всего чеков: 113 ИТОГИ ПРИХОД Чеков: 113 Общий итог: 73234.92 Итого наличными: 69632.00 Итого безнал.: 3602.92 НДС 0% : 0.00 НДС 12% : 7780.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 648.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 69632.00 НС Приход: 31468115.87 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875060 [23:52:38]StoreToDocumentArchive [23:52:38]MH_GetDate [23:52:38]Write to MH i2c: F0 00 00 F4 22 05 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: F0 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: F0 09 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: F0 09 00 F4 22 00 4B 97 B5 65 26 5D 9E 65 90 [23:52:38]shift 10 fd 1706399563 [23:52:38]Create dir for shift 0010 [23:52:38]save to /storage/0010/doc_1706399563 [23:52:38]save last doc name /storage/0010/doc_1706399563 to /storage/kkm_last_doc_name [23:52:38]save OK [23:52:38]Clear old archive folders... [23:52:38]NVStorageSaveData kkm_last_timestamp [23:52:38]File name is /storage/kkm_last_timestamp [23:52:38]Write 4 bytes [23:52:38]NVStorageSaveData done [23:52:38]ExternCall_PrintAddStr [23:52:38]wPrintStart [23:52:38]Write to MH i2c: 01 00 00 F5 22 17 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 07 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 07 00 F5 22 00 00 00 00 00 FF 0F 2C [23:52:38]RasterBufferAndPrint [23:52:38]line Х отчет [23:52:38]line ИНН: 02508201610067 [23:52:38]line Кассир: Уморов С. [23:52:38]line 27.01.2024 23:52 [23:52:38]line Смена: 10 [23:52:38]line РНМ: 0000000000092723 [23:52:38]line ЗНМ: 0300000040 [23:52:38]line СНО: Общий режим [23:52:38]line Всего чеков: 113 [23:52:38]line ИТОГИ ПРИХОД [23:52:38]line Чеков: 113 [23:52:38]line Общий итог: 73234.92 [23:52:38]line Итого наличными: 69632.00 [23:52:38]line Итого безнал.: 3602.92 [23:52:38]line НДС 0% : 0.00 [23:52:38]line НДС 12% : 7780.94 [23:52:38]line НСП 0% : 0.00 [23:52:38]line НСП 1,50% : 0.00 [23:52:38]line НСП 0,50% : 0.00 [23:52:38]line НСП 5% : 0.00 [23:52:38]line НСП 3% : 0.00 [23:52:38]line НСП 2% : 0.00 [23:52:38]line НСП 1% : 648.34 [23:52:38]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:52:38]line Чеков: 0 [23:52:38]line Общий итог: 0.00 [23:52:38]line Итого наличными: 0.00 [23:52:38]line Итого безнал.: 0.00 [23:52:38]line НДС 0% : 0.00 [23:52:38]line НДС 12% : 0.00 [23:52:38]line НСП 0% : 0.00 [23:52:38]line НСП 1,50% : 0.00 [23:52:38]line НСП 0,50% : 0.00 [23:52:38]line НСП 5% : 0.00 [23:52:38]line НСП 3% : 0.00 [23:52:38]line НСП 2% : 0.00 [23:52:38]line НСП 1% : 0.00 [23:52:38]line ИТОГИ РАСХОД [23:52:38]line Чеков: 0 [23:52:38]line Общий итог: 0.00 [23:52:38]line Итого наличными: 0.00 [23:52:38]line Итого безнал.: 0.00 [23:52:38]line НДС 0% : 0.00 [23:52:38]line НДС 12% : 0.00 [23:52:38]line НСП 0% : 0.00 [23:52:38]line НСП 1,50% : 0.00 [23:52:38]line НСП 0,50% : 0.00 [23:52:38]line НСП 5% : 0.00 [23:52:38]line НСП 3% : 0.00 [23:52:38]line НСП 2% : 0.00 [23:52:38]line НСП 1% : 0.00 [23:52:38]line ИТОГИ ВОЗВРАТ РАСХОДА [23:52:38]line Чеков: 0 [23:52:38]line Общий итог: 0.00 [23:52:38]line Итого наличными: 0.00 [23:52:38]line Итого безнал.: 0.00 [23:52:38]line НДС 0% : 0.00 [23:52:38]line НДС 12% : 0.00 [23:52:38]line НСП 0% : 0.00 [23:52:38]line НСП 1,50% : 0.00 [23:52:38]line НСП 0,50% : 0.00 [23:52:38]line НСП 5% : 0.00 [23:52:38]line НСП 3% : 0.00 [23:52:38]line НСП 2% : 0.00 [23:52:38]line НСП 1% : 0.00 [23:52:38]line Сумма внесений: 0.00 [23:52:38]line Сумма выплат: 0.00 [23:52:38]line Нал. в кассе: 69632.00 [23:52:38]line НС Приход: 31468115.87 [23:52:38]line НС Возвр.Прихода: 6198.00 [23:52:38]line НС Расход: 0.00 [23:52:38]line НС Возвр.Расхода: 0.00 [23:52:38]line ФМ: 0000000000875060 [23:52:38]written 0, free lines is 4095 [23:52:38]Write to MH i2c: 01 00 00 40 23 63 [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 07 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: 01 07 00 40 23 00 00 00 00 00 0D 0B 82 [23:52:38]RasterBufferAndPrint [23:52:38]line [23:52:38]line [23:52:38]line [23:52:38]line [23:52:38]line [23:52:38]written 0, free lines is 2869 [23:52:38]MH_Cut [23:52:38]Write to MH i2c: D1 01 00 47 23 01 3C [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: D1 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: D1 01 00 [23:52:38]MH_I2C_Read... [23:52:38]Read from MH i2c: D1 01 00 47 23 00 3B [23:52:38]Write to MH i2c: 01 00 00 48 23 6B [23:52:38]Write i2c OK [23:52:38]MH_I2C_Read... [23:52:39]*** Cut start [23:52:39]*** Partial cut [23:52:39]*** CUTSNS_PIN = 1 [23:52:39]*** CUTSNS_PIN = 0 [23:52:40]*** Brake cut motor [23:52:40]Read from MH i2c: 01 [23:52:40]MH_I2C_Read... [23:52:40]*** Stop cut motor [23:52:40]*** Cut end [23:52:40]Read from MH i2c: 01 07 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 FF 0F 80 [23:52:40]process_action x_report done [23:52:40]requested_data is exist [23:52:40]produce_requested_data [23:52:40]requested_item fd.num is exist - process it [23:52:40]SAM_PROTO_GetFieldsCounters [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 13 00 00 [23:52:40]Write to MH i2c: E2 08 00 49 23 80 13 00 00 00 00 00 00 E8 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 [23:52:40]MH_I2C_Read... [23:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:40]*** FLAG_PRN_KEY set [23:52:40]int [23:52:40]Read from MH i2c: E2 62 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: E2 62 00 49 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 2B [23:52:40]RAPDU: Write to MH i2c: 5D 01 00 00 B9 00 04 4A 01 23 00 6D 01 [23:52:40]11 04 10 00 30 30 30 30 Write i2c OK [23:52:40]30 MH_I2C_Read... [23:52:40]30 30 30 30 30 38 37 35 30 36 Read from MH i2c: 30 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E [23:52:40]04 MH_I2C_Read... [23:52:40]04 00 F3 00 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 *** FLAG_PRN_KEY reset [23:52:40]00 [23:52:40]wFMCommunicate OK [23:52:40]SAM_PROTO_GetFieldsCounters done [23:52:40]requested_item shift.num is exist - process it [23:52:40]requested_item shift.opened is exist - process it [23:52:40]req_shift_opened [23:52:40]FM_GetShiftState [23:52:40]SAM_PROTO_GetShiftState [23:52:40]wFMCommunicate request_size=4 [23:52:40]MH_SAM_APDU [23:52:40]CAPDU: 80 13 01 00 [23:52:40]Read from MH i2c: 01 07 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: 01 07 00 4A 23 00 08 00 00 00 FF 0F 8A [23:52:40]state=0 [23:52:40]Key pressed [23:52:40]Feed [23:52:40]Write to MH i2c: D8 00 00 4B 23 45 [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D8 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D8 01 00 [23:52:40]MH_I2C_Read... [23:52:40]Read from MH i2c: D8 01 00 4B 23 00 46 [23:52:40]Write to MH i2c: int line is 0 - check status [23:52:40]E2 08 00 4C 23 80 13 01 00 00 00 00 00 EC [23:52:40]Write i2c OK [23:52:40]MH_I2C_Read... [23:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:41]Read from MH i2c: E2 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 0E 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: E2 0E 00 4C 23 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 83 [23:52:41]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [23:52:41]wFMCommunicate OK [23:52:41]SAM_PROTO_GetShiftState done [23:52:41]FM_GetShiftState done [23:52:41]req_shift_opened done [23:52:41]requested_item shift.open_date is exist - process it [23:52:41]req_shift_open_date [23:52:41]req_shift_open_date done [23:52:41]produce_requested_data done [23:52:41]produce_requested_data return {"fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [23:52:41]process_action_free x_report [23:52:41]json_value_free [23:52:41]json_value_free done [23:52:41]process_json_proto returns [23:52:41]Send response to host [23:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [23:52:41]free response buf [23:52:41]execute_script done [23:52:41]*** FLAG_PRN_KEY set [23:52:41]execute_script returns [23:52:41]free content buf [23:52:41]Sock 9.Close socket [23:52:41]Sock 9.Thread stoped [23:52:41]Write to MH i2c: 01 00 00 4D 23 70 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 4D 23 00 08 00 00 00 F5 0F 83 [23:52:41]state=2 [23:52:41]Key pressed [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 4E 23 71 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 4E 23 00 08 00 00 00 F5 0F 84 [23:52:41]state=2 [23:52:41]Key pressed [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 4F 23 72 [23:52:41]*** FLAG_PRN_KEY reset [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 4F 23 00 00 00 00 00 FF 0F 87 [23:52:41]state=2 [23:52:41]Stop feed [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 50 23 73 [23:52:41]*** FLAG_PRN_KEY set [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 50 23 00 08 00 00 00 FF 0F 90 [23:52:41]state=0 [23:52:41]Key pressed [23:52:41]Feed [23:52:41]Write to MH i2c: D8 00 00 51 23 4B [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: D8 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: D8 01 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: D8 01 00 51 23 00 4C [23:52:41]int line is 0 - check status [23:52:41]Write to MH i2c: 01 00 00 52 23 75 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 52 23 00 48 00 00 00 3C 00 00 [23:52:41]state=2 [23:52:41]Key pressed [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 53 23 76 [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 53 23 00 48 00 00 00 3C 00 01 [23:52:41]state=2 [23:52:41]Key pressed [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 54 23 77 [23:52:41]*** FLAG_PRN_KEY reset [23:52:41]Write i2c OK [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 [23:52:41]MH_I2C_Read... [23:52:41]Read from MH i2c: 01 07 00 54 23 00 00 00 00 00 FF 0F 8C [23:52:41]state=2 [23:52:41]Stop feed [23:52:41]OFD Sender: No OFD packet to send [23:52:41]int [23:52:41]Write to MH i2c: 01 00 00 55 23 78 [23:52:42]*** FLAG_PRN_KEY set [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 55 23 00 08 00 00 00 FF 0F 95 [23:52:42]state=0 [23:52:42]Key pressed [23:52:42]Feed [23:52:42]Write to MH i2c: D8 00 00 56 23 50 [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: D8 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: D8 01 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: D8 01 00 56 23 00 51 [23:52:42]int line is 0 - check status [23:52:42]Write to MH i2c: 01 00 00 57 23 7A [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 57 23 00 48 00 00 00 3C 00 05 [23:52:42]state=2 [23:52:42]Key pressed [23:52:42]int [23:52:42]Write to MH i2c: 01 00 00 58 23 7B [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 58 23 00 48 00 00 00 3C 00 06 [23:52:42]state=2 [23:52:42]Key pressed [23:52:42]int [23:52:42]Write to MH i2c: 01 00 00 59 23 7C [23:52:42]*** FLAG_PRN_KEY reset [23:52:42]Write i2c OK [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 [23:52:42]MH_I2C_Read... [23:52:42]Read from MH i2c: 01 07 00 59 23 00 00 00 00 00 FB 0F 8D [23:52:42]state=2 [23:52:42]Stop feed [23:52:46]OFD Sender: No OFD packet to send [23:52:51]accept exits with 7 [23:52:51]New connection [23:52:51]New thread 3066813796 created [23:52:51]Thread 3066670436 joined [23:52:51]Waiting for new connection... [23:52:51] Sock 7.Parse request [23:52:51]Sock 7.Check first char [23:52:51]Sock 7.First char is OK [23:52:51]request: POST /json_proto HTTP/1.0 [23:52:51]Method: POST [23:52:51]URL: /json_proto [23:52:51]Method is POST - this is cgi request [23:52:51]url: /json_proto [23:52:51]query_string will be loaded in cgi processing [23:52:51]execute_cgi json_proto POST (null) [23:52:51]execute_cgi path=json_proto method=POST [23:52:51]POST find Content-Length [23:52:51]Host: 172.17.56.67:8080 [23:52:51]Content-Length: 215 [23:52:51]Content-Type: application/json [23:52:51] [23:52:51]POST finish read [23:52:51]Found Content-Length = 215 [23:52:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:51]execute_script... [23:52:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:51]POST & json_proto [23:52:51]process_json_proto [23:52:51]json parsed OK: [23:52:51]protocol is kg_v1.0 [23:52:51]action value=get_value [23:52:51]process_action get_value [23:52:51]cmd_get_value [23:52:51]process_action get_value done [23:52:51]requested_data is exist [23:52:51]produce_requested_data [23:52:51]requested_item kkm.sn is exist - process it [23:52:51]requested_item kkm.ver is exist - process it [23:52:51]requested_item fm.sn is exist - process it [23:52:51]wFMCommunicate request_size=4 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 11 00 00 [23:52:51]Write to MH i2c: E2 08 00 5A 23 80 11 00 00 00 00 00 00 F7 [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 17 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 17 00 5A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [23:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:52:51]wFMCommunicate OK [23:52:51]requested_item fd.num is exist - process it [23:52:51]SAM_PROTO_GetFieldsCounters [23:52:51]wFMCommunicate request_size=4 [23:52:51]MH_SAM_APDU [23:52:51]CAPDU: 80 13 00 00 [23:52:51]Write to MH i2c: E2 08 00 5B 23 80 13 00 00 00 00 00 00 FA [23:52:51]Write i2c OK [23:52:51]MH_I2C_Read... [23:52:51]OFD Sender: No OFD packet to send [23:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:51]Read from MH i2c: E2 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 62 00 [23:52:51]MH_I2C_Read... [23:52:51]Read from MH i2c: E2 62 00 5B 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 3D [23:52: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 25 BF 00 00 0E 04 04 00 F3 00 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 [23:52:52]wFMCommunicate OK [23:52:52]SAM_PROTO_GetFieldsCounters done [23:52:52]requested_item shift.num is exist - process it [23:52:52]requested_item shift.opened is exist - process it [23:52:52]req_shift_opened [23:52:52]FM_GetShiftState [23:52:52]SAM_PROTO_GetShiftState [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 13 01 00 [23:52:52]Write to MH i2c: E2 08 00 5C 23 80 13 01 00 00 00 00 00 FC [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 0E 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 0E 00 5C 23 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 93 [23:52:52]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [23:52:52]wFMCommunicate OK [23:52:52]SAM_PROTO_GetShiftState done [23:52:52]FM_GetShiftState done [23:52:52]req_shift_opened done [23:52:52]requested_item shift.open_date is exist - process it [23:52:52]req_shift_open_date [23:52:52]req_shift_open_date done [23:52:52]produce_requested_data done [23:52:52]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770} [23:52:52]process_action_free get_value [23:52:52]json_value_free [23:52:52]json_value_free done [23:52:52]process_json_proto returns [23:52:52]Send response to host [23:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48933,"shift.num":243,"shift.opened":1,"shift.open_date":1706313770}}} [23:52:52]free response buf [23:52:52]execute_script done [23:52:52]execute_script returns [23:52:52]free content buf [23:52:52]Sock 7.Close socket [23:52:52]Sock 7.Thread stoped [23:52:52]accept exits with 9 [23:52:52]New connection [23:52:52]New thread 3066670436 created [23:52:52]Thread 3066813796 joined [23:52:52]Waiting for new connection... [23:52:52] Sock 9.Parse request [23:52:52]Sock 9.Check first char [23:52:52]Sock 9.First char is OK [23:52:52]request: POST /json_proto HTTP/1.0 [23:52:52]Method: POST [23:52:52]URL: /json_proto [23:52:52]Method is POST - this is cgi request [23:52:52]url: /json_proto [23:52:52]query_string will be loaded in cgi processing [23:52:52]execute_cgi json_proto POST (null) [23:52:52]execute_cgi path=json_proto method=POST [23:52:52]POST find Content-Length [23:52:52]Host: 172.17.56.67:8080 [23:52:52]Content-Length: 331 [23:52:52]Content-Type: application/json [23:52:52] [23:52:52]POST finish read [23:52:52]Found Content-Length = 331 [23:52:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:52]execute_script... [23:52:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:52]POST & json_proto [23:52:52]process_json_proto [23:52:52]json parsed OK: [23:52:52]protocol is kg_v1.0 [23:52:52]action value=get_value [23:52:52]process_action get_value [23:52:52]cmd_get_value [23:52:52]process_action get_value done [23:52:52]requested_data is exist [23:52:52]produce_requested_data [23:52:52]requested_item fm.sale.total is exist - process it [23:52:52]SAM_PROTO_GetFMData [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 13 03 00 [23:52:52]Write to MH i2c: E2 08 00 5D 23 80 13 03 00 00 00 00 00 FF [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:52]Read from MH i2c: E2 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 FD 00 [23:52:52]MH_I2C_Read... [23:52:52]Read from MH i2c: E2 FD 00 5D 23 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 FD [23:52:52]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:52:52]wFMCommunicate OK [23:52:52]wFMCommunicate request_size=4 [23:52:52]MH_SAM_APDU [23:52:52]CAPDU: 80 17 00 00 [23:52:52]Write to MH i2c: E2 08 00 5E 23 80 17 00 00 00 00 00 00 01 [23:52:52]Write i2c OK [23:52:52]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 5E 23 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 B1 [23:52:53]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:52:53]wFMCommunicate OK [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 17 00 00 [23:52:53]Write to MH i2c: E2 08 00 5F 23 80 17 00 00 00 00 00 00 02 [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:53]Read from MH i2c: E2 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 [23:52:53]MH_I2C_Read... [23:52:53]Read from MH i2c: E2 FD 00 5F 23 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 A6 [23:52:53]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:52:53]wFMCommunicate OK [23:52:53]wFMCommunicate request_size=4 [23:52:53]MH_SAM_APDU [23:52:53]CAPDU: 80 17 00 00 [23:52:53]Write to MH i2c: E2 08 00 60 23 80 17 00 00 00 00 00 00 03 [23:52:53]Write i2c OK [23:52:53]MH_I2C_Read... [23:52:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:54]Read from MH i2c: E2 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 FD 00 60 23 00 00 04 F7 03 00 00 EF 03 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 90 00 7D [23:52:54]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:52:54]wFMCommunicate OK [23:52:54]wFMCommunicate request_size=4 [23:52:54]MH_SAM_APDU [23:52:54]CAPDU: 80 17 00 00 [23:52:54]Write to MH i2c: E2 08 00 61 23 80 17 00 00 00 00 00 00 04 [23:52:54]Write i2c OK [23:52:54]MH_I2C_Read... [23:52:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:52:54]Read from MH i2c: E2 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 DC 00 [23:52:54]MH_I2C_Read... [23:52:54]Read from MH i2c: E2 DC 00 61 23 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E8 [23:52:54]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:54]wFMCommunicate OK [23:52:54]SAM_PROTO_GetFMData done [23:52:54]requested_item fm.sale_refund.total is exist - process it [23:52:54]requested_item fm.buy.total is exist - process it [23:52:54]requested_item shift.sale.total is exist - process it [23:52:54]SAM_PROTO_GetShiftData [23:52:54]wFMCommunicate request_size=4 [23:52:54]MH_SAM_APDU [23:52:54]CAPDU: 80 13 02 00 [23:52:54]Write to MH i2c: E2 08 00 62 23 80 13 02 00 00 00 00 00 03 [23:52:54]Write i2c OK [23:52:54]MH_I2C_Read... [23:52:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:55]Read from MH i2c: E2 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 FD 00 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 FD 00 62 23 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 61 [23:52:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:52:55]wFMCommunicate OK [23:52:55]wFMCommunicate request_size=4 [23:52:55]MH_SAM_APDU [23:52:55]CAPDU: 80 17 00 00 [23:52:55]Write to MH i2c: E2 08 00 63 23 80 17 00 00 00 00 00 00 06 [23:52:55]Write i2c OK [23:52:55]MH_I2C_Read... [23:52:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:55]Read from MH i2c: E2 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 FD 00 [23:52:55]MH_I2C_Read... [23:52:55]Read from MH i2c: E2 FD 00 63 23 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 28 [23:52:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:52:56]wFMCommunicate OK [23:52:56]wFMCommunicate request_size=4 [23:52:56]MH_SAM_APDU [23:52:56]CAPDU: 80 17 00 00 [23:52:56]Write to MH i2c: E2 08 00 64 23 80 17 00 00 00 00 00 00 07 [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:56]Read from MH i2c: E2 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: E2 FD 00 [23:52:56]MH_I2C_Read... [23:52:56]Read from MH i2c: E2 FD 00 64 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 BE [23:52:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:52:56]wFMCommunicate OK [23:52:56]wFMCommunicate request_size=4 [23:52:56]MH_SAM_APDU [23:52:56]CAPDU: 80 17 00 00 [23:52:56]Write to MH i2c: E2 08 00 65 23 80 17 00 00 00 00 00 00 08 [23:52:56]Write i2c OK [23:52:56]MH_I2C_Read... [23:52:56]OFD Sender: No OFD packet to send [23:52:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 FD 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 FD 00 65 23 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 7A [23:52:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:52:57]wFMCommunicate OK [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 17 00 00 [23:52:57]Write to MH i2c: E2 08 00 66 23 80 17 00 00 00 00 00 00 09 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:57]Read from MH i2c: E2 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 CB 00 [23:52:57]MH_I2C_Read... [23:52:57]Read from MH i2c: E2 CB 00 66 23 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [23:52:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:52:57]wFMCommunicate OK [23:52:57]SAM_PROTO_GetShiftData done [23:52:57]requested_item shift.sale.total_cash is exist - process it [23:52:57]requested_item shift.sale_refund.total is exist - process it [23:52:57]requested_item shift.sale_refund.total_cash is exist - process it [23:52:57]requested_item shift.buy.total is exist - process it [23:52:57]requested_item shift.buy.total_cash is exist - process it [23:52:57]produce_requested_data done [23:52:57]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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} [23:52:57]process_action_free get_value [23:52:57]json_value_free [23:52:57]json_value_free done [23:52:57]process_json_proto returns [23:52:57]Send response to host [23:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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}}} [23:52:57]free response buf [23:52:57]execute_script done [23:52:57]execute_script returns [23:52:57]free content buf [23:52:57]Sock 9.Close socket [23:52:57]Sock 9.Thread stoped [23:52:57]accept exits with 7 [23:52:57]New connection [23:52:57]New thread 3066813796 created [23:52:57]Thread 3066670436 joined [23:52:57]Waiting for new connection... [23:52:57] Sock 7.Parse request [23:52:57]Sock 7.Check first char [23:52:57]Sock 7.First char is OK [23:52:57]request: POST /json_proto HTTP/1.0 [23:52:57]Method: POST [23:52:57]URL: /json_proto [23:52:57]Method is POST - this is cgi request [23:52:57]url: /json_proto [23:52:57]query_string will be loaded in cgi processing [23:52:57]execute_cgi json_proto POST (null) [23:52:57]execute_cgi path=json_proto method=POST [23:52:57]POST find Content-Length [23:52:57]Host: 172.17.56.67:8080 [23:52:57]Content-Length: 331 [23:52:57]Content-Type: application/json [23:52:57] [23:52:57]POST finish read [23:52:57]Found Content-Length = 331 [23:52:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:57]execute_script... [23:52:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:52:57]POST & json_proto [23:52:57]process_json_proto [23:52:57]json parsed OK: [23:52:57]protocol is kg_v1.0 [23:52:57]action value=get_value [23:52:57]process_action get_value [23:52:57]cmd_get_value [23:52:57]process_action get_value done [23:52:57]requested_data is exist [23:52:57]produce_requested_data [23:52:57]requested_item fm.sale.total is exist - process it [23:52:57]SAM_PROTO_GetFMData [23:52:57]wFMCommunicate request_size=4 [23:52:57]MH_SAM_APDU [23:52:57]CAPDU: 80 13 03 00 [23:52:57]Write to MH i2c: E2 08 00 67 23 80 13 03 00 00 00 00 00 09 [23:52:57]Write i2c OK [23:52:57]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 FD 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 FD 00 67 23 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 07 [23:52:58]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:52:58]wFMCommunicate OK [23:52:58]wFMCommunicate request_size=4 [23:52:58]MH_SAM_APDU [23:52:58]CAPDU: 80 17 00 00 [23:52:58]Write to MH i2c: E2 08 00 68 23 80 17 00 00 00 00 00 00 0B [23:52:58]Write i2c OK [23:52:58]MH_I2C_Read... [23:52:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:58]Read from MH i2c: E2 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 FD 00 [23:52:58]MH_I2C_Read... [23:52:58]Read from MH i2c: E2 FD 00 68 23 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 BB [23:52:59]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:52:59]wFMCommunicate OK [23:52:59]wFMCommunicate request_size=4 [23:52:59]MH_SAM_APDU [23:52:59]CAPDU: 80 17 00 00 [23:52:59]Write to MH i2c: E2 08 00 69 23 80 17 00 00 00 00 00 00 0C [23:52:59]Write i2c OK [23:52:59]MH_I2C_Read... [23:52:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:59]Read from MH i2c: E2 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 FD 00 [23:52:59]MH_I2C_Read... [23:52:59]Read from MH i2c: E2 FD 00 69 23 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B0 [23:52:59]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:52:59]wFMCommunicate OK [23:52:59]wFMCommunicate request_size=4 [23:52:59]MH_SAM_APDU [23:52:59]CAPDU: 80 17 00 00 [23:52:59]Write to MH i2c: E2 08 00 6A 23 80 17 00 00 00 00 00 00 0D [23:52:59]Write i2c OK [23:52:59]MH_I2C_Read... [23:52:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:59]Read from MH i2c: E2 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: E2 FD 00 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: E2 FD 00 6A 23 00 00 04 F7 03 00 00 EF 03 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 90 00 87 [23:53:00]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:00]wFMCommunicate OK [23:53:00]wFMCommunicate request_size=4 [23:53:00]MH_SAM_APDU [23:53:00]CAPDU: 80 17 00 00 [23:53:00]Write to MH i2c: E2 08 00 6B 23 80 17 00 00 00 00 00 00 0E [23:53:00]Write i2c OK [23:53:00]MH_I2C_Read... [23:53:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:53:00]Read from MH i2c: E2 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: E2 DC 00 [23:53:00]MH_I2C_Read... [23:53:00]Read from MH i2c: E2 DC 00 6B 23 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F2 [23:53:00]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:00]wFMCommunicate OK [23:53:00]SAM_PROTO_GetFMData done [23:53:00]requested_item fm.sale_refund.total is exist - process it [23:53:00]requested_item fm.buy.total is exist - process it [23:53:00]requested_item shift.sale.total is exist - process it [23:53:00]SAM_PROTO_GetShiftData [23:53:00]wFMCommunicate request_size=4 [23:53:00]MH_SAM_APDU [23:53:00]CAPDU: 80 13 02 00 [23:53:00]Write to MH i2c: E2 08 00 6C 23 80 13 02 00 00 00 00 00 0D [23:53:00]Write i2c OK [23:53:00]MH_I2C_Read... [23:53:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:01]Read from MH i2c: E2 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 FD 00 [23:53:01]MH_I2C_Read... [23:53:01]Read from MH i2c: E2 FD 00 6C 23 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6B [23:53:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:53:01]wFMCommunicate OK [23:53:01]wFMCommunicate request_size=4 [23:53:01]MH_SAM_APDU [23:53:01]CAPDU: 80 17 00 00 [23:53:01]Write to MH i2c: E2 08 00 6D 23 80 17 00 00 00 00 00 00 10 [23:53:01]Write i2c OK [23:53:01]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]OFD Sender: No OFD packet to send [23:53:02]Read from MH i2c: E2 FD 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 6D 23 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 32 [23:53:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [23:53:02]wFMCommunicate OK [23:53:02]wFMCommunicate request_size=4 [23:53:02]MH_SAM_APDU [23:53:02]CAPDU: 80 17 00 00 [23:53:02]Write to MH i2c: E2 08 00 6E 23 80 17 00 00 00 00 00 00 11 [23:53:02]Write i2c OK [23:53:02]MH_I2C_Read... [23:53:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:02]Read from MH i2c: E2 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 [23:53:02]MH_I2C_Read... [23:53:02]Read from MH i2c: E2 FD 00 6E 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C8 [23:53:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 17 00 00 [23:53:03]Write to MH i2c: E2 08 00 6F 23 80 17 00 00 00 00 00 00 12 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 FD 00 6F 23 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 84 [23:53:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [23:53:03]wFMCommunicate OK [23:53:03]wFMCommunicate request_size=4 [23:53:03]MH_SAM_APDU [23:53:03]CAPDU: 80 17 00 00 [23:53:03]Write to MH i2c: E2 08 00 70 23 80 17 00 00 00 00 00 00 13 [23:53:03]Write i2c OK [23:53:03]MH_I2C_Read... [23:53:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:53:03]Read from MH i2c: E2 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 CB 00 [23:53:03]MH_I2C_Read... [23:53:03]Read from MH i2c: E2 CB 00 70 23 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FC [23:53:04]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:04]wFMCommunicate OK [23:53:04]SAM_PROTO_GetShiftData done [23:53:04]requested_item shift.sale.total_cash is exist - process it [23:53:04]requested_item shift.sale_refund.total is exist - process it [23:53:04]requested_item shift.sale_refund.total_cash is exist - process it [23:53:04]requested_item shift.buy.total is exist - process it [23:53:04]requested_item shift.buy.total_cash is exist - process it [23:53:04]produce_requested_data done [23:53:04]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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} [23:53:04]process_action_free get_value [23:53:04]json_value_free [23:53:04]json_value_free done [23:53:04]process_json_proto returns [23:53:04]Send response to host [23:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.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}}} [23:53:04]free response buf [23:53:04]execute_script done [23:53:04]execute_script returns [23:53:04]free content buf [23:53:04]Sock 7.Close socket [23:53:04]Sock 7.Thread stoped [23:53:04]accept exits with 9 [23:53:04]New connection [23:53:04]New thread 3066670436 created [23:53:04]Thread 3066813796 joined [23:53:04]Waiting for new connection... [23:53:04] Sock 9.Parse request [23:53:04]Sock 9.Check first char [23:53:04]Sock 9.First char is OK [23:53:04]request: POST /json_proto HTTP/1.0 [23:53:04]Method: POST [23:53:04]URL: /json_proto [23:53:04]Method is POST - this is cgi request [23:53:04]url: /json_proto [23:53:04]query_string will be loaded in cgi processing [23:53:04]execute_cgi json_proto POST (null) [23:53:04]execute_cgi path=json_proto method=POST [23:53:04]POST find Content-Length [23:53:04]Host: 172.17.56.67:8080 [23:53:04]Content-Length: 248 [23:53:04]Content-Type: application/json [23:53:04] [23:53:04]POST finish read [23:53:04]Found Content-Length = 248 [23:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:04]execute_script... [23:53:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:04]POST & json_proto [23:53:04]process_json_proto [23:53:04]json parsed OK: [23:53:04]protocol is kg_v1.0 [23:53:04]action value=close_shift [23:53:04]process_action close_shift [23:53:04]cmd_close_shift [23:53:04]MH_GetDate [23:53:04]Write to MH i2c: F0 00 00 71 23 83 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 09 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 09 00 71 23 00 65 97 B5 65 26 5D 9E 65 28 [23:53:04]GetLastDocTimeStamp 1706399556 [23:53:04]current date 1706399589 [23:53:04]FM_GetShiftState [23:53:04]SAM_PROTO_GetShiftState [23:53:04]wFMCommunicate request_size=4 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 13 01 00 [23:53:04]Write to MH i2c: E2 08 00 72 23 80 13 01 00 00 00 00 00 12 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 0E 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 0E 00 72 23 00 09 00 01 2A 48 B4 65 00 00 00 00 90 00 A9 [23:53:04]RAPDU: 09 00 01 2A 48 B4 65 00 00 00 00 90 00 [23:53:04]wFMCommunicate OK [23:53:04]SAM_PROTO_GetShiftState done [23:53:04]FM_GetShiftState done [23:53:04]KKMCreateCloseShiftDocument [23:53:04]Load OK [23:53:04]Malloc new data [23:53:04]MH_GetDate [23:53:04]Write to MH i2c: F0 00 00 73 23 85 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 09 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: F0 09 00 73 23 00 66 97 B5 65 26 5D 9E 65 2B [23:53:04]Malloc new data [23:53:04]Malloc new data [23:53:04]Malloc new data [23:53:04]Malloc new data [23:53:04]KKMCreateCloseShiftDocument OK [23:53:04]KKMSetCloseShiftData OK [23:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=67 [23:53:04]tlvbuf is 01392A80 [23:53:04]KKMLoadAndSignCloseShiftData [23:53:04]SAM_PROTO_ProcessDocument [23:53:04]wFMCommunicate request_size=9 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 01 00 04 05 00 43 00 [23:53:04]Write to MH i2c: E2 0C 00 74 23 80 15 01 00 04 00 05 00 43 00 00 00 66 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 74 23 00 90 00 0B [23:53:04]RAPDU: 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=23 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:53:04]Write to MH i2c: E2 1A 00 75 23 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 0D [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 75 23 00 90 00 0C [23:53:04]RAPDU: 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=26 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 [23:53:04]Write to MH i2c: E2 1D 00 76 23 80 15 02 00 15 00 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 00 00 21 [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [23:53:04]RAPDU: 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=13 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 02 00 08 F4 03 04 00 66 97 B5 65 [23:53:04]Write to MH i2c: E2 10 00 77 23 80 15 02 00 08 00 F4 03 04 00 66 97 B5 65 00 00 3C [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 77 23 00 90 00 0E [23:53:04]RAPDU: 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=25 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 [23:53:04]Write to MH i2c: E2 1C 00 78 23 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 00 00 7B [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:53:04]Read from MH i2c: E2 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 [23:53:04]MH_I2C_Read... [23:53:04]Read from MH i2c: E2 03 00 78 23 00 90 00 0F [23:53:04]RAPDU: 90 00 [23:53:04]wFMCommunicate OK [23:53:04]wFMCommunicate request_size=4 [23:53:04]MH_SAM_APDU [23:53:04]CAPDU: 80 15 03 00 [23:53:04]Write to MH i2c: E2 08 00 79 23 80 15 03 00 00 00 00 00 1D [23:53:04]Write i2c OK [23:53:04]MH_I2C_Read... [23:53:05]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:53:05]Read from MH i2c: E2 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 [23:53:05]MH_I2C_Read... [23:53:05]Read from MH i2c: E2 FD 00 79 23 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 D0 [23:53:05]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [23:53:05]wFMCommunicate OK [23:53:05]SAM_PROTO_ProcessDocument answer len = 1265 [23:53:05]SAM_PROTO_ProcessDocument remain to read = 1017 [23:53:05]wFMCommunicate request_size=4 [23:53:05]MH_SAM_APDU [23:53:05]CAPDU: 80 17 00 00 [23:53:05]Write to MH i2c: E2 08 00 7A 23 80 17 00 00 00 00 00 00 1D [23:53:05]Write i2c OK [23:53:05]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 7A 23 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 66 [23:53:06]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:53:06]wFMCommunicate OK [23:53:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:06]SAM_PROTO_ProcessDocument remain to read = 767 [23:53:06]wFMCommunicate request_size=4 [23:53:06]MH_SAM_APDU [23:53:06]CAPDU: 80 17 00 00 [23:53:06]Write to MH i2c: E2 08 00 7B 23 80 17 00 00 00 00 00 00 1E [23:53:06]Write i2c OK [23:53:06]MH_I2C_Read... [23:53:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:06]Read from MH i2c: E2 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 [23:53:06]MH_I2C_Read... [23:53:06]Read from MH i2c: E2 FD 00 7B 23 00 01 00 05 F7 03 00 00 EF 03 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 90 00 80 [23:53:07]RAPDU: 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:53:07]wFMCommunicate OK [23:53:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:07]SAM_PROTO_ProcessDocument remain to read = 517 [23:53:07]wFMCommunicate request_size=4 [23:53:07]MH_SAM_APDU [23:53:07]CAPDU: 80 17 00 00 [23:53:07]Write to MH i2c: E2 08 00 7C 23 80 17 00 00 00 00 00 00 1F [23:53:07]OFD Sender: No OFD packet to send [23:53:07]Write i2c OK [23:53:07]MH_I2C_Read... [23:53:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:07]Read from MH i2c: E2 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 FD 00 [23:53:07]MH_I2C_Read... [23:53:07]Read from MH i2c: E2 FD 00 7C 23 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [23:53:08]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:08]wFMCommunicate OK [23:53:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:08]SAM_PROTO_ProcessDocument remain to read = 267 [23:53:08]wFMCommunicate request_size=4 [23:53:08]MH_SAM_APDU [23:53:08]CAPDU: 80 17 00 00 [23:53:08]Write to MH i2c: E2 08 00 7D 23 80 17 00 00 00 00 00 00 20 [23:53:08]Write i2c OK [23:53:08]MH_I2C_Read... [23:53:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:08]Read from MH i2c: E2 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 [23:53:08]MH_I2C_Read... [23:53:08]Read from MH i2c: E2 FD 00 7D 23 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 E8 [23:53:08]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:53:09]SAM_PROTO_ProcessDocument remain to read = 17 [23:53:09]wFMCommunicate request_size=4 [23:53:09]MH_SAM_APDU [23:53:09]CAPDU: 80 17 00 00 [23:53:09]Write to MH i2c: E2 08 00 7E 23 80 17 00 00 00 00 00 00 21 [23:53:09]Write i2c OK [23:53:09]MH_I2C_Read... [23:53:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:53:09]Read from MH i2c: E2 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 14 00 [23:53:09]MH_I2C_Read... [23:53:09]Read from MH i2c: E2 14 00 7E 23 00 01 00 06 F7 03 00 00 35 04 06 00 80 7D 52 97 4E C0 90 00 5A [23:53:09]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 80 7D 52 97 4E C0 90 00 [23:53:09]wFMCommunicate OK [23:53:09]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:53:09]SAM_PROTO_ProcessDocument done [23:53:09]1209 (1) - 1.0 - номер версии ФФД [23:53:09]1041 (16) - 0000000000875060 - номер ФМ [23:53:09]1040 (4) - 48934 - номер ФД [23:53:09]1038 (4) - 243 - номер смены [23:53:09]1118 (4) - 113 - количество кассовых чеков за смену [23:53:09]1111 (4) - 115 - общее количество ФД за смену [23:53:09]1194 (1194) - счетчики итогов смены [23:53:09] 1134 (4) - 113 - количество чеков со всеми признаками расчетов [23:53:09] 1129 (155) - счетчики операций «приход» [23:53:09] 1135 (4) - 113 - количество чеков по признаку расчетов [23:53:09] 1201 (3) - 73234.92 - общая итоговая сумма в чеках [23:53:09] 1136 (3) - 69632.00 - итоговая сумма в чеках наличными [23:53:09] 1138 (3) - 3602.92 - итоговая сумма в чеках безналичными [23:53:09] 1024 (122) - суммы налогов [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 0% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1006 (12) - суммы НДС [23:53:09] 1010 (1) - 12% - код ставки НДС [23:53:09] 1011 (3) - 7780.94 - сумма НДС по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (11) - суммы НСП [23:53:09] 1014 (1) - 1% - код ставки НСП [23:53:09] 1015 (2) - 648.34 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 2% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 3% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 5% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1130 (141) - счетчики операций «возврат прихода» [23:53:09] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:09] 1024 (117) - суммы налогов [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 0% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 12% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 2% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 3% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 5% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1131 (141) - счетчики операций «расход» [23:53:09] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:09] 1024 (117) - суммы налогов [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 0% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 12% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 2% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 3% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 5% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1132 (141) - счетчики операций «возврат расхода» [23:53:09] 1135 (4) - 0 - количество чеков по признаку расчетов [23:53:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:53:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:53:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:53:09] 1024 (117) - суммы налогов [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 0% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1006 (9) - суммы НДС [23:53:09] 1010 (1) - 12% - код ставки НДС [23:53:09] 1011 (0) - 0.00 - сумма НДС по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 2% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 3% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 5% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 0,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1007 (9) - суммы НСП [23:53:09] 1014 (1) - 1,50% - код ставки НСП [23:53:09] 1015 (0) - 0.00 - сумма НСП по ставке [23:53:09] 1133 (588) - - счетчики коррекции - не используются [23:53:09]1077 (6) - 141275744915136 - ФПД [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1209 (04B9) [23:53:09]Malloc new data [23:53:09]Processing tag 1041 (0411) [23:53:09]Processing tag 1040 (0410) [23:53:09]Malloc new data [23:53:09]Processing tag 1038 (040E) [23:53:09]Malloc new data [23:53:09]Processing tag 1118 (045E) [23:53:09]Malloc new data [23:53:09]Processing tag 1111 (0457) [23:53:09]Malloc new data [23:53:09]Processing tag 1194 (04AA) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1134 (046E) [23:53:09]Malloc new data [23:53:09]Processing tag 1129 (0469) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1135 (046F) [23:53:09]Malloc new data [23:53:09]Processing tag 1201 (04B1) [23:53:09]Malloc new data [23:53:09]Processing tag 1136 (0470) [23:53:09]Malloc new data [23:53:09]Processing tag 1138 (0472) [23:53:09]Malloc new data [23:53:09]Processing tag 1024 (0400) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]SetTLVBufToDocument err=0 [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1130 (046A) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1135 (046F) [23:53:09]Malloc new data [23:53:09]Processing tag 1201 (04B1) [23:53:09]Malloc new data [23:53:09]Processing tag 1136 (0470) [23:53:09]Malloc new data [23:53:09]Processing tag 1138 (0472) [23:53:09]Malloc new data [23:53:09]Processing tag 1024 (0400) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]SetTLVBufToDocument err=0 [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1131 (046B) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1135 (046F) [23:53:09]Malloc new data [23:53:09]Processing tag 1201 (04B1) [23:53:09]Malloc new data [23:53:09]Processing tag 1136 (0470) [23:53:09]Malloc new data [23:53:09]Processing tag 1138 (0472) [23:53:09]Malloc new data [23:53:09]Processing tag 1024 (0400) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1006 (03EE) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1010 (03F2) [23:53:09]Malloc new data [23:53:09]Processing tag 1011 (03F3) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]Processing tag 1007 (03EF) [23:53:09]Load OK [23:53:09]SetTLVBufToDocument [23:53:09]Processing tag 1014 (03F6) [23:53:09]Malloc new data [23:53:09]Processing tag 1015 (03F7) [23:53:09]Malloc new data [23:53:09]SetTLVBufToDocument err=0 [23:53:09]SetTLVBufToDocument err=0 [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1132 (046C) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1135 (046F) [23:53:10]Malloc new data [23:53:10]Processing tag 1201 (04B1) [23:53:10]Malloc new data [23:53:10]Processing tag 1136 (0470) [23:53:10]Malloc new data [23:53:10]Processing tag 1138 (0472) [23:53:10]Malloc new data [23:53:10]Processing tag 1024 (0400) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1006 (03EE) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1010 (03F2) [23:53:10]Malloc new data [23:53:10]Processing tag 1011 (03F3) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1006 (03EE) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1010 (03F2) [23:53:10]Malloc new data [23:53:10]Processing tag 1011 (03F3) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1007 (03EF) [23:53:10]Load OK [23:53:10]SetTLVBufToDocument [23:53:10]Processing tag 1014 (03F6) [23:53:10]Malloc new data [23:53:10]Processing tag 1015 (03F7) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]SetTLVBufToDocument err=0 [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1133 (046D) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Processing tag 1077 (0435) [23:53:10]Malloc new data [23:53:10]SetTLVBufToDocument err=0 [23:53:10]Malloc new data [23:53:10]SAM_PROTO_GetFMData [23:53:10]wFMCommunicate request_size=4 [23:53:10]MH_SAM_APDU [23:53:10]CAPDU: 80 13 03 00 [23:53:10]Write to MH i2c: E2 08 00 7F 23 80 13 03 00 00 00 00 00 21 [23:53:10]Write i2c OK [23:53:10]MH_I2C_Read... [23:53:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:10]Read from MH i2c: E2 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 [23:53:10]MH_I2C_Read... [23:53:10]Read from MH i2c: E2 FD 00 7F 23 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 1F [23:53:11]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:53:11]wFMCommunicate OK [23:53:11]wFMCommunicate request_size=4 [23:53:11]MH_SAM_APDU [23:53:11]CAPDU: 80 17 00 00 [23:53:11]Write to MH i2c: E2 08 00 80 23 80 17 00 00 00 00 00 00 23 [23:53:11]Write i2c OK [23:53:11]MH_I2C_Read... [23:53:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:11]Read from MH i2c: E2 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 [23:53:11]MH_I2C_Read... [23:53:11]Read from MH i2c: E2 FD 00 80 23 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 D3 [23:53:11]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [23:53:12]wFMCommunicate OK [23:53:12]wFMCommunicate request_size=4 [23:53:12]MH_SAM_APDU [23:53:12]CAPDU: 80 17 00 00 [23:53:12]Write to MH i2c: E2 08 00 81 23 80 17 00 00 00 00 00 00 24 [23:53:12]Write i2c OK [23:53:12]MH_I2C_Read... [23:53:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:12]Read from MH i2c: E2 [23:53:12]MH_I2C_Read... [23:53:12]Read from MH i2c: E2 FD 00 [23:53:12]MH_I2C_Read... [23:53:12]Read from MH i2c: E2 FD 00 81 23 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C8 [23:53:12]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 OFD Sender: No OFD packet to send [23:53:12]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [23:53:12]wFMCommunicate OK [23:53:12]wFMCommunicate request_size=4 [23:53:12]MH_SAM_APDU [23:53:12]CAPDU: 80 17 00 00 [23:53:12]Write to MH i2c: E2 08 00 82 23 80 17 00 00 00 00 00 00 25 [23:53:12]Write i2c OK [23:53:13]MH_I2C_Read... [23:53:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:13]Read from MH i2c: E2 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 FD 00 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 FD 00 82 23 00 00 04 F7 03 00 00 EF 03 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 90 00 9F [23:53:13]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:13]wFMCommunicate OK [23:53:13]wFMCommunicate request_size=4 [23:53:13]MH_SAM_APDU [23:53:13]CAPDU: 80 17 00 00 [23:53:13]Write to MH i2c: E2 08 00 83 23 80 17 00 00 00 00 00 00 26 [23:53:13]Write i2c OK [23:53:13]MH_I2C_Read... [23:53:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:53:13]Read from MH i2c: E2 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 DC 00 [23:53:13]MH_I2C_Read... [23:53:13]Read from MH i2c: E2 DC 00 83 23 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0A [23:53:14]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:53:14]wFMCommunicate OK [23:53:14]SAM_PROTO_GetFMData done [23:53:14]Malloc new data [23:53:14]Malloc new data [23:53:14]Malloc new data [23:53:14]Malloc new data [23:53:14]KKMLoadAndSignCloseShiftData err=0 [23:53:14]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Уморов С. 27.01.2024 23:53 Смена: 243 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Чеков за смену: 113 ФД за смену: 115 Всего чеков: 113 ИТОГИ ПРИХОД Чеков: 113 Общий итог: 73234.92 Итого наличными: 69632.00 Итого безнал.: 3602.92 НДС 0% : 0.00 НДС 12% : 7780.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 648.34 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 69632.00 НС Приход: 31468115.87 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 48934 ФМ: 0000000000875060 ФПД: 141275744915136 [23:53:14]StoreToDocumentArchive [23:53:14]shift 243 fd 48934 [23:53:14]save to /storage/0243/doc_00048934 [23:53:14]save last doc name /storage/0243/doc_00048934 to /storage/kkm_last_doc_name [23:53:14]save OK [23:53:14]Clear old archive folders... [23:53:14]Remove dir /storage/0010 [23:53:14]opendir ok [23:53:14]file . [23:53:14]file .. [23:53:14]file doc_1706399563 [23:53:14]remove file /storage/0010/doc_1706399563 [23:53:14]remove dir /storage/0010 [23:53:14]NVStorageSaveData kkm_registers [23:53:14]File name is /storage/kkm_registers [23:53:14]Write 24 bytes [23:53:14]NVStorageSaveData done [23:53:14]NVStorageSaveData kkm_registers [23:53:14]File name is /storage/kkm_registers [23:53:14]Write 24 bytes [23:53:14]NVStorageSaveData done [23:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=1375 [23:53:14]tlvbuf is 013840F0 [23:53:14]SAM_PROTO_ClearQueue [23:53:14]wFMCommunicate request_size=4 [23:53:14]MH_SAM_APDU [23:53:14]CAPDU: 80 09 00 00 [23:53:14]Write to MH i2c: E2 08 00 84 23 80 09 00 00 00 00 00 00 19 [23:53:14]Write i2c OK [23:53:14]MH_I2C_Read... [23:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:14]Read from MH i2c: E2 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 03 00 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 03 00 84 23 00 90 00 1B [23:53:14]RAPDU: 90 00 [23:53:14]wFMCommunicate OK [23:53:14]SAM_PROTO_ClearQueue done [23:53:14]KKMCreateOFDPacket [23:53:14]OFDProtocolAddRootSTLVToBuf [23:53:14]FM_MakeSignedData [23:53:14]FM_MakeSignedData [23:53:14]SAM_PROTO_SignData [23:53:14]wFMCommunicate request_size=4 [23:53:14]MH_SAM_APDU [23:53:14]CAPDU: 80 0D 01 02 [23:53:14]Write to MH i2c: E2 08 00 85 23 80 0D 01 02 00 00 00 00 21 [23:53:14]Write i2c OK [23:53:14]MH_I2C_Read... [23:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:14]Read from MH i2c: E2 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 03 00 [23:53:14]MH_I2C_Read... [23:53:14]Read from MH i2c: E2 03 00 85 23 00 90 00 1C [23:53:14]RAPDU: 90 00 [23:53:14]wFMCommunicate OK [23:53:14]wFMCommunicate request_size=255 [23:53:14]MH_SAM_APDU [23:53:14]CAPDU: 80 0D 02 02 FA 05 00 5F 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 66 97 B5 65 0E 04 04 00 F3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA 04 D5 04 6E 04 04 00 71 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B 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 [23:53:14]Write to MH i2c: E2 02 01 86 23 80 0D 02 02 FA 00 05 00 5F 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 66 97 B5 65 0E 04 04 00 F3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA 04 D5 04 6E 04 04 00 71 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 00 00 84 [23:53:15]Write i2c OK [23:53:15]MH_I2C_Read... [23:53:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:15]Read from MH i2c: E2 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 03 00 [23:53:15]MH_I2C_Read... [23:53:15]Read from MH i2c: E2 03 00 86 23 00 90 00 1D [23:53:15]RAPDU: 90 00 [23:53:15]wFMCommunicate OK [23:53:15]wFMCommunicate request_size=255 [23:53:15]MH_SAM_APDU [23:53:15]CAPDU: 80 0D 02 02 FA 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD 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 [23:53:15]Write to MH i2c: E2 02 01 87 23 80 0D 02 02 FA 00 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD 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 00 00 D8 [23:53:15]Write i2c OK [23:53:15]MH_I2C_Read... [23:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:16]Read from MH i2c: E2 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 03 00 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 03 00 87 23 00 90 00 1E [23:53:16]RAPDU: 90 00 [23:53:16]wFMCommunicate OK [23:53:16]wFMCommunicate request_size=255 [23:53:16]MH_SAM_APDU [23:53:16]CAPDU: 80 0D 02 02 FA 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 [23:53:16]Write to MH i2c: E2 02 01 88 23 80 0D 02 02 FA 00 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 00 00 5F [23:53:16]Write i2c OK [23:53:16]MH_I2C_Read... [23:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:16]Read from MH i2c: E2 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 03 00 [23:53:16]MH_I2C_Read... [23:53:16]Read from MH i2c: E2 03 00 88 23 00 90 00 1F [23:53:16]RAPDU: 90 00 [23:53:16]wFMCommunicate OK [23:53:16]wFMCommunicate request_size=255 [23:53:16]MH_SAM_APDU [23:53:16]CAPDU: 80 0D 02 02 FA 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:53:17]Write to MH i2c: E2 02 01 89 23 80 0D 02 02 FA 00 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 6D [23:53:17]Write i2c OK [23:53:17]MH_I2C_Read... [23:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:17]Read from MH i2c: E2 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: E2 03 00 [23:53:17]MH_I2C_Read... [23:53:17]Read from MH i2c: E2 03 00 89 23 00 90 00 20 [23:53:17]RAPDU: 90 00 [23:53:17]wFMCommunicate OK [23:53:17]wFMCommunicate request_size=255 [23:53:17]MH_SAM_APDU [23:53:17]CAPDU: 80 0D 02 02 FA 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 [23:53:18]Write to MH i2c: E2 02 01 8A 23 80 0D 02 02 FA 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 OFD Sender: No OFD packet to send [23:53:18]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 00 00 BE [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:18]Read from MH i2c: E2 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 [23:53:18]MH_I2C_Read... [23:53:18]Read from MH i2c: E2 03 00 8A 23 00 90 00 21 [23:53:18]RAPDU: 90 00 [23:53:18]wFMCommunicate OK [23:53:18]wFMCommunicate request_size=134 [23:53:18]MH_SAM_APDU [23:53:18]CAPDU: 80 0D 02 02 81 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 80 7D 52 97 4E C0 [23:53:18]Write to MH i2c: E2 89 00 8B 23 80 0D 02 02 81 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 80 7D 52 97 4E C0 00 00 37 [23:53:18]Write i2c OK [23:53:18]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 03 00 8B 23 00 90 00 22 [23:53:19]RAPDU: 90 00 [23:53:19]wFMCommunicate OK [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 0D 03 02 [23:53:19]Write to MH i2c: E2 08 00 8C 23 80 0D 03 02 00 00 00 00 2A [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 0B 00 8C 23 00 BB 14 70 B3 78 33 B2 58 90 00 D2 [23:53:19]RAPDU: BB 14 70 B3 78 33 B2 58 90 00 [23:53:19]wFMCommunicate OK [23:53:19]SAM_PROTO_SignData done [23:53:19]FM_MakeSignedData done [23:53:19]CreateOFDProtocolMessage [23:53:19]wFMCommunicate request_size=4 [23:53:19]MH_SAM_APDU [23:53:19]CAPDU: 80 11 00 00 [23:53:19]Write to MH i2c: E2 08 00 8D 23 80 11 00 00 00 00 00 00 2A [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 [23:53:19]MH_I2C_Read... [23:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:19]Read from MH i2c: E2 17 00 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: E2 17 00 8D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 77 [23:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:53:19]wFMCommunicate OK [23:53:19]CreateOFDProtocolMessage done [23:53:19]OFDSenderStorePacket 48934 [23:53:19]StoreOFDPacket docnum=48934 [23:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 73 05 00 00 E8 F5 6B 05 9D A1 5A 05 01 00 05 00 5F 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 66 97 B5 65 0E 04 04 00 F3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA 04 D5 04 6E 04 04 00 71 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD 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 26 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 80 7D 52 97 4E C0 BB 14 70 B3 78 33 B2 58 [23:53:19]CheckFolder [23:53:19]dirname=/storage/ofd_packets [23:53:19]CheckFolder done [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00048934 [23:53:19]NVStorageSaveData ofd_packets/00048934 [23:53:19]File name is /storage/ofd_packets/00048934 [23:53:19]Write 1425 bytes [23:53:19]NVStorageSaveData done [23:53:19]OFDSenderStorePacket done [23:53:19]KKMCreateOFDPacket done [23:53:19]NVStorageSaveData kkm_last_timestamp [23:53:19]File name is /storage/kkm_last_timestamp [23:53:19]Write 4 bytes [23:53:19]NVStorageSaveData done [23:53:19]ExternCall_PrintAddStr [23:53:19]wPrintStart [23:53:19]Write to MH i2c: 01 00 00 8E 23 B1 [23:53:19]Write i2c OK [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 [23:53:19]MH_I2C_Read... [23:53:19]Read from MH i2c: 01 07 00 [23:53:19]MH_I2C_Read... [23:53:19]OFD Sender: Processing packet 48934 [packets to send 12, broken 11] [23:53:19]ProducePacketName [23:53:19]name=ofd_packets/00048934 [23:53:19]OFD Sender: To server: pG, [23:53:19]CommunicateWithHost lk.salyk.kg:30040 [23:53:19]ConnectInit lk.salyk.kg [23:53:19]Read from MH i2c: 01 07 00 8E 23 00 00 00 00 00 FF 0F C6 [23:53:19]RasterBufferAndPrint [23:53:19]line Отчет о закрытии смены [23:53:19]line ФФД: 1.0 [23:53:19]line ИНН: 02508201610067 [23:53:19]line Кассир: Уморов С. [23:53:19]line 27.01.2024 23:53 [23:53:19]line Смена: 243 [23:53:19]line РНМ: 0000000000092723 [23:53:19]line ЗНМ: 0300000040 [23:53:19]line СНО: Общий режим [23:53:19]line Чеков за смену: 113 [23:53:19]line ФД за смену: 115 [23:53:19]line Всего чеков: 113 [23:53:19]line ИТОГИ ПРИХОД [23:53:19]line Чеков: 113 [23:53:19]line Общий итог: 73234.92 [23:53:19]line Итого наличными: 69632.00 [23:53:19]line Итого безнал.: 3602.92 [23:53:19]line НДС 0% : 0.00 [23:53:19]line НДС 12% : 7780.94 [23:53:19]line НСП 0% : 0.00 [23:53:19]line НСП 1,50% : 0.00 [23:53:19]line НСП 0,50% : 0.00 [23:53:19]line НСП 5% : 0.00 [23:53:19]line НСП 3% : 0.00 [23:53:19]line НСП 2% : 0.00 [23:53:19]line НСП 1% : 648.34 [23:53:19]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:53:19]line Чеков: 0 [23:53:19]line Общий итог: 0.00 [23:53:19]line Итого наличными: 0.00 [23:53:19]line Итого безнал.: 0.00 [23:53:19]line НДС 0% : 0.00 [23:53:19]line НДС 12% : 0.00 [23:53:19]line НСП 0% : 0.00 [23:53:19]line НСП 1,50% : 0.00 [23:53:19]line НСП 0,50% : 0.00 [23:53:19]line НСП 5% : 0.00 [23:53:19]line НСП 3% : 0.00 [23:53:19]line НСП 2% : 0.00 [23:53:19]line НСП 1% : 0.00 [23:53:19]line ИТОГИ РАСХОД [23:53:19]line Чеков: 0 [23:53:19]line Общий итог: 0.00 [23:53:19]line Итого наличными: 0.00 [23:53:19]line Итого безнал.: 0.00 [23:53:19]line НДС 0% : 0.00 [23:53:19]line НДС 12% : 0.00 [23:53:19]line НСП 0% : 0.00 [23:53:19]line НСП 1,50% : 0.00 [23:53:19]line НСП 0,50% : 0.00 [23:53:19]line НСП 5% : 0.00 [23:53:19]line НСП 3% : 0.00 [23:53:19]line НСП 2% : 0.00 [23:53:19]line НСП 1% : 0.00 [23:53:19]line ИТОГИ ВОЗВРАТ РАСХОДА [23:53:19]line Чеков: 0 [23:53:19]line Общий итог: 0.00 [23:53:19]Connected sock=10 [23:53:19]line Итого наличными: 0.00 [23:53:19]Data to sent: line Итого безнал.: 0.00 [23:53:19]87 line НДС 0% : 0.00 [23:53:19]95 line НДС 12% : 0.00 [23:53:19]F6 70 47 2C 01 00 30 30 30 30 30 30 line НСП 0% : 0.00 [23:53:19]30 line НСП 1,50% : 0.00 [23:53:19]30 line НСП 0,50% : 0.00 [23:53:19]30 line НСП 5% : 0.00 [23:53:19]30 line НСП 3% : 0.00 [23:53:19]38 line НСП 2% : 0.00 [23:53:19]37 line НСП 1% : 0.00 [23:53:19]35 line Сумма внесений: 0.00 [23:53:19]30 line Сумма выплат: 0.00 [23:53:19]36 line Нал. в кассе: 69632.00 [23:53:19]30 line НС Приход: 31468115.87 [23:53:19]73 line НС Возвр.Прихода: 6198.00 [23:53:19]05 line НС Расход: 0.00 [23:53:19]00 line НС Возвр.Расхода: 0.00 [23:53:19]00 line ФД: 48934 [23:53:19]line ФМ: 0000000000875060 [23:53:19]line ФПД: 141275744915136 [23:53:19]E8 F5 6B 05 9D A1 5A 05 01 00 05 00 5F 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 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F4 03 04 00 66 97 B5 65 0E 04 04 00 F3 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 AA written 0, free lines is 4095 [23:53:20]04 D5 04 6E 04 04 00 71 00 00 00 69 04 A2 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD 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 Write to MH i2c: 6F 01 04 00 04 00 DE 00 00 00 00 00 B1 04 00 00 70 23 04 01 00 [23:53:21]00 72 04 00 00 00 Write i2c OK [23:53:21]04 MH_I2C_Read... [23:53:21]75 00 EE 03 09 Read from MH i2c: 00 01 F2 [23:53:21]03 MH_I2C_Read... [23:53:21]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 Read from MH i2c: 01 01 00 07 01 00 F3 [23:53:21]MH_I2C_Read... [23:53:21]03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 01 00 07 00 00 F7 DE 03 23 00 00 00 00 EF 00 03 00 09 00 F6 03 01 00 01 F7 03 00 00 00 EF 08 03 0B 09 1B 00 [23:53:21]F6 RasterBufferAndPrint [23:53:21]03 line [23:53:21]01 line [23:53:21]00 line [23:53:21]02 line [23:53:21]F7 line [23:53:21]03 00 00 EF 03 09 00 F6 written 0, free lines is 3034 [23:53:21]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 MH_Cut [23:53:21]03 Write to MH i2c: 01 D1 00 01 04 00 F7 E5 03 23 00 00 EF 03 09 00 F6 03 01 00 01 05 DA F7 [23:53:21]03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 Write i2c OK [23:53:21]00 MH_I2C_Read... [23:53:21]7A Read from MH i2c: 04 D1 8D [23:53:21]00 MH_I2C_Read... [23:53:21]6F 04 04 00 00 00 00 Read from MH i2c: 00 D1 B1 01 04 00 00 [23:53:21]00 70 04 00 00 72 04 00 00 00 04 MH_I2C_Read... [23:53:21]75 00 EE 03 09 00 F2 03 Read from MH i2c: 01 D1 00 01 00 00 F3 E5 03 00 00 EE 03 09 00 F2 03 01 23 00 00 01 D9 F3 [23:53:21]03 Write to MH i2c: 00 00 EF 03 09 00 F6 03 01 00 01 00 00 F7 00 03 E6 00 23 00 EF 03 09 00 F6 03 01 00 01 F7 09 03 [23:53:21]00 Write i2c OK [23:53:21]00 EF MH_I2C_Read... [23:53:21]03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 26 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 80 7D 52 97 4E C0 BB 14 70 B3 78 33 B2 58 [23:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 53 2D 47 00 4A 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 35 30 36 30 10 04 04 00 26 BF 00 00 F4 03 04 00 72 43 B5 65 B6 04 01 00 00 78 5B 9F AF 5C 94 8C 1E [23:53:21]CommunicateWithHost err = 0 [23:53:21]CheckOFDResponse [23:53:21]1017 (14) - 77093643461234 [23:53:21]1041 (16) - 0000000000875060 [23:53:21]1040 (4) - 48934 [23:53:21]1012 (4) - 27.01.2024 17:54 [23:53:21]1206 (1) - 0 [23:53:21]OFD Sender: Remove packet 48934 [23:53:21]ProducePacketName [23:53:21]name=ofd_packets/00048934 [23:53:21]NVStorageDeleteData [23:53:21]*** Cut start [23:53:21]*** Partial cut [23:53:21]*** CUTSNS_PIN = 1 [23:53:22]*** CUTSNS_PIN = 0 [23:53:22]*** Brake cut motor [23:53:22]OFD Sender: No OFD packet to send [23:53:22]Read from MH i2c: 01 [23:53:22]MH_I2C_Read... [23:53:22]*** Stop cut motor [23:53:22]*** Cut end [23:53:22]Read from MH i2c: 01 07 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: 01 07 00 E6 23 00 00 00 00 00 FF 0F 1E [23:53:22]process_action close_shift done [23:53:22]requested_data is exist [23:53:22]produce_requested_data [23:53:22]requested_item fd.num is exist - process it [23:53:22]SAM_PROTO_GetFieldsCounters [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 13 00 00 [23:53:22]Write to MH i2c: E2 08 00 E7 23 80 13 00 00 00 00 00 00 86 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:22]Read from MH i2c: E2 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 [23:53:22]MH_I2C_Read... [23:53:22]Read from MH i2c: E2 62 00 E7 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [23:53: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:22]wFMCommunicate OK [23:53:22]SAM_PROTO_GetFieldsCounters done [23:53:22]requested_item shift.num is exist - process it [23:53:22]requested_item shift.opened is exist - process it [23:53:22]req_shift_opened [23:53:22]FM_GetShiftState [23:53:22]SAM_PROTO_GetShiftState [23:53:22]wFMCommunicate request_size=4 [23:53:22]MH_SAM_APDU [23:53:22]CAPDU: 80 13 01 00 [23:53:22]Write to MH i2c: E2 08 00 E8 23 80 13 01 00 00 00 00 00 88 [23:53:22]Write i2c OK [23:53:22]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0E 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0E 00 E8 23 00 09 00 00 00 00 00 00 00 00 00 00 90 00 93 [23:53:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:53:23]wFMCommunicate OK [23:53:23]SAM_PROTO_GetShiftState done [23:53:23]FM_GetShiftState done [23:53:23]req_shift_opened done [23:53:23]requested_item shift.open_date is exist - process it [23:53:23]req_shift_open_date [23:53:23]FM_GetShiftState [23:53:23]SAM_PROTO_GetShiftState [23:53:23]wFMCommunicate request_size=4 [23:53:23]MH_SAM_APDU [23:53:23]CAPDU: 80 13 01 00 [23:53:23]Write to MH i2c: E2 08 00 E9 23 80 13 01 00 00 00 00 00 89 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:23]Read from MH i2c: E2 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0E 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: E2 0E 00 E9 23 00 09 00 00 00 00 00 00 00 00 00 00 90 00 94 [23:53:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:53:23]wFMCommunicate OK [23:53:23]SAM_PROTO_GetShiftState done [23:53:23]FM_GetShiftState done [23:53:23]req_shift_open_date done [23:53:23]produce_requested_data done [23:53:23]produce_requested_data return {"fd.num":48934,"shift.num":243,"shift.opened":0,"shift.open_date":0} [23:53:23]process_action_free close_shift [23:53:23]json_value_free [23:53:23]json_value_free done [23:53:23]process_json_proto returns [23:53:23]Send response to host [23:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":48934,"shift.num":243,"shift.opened":0,"shift.open_date":0}}} [23:53:23]free response buf [23:53:23]execute_script done [23:53:23]execute_script returns [23:53:23]free content buf [23:53:23]Sock 9.Close socket [23:53:23]Sock 9.Thread stoped [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 EA 23 0D [23:53:23]*** FLAG_PRN_KEY set [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 EA 23 00 08 00 00 00 FF 0F 2A [23:53:23]state=0 [23:53:23]Key pressed [23:53:23]Feed [23:53:23]Write to MH i2c: D8 00 00 EB 23 E5 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 EB 23 00 E6 [23:53:23]int line is 0 - check status [23:53:23]Write to MH i2c: 01 00 00 EC 23 0F [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 EC 23 00 48 00 00 00 3C 00 9A [23:53:23]state=2 [23:53:23]Key pressed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 ED 23 10 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 ED 23 00 48 00 00 00 3C 00 9B [23:53:23]state=2 [23:53:23]Key pressed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 EE 23 11 [23:53:23]*** FLAG_PRN_KEY reset [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 EE 23 00 00 00 00 00 FB 0F 22 [23:53:23]state=2 [23:53:23]Stop feed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 EF 23 12 [23:53:23]*** FLAG_PRN_KEY set [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 EF 23 00 08 00 00 00 FF 0F 2F [23:53:23]state=0 [23:53:23]Key pressed [23:53:23]Feed [23:53:23]Write to MH i2c: D8 00 00 F0 23 EA [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: D8 01 00 F0 23 00 EB [23:53:23]int line is 0 - check status [23:53:23]Write to MH i2c: 01 00 00 F1 23 14 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 F1 23 00 48 00 00 00 3C 00 9F [23:53:23]state=2 [23:53:23]Key pressed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 F2 23 15 [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 F2 23 00 48 00 00 00 3C 00 A0 [23:53:23]state=2 [23:53:23]Key pressed [23:53:23]int [23:53:23]Write to MH i2c: 01 00 00 F3 23 16 [23:53:23]*** FLAG_PRN_KEY reset [23:53:23]Write i2c OK [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 [23:53:23]MH_I2C_Read... [23:53:23]Read from MH i2c: 01 07 00 F3 23 00 00 00 00 00 FF 0F 2B [23:53:23]state=2 [23:53:23]Stop feed [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:09]accept exits with 7 [00:03:09]New connection [00:03:09]New thread 3066813796 created [00:03:09]Thread 3066670436 joined [00:03:09]Waiting for new connection... [00:03:09] Sock 7.Parse request [00:03:09]Sock 7.Check first char [00:03:09]Sock 7.First char is OK [00:03:09]request: POST /json_proto HTTP/1.0 [00:03:09]Method: POST [00:03:09]URL: /json_proto [00:03:09]Method is POST - this is cgi request [00:03:09]url: /json_proto [00:03:09]query_string will be loaded in cgi processing [00:03:09]execute_cgi json_proto POST (null) [00:03:09]execute_cgi path=json_proto method=POST [00:03:09]POST find Content-Length [00:03:09]Host: 172.17.56.67:8080 [00:03:09]Content-Length: 215 [00:03:09]Content-Type: application/json [00:03:09] [00:03:09]POST finish read [00:03:09]Found Content-Length = 215 [00:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:09]execute_script... [00:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:09]POST & json_proto [00:03:09]process_json_proto [00:03:09]json parsed OK: [00:03:09]protocol is kg_v1.0 [00:03:09]action value=get_value [00:03:09]process_action get_value [00:03:09]cmd_get_value [00:03:09]process_action get_value done [00:03:09]requested_data is exist [00:03:09]produce_requested_data [00:03:09]requested_item kkm.sn is exist - process it [00:03:09]requested_item kkm.ver is exist - process it [00:03:09]requested_item fm.sn is exist - process it [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 11 00 00 [00:03:09]Write to MH i2c: E2 08 00 F4 23 80 11 00 00 00 00 00 00 91 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 17 00 F4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DE [00:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:03:09]wFMCommunicate OK [00:03:09]requested_item fd.num is exist - process it [00:03:09]SAM_PROTO_GetFieldsCounters [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 13 00 00 [00:03:09]Write to MH i2c: E2 08 00 F5 23 80 13 00 00 00 00 00 00 94 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 62 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 62 00 F5 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 26 BF 00 00 0E 04 04 00 F3 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetFieldsCounters done [00:03:10]requested_item shift.num is exist - process it [00:03:10]requested_item shift.opened is exist - process it [00:03:10]req_shift_opened [00:03:10]FM_GetShiftState [00:03:10]SAM_PROTO_GetShiftState [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 01 00 [00:03:10]Write to MH i2c: E2 08 00 F6 23 80 13 01 00 00 00 00 00 96 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 F6 23 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A1 [00:03:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]req_shift_opened done [00:03:10]requested_item shift.open_date is exist - process it [00:03:10]req_shift_open_date [00:03:10]FM_GetShiftState [00:03:10]SAM_PROTO_GetShiftState [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 01 00 [00:03:10]Write to MH i2c: E2 08 00 F7 23 80 13 01 00 00 00 00 00 97 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 0E 00 F7 23 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A2 [00:03:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_GetShiftState done [00:03:10]FM_GetShiftState done [00:03:10]req_shift_open_date done [00:03:10]produce_requested_data done [00:03:10]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48934,"shift.num":243,"shift.opened":0,"shift.open_date":0} [00:03:10]process_action_free get_value [00:03:10]json_value_free [00:03:10]json_value_free done [00:03:10]process_json_proto returns [00:03:10]Send response to host [00:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":48934,"shift.num":243,"shift.opened":0,"shift.open_date":0}}} [00:03:10]free response buf [00:03:10]execute_script done [00:03:10]execute_script returns [00:03:10]free content buf [00:03:10]Sock 7.Close socket [00:03:10]Sock 7.Thread stoped [00:03:10]accept exits with 9 [00:03:10]New connection [00:03:10]New thread 3066670436 created [00:03:10]Thread 3066813796 joined [00:03:10]Waiting for new connection... [00:03:10] Sock 9.Parse request [00:03:10]Sock 9.Check first char [00:03:10]Sock 9.First char is OK [00:03:10]request: POST /json_proto HTTP/1.0 [00:03:10]Method: POST [00:03:10]URL: /json_proto [00:03:10]Method is POST - this is cgi request [00:03:10]url: /json_proto [00:03:10]query_string will be loaded in cgi processing [00:03:10]execute_cgi json_proto POST (null) [00:03:10]execute_cgi path=json_proto method=POST [00:03:10]POST find Content-Length [00:03:10]Host: 172.17.56.67:8080 [00:03:10]Content-Length: 331 [00:03:10]Content-Type: application/json [00:03:10] [00:03:10]POST finish read [00:03:10]Found Content-Length = 331 [00:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:10]execute_script... [00:03:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:10]POST & json_proto [00:03:10]process_json_proto [00:03:10]json parsed OK: [00:03:10]protocol is kg_v1.0 [00:03:10]action value=get_value [00:03:10]process_action get_value [00:03:10]cmd_get_value [00:03:10]process_action get_value done [00:03:10]requested_data is exist [00:03:10]produce_requested_data [00:03:10]requested_item fm.sale.total is exist - process it [00:03:10]SAM_PROTO_GetFMData [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 13 03 00 [00:03:10]Write to MH i2c: E2 08 00 F8 23 80 13 03 00 00 00 00 00 9A [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 FD 00 F8 23 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 98 [00:03:10]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 17 00 00 [00:03:10]Write to MH i2c: E2 08 00 F9 23 80 17 00 00 00 00 00 00 9C [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 F9 23 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 4C [00:03:11]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 FA 23 80 17 00 00 00 00 00 00 9D [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 FA 23 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 41 [00:03:11]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 FB 23 80 17 00 00 00 00 00 00 9E [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 FD 00 FB 23 00 00 04 F7 03 00 00 EF 03 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 90 00 18 [00:03:11]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 17 00 00 [00:03:11]Write to MH i2c: E2 08 00 FC 23 80 17 00 00 00 00 00 00 9F [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 DC 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 DC 00 FC 23 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [00:03:11]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:11]wFMCommunicate OK [00:03:11]SAM_PROTO_GetFMData done [00:03:11]requested_item fm.sale_refund.total is exist - process it [00:03:11]requested_item fm.buy.total is exist - process it [00:03:11]requested_item shift.sale.total is exist - process it [00:03:11]SAM_PROTO_GetShiftData [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 13 02 00 [00:03:12]Write to MH i2c: E2 08 00 FD 23 80 13 02 00 00 00 00 00 9E [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 FD 23 00 AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 FC [00:03:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 71 00 00 00 69 04 9B 00 6F 04 04 00 71 00 00 00 B1 04 03 00 64 BF 6F 70 04 03 00 00 40 6A 72 04 03 00 64 7F 05 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 6E DF 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 42 FD EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 FE 23 80 17 00 00 00 00 00 00 A1 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 FE 23 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C3 [00:03:12]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:03:12]wFMCommunicate OK [00:03:12]wFMCommunicate request_size=4 [00:03:12]MH_SAM_APDU [00:03:12]CAPDU: 80 17 00 00 [00:03:12]Write to MH i2c: E2 08 00 FF 23 80 17 00 00 00 00 00 00 A2 [00:03:12]Write i2c OK [00:03:12]MH_I2C_Read... [00:03:12]OFD Sender: No OFD packet to send [00:03:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:12]Read from MH i2c: E2 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 [00:03:12]MH_I2C_Read... [00:03:12]Read from MH i2c: E2 FD 00 FF 23 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 59 [00:03:13]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 00 24 80 17 00 00 00 00 00 00 A4 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 FD 00 00 24 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 16 [00:03:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 17 00 00 [00:03:13]Write to MH i2c: E2 08 00 01 24 80 17 00 00 00 00 00 00 A5 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CB 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 CB 00 01 24 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8E [00:03:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftData done [00:03:13]requested_item shift.sale.total_cash is exist - process it [00:03:13]requested_item shift.sale_refund.total is exist - process it [00:03:13]requested_item shift.sale_refund.total_cash is exist - process it [00:03:13]requested_item shift.buy.total is exist - process it [00:03:13]requested_item shift.buy.total_cash is exist - process it [00:03:13]produce_requested_data done [00:03:13]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:13]process_action_free get_value [00:03:13]json_value_free [00:03:13]json_value_free done [00:03:13]process_json_proto returns [00:03:13]Send response to host [00:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":73234.92,"shift.sale.total_cash":69632.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:13]free response buf [00:03:13]execute_script done [00:03:13]execute_script returns [00:03:13]free content buf [00:03:13]Sock 9.Close socket [00:03:13]Sock 9.Thread stoped [00:03:13]accept exits with 7 [00:03:13]New connection [00:03:13]New thread 3066813796 created [00:03:13]Thread 3066670436 joined [00:03:13]Waiting for new connection... [00:03:13] Sock 7.Parse request [00:03:13]Sock 7.Check first char [00:03:13]Sock 7.First char is OK [00:03:13]request: POST /json_proto HTTP/1.0 [00:03:13]Method: POST [00:03:13]URL: /json_proto [00:03:13]Method is POST - this is cgi request [00:03:13]url: /json_proto [00:03:13]query_string will be loaded in cgi processing [00:03:13]execute_cgi json_proto POST (null) [00:03:13]execute_cgi path=json_proto method=POST [00:03:13]POST find Content-Length [00:03:13]Host: 172.17.56.67:8080 [00:03:13]Content-Length: 283 [00:03:13]Content-Type: application/json [00:03:13] [00:03:13]POST finish read [00:03:13]Found Content-Length = 283 [00:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]execute_script... [00:03:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:13]POST & json_proto [00:03:13]process_json_proto [00:03:13]json parsed OK: [00:03:13]protocol is kg_v1.0 [00:03:13]action value=open_shift [00:03:13]process_action open_shift [00:03:13]cmd_open_shift [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 02 24 15 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 02 24 00 C7 99 B5 65 26 5D 9E 65 1E [00:03:13]GetLastDocTimeStamp 1706399590 [00:03:13]current date 1706400199 [00:03:13]FM_GetShiftState [00:03:13]SAM_PROTO_GetShiftState [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 01 00 [00:03:13]Write to MH i2c: E2 08 00 03 24 80 13 01 00 00 00 00 00 A4 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 03 24 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AF [00:03:13]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftState done [00:03:13]FM_GetShiftState done [00:03:13]KKMCreateOpenShiftDocument [00:03:13]Load OK [00:03:13]Malloc new data [00:03:13]MH_GetDate [00:03:13]Write to MH i2c: F0 00 00 04 24 17 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: F0 09 00 04 24 00 C7 99 B5 65 26 5D 9E 65 20 [00:03:13]Malloc new data [00:03:13]KKMCreateOpenShiftDocument OK [00:03:13]KKMSetOpenShiftData OK [00:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=207 [00:03:13]tlvbuf is 01391BE0 [00:03:13]KKMLoadAndSignOpenShiftData [00:03:13]SAM_PROTO_ProcessDocument [00:03:13]wFMCommunicate request_size=9 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 01 00 04 02 00 CF 00 [00:03:13]Write to MH i2c: E2 0C 00 05 24 80 15 01 00 04 00 02 00 CF 00 00 00 81 [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 05 24 00 90 00 9D [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=23 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:03:13]Write to MH i2c: E2 1A 00 06 24 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 9F [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 03 00 06 24 00 90 00 9E [00:03:13]RAPDU: 90 00 [00:03:13]wFMCommunicate OK [00:03:13]wFMCommunicate request_size=38 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 [00:03:13]Write to MH i2c: E2 29 00 07 24 80 15 02 00 21 00 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 00 00 38 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 07 24 00 90 00 9F [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=87 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 [00:03:14]Write to MH i2c: E2 5A 00 08 24 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 00 00 50 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 08 24 00 90 00 A0 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=51 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:03:14]Write to MH i2c: E2 36 00 09 24 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 52 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 09 24 00 90 00 A1 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=13 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 08 F4 03 04 00 C7 99 B5 65 [00:03:14]Write to MH i2c: E2 10 00 0A 24 80 15 02 00 08 00 F4 03 04 00 C7 99 B5 65 00 00 33 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 0A 24 00 90 00 A2 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=25 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 [00:03:14]Write to MH i2c: E2 1C 00 0B 24 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 00 00 0F [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 03 00 0B 24 00 90 00 A3 [00:03:14]RAPDU: 90 00 [00:03:14]wFMCommunicate OK [00:03:14]wFMCommunicate request_size=4 [00:03:14]MH_SAM_APDU [00:03:14]CAPDU: 80 15 03 00 [00:03:14]Write to MH i2c: E2 08 00 0C 24 80 15 03 00 00 00 00 00 B1 [00:03:14]Write i2c OK [00:03:14]MH_I2C_Read... [00:03:14]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:14]Read from MH i2c: E2 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 [00:03:14]MH_I2C_Read... [00:03:14]Read from MH i2c: E2 38 00 0C 24 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 BF 00 00 0E 04 04 00 F4 00 00 00 35 04 06 00 FF 38 9A 70 6D 01 90 00 00 [00:03:14]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 27 BF 00 00 0E 04 04 00 F4 00 00 00 35 04 06 00 FF 38 9A 70 6D 01 90 00 [00:03:14]wFMCommunicate OK [00:03:14]SAM_PROTO_ProcessDocument answer len = 51 [00:03:14]SAM_PROTO_ProcessDocument done [00:03:14]SetTLVBufToDocument [00:03:14]Processing tag 1209 (04B9) [00:03:14]Malloc new data [00:03:14]Processing tag 1041 (0411) [00:03:14]Processing tag 1040 (0410) [00:03:14]Malloc new data [00:03:14]Processing tag 1038 (040E) [00:03:14]Malloc new data [00:03:14]Processing tag 1077 (0435) [00:03:14]Malloc new data [00:03:14]SetTLVBufToDocument err=0 [00:03:14]KKMLoadAndSignOpenShiftData store KKM data [00:03:14]KKMLoadAndSignOpenShiftData err=0 [00:03:14]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Барыктабасов Т. Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 Место: АЗС № 102 "Партнер Нефть" 28.01.2024 00:03 Смена: 244 РНМ: 0000000000092723 ЗНМ: 0300000040 ФД: 48935 ФМ: 0000000000875060 ФПД: 280618574310657 [00:03:14]StoreToDocumentArchive [00:03:14]shift 244 fd 48935 [00:03:14]Create dir for shift 0244 [00:03:14]save to /storage/0244/doc_00048935 [00:03:14]save last doc name /storage/0244/doc_00048935 to /storage/kkm_last_doc_name [00:03:14]save OK [00:03:14]Clear old archive folders... [00:03:14]Remove dir /storage/0243 [00:03:14]opendir ok [00:03:14]file . [00:03:14]file .. [00:03:14]file doc_00048820 [00:03:14]remove file /storage/0243/doc_00048820 [00:03:14]file doc_00048821 [00:03:14]remove file /storage/0243/doc_00048821 [00:03:14]file doc_00048822 [00:03:14]remove file /storage/0243/doc_00048822 [00:03:14]file doc_00048823 [00:03:14]remove file /storage/0243/doc_00048823 [00:03:14]file doc_00048824 [00:03:14]remove file /storage/0243/doc_00048824 [00:03:14]file doc_00048825 [00:03:14]remove file /storage/0243/doc_00048825 [00:03:14]file doc_00048826 [00:03:14]remove file /storage/0243/doc_00048826 [00:03:14]file doc_00048827 [00:03:14]remove file /storage/0243/doc_00048827 [00:03:14]file doc_00048828 [00:03:14]remove file /storage/0243/doc_00048828 [00:03:14]file doc_00048829 [00:03:14]remove file /storage/0243/doc_00048829 [00:03:14]file doc_00048830 [00:03:14]remove file /storage/0243/doc_00048830 [00:03:14]file doc_00048831 [00:03:14]remove file /storage/0243/doc_00048831 [00:03:14]file doc_00048832 [00:03:14]remove file /storage/0243/doc_00048832 [00:03:14]file doc_00048833 [00:03:14]remove file /storage/0243/doc_00048833 [00:03:14]file doc_00048834 [00:03:14]remove file /storage/0243/doc_00048834 [00:03:14]file doc_00048835 [00:03:14]remove file /storage/0243/doc_00048835 [00:03:14]file doc_00048836 [00:03:14]remove file /storage/0243/doc_00048836 [00:03:14]file doc_00048837 [00:03:14]remove file /storage/0243/doc_00048837 [00:03:14]file doc_00048838 [00:03:14]remove file /storage/0243/doc_00048838 [00:03:14]file doc_00048839 [00:03:14]remove file /storage/0243/doc_00048839 [00:03:14]file doc_00048840 [00:03:14]remove file /storage/0243/doc_00048840 [00:03:14]file doc_00048841 [00:03:14]remove file /storage/0243/doc_00048841 [00:03:14]file doc_00048842 [00:03:14]remove file /storage/0243/doc_00048842 [00:03:14]file doc_00048843 [00:03:14]remove file /storage/0243/doc_00048843 [00:03:14]file doc_00048844 [00:03:14]remove file /storage/0243/doc_00048844 [00:03:14]file doc_00048845 [00:03:14]remove file /storage/0243/doc_00048845 [00:03:14]file doc_00048846 [00:03:14]remove file /storage/0243/doc_00048846 [00:03:14]file doc_00048847 [00:03:14]remove file /storage/0243/doc_00048847 [00:03:14]file doc_00048848 [00:03:14]remove file /storage/0243/doc_00048848 [00:03:14]file doc_00048849 [00:03:14]remove file /storage/0243/doc_00048849 [00:03:14]file doc_00048850 [00:03:14]remove file /storage/0243/doc_00048850 [00:03:14]file doc_00048851 [00:03:14]remove file /storage/0243/doc_00048851 [00:03:14]file doc_00048852 [00:03:14]remove file /storage/0243/doc_00048852 [00:03:14]file doc_00048853 [00:03:14]remove file /storage/0243/doc_00048853 [00:03:14]file doc_00048854 [00:03:14]remove file /storage/0243/doc_00048854 [00:03:14]file doc_00048855 [00:03:14]remove file /storage/0243/doc_00048855 [00:03:14]file doc_00048856 [00:03:14]remove file /storage/0243/doc_00048856 [00:03:14]file doc_00048857 [00:03:14]remove file /storage/0243/doc_00048857 [00:03:14]file doc_00048858 [00:03:14]remove file /storage/0243/doc_00048858 [00:03:14]file doc_00048859 [00:03:14]remove file /storage/0243/doc_00048859 [00:03:14]file doc_00048860 [00:03:14]remove file /storage/0243/doc_00048860 [00:03:14]file doc_00048861 [00:03:14]remove file /storage/0243/doc_00048861 [00:03:14]file doc_00048862 [00:03:14]remove file /storage/0243/doc_00048862 [00:03:14]file doc_00048863 [00:03:14]remove file /storage/0243/doc_00048863 [00:03:14]file doc_00048864 [00:03:14]remove file /storage/0243/doc_00048864 [00:03:14]file doc_00048865 [00:03:14]remove file /storage/0243/doc_00048865 [00:03:14]file doc_00048866 [00:03:14]remove file /storage/0243/doc_00048866 [00:03:14]file doc_00048867 [00:03:14]remove file /storage/0243/doc_00048867 [00:03:14]file doc_00048868 [00:03:14]remove file /storage/0243/doc_00048868 [00:03:14]file doc_00048869 [00:03:14]remove file /storage/0243/doc_00048869 [00:03:14]file doc_00048870 [00:03:14]remove file /storage/0243/doc_00048870 [00:03:14]file doc_00048871 [00:03:14]remove file /storage/0243/doc_00048871 [00:03:14]file doc_00048872 [00:03:14]remove file /storage/0243/doc_00048872 [00:03:14]file doc_00048873 [00:03:14]remove file /storage/0243/doc_00048873 [00:03:14]file doc_00048874 [00:03:14]remove file /storage/0243/doc_00048874 [00:03:14]file doc_00048875 [00:03:14]remove file /storage/0243/doc_00048875 [00:03:14]file doc_00048876 [00:03:14]remove file /storage/0243/doc_00048876 [00:03:14]file doc_00048877 [00:03:14]remove file /storage/0243/doc_00048877 [00:03:14]file doc_00048878 [00:03:14]remove file /storage/0243/doc_00048878 [00:03:14]file doc_00048879 [00:03:14]remove file /storage/0243/doc_00048879 [00:03:14]file doc_00048880 [00:03:14]remove file /storage/0243/doc_00048880 [00:03:14]file doc_00048881 [00:03:14]remove file /storage/0243/doc_00048881 [00:03:14]file doc_00048882 [00:03:14]remove file /storage/0243/doc_00048882 [00:03:14]file doc_00048883 [00:03:14]remove file /storage/0243/doc_00048883 [00:03:14]file doc_00048884 [00:03:14]remove file /storage/0243/doc_00048884 [00:03:14]file doc_00048885 [00:03:14]remove file /storage/0243/doc_00048885 [00:03:14]file doc_00048886 [00:03:14]remove file /storage/0243/doc_00048886 [00:03:14]file doc_00048887 [00:03:14]remove file /storage/0243/doc_00048887 [00:03:14]file doc_00048888 [00:03:14]remove file /storage/0243/doc_00048888 [00:03:14]file doc_00048889 [00:03:14]remove file /storage/0243/doc_00048889 [00:03:14]file doc_00048890 [00:03:14]remove file /storage/0243/doc_00048890 [00:03:14]file doc_00048891 [00:03:14]remove file /storage/0243/doc_00048891 [00:03:14]file doc_00048892 [00:03:14]remove file /storage/0243/doc_00048892 [00:03:14]file doc_00048893 [00:03:14]remove file /storage/0243/doc_00048893 [00:03:14]file doc_00048894 [00:03:14]remove file /storage/0243/doc_00048894 [00:03:14]file doc_00048895 [00:03:14]remove file /storage/0243/doc_00048895 [00:03:14]file doc_00048896 [00:03:14]remove file /storage/0243/doc_00048896 [00:03:14]file doc_00048897 [00:03:14]remove file /storage/0243/doc_00048897 [00:03:14]file doc_00048898 [00:03:15]remove file /storage/0243/doc_00048898 [00:03:15]file doc_00048899 [00:03:15]remove file /storage/0243/doc_00048899 [00:03:15]file doc_00048900 [00:03:15]remove file /storage/0243/doc_00048900 [00:03:15]file doc_00048901 [00:03:15]remove file /storage/0243/doc_00048901 [00:03:15]file doc_00048902 [00:03:15]remove file /storage/0243/doc_00048902 [00:03:15]file doc_00048903 [00:03:15]remove file /storage/0243/doc_00048903 [00:03:15]file doc_00048904 [00:03:15]remove file /storage/0243/doc_00048904 [00:03:15]file doc_00048905 [00:03:15]remove file /storage/0243/doc_00048905 [00:03:15]file doc_00048906 [00:03:15]remove file /storage/0243/doc_00048906 [00:03:15]file doc_00048907 [00:03:15]remove file /storage/0243/doc_00048907 [00:03:15]file doc_00048908 [00:03:15]remove file /storage/0243/doc_00048908 [00:03:15]file doc_00048909 [00:03:15]remove file /storage/0243/doc_00048909 [00:03:15]file doc_00048910 [00:03:15]remove file /storage/0243/doc_00048910 [00:03:15]file doc_00048911 [00:03:15]remove file /storage/0243/doc_00048911 [00:03:15]file doc_00048912 [00:03:15]remove file /storage/0243/doc_00048912 [00:03:15]file doc_00048913 [00:03:15]remove file /storage/0243/doc_00048913 [00:03:15]file doc_00048914 [00:03:15]remove file /storage/0243/doc_00048914 [00:03:15]file doc_00048915 [00:03:15]remove file /storage/0243/doc_00048915 [00:03:15]file doc_00048916 [00:03:15]remove file /storage/0243/doc_00048916 [00:03:15]file doc_00048917 [00:03:15]remove file /storage/0243/doc_00048917 [00:03:15]file doc_00048918 [00:03:15]remove file /storage/0243/doc_00048918 [00:03:15]file doc_00048919 [00:03:15]remove file /storage/0243/doc_00048919 [00:03:15]file doc_00048920 [00:03:15]remove file /storage/0243/doc_00048920 [00:03:15]file doc_00048921 [00:03:15]remove file /storage/0243/doc_00048921 [00:03:15]file doc_00048922 [00:03:15]remove file /storage/0243/doc_00048922 [00:03:15]file doc_00048923 [00:03:15]remove file /storage/0243/doc_00048923 [00:03:15]file doc_00048924 [00:03:15]remove file /storage/0243/doc_00048924 [00:03:15]file doc_00048925 [00:03:15]remove file /storage/0243/doc_00048925 [00:03:15]file doc_00048926 [00:03:15]remove file /storage/0243/doc_00048926 [00:03:15]file doc_00048927 [00:03:15]remove file /storage/0243/doc_00048927 [00:03:15]file doc_00048928 [00:03:15]remove file /storage/0243/doc_00048928 [00:03:15]file doc_00048929 [00:03:15]remove file /storage/0243/doc_00048929 [00:03:15]file doc_00048930 [00:03:15]remove file /storage/0243/doc_00048930 [00:03:15]file doc_00048931 [00:03:15]remove file /storage/0243/doc_00048931 [00:03:15]file doc_00048932 [00:03:15]remove file /storage/0243/doc_00048932 [00:03:15]file doc_00048933 [00:03:15]remove file /storage/0243/doc_00048933 [00:03:15]file doc_00048934 [00:03:15]remove file /storage/0243/doc_00048934 [00:03:15]remove dir /storage/0243 [00:03:15]ProcessDocumentItem done err = 0, tmpTLVsize=258 [00:03:15]tlvbuf is 01392B40 [00:03:15]SAM_PROTO_ClearQueue [00:03:15]wFMCommunicate request_size=4 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 09 00 00 [00:03:15]Write to MH i2c: E2 08 00 0D 24 80 09 00 00 00 00 00 00 A3 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 0D 24 00 90 00 A5 [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]SAM_PROTO_ClearQueue done [00:03:15]KKMCreateOFDPacket [00:03:15]OFDProtocolAddRootSTLVToBuf [00:03:15]FM_MakeSignedData [00:03:15]FM_MakeSignedData [00:03:15]SAM_PROTO_SignData [00:03:15]wFMCommunicate request_size=4 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 01 02 [00:03:15]Write to MH i2c: E2 08 00 0E 24 80 0D 01 02 00 00 00 00 AB [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 0E 24 00 90 00 A6 [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]wFMCommunicate request_size=255 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 02 02 FA 02 00 02 01 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C7 99 B5 65 0E 04 04 00 F4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [00:03:15]Write to MH i2c: E2 02 01 0F 24 80 0D 02 02 FA 00 02 00 02 01 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C7 99 B5 65 0E 04 04 00 F4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 59 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 0F 24 00 90 00 A7 [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]wFMCommunicate request_size=17 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 02 02 0C 36 30 35 04 06 00 FF 38 9A 70 6D 01 [00:03:15]Write to MH i2c: E2 14 00 10 24 80 0D 02 02 0C 00 36 30 35 04 06 00 FF 38 9A 70 6D 01 00 00 1A [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [00:03:15]RAPDU: 90 00 [00:03:15]wFMCommunicate OK [00:03:15]wFMCommunicate request_size=4 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 0D 03 02 [00:03:15]Write to MH i2c: E2 08 00 11 24 80 0D 03 02 00 00 00 00 B0 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 0B 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 0B 00 11 24 00 5E 95 2D 87 78 4D 57 A8 90 00 1C [00:03:15]RAPDU: 5E 95 2D 87 78 4D 57 A8 90 00 [00:03:15]wFMCommunicate OK [00:03:15]SAM_PROTO_SignData done [00:03:15]FM_MakeSignedData done [00:03:15]CreateOFDProtocolMessage [00:03:15]wFMCommunicate request_size=4 [00:03:15]MH_SAM_APDU [00:03:15]CAPDU: 80 11 00 00 [00:03:15]Write to MH i2c: E2 08 00 12 24 80 11 00 00 00 00 00 00 B0 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:15]Read from MH i2c: E2 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 17 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: E2 17 00 12 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FD [00:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:03:15]wFMCommunicate OK [00:03:15]CreateOFDProtocolMessage done [00:03:15]OFDSenderStorePacket 48935 [00:03:15]StoreOFDPacket docnum=48935 [00:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 16 01 00 00 9B DE 0E 01 D6 5A 5A 02 01 00 02 00 02 01 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C7 99 B5 65 0E 04 04 00 F4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 FF 38 9A 70 6D 01 5E 95 2D 87 78 4D 57 A8 [00:03:15]CheckFolder [00:03:15]dirname=/storage/ofd_packets [00:03:15]CheckFolder done [00:03:15]ProducePacketName [00:03:15]name=ofd_packets/00048935 [00:03:15]NVStorageSaveData ofd_packets/00048935 [00:03:15]File name is /storage/ofd_packets/00048935 [00:03:15]Write 308 bytes [00:03:15]NVStorageSaveData done [00:03:15]OFDSenderStorePacket done [00:03:15]KKMCreateOFDPacket done [00:03:15]NVStorageSaveData kkm_last_timestamp [00:03:15]File name is /storage/kkm_last_timestamp [00:03:15]Write 4 bytes [00:03:15]NVStorageSaveData done [00:03:15]ExternCall_PrintAddStr [00:03:15]wPrintStart [00:03:15]Write to MH i2c: 01 00 00 13 24 37 [00:03:15]Write i2c OK [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 [00:03:15]MH_I2C_Read... [00:03:15]Read from MH i2c: 01 07 00 13 24 00 00 00 00 00 FF 0F 4C [00:03:16]RasterBufferAndPrint [00:03:16]line Отчет об открытии смены [00:03:16]line ФФД: 1.0 [00:03:16]line ИНН: 02508201610067 [00:03:16]line Кассир: Барыктабасов Т. [00:03:16]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:03:16]line Место: АЗС № 102 "Партнер Нефть" [00:03:16]line 28.01.2024 00:03 [00:03:16]line Смена: 244 [00:03:16]line РНМ: 0000000000092723 [00:03:16]line ЗНМ: 0300000040 [00:03:16]line ФД: 48935 [00:03:16]line ФМ: 0000000000875060 [00:03:16]line ФПД: 280618574310657 [00:03:16]OFD Sender: Processing packet 48935 [packets to send 12, broken 11] [00:03:16]ProducePacketName [00:03:16]name=ofd_packets/00048935 [00:03:16]OFD Sender: To server: pG, [00:03:16]CommunicateWithHost lk.salyk.kg:30040 [00:03:16]ConnectInit lk.salyk.kg [00:03:16]written 0, free lines is 4095 [00:03:16]Connected sock=10 [00:03:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 16 01 00 00 9B DE 0E 01 D6 5A 5A 02 01 00 02 00 02 01 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C7 99 B5 65 0E 04 04 00 F4 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 FF 38 9A 70 6D 01 5E 95 2D 87 78 4D 57 A8 [00:03:16]Write to MH i2c: 01 00 00 25 24 49 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: 01 07 00 25 24 00 00 00 00 00 5B 0E B9 [00:03:16]RasterBufferAndPrint [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]line [00:03:16]written 0, free lines is 3689 [00:03:16]MH_Cut [00:03:16]Write to MH i2c: D1 01 00 2C 24 01 22 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 01 00 [00:03:16]MH_I2C_Read... [00:03:16]Read from MH i2c: D1 01 00 2C 24 00 21 [00:03:16]Write to MH i2c: 01 00 00 2D 24 51 [00:03:16]Write i2c OK [00:03:16]MH_I2C_Read... [00:03:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C1 2C 47 00 00 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 35 30 36 30 10 04 04 00 27 BF 00 00 F4 03 04 00 C4 45 B5 65 B6 04 01 00 00 9C 0C B0 0D 6D 40 6A E5 [00:03:16]CommunicateWithHost err = 0 [00:03:16]CheckOFDResponse [00:03:16]1017 (14) - 77093643461234 [00:03:16]1041 (16) - 0000000000875060 [00:03:16]1040 (4) - 48935 [00:03:16]1012 (4) - 27.01.2024 18:04 [00:03:16]1206 (1) - 0 [00:03:16]OFD Sender: Remove packet 48935 [00:03:16]ProducePacketName [00:03:16]name=ofd_packets/00048935 [00:03:16]NVStorageDeleteData [00:03:16]*** Cut start [00:03:16]*** Partial cut [00:03:16]*** CUTSNS_PIN = 1 [00:03:16]*** CUTSNS_PIN = 0 [00:03:16]OFD Sender: No OFD packet to send [00:03:16]*** Brake cut motor [00:03:17]Read from MH i2c: 01 [00:03:17]MH_I2C_Read... [00:03:17]*** Stop cut motor [00:03:17]*** Cut end [00:03:17]Read from MH i2c: 01 07 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 FF 0F 66 [00:03:17]process_action open_shift done [00:03:17]requested_data is exist [00:03:17]produce_requested_data [00:03:17]requested_item fd.num is exist - process it [00:03:17]SAM_PROTO_GetFieldsCounters [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 00 00 [00:03:17]Write to MH i2c: E2 08 00 2E 24 80 13 00 00 00 00 00 00 CE [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 62 00 2E 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 0E 04 04 00 F4 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [00:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 27 BF 00 00 0E 04 04 00 F4 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetFieldsCounters done [00:03:17]requested_item shift.num is exist - process it [00:03:17]requested_item shift.opened is exist - process it [00:03:17]req_shift_opened [00:03:17]FM_GetShiftState [00:03:17]SAM_PROTO_GetShiftState [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 01 00 [00:03:17]Write to MH i2c: E2 08 00 2F 24 80 13 01 00 00 00 00 00 D0 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 0E 00 2F 24 00 09 00 01 C7 99 B5 65 00 00 00 00 90 00 56 [00:03:17]RAPDU: 09 00 01 C7 99 B5 65 00 00 00 00 90 00 [00:03:17]wFMCommunicate OK [00:03:17]SAM_PROTO_GetShiftState done [00:03:17]FM_GetShiftState done [00:03:17]req_shift_opened done [00:03:17]requested_item shift.open_date is exist - process it [00:03:17]req_shift_open_date [00:03:17]req_shift_open_date done [00:03:17]produce_requested_data done [00:03:17]produce_requested_data return {"fd.num":48935,"shift.num":244,"shift.opened":1,"shift.open_date":1706400199} [00:03:17]process_action_free open_shift [00:03:17]json_value_free [00:03:17]json_value_free done [00:03:17]process_json_proto returns [00:03:17]Send response to host [00:03:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":48935,"shift.num":244,"shift.opened":1,"shift.open_date":1706400199}}} [00:03:17]free response buf [00:03:17]execute_script done [00:03:17]execute_script returns [00:03:17]free content buf [00:03:17]Sock 7.Close socket [00:03:17]Sock 7.Thread stoped [00:03:17]accept exits with 9 [00:03:17]New connection [00:03:17]New thread 3066670436 created [00:03:17]Thread 3066813796 joined [00:03:17]Waiting for new connection... [00:03:17] Sock 9.Parse request [00:03:17]Sock 9.Check first char [00:03:17]Sock 9.First char is OK [00:03:17]request: POST /json_proto HTTP/1.0 [00:03:17]Method: POST [00:03:17]URL: /json_proto [00:03:17]Method is POST - this is cgi request [00:03:17]url: /json_proto [00:03:17]query_string will be loaded in cgi processing [00:03:17]execute_cgi json_proto POST (null) [00:03:17]execute_cgi path=json_proto method=POST [00:03:17]POST find Content-Length [00:03:17]Host: 172.17.56.67:8080 [00:03:17]Content-Length: 331 [00:03:17]Content-Type: application/json [00:03:17] [00:03:17]POST finish read [00:03:17]Found Content-Length = 331 [00:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:17]execute_script... [00:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:17]POST & json_proto [00:03:17]process_json_proto [00:03:17]json parsed OK: [00:03:17]protocol is kg_v1.0 [00:03:17]action value=get_value [00:03:17]process_action get_value [00:03:17]cmd_get_value [00:03:17]process_action get_value done [00:03:17]requested_data is exist [00:03:17]produce_requested_data [00:03:17]requested_item fm.sale.total is exist - process it [00:03:17]SAM_PROTO_GetFMData [00:03:17]wFMCommunicate request_size=4 [00:03:17]MH_SAM_APDU [00:03:17]CAPDU: 80 13 03 00 [00:03:17]Write to MH i2c: E2 08 00 30 24 80 13 03 00 00 00 00 00 D3 [00:03:17]Write i2c OK [00:03:17]MH_I2C_Read... [00:03:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:17]Read from MH i2c: E2 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 FD 00 [00:03:17]MH_I2C_Read... [00:03:17]Read from MH i2c: E2 FD 00 30 24 00 BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 D1 [00:03:17]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 41 BD 00 00 69 04 A1 00 6F 04 04 00 3D BD 00 00 B1 04 04 00 C3 88 90 BB 70 04 04 00 20 C1 D8 AE 72 04 04 00 A3 C7 B7 0C 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 59 8E ED 13 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 D9 18 A9 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 31 24 80 17 00 00 00 00 00 00 D5 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 31 24 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 85 [00:03:18]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 32 24 80 17 00 00 00 00 00 00 D6 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:18]Read from MH i2c: E2 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 [00:03:18]MH_I2C_Read... [00:03:18]Read from MH i2c: E2 FD 00 32 24 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7A [00:03:18]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:03:18]wFMCommunicate OK [00:03:18]wFMCommunicate request_size=4 [00:03:18]MH_SAM_APDU [00:03:18]CAPDU: 80 17 00 00 [00:03:18]Write to MH i2c: E2 08 00 33 24 80 17 00 00 00 00 00 00 D7 [00:03:18]Write i2c OK [00:03:18]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 FD 00 33 24 00 00 04 F7 03 00 00 EF 03 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 90 00 51 [00:03:19]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:19]wFMCommunicate OK [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 17 00 00 [00:03:19]Write to MH i2c: E2 08 00 34 24 80 17 00 00 00 00 00 00 D8 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:03:19]Read from MH i2c: E2 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 DC 00 [00:03:19]MH_I2C_Read... [00:03:19]Read from MH i2c: E2 DC 00 34 24 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BC [00:03:19]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:19]wFMCommunicate OK [00:03:19]SAM_PROTO_GetFMData done [00:03:19]requested_item fm.sale_refund.total is exist - process it [00:03:19]requested_item fm.buy.total is exist - process it [00:03:19]requested_item shift.sale.total is exist - process it [00:03:19]SAM_PROTO_GetShiftData [00:03:19]wFMCommunicate request_size=4 [00:03:19]MH_SAM_APDU [00:03:19]CAPDU: 80 13 02 00 [00:03:19]Write to MH i2c: E2 08 00 35 24 80 13 02 00 00 00 00 00 D7 [00:03:19]Write i2c OK [00:03:19]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 35 24 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 4A [00:03:20]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 36 24 80 17 00 00 00 00 00 00 DA [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 36 24 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 E2 [00:03:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:03:20]wFMCommunicate OK [00:03:20]wFMCommunicate request_size=4 [00:03:20]MH_SAM_APDU [00:03:20]CAPDU: 80 17 00 00 [00:03:20]Write to MH i2c: E2 08 00 37 24 80 17 00 00 00 00 00 00 DB [00:03:20]Write i2c OK [00:03:20]MH_I2C_Read... [00:03:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:20]Read from MH i2c: E2 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 [00:03:20]MH_I2C_Read... [00:03:20]Read from MH i2c: E2 FD 00 37 24 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 AD [00:03:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 38 24 80 17 00 00 00 00 00 00 DC [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 FD 00 38 24 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 4E [00:03:21]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:03:21]wFMCommunicate OK [00:03:21]wFMCommunicate request_size=4 [00:03:21]MH_SAM_APDU [00:03:21]CAPDU: 80 17 00 00 [00:03:21]Write to MH i2c: E2 08 00 39 24 80 17 00 00 00 00 00 00 DD [00:03:21]Write i2c OK [00:03:21]MH_I2C_Read... [00:03:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:21]Read from MH i2c: E2 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 BD 00 [00:03:21]MH_I2C_Read... [00:03:21]Read from MH i2c: E2 BD 00 39 24 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C3 [00:03:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:22]OFD Sender: No OFD packet to send [00:03:22]wFMCommunicate OK [00:03:22]SAM_PROTO_GetShiftData done [00:03:22]requested_item shift.sale.total_cash is exist - process it [00:03:22]requested_item shift.sale_refund.total is exist - process it [00:03:22]requested_item shift.sale_refund.total_cash is exist - process it [00:03:22]requested_item shift.buy.total is exist - process it [00:03:22]requested_item shift.buy.total_cash is exist - process it [00:03:22]produce_requested_data done [00:03:22]produce_requested_data return {"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:22]process_action_free get_value [00:03:22]json_value_free [00:03:22]json_value_free done [00:03:22]process_json_proto returns [00:03:22]Send response to host [00:03:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31468115.87,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:22]free response buf [00:03:22]execute_script done [00:03:22]execute_script returns [00:03:22]free content buf [00:03:22]Sock 9.Close socket [00:03:22]Sock 9.Thread stoped [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:09]OFD Sender: No OFD packet to send [00:41:14]OFD Sender: No OFD packet to send [00:41:19]OFD Sender: No OFD packet to send [00:41:24]OFD Sender: No OFD packet to send [00:41:29]OFD Sender: No OFD packet to send [00:41:34]OFD Sender: No OFD packet to send [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:29]accept exits with 7 [02:09:29]New connection [02:09:29]New thread 3066813796 created [02:09:29]Thread 3066670436 joined [02:09:29]Waiting for new connection... [02:09:29] Sock 7.Parse request [02:09:29]Sock 7.Check first char [02:09:29]Sock 7.First char is OK [02:09:29]request: POST /json_proto HTTP/1.0 [02:09:29]Method: POST [02:09:29]URL: /json_proto [02:09:29]Method is POST - this is cgi request [02:09:29]url: /json_proto [02:09:29]query_string will be loaded in cgi processing [02:09:29]execute_cgi json_proto POST (null) [02:09:29]execute_cgi path=json_proto method=POST [02:09:29]POST find Content-Length [02:09:29]Host: 172.17.56.67:8080 [02:09:29]Content-Length: 677 [02:09:29]Content-Type: application/json [02:09:29] [02:09:29]POST finish read [02:09:29]Found Content-Length = 677 [02:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:09:29]execute_script... [02:09: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)216033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:09:29]POST & json_proto [02:09:29]process_json_proto [02:09:29]json parsed OK: [02:09:29]protocol is kg_v1.0 [02:09:29]action value=close_receipt [02:09:29]process_action close_receipt [02:09:29]cmd_close_receipt [02:09:29]MH_GetDate [02:09:29]Write to MH i2c: F0 00 00 3A 24 4D [02:09:29]Write i2c OK [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: F0 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: F0 09 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: F0 09 00 3A 24 00 5F B7 B5 65 26 5D 9E 65 0C [02:09:29]GetLastDocTimeStamp 1706400199 [02:09:29]current date 1706407775 [02:09:29]FM_GetShiftState [02:09:29]SAM_PROTO_GetShiftState [02:09:29]wFMCommunicate request_size=4 [02:09:29]MH_SAM_APDU [02:09:29]CAPDU: 80 13 01 00 [02:09:29]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [02:09:29]Write i2c OK [02:09:29]MH_I2C_Read... [02:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:29]Read from MH i2c: E2 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 0E 00 [02:09:29]MH_I2C_Read... [02:09:29]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 C7 99 B5 65 00 00 00 00 90 00 62 [02:09:29]RAPDU: 09 00 01 C7 99 B5 65 00 00 00 00 90 00 [02:09:29]wFMCommunicate OK [02:09:29]SAM_PROTO_GetShiftState done [02:09:29]FM_GetShiftState done [02:09:29]opened in 1706400199 [02:09:29]opened+sec_in_day 1706486599 [02:09:29]quantity*price = 40039 [02:09:29]sum+1 = 40040 [02:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 1 28.01.2024 02:09 Смена: 244 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 48936 ФПД: 93887441386054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240128T020935&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48936&fm=93887441386054&tin=02508201610067®Number=0000000000092723&sum=40000 [02:09:30]StoreToDocumentArchive [02:09:30]shift 244 fd 48936 [02:09:30]save to /storage/0244/doc_00048936 [02:09:30]save last doc name /storage/0244/doc_00048936 to /storage/kkm_last_doc_name [02:09:30]save OK [02:09:30]Clear old archive folders... [02:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:09:30]tlvbuf is 011B4B20 [02:09:30]SAM_PROTO_ClearQueue [02:09:30]wFMCommunicate request_size=4 [02:09:30]MH_SAM_APDU [02:09:30]CAPDU: 80 09 00 00 [02:09:30]Write to MH i2c: E2 08 00 48 24 80 09 00 00 00 00 00 00 DE [02:09:30]Write i2c OK [02:09:30]MH_I2C_Read... [02:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:30]Read from MH i2c: E2 [02:09:30]MH_I2C_Read... [02:09:30]Read from MH i2c: E2 03 00 [02:09:30]MH_I2C_Read... [02:09:30]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [02:09:30]RAPDU: 90 00 [02:09:30]wFMCommunicate OK [02:09:30]SAM_PROTO_ClearQueue done [02:09:30]KKMCreateOFDPacket [02:09:30]OFDProtocolAddRootSTLVToBuf [02:09:30]FM_MakeSignedData [02:09:30]FM_MakeSignedData [02:09:30]SAM_PROTO_SignData [02:09:30]wFMCommunicate request_size=4 [02:09:30]MH_SAM_APDU [02:09:30]CAPDU: 80 0D 01 02 [02:09:30]Write to MH i2c: E2 08 00 49 24 80 0D 01 02 00 00 00 00 E6 [02:09:30]Write i2c OK [02:09:30]MH_I2C_Read... [02:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:30]Read from MH i2c: E2 [02:09:30]MH_I2C_Read... [02:09:30]Read from MH i2c: E2 03 00 [02:09:30]MH_I2C_Read... [02:09:30]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [02:09:30]RAPDU: 90 00 [02:09:30]wFMCommunicate OK [02:09:30]wFMCommunicate request_size=255 [02:09:30]MH_SAM_APDU [02:09: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 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 5F B7 B5 65 0E 04 04 00 F4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 BF 00 00 35 04 06 00 55 [02:09:30]Write to MH i2c: E2 02 01 4A 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 5F B7 B5 65 0E 04 04 00 F4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 BF 00 00 35 04 06 00 55 00 00 C1 [02:09:30]Write i2c OK [02:09:30]MH_I2C_Read... [02:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:31]Read from MH i2c: E2 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 03 00 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [02:09:31]RAPDU: 90 00 [02:09:31]wFMCommunicate OK [02:09:31]wFMCommunicate request_size=10 [02:09:31]MH_SAM_APDU [02:09:31]CAPDU: 80 0D 02 02 05 63 DF 97 BA 46 [02:09:31]Write to MH i2c: E2 0D 00 4B 24 80 0D 02 02 05 00 63 DF 97 BA 46 00 00 CC [02:09:31]Write i2c OK [02:09:31]MH_I2C_Read... [02:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:31]Read from MH i2c: E2 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 03 00 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [02:09:31]RAPDU: 90 00 [02:09:31]wFMCommunicate OK [02:09:31]wFMCommunicate request_size=4 [02:09:31]MH_SAM_APDU [02:09:31]CAPDU: 80 0D 03 02 [02:09:31]Write to MH i2c: E2 08 00 4C 24 80 0D 03 02 00 00 00 00 EB [02:09:31]Write i2c OK [02:09:31]MH_I2C_Read... [02:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:31]Read from MH i2c: E2 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 0B 00 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 0B 00 4C 24 00 47 7D 91 E8 1F 97 52 3D 90 00 6E [02:09:31]RAPDU: 47 7D 91 E8 1F 97 52 3D 90 00 [02:09:31]wFMCommunicate OK [02:09:31]SAM_PROTO_SignData done [02:09:31]FM_MakeSignedData done [02:09:31]CreateOFDProtocolMessage [02:09:31]wFMCommunicate request_size=4 [02:09:31]MH_SAM_APDU [02:09:31]CAPDU: 80 11 00 00 [02:09:31]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [02:09:31]Write i2c OK [02:09:31]MH_I2C_Read... [02:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:31]Read from MH i2c: E2 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 17 00 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 38 [02:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [02:09:31]wFMCommunicate OK [02:09:31]CreateOFDProtocolMessage done [02:09:31]OFDSenderStorePacket 48936 [02:09:31]StoreOFDPacket docnum=48936 [02:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 74 F5 07 01 A1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 5F B7 B5 65 0E 04 04 00 F4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 BF 00 00 35 04 06 00 55 63 DF 97 BA 46 47 7D 91 E8 1F 97 52 3D [02:09:31]CheckFolder [02:09:31]dirname=/storage/ofd_packets [02:09:31]CheckFolder done [02:09:31]ProducePacketName [02:09:31]name=ofd_packets/00048936 [02:09:31]NVStorageSaveData ofd_packets/00048936 [02:09:31]File name is /storage/ofd_packets/00048936 [02:09:31]Write 301 bytes [02:09:31]NVStorageSaveData done [02:09:31]OFDSenderStorePacket done [02:09:31]KKMCreateOFDPacket done [02:09:31]NVStorageSaveData kkm_last_timestamp [02:09:31]File name is /storage/kkm_last_timestamp [02:09:31]Write 4 bytes [02:09:31]NVStorageSaveData done [02:09:31]OFD Sender: Processing packet 48936 [packets to send 12, broken 11] [02:09:31]ProducePacketName [02:09:31]name=ofd_packets/00048936 [02:09:31]OFD Sender: To server: pG, [02:09:31]CommunicateWithHost lk.salyk.kg:30040 [02:09:31]ConnectInit lk.salyk.kg [02:09:31]ExternCall_PrintAddStr [02:09:31]wPrintStart [02:09:31]Write to MH i2c: 01 00 00 4E 24 72 [02:09:31]Write i2c OK [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: 01 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: 01 07 00 [02:09:31]MH_I2C_Read... [02:09:31]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [02:09:31]RasterBufferAndPrint [02:09:31]line Счет N : (1)216033 [02:09:31]line ИНН: 02508201610067 [02:09:31]line Контрольно-Кассовый Чек [02:09:31]line ПРОДАЖА [02:09:31]line ТРК (МРК, ГНК) : 12 [02:09:31]line Товар: 2710124130 [02:09:31]line Аи-92-К-5 [02:09:31]line 6.640 * 60.30 [02:09:31]line = 400.39 [02:09:31]line НДС 12% НСП 1% [02:09:31]line > о реализуемом товаре [02:09:31]line ОКРУГЛЕНИЕ: -0.39 [02:09:31]line ИТОГО: 400.00 [02:09:31]line Внесено: 400.00 [02:09:31]line СДАЧА: 0.00 [02:09:31]line НСП 1% : 3.54 [02:09:31]line НДС 12% : 42.52 [02:09:31]line Наличными: 400.00 [02:09:31]line Безнал.: 0.00 [02:09:31]line Место: АЗС № 102 "Партнер Нефть" [02:09:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [02:09:31]line СНО: Общий режим [02:09:31]line Чек 1 28.01.2024 02:09 [02:09:31]line Смена: 244 ФФД: 1.0 [02:09:31]line ЗНМ: 0300000040 [02:09:31]line РНМ: 0000000000092723 [02:09:31]line Версия ККМ: 001 [02:09:31]line ФМ: 0000000000875060 [02:09:31]line ФД: 48936 [02:09:31]line ФПД: 93887441386054 [02:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240128T020935&type=1&operation_type=1&fn_number=0000000000875060&fd_number=48936&fm=93887441386054&tin=02508201610067®Number=0000000000092723&sum=40000 [02:09:31]Connected sock=11 [02:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 74 F5 07 01 A1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 5F B7 B5 65 0E 04 04 00 F4 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 BF 00 00 35 04 06 00 55 63 DF 97 BA 46 47 7D 91 E8 1F 97 52 3D [02:09:31]written 0, free lines is 4095 [02:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 77 4E 47 00 63 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 28 BF 00 00 F4 03 04 00 5C 63 B5 65 B6 04 01 00 00 7D 3C A0 2F 22 DA 40 A8 [02:09:31]CommunicateWithHost err = 0 [02:09:31]CheckOFDResponse [02:09:31]1017 (14) - 77093643461234 [02:09:31]1041 (16) - 0000000000875060 [02:09:31]1040 (4) - 48936 [02:09:31]1012 (4) - 27.01.2024 20:11 [02:09:31]1206 (1) - 0 [02:09:31]OFD Sender: Remove packet 48936 [02:09:31]ProducePacketName [02:09:31]name=ofd_packets/00048936 [02:09:31]NVStorageDeleteData [02:09:32]Write to MH i2c: 01 00 00 79 24 9D [02:09:32]Write i2c OK [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: 01 [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: 01 07 00 [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 F9 0C A9 [02:09:32]RasterBufferAndPrint [02:09:32]line [02:09:32]line [02:09:32]line [02:09:32]line [02:09:32]line [02:09:32]written 0, free lines is 3328 [02:09:32]MH_Cut [02:09:32]Write to MH i2c: D1 01 00 80 24 01 76 [02:09:32]Write i2c OK [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: D1 [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: D1 01 00 [02:09:32]MH_I2C_Read... [02:09:32]Read from MH i2c: D1 01 00 80 24 00 75 [02:09:32]Write to MH i2c: 01 00 00 81 24 A5 [02:09:32]Write i2c OK [02:09:32]MH_I2C_Read... [02:09:32]OFD Sender: No OFD packet to send [02:09:32]*** Cut start [02:09:32]*** Partial cut [02:09:32]*** CUTSNS_PIN = 1 [02:09:32]*** CUTSNS_PIN = 0 [02:09:32]*** Brake cut motor [02:09:33]Read from MH i2c: 01 [02:09:33]MH_I2C_Read... [02:09:33]*** Stop cut motor [02:09:33]*** Cut end [02:09:33]Read from MH i2c: 01 07 00 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 FF 0F BA [02:09:33]process_action close_receipt done [02:09:33]requested_data is exist [02:09:33]produce_requested_data [02:09:33]requested_item fm.sn is exist - process it [02:09:33]wFMCommunicate request_size=4 [02:09:33]MH_SAM_APDU [02:09:33]CAPDU: 80 11 00 00 [02:09:33]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [02:09:33]Write i2c OK [02:09:33]MH_I2C_Read... [02:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:33]Read from MH i2c: E2 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 17 00 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6D [02:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [02:09:33]wFMCommunicate OK [02:09:33]requested_item fd.num is exist - process it [02:09:33]SAM_PROTO_GetFieldsCounters [02:09:33]wFMCommunicate request_size=4 [02:09:33]MH_SAM_APDU [02:09:33]CAPDU: 80 13 00 00 [02:09:33]Write to MH i2c: E2 08 00 83 24 80 13 00 00 00 00 00 00 23 [02:09:33]Write i2c OK [02:09:33]MH_I2C_Read... [02:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:33]Read from MH i2c: E2 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 62 00 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 62 00 83 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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 28 BF 00 00 0E 04 04 00 F4 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [02:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 28 BF 00 00 0E 04 04 00 F4 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:09:33]wFMCommunicate OK [02:09:33]SAM_PROTO_GetFieldsCounters done [02:09:33]requested_item shift.num is exist - process it [02:09:33]requested_item shift.opened is exist - process it [02:09:33]req_shift_opened [02:09:33]FM_GetShiftState [02:09:33]SAM_PROTO_GetShiftState [02:09:33]wFMCommunicate request_size=4 [02:09:33]MH_SAM_APDU [02:09:33]CAPDU: 80 13 01 00 [02:09:33]Write to MH i2c: E2 08 00 84 24 80 13 01 00 00 00 00 00 25 [02:09:33]Write i2c OK [02:09:33]MH_I2C_Read... [02:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:33]Read from MH i2c: E2 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 0E 00 [02:09:33]MH_I2C_Read... [02:09:33]Read from MH i2c: E2 0E 00 84 24 00 09 00 01 C7 99 B5 65 00 00 00 00 90 00 AB [02:09:33]RAPDU: 09 00 01 C7 99 B5 65 00 00 00 00 90 00 [02:09:33]wFMCommunicate OK [02:09:33]SAM_PROTO_GetShiftState done [02:09:33]FM_GetShiftState done [02:09:33]req_shift_opened done [02:09:33]requested_item shift.open_date is exist - process it [02:09:33]req_shift_open_date [02:09:33]req_shift_open_date done [02:09:33]produce_requested_data done [02:09:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":48936,"shift.num":244,"shift.opened":1,"shift.open_date":1706400199} [02:09:33]process_action_free close_receipt [02:09:33]json_value_free [02:09:33]json_value_free done [02:09:33]process_json_proto returns [02:09:33]Send response to host [02:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":48936,"shift.num":244,"shift.opened":1,"shift.open_date":1706400199}}} [02:09:33]free response buf [02:09:33]execute_script done [02:09:33]execute_script returns [02:09:33]free content buf [02:09:33]Sock 7.Close socket [02:09:33]Sock 7.Thread stoped [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:42]OFD Sender: No OFD packet to send [02:18:47]OFD Sender: No OFD packet to send [02:18:52]OFD Sender: No OFD packet to send [02:18:57]OFD Sender: No OFD packet to send [02:19:02]OFD Sender: No OFD packet to send [02:19:07]OFD Sender: No OFD packet to send [02:19:12]OFD Sender: No OFD packet to send [02:19:17]OFD Sender: No OFD packet to send [02:19:22]OFD Sender: No OFD packet to send [02:19:27]OFD Sender: No OFD packet to send [02:19:32]OFD Sender: No OFD packet to send [02:19:37]OFD Sender: No OFD packet to send [02:19:42]OFD Sender: No OFD packet to send [02:19:47]OFD Sender: No OFD packet to send [02:19:52]OFD Sender: No OFD packet to send [02:19:57]OFD Sender: No OFD packet to send [02:20:02]OFD Sender: No OFD packet to send [02:20:07]OFD Sender: No OFD packet to send [02:20:12]OFD Sender: No OFD packet to send [02:20:17]OFD Sender: No OFD packet to send [02:20:22]OFD Sender: No OFD packet to send [02:20:27]OFD Sender: No OFD packet to send [02:20:32]OFD Sender: No OFD packet to send [02:20:37]OFD Sender: No OFD packet to send [02:20:42]OFD Sender: No OFD packet to send [02:20:47]OFD Sender: No OFD packet to send [02:20:52]OFD Sender: No OFD packet to send [02:20:57]OFD Sender: No OFD packet to send [02:21:02]OFD Sender: No OFD packet to send [02:21:07]OFD Sender: No OFD packet to send [02:21:12]OFD Sender: No OFD packet to send [02:21:17]OFD Sender: No OFD packet to send [02:21:22]OFD Sender: No OFD packet to send [02:21:27]OFD Sender: No OFD packet to send [02:21:32]OFD Sender: No OFD packet to send [02:21:37]OFD Sender: No OFD packet to send [02:21:42]OFD Sender: No OFD packet to send [02:21:47]OFD Sender: No OFD packet to send [02:21:52]OFD Sender: No OFD packet to send [02:21:57]OFD Sender: No OFD packet to send [02:22:02]OFD Sender: No OFD packet to send [02:22:07]OFD Sender: No OFD packet to send [02:22:12]OFD Sender: No OFD packet to send [02:22:17]OFD Sender: No OFD packet to send [02:22:22]OFD Sender: No OFD packet to send [02:22:27]OFD Sender: No OFD packet to send [02:22:32]OFD Sender: No OFD packet to send [02:22:37]OFD Sender: No OFD packet to send [02:22:42]OFD Sender: No OFD packet to send [02:22:47]OFD Sender: No OFD packet to send [02:22:52]OFD Sender: No OFD packet to send [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send